拼板印
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

275 lines
4.7 KiB

page {
font-size: $uni-font-size-base;
line-height: 1;
background-color: #f7f8fa;
-webkit-overflow-scrolling: touch; /* 使ios列表滑动流畅*/
}
// 标签重置
page,
view,
input,
text,
form,
navigator,
rich-text,
picker,
scroll-view,
cover-view,
open-data {
box-sizing: border-box;
}
rich-text,
open-data,
form {
display: block;
}
view,
image,
text {
box-sizing: border-box;
flex-shrink: 0;
}
// flex快捷类
.flex-row {
display: flex;
flex-direction: row;
}
.flex-col {
display: flex;
flex-direction: column;
}
.justify-start {
display: flex;
justify-content: flex-start;
}
.justify-center {
display: flex;
justify-content: center;
}
.justify-end {
display: flex;
justify-content: flex-end;
}
.justify-evenly {
display: flex;
justify-content: space-evenly;
}
.justify-around {
display: flex;
justify-content: space-around;
}
.justify-between {
display: flex;
justify-content: space-between;
}
.items-start {
display: flex;
align-items: flex-start;
}
.items-center {
display: flex;
align-items: center;
}
.items-end {
display: flex;
align-items: flex-end;
}
.text-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
cover-view {
line-height: 1.5;
white-space: normal;
}
// 隐藏滑动条
*::webkit-scrollbar {
display: none;
}
// 重置按钮样式
button::after {
border: 0;
}
/* 清除浮动 */
.clearfix:after {
content: '.';
display: block;
height: 0;
clear: both;
visibility: hidden;
}
// 两行省略号
.u-line-2 {
-webkit-line-clamp: 2;
overflow: hidden;
word-break: break-all;
text-overflow: ellipsis;
display: -webkit-box; // 弹性伸缩盒
-webkit-box-orient: vertical; // 设置伸缩盒子元素排列方式
}
// flex 快捷类
.flex-row-start-start {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: flex-start;
}
.flex-row-start-center {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: center;
}
.flex-row-start-end {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: flex-end;
}
.flex-row-start-space {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
}
.flex-row-center-start {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
.flex-row-center-center {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.flex-row-center-end {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end;
}
.flex-row-center-space {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.flex-row-end-start {
display: flex;
flex-direction: row;
align-items: flex-end;
justify-content: flex-start;
}
.flex-row-end-center {
display: flex;
flex-direction: row;
align-items: flex-end;
justify-content: center;
}
.flex-row-end-end {
display: flex;
flex-direction: row;
align-items: flex-end;
justify-content: flex-end;
}
.flex-row-end-space {
display: flex;
flex-direction: row;
align-items: flex-end;
justify-content: space-between;
}
.flex-col-start-start {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
}
.flex-col-start-center {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
}
.flex-col-start-end {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-end;
}
.flex-col-start-space {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
}
.flex-col-center-start {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
}
.flex-col-center-center {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.flex-col-center-end {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
}
.flex-col-center-space {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}
.flex-col-end-start {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: flex-start;
}
.flex-col-end-center {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: center;
}
.flex-col-end-end {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: flex-end;
}
.flex-col-end-space {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: space-between;
}
// flex 快捷子类
.flex-base {
flex-grow: 0;
flex-shrink: 0;
}