guangchao.xu | 070005a | 2020-12-07 09:56:40 +0800 | [diff] [blame] | 1 | page { |
| 2 | color: $u-main-color; |
| 3 | font-size: 28rpx; |
| 4 | } |
| 5 | |
| 6 | /* start--去除webkit的默认样式--start */ |
| 7 | .u-fix-ios-appearance { |
| 8 | -webkit-appearance:none; |
| 9 | } |
| 10 | /* end--去除webkit的默认样式--end */ |
| 11 | |
| 12 | /* start--icon图标外层套一个view,让其达到更好的垂直居中的效果--start */ |
| 13 | .u-icon-wrap { |
| 14 | display: flex; |
| 15 | align-items: center; |
| 16 | } |
| 17 | /* end-icon图标外层套一个view,让其达到更好的垂直居中的效果--end */ |
| 18 | |
| 19 | /* start--iPhoneX底部安全区定义--start */ |
| 20 | .safe-area-inset-bottom { |
| 21 | padding-bottom: 0; |
| 22 | padding-bottom: constant(safe-area-inset-bottom); |
| 23 | padding-bottom: env(safe-area-inset-bottom); |
| 24 | } |
| 25 | /* end-iPhoneX底部安全区定义--end */ |
| 26 | |
| 27 | /* start--各种hover点击反馈相关的类名-start */ |
| 28 | .u-hover-class { |
| 29 | // background-color: #f7f8f9!important; |
| 30 | opacity: 0.6; |
| 31 | } |
| 32 | |
| 33 | .u-cell-hover { |
| 34 | background-color: #f7f8f9!important; |
| 35 | } |
| 36 | /* end--各种hover点击反馈相关的类名--end */ |
| 37 | |
| 38 | /* start--文本行数限制--start */ |
| 39 | .u-line-1 { |
| 40 | overflow: hidden; |
| 41 | white-space: nowrap; |
| 42 | text-overflow: ellipsis; |
| 43 | } |
| 44 | |
| 45 | .u-line-2 { |
| 46 | -webkit-line-clamp: 2; |
| 47 | } |
| 48 | |
| 49 | .u-line-3 { |
| 50 | -webkit-line-clamp: 3; |
| 51 | } |
| 52 | |
| 53 | .u-line-4 { |
| 54 | -webkit-line-clamp: 4; |
| 55 | } |
| 56 | |
| 57 | .u-line-5 { |
| 58 | -webkit-line-clamp: 5; |
| 59 | } |
| 60 | |
| 61 | .u-line-2, .u-line-3, .u-line-4, .u-line-5 { |
| 62 | overflow: hidden; |
| 63 | word-break: break-all; |
| 64 | text-overflow: ellipsis; |
| 65 | display: -webkit-box; // 弹性伸缩盒 |
| 66 | -webkit-box-orient: vertical; // 设置伸缩盒子元素排列方式 |
| 67 | } |
| 68 | |
| 69 | /* end--文本行数限制--end */ |
| 70 | |
| 71 | |
| 72 | /* start--Retina 屏幕下的 1px 边框--start */ |
| 73 | .u-border, |
| 74 | .u-border-bottom, |
| 75 | .u-border-left, |
| 76 | .u-border-right, |
| 77 | .u-border-top, |
| 78 | .u-border-top-bottom { |
| 79 | position: relative |
| 80 | } |
| 81 | |
| 82 | .u-border-bottom:after, |
| 83 | .u-border-left:after, |
| 84 | .u-border-right:after, |
| 85 | .u-border-top-bottom:after, |
| 86 | .u-border-top:after, |
| 87 | .u-border:after { |
| 88 | /* #ifndef APP-NVUE */ |
| 89 | content: ' '; |
| 90 | /* #endif */ |
| 91 | position: absolute; |
| 92 | left: 0; |
| 93 | top: 0; |
| 94 | pointer-events: none; |
| 95 | box-sizing: border-box; |
| 96 | -webkit-transform-origin: 0 0; |
| 97 | transform-origin: 0 0; |
| 98 | // 多加0.1%,能解决有时候边框缺失的问题 |
| 99 | width: 199.8%; |
| 100 | height: 199.7%; |
| 101 | transform: scale(0.5, 0.5); |
| 102 | border: 0 solid $u-border-color; |
| 103 | z-index: 2; |
| 104 | } |
| 105 | |
| 106 | .u-border-top:after { |
| 107 | border-top-width: 1px |
| 108 | } |
| 109 | |
| 110 | .u-border-left:after { |
| 111 | border-left-width: 1px |
| 112 | } |
| 113 | |
| 114 | .u-border-right:after { |
| 115 | border-right-width: 1px |
| 116 | } |
| 117 | |
| 118 | .u-border-bottom:after { |
| 119 | border-bottom-width: 1px |
| 120 | } |
| 121 | |
| 122 | .u-border-top-bottom:after { |
| 123 | border-width: 1px 0 |
| 124 | } |
| 125 | |
| 126 | .u-border:after { |
| 127 | border-width: 1px |
| 128 | } |
| 129 | /* end--Retina 屏幕下的 1px 边框--end */ |
| 130 | |
| 131 | |
| 132 | /* start--clearfix--start */ |
| 133 | .u-clearfix:after, |
| 134 | .clearfix:after { |
| 135 | /* #ifndef APP-NVUE */ |
| 136 | content: ''; |
| 137 | /* #endif */ |
| 138 | display: table; |
| 139 | clear: both |
| 140 | } |
| 141 | /* end--clearfix--end */ |
| 142 | |
| 143 | /* start--高斯模糊tabbar底部处理--start */ |
| 144 | .u-blur-effect-inset { |
| 145 | width: 750rpx; |
| 146 | height: var(--window-bottom); |
| 147 | background-color: #FFFFFF; |
| 148 | } |
| 149 | /* end--高斯模糊tabbar底部处理--end */ |
| 150 | |
| 151 | /* start--提升H5端uni.toast()的层级,避免被uView的modal等遮盖--start */ |
| 152 | /* #ifdef H5 */ |
| 153 | uni-toast { |
| 154 | z-index: 10090; |
| 155 | } |
| 156 | uni-toast .uni-toast { |
| 157 | z-index: 10090; |
| 158 | } |
| 159 | /* #endif */ |
| 160 | /* end--提升H5端uni.toast()的层级,避免被uView的modal等遮盖--end */ |
| 161 | |
| 162 | /* start--去除button的所有默认样式--start */ |
| 163 | .u-reset-button { |
| 164 | padding: 0; |
| 165 | font-size: inherit; |
| 166 | line-height: inherit; |
| 167 | background-color: transparent; |
| 168 | color: inherit; |
| 169 | } |
| 170 | |
| 171 | .u-reset-button::after { |
| 172 | border: none; |
| 173 | } |
| 174 | /* end--去除button的所有默认样式--end */ |
| 175 | |