12 Star 70 Fork 13

xhhhhh / uni-app-style

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
common.scss 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
theBestXH 提交于 2020-10-06 10:00 . first commit
.clearfix {
&:after {
content: ' ';
display: block;
visibility: hidden;
height: 0;
font-size: 0;
clear: both;
}
}
.scroll {
&-x {
overflow-x: auto;
}
&-y {
overflow-y: auto;
}
&-none {
overflow: hidden;
}
}
.z {
&-small {
z-index: 99;
}
&-medium {
z-index: 999;
}
&-large {
z-index: 9999;
}
}
.f {
&l {
float: left;
}
&r {
float: right;
}
}
.d {
&b {
display: block !important;
width: 100%;
}
&ib {
display: inline-block !important;
}
&n {
display: none !important;
}
}
.t {
&al {
text-align: left;
}
&ac {
text-align: center;
}
&ar {
text-align: right;
}
&ie {
text-indent: 2em;
}
}
.toe {
@mixin toe {
-webkit-box-orient: vertical;
display: -webkit-box;
text-overflow: ellipsis;
overflow: hidden;
}
&-1 {
@include toe;
-webkit-line-clamp: 1;
}
&-2 {
@include toe;
-webkit-line-clamp: 2;
}
&-3 {
@include toe;
-webkit-line-clamp: 3;
}
&-sp {
width: 1em;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
.v {
&at {
vertical-align: top;
}
&am {
vertical-align: middle;
}
&ab {
vertical-align: baseline;
}
}
.ws {
&-wrap {
white-space: normal;
}
&-none {
white-space: nowrap;
}
}
.wb {
&-all {
word-break: break-all;
}
&-word {
word-break: break-word;
}
&-none {
word-break: keep-all;
}
}
CSS
1
https://gitee.com/thebestweb/uni-app-style.git
git@gitee.com:thebestweb/uni-app-style.git
thebestweb
uni-app-style
uni-app-style
master

搜索帮助