耀实惠小程序
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.

366 lines
9.1 KiB

  1. /* 1. 页面背景色 */
  2. .page{
  3. background-color: #EDEDED;
  4. /* #ifndef APP-PLUS-NVUE */
  5. min-height: 100%;
  6. height: auto;
  7. /* #endif */
  8. /* #ifdef APP-PLUS-NVUE */
  9. flex: 1;
  10. /* #endif */
  11. }
  12. .hover-class {
  13. opacity: .6;
  14. }
  15. .status-bar-height {width: 100%;height: var(--status-bar-height);background-color: #000;}
  16. page {
  17. display: flex;
  18. flex-direction: column;
  19. height: 100vh;
  20. }
  21. /* 防止图片闪一下 */
  22. image{will-change: transform;width: 100%; }
  23. /* 图标 */
  24. .iconfont{
  25. font-family:iconfont;
  26. }
  27. .view,.text{
  28. font-size:24rpx;
  29. line-height:1.8;
  30. color:#0E151D;
  31. }
  32. .lineHeight-1 {
  33. line-height: 1;
  34. }
  35. /* 宽度 */
  36. .vw-100{ width: 750rpx; }
  37. .vh-100{ width: 100vh; }
  38. .w-100{ width: 100%; }
  39. .h-100 {height: 100%;}
  40. .min-h-100 {min-height: 100vh;}
  41. /* flex 布局 */
  42. .flex{
  43. /* #ifndef APP-PLUS-NVUE */
  44. display:flex;
  45. /* #endif */
  46. flex-direction:row;
  47. }
  48. .flex-row{ flex-direction:row!important; }
  49. .flex-column{ flex-direction:column!important; }
  50. .flex-row-reverse{ flex-direction:row-reverse!important; }
  51. .flex-column-reverse{ flex-direction:column-reverse!important; }
  52. .flex-wrap{ flex-wrap:wrap;}
  53. .flex-nowrap{ flex-wrap:nowrap;}
  54. .justify-start{justify-content:flex-start;}
  55. .justify-end{justify-content:flex-end;}
  56. .justify-between{justify-content:space-between;}
  57. .justify-center{justify-content:center;}
  58. .align-center{ align-items: center; }
  59. .align-stretch{ align-items: stretch; }
  60. .align-start{ align-items: flex-start; }
  61. .align-end{ align-items: flex-end; }
  62. /* #ifndef APP-PLUS-NVUE */
  63. .content-start {align-content: flex-start;}
  64. .content-end {align-content: flex-end;}
  65. .content-center {align-content: center;}
  66. .content-between {align-content: space-between;}
  67. .content-around {align-content: space-around;}
  68. .content-stretch {align-content: stretch;}
  69. /* #endif */
  70. /* #ifndef APP-PLUS-NVUE */
  71. .flex-shrink{ flex-shrink: 0; }
  72. /* #endif */
  73. /* #ifndef APP-PLUS-NVUE */
  74. .m-auto{ margin: auto; }
  75. /* #endif */
  76. /* 文字缩进 */
  77. /* #ifndef APP-PLUS-NVUE */
  78. .text-indent{text-indent:2;}
  79. /* #endif */
  80. /* 文字划线 */
  81. .text-through{text-decoration:line-through;}
  82. /* 文字对齐 */
  83. .text-left { text-align: left;}
  84. .text-right { text-align: right;}
  85. .text-center { text-align: center;}
  86. /* 文字换行溢出处理 */
  87. .text-ellipsis {
  88. /* #ifndef APP-PLUS-NVUE */
  89. overflow: hidden;
  90. text-overflow: ellipsis;
  91. white-space: nowrap;
  92. /* #endif */
  93. /* #ifdef APP-PLUS-NVUE */
  94. lines: 1;
  95. /* #endif */
  96. }
  97. /* 文字粗细和斜体 */
  98. .font-weight-light {font-weight: 300;} /*细*/
  99. .font-weight-lighter {font-weight: 100;}/*更细*/
  100. .font-weight-normal { font-weight: 500;} /*正常*/
  101. .font-weight-bold { font-weight: 700;} /*粗*/
  102. .font-weight-bolder { font-weight: bold;} /*更粗*/
  103. .font-italic { font-style: italic;} /*斜体*/
  104. /* 文字颜色 */
  105. .text-grey {color: #707070}
  106. .text-red {color: #FF0000}
  107. .text-white {color: #ffffff;}
  108. .text-primary {color: #007bff;}
  109. .text-hover-primary { color: #0056b3;}
  110. .text-secondary {color: #6c757d;}
  111. .text-hover-secondary { color: #494f54;}
  112. .text-success {color: #28a745;}
  113. .text-hover-success{color: #19692c;}
  114. .text-info { color: #17a2b8;}
  115. .text-hover-info {color: #0f6674;}
  116. .text-warning {color: #ffc107;}
  117. .text-hover-warning { color: #ba8b00;}
  118. .text-danger { color: #dc3545;}
  119. .text-hover-danger { color: #a71d2a;}
  120. .text-light { color: #f8f9fa;}
  121. .text-hover-light { color: #cbd3da;}
  122. .text-dark { color: #343a40;}
  123. .text-hover-dark{ color: #121416;}
  124. .text-body { color: #212529;}
  125. .text-muted { color: #999999;}
  126. .text-EE8414 {color: #EE8414;}
  127. .text-FE6347 {color:#FE6347}
  128. .text-blue {color: #0175FF}
  129. .text-black {color: #000}
  130. .text-light-muted { color: #A9A5A0;}
  131. .text-light-black { color: rgba(0, 0, 0, 0.5);}
  132. .text-light-white { color: rgba(255, 255, 255, 0.5);}
  133. /* 背景颜色 */
  134. .bg-primary { background-color: #007bff;}
  135. .bg-hover-primary:hover{ background-color: #0062cc !important;}
  136. .bg-secondary { background-color: #6c757d;}
  137. .bg-hover-secondary:hover{ background-color: #545b62 !important;}
  138. .bg-success { background-color: #28a745;}
  139. .bg-hover-success { background-color: #1e7e34 !important;}
  140. .bg-info { background-color: #17a2b8;}
  141. .bg-hover-info { background-color: #117a8b !important;}
  142. .bg-warning { background-color: #ffc107;}
  143. .bg-FFE9E5 {background-color:#FFE9E5 !important;}
  144. .bg-hover-warning { background-color: #d39e00 !important;}
  145. .bg-hover-f1f1f1 {background-color: #f1f1f1 !important;}
  146. .bg-hover-dc563e {background-color: #ef5d43 !important;}
  147. .bg-danger { background-color: #dc3545;}
  148. .bg-FE6347 {background-color: #FE6347 !important;}
  149. .bg-hover-danger{ background-color: #bd2130 !important;}
  150. .bg-light { background-color: #f8f9fa;}
  151. .bg-hover-light{ background-color: #dae0e5 !important;}
  152. .bg-dark { background-color: #343a40;}
  153. .bg-hover-dark { background-color: #1d2124 !important;}
  154. .bg-white { background-color: #ffffff;}
  155. .bg-hover-main {background-color: #F6F7F8 !important;}
  156. .bg-transparent { background-color: transparent;}
  157. .theme-color { color: #01AEEA}
  158. .theme-bg { background-color: #01AEEA}
  159. /* 边框 */
  160. .border { border-width: 1rpx;border-style: solid;border-color: #dee2e6;}
  161. .border-top {
  162. border-top-width: 1rpx;
  163. border-top-style: solid;
  164. border-top-color: #dee2e6;
  165. }
  166. .border-right {
  167. border-right-width: 1rpx;
  168. border-right-style: solid;
  169. border-right-color: #dee2e6;
  170. }
  171. .border-bottom {
  172. border-bottom-width: 1rpx;
  173. border-bottom-style: solid;
  174. border-bottom-color: #dee2e6;
  175. }
  176. .border-bottom-ee {
  177. border-bottom-width: 1rpx;
  178. border-bottom-style: solid;
  179. border-bottom-color: #EEEEEE;
  180. }
  181. .border-bottom-dashed {
  182. border-bottom-width: 2rpx;
  183. border-bottom-style: dashed;
  184. border-bottom-color: #F2F2F2;
  185. }
  186. .border-top-dashed {
  187. border-top-width: 2rpx;
  188. border-top-style: dashed;
  189. border-top-color: #F2F2F2;
  190. }
  191. .border-left {
  192. border-left-width: 1rpx;
  193. border-left-style: solid;
  194. border-left-color: #dee2e6;
  195. }
  196. .border-0 { border-width: 0!important;}
  197. .border-top-0 { border-top-width: 0!important;}
  198. .border-right-0 {border-right-width: 0!important;}
  199. .border-bottom-0 {border-bottom-width: 0!important;}
  200. .border-left-0 {border-left-width: 0!important;}
  201. .border-primary { border-color: #007bff;}
  202. .border-secondary {border-color: #6c757d;}
  203. .border-light-secondary {border-color: #E9E8E5;}
  204. .border-success {border-color: #28a745;}
  205. .border-info {border-color: #17a2b8;}
  206. .border-warning {border-color: #ffc107;}
  207. .border-danger {border-color: #dc3545;}
  208. .border-light {border-color: #f8f9fa;}
  209. .border-dark {border-color: #343a40;}
  210. .border-white {border-color: #FFFFFF;}
  211. /* 圆角 */
  212. .rounded { border-radius: 8rpx;}
  213. .rounded-top {
  214. border-top-left-radius: 8rpx;
  215. border-top-right-radius: 8rpx;
  216. }
  217. .rounded-right {
  218. border-top-right-radius: 8rpx;
  219. border-bottom-right-radius: 8rpx;
  220. }
  221. .rounded-bottom {
  222. border-bottom-right-radius: 8rpx;
  223. border-bottom-left-radius: 8rpx;
  224. }
  225. .rounded-left {
  226. border-top-left-radius: 8rpx;
  227. border-bottom-left-radius: 8rpx;
  228. }
  229. .rounded-circle { border-radius: 100rpx;}
  230. .rounded-0 { border-radius: 0;}
  231. /* 显示 */
  232. /* #ifndef APP-PLUS-NVUE */
  233. .d-none{ display: none; }
  234. .d-inline-block{ display: inline-block; }
  235. .d-block{ display: block; }
  236. /* #endif */
  237. /* 内容溢出 */
  238. .overflow-hidden { overflow: hidden;}
  239. /* 定位 */
  240. .position-relative { position: relative;}
  241. .position-absolute { position: absolute;}
  242. .position-fixed { position: fixed;}
  243. /* 定位 - 固定顶部 */
  244. .fixed-top {
  245. position: fixed !important;
  246. top: 0;
  247. right: 0;
  248. left: 0;
  249. z-index: 1030;
  250. }
  251. /* 定位 - 固定底部 */
  252. .fixed-bottom {
  253. position: fixed;
  254. right: 0;
  255. bottom: 0;
  256. left: 0;
  257. z-index: 1030;
  258. }
  259. .top-0 { top: 0; }
  260. .left-0 { left: 0; }
  261. .right-0 { right: 0; }
  262. .bottom-0 { bottom: 0; }
  263. /* 阴影 */
  264. /* #ifndef APP-PLUS-NVUE */
  265. .shadow-none { box-shadow: none !important;}
  266. /* #endif */
  267. .btn-hover {
  268. opacity: .7;
  269. }
  270. .zIndex-2 {
  271. z-index: 2;
  272. }
  273. .zIndex-1 {
  274. z-index: 1;
  275. }
  276. .zIndex-0 {
  277. z-index: 0;
  278. }
  279. @for $i from 9 to 20 {
  280. @each $short, $long in l left, t top, r right, b bottom {
  281. .#{$short}-#{$i} {
  282. #{$long}: $i + rpx!important;
  283. }
  284. .#{$long}-#{$i} {
  285. #{$long}: $i + rpx!important;
  286. }
  287. }
  288. }
  289. // @for $i from 9 to 20 {
  290. // .font-#{$i} {
  291. // font-size: $i + px;
  292. // }
  293. // }
  294. // 定义字体(rpx)单位,大于或等于20的都为rpx单位字体
  295. @for $i from 9 through 60 {
  296. .font-#{$i} {
  297. font-size: $i + rpx;
  298. }
  299. }
  300. // 定义内外边距,历遍1-80
  301. @for $i from 0 through 80 {
  302. // 只要双数和能被5除尽的数
  303. @if $i % 2 == 0 or $i % 5 == 0 {
  304. // 得出:margin-30或者m-30
  305. .margin-#{$i}, .m-#{$i} {
  306. margin: $i + rpx!important;
  307. }
  308. // 得出:padding-30或者p-30
  309. .padding-#{$i}, .p-#{$i} {
  310. padding: $i + rpx!important;
  311. }
  312. @each $short, $long in l left, t top, r right, b bottom {
  313. // 缩写版,结果如: m-l-30
  314. // 定义外边距
  315. .m-#{$short}-#{$i} {
  316. margin-#{$long}: $i + rpx!important;
  317. }
  318. // 定义内边距
  319. .p-#{$short}-#{$i} {
  320. padding-#{$long}: $i + rpx!important;
  321. }
  322. // 完整版,结果如:margin-left-30
  323. // 定义外边距
  324. .margin-#{$long}-#{$i} {
  325. margin-#{$long}: $i + rpx!important;
  326. }
  327. // 定义内边距
  328. .padding-#{$long}-#{$i} {
  329. padding-#{$long}: $i + rpx!important;
  330. }
  331. }
  332. }
  333. }
  334. // 定义flex等分
  335. @for $i from 0 through 12 {
  336. .flex-#{$i} {
  337. flex: $i;
  338. }
  339. }