| | |
| | | // 超出行数,自动显示行尾省略号,最多5行 |
| | | // 来自uview-plus的温馨提示:当您在控制台看到此报错,说明需要在App.vue的style标签加上【lang="scss"】 |
| | | @for $i from 1 through 5 { |
| | | .u-line-#{$i} { |
| | | @for $i from 1 through 10 { |
| | | .u-line-#{$i}, |
| | | .up-line-#{$i} { |
| | | /* #ifdef APP-NVUE */ |
| | | // nvue下,可以直接使用lines属性,这是weex特有样式 |
| | | lines: $i; |
| | |
| | | // App.vue的样式会被uni-app的view元素的自带border属性覆盖,导致无效 |
| | | // 综上,这是uni-app的缺陷导致我们为了多端兼容,而必须要加上!important |
| | | // 移动端兼容性较好,直接使用0.5px去实现细边框,不使用伪元素形式实现 |
| | | .u-border { |
| | | .u-border, |
| | | .up-border { |
| | | border-width: 0.5px!important; |
| | | border-color: $u-border-color!important; |
| | | border-style: solid; |
| | | } |
| | | |
| | | .u-border-top { |
| | | .u-border-top, |
| | | .up-border-top { |
| | | border-top-width: 0.5px!important; |
| | | border-color: $u-border-color!important; |
| | | border-top-style: solid; |
| | | } |
| | | |
| | | .u-border-left { |
| | | .u-border-left, |
| | | .up-border-left { |
| | | border-left-width: 0.5px!important; |
| | | border-color: $u-border-color!important; |
| | | border-left-style: solid; |
| | | } |
| | | |
| | | .u-border-right { |
| | | .u-border-right, |
| | | .up-border-right { |
| | | border-right-width: 0.5px!important; |
| | | border-color: $u-border-color!important; |
| | | border-right-style: solid; |
| | | } |
| | | |
| | | .u-border-bottom { |
| | | .u-border-bottom, |
| | | .up-border-bottom { |
| | | border-bottom-width: 0.5px!important; |
| | | border-color: $u-border-color!important; |
| | | border-bottom-style: solid; |
| | | } |
| | | |
| | | .u-border-top-bottom { |
| | | .u-border-top-bottom, |
| | | .up-border-top-bottom { |
| | | border-top-width: 0.5px!important; |
| | | border-bottom-width: 0.5px!important; |
| | | border-color: $u-border-color!important; |
| | |
| | | } |
| | | |
| | | // 去除button的所有默认样式,让其表现跟普通的view、text元素一样 |
| | | .u-reset-button { |
| | | .u-reset-button, |
| | | .up-reset-button { |
| | | padding: 0; |
| | | background-color: transparent; |
| | | /* #ifndef APP-PLUS */ |
| | |
| | | } |
| | | |
| | | /* #ifndef APP-NVUE */ |
| | | .u-reset-button::after { |
| | | .u-reset-button::after, |
| | | .up-reset-button::after { |
| | | border: none; |
| | | } |
| | | /* #endif */ |
| | | |
| | | .u-hover-class { |
| | | .u-hover-class, |
| | | .up-hover-class { |
| | | opacity: 0.7; |
| | | } |
| | | |