我们设计小程序时,对于很多组件的样式设置方法是很类似的,比如卡片类都需要设置一定的样式,都存在大字,中字,小字的层级划分。我们可以将所有页面的样式统一起来,规范起来,方便调整,也十分规整。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
c-navigation-bar{ position: fixed; z-index: 1; }
.fill-page{ position: relative; width: 100%; min-height: 100vh; }
.bottom{ position: absolute; bottom: 70rpx; left: 50%; transform: translateX(-50%); }
.size-main-info{ font-size: 40rpx; }
.size-aid-info{ font-size: 32rpx; }
.size-hint-info{ font-size: 24rpx; }
.color-main-info{ color: #333333; }
.color-aid-info{ color:#666666 }
.color-hint-info{ color:#999999 }
.color-split-line{ color: #E5E5E5; }
.color-split-line-deep{ color: #CCCCCC; }
.bg-color-input{ background-color: rgb(245,245,245); }
.btn-big{ width: 700rpx !important; border-radius: 40rpx; }
.btn-add-image{ width: 180rpx; height: 180rpx; border-radius: 30rpx; }
.gradient-box0{ background: linear-gradient(to right, #ABDCFF, #0396FF); color: white; font-weight: bold; }
.gradient-box1{ background: linear-gradient(to right, #90F7EC, #32CCBC); color: white; font-weight: bold; }
.gradient-box2{ background: linear-gradient(to right, #FCCF31, #F55555); color: white; font-weight: bold; }
.gradient-box3{ background: linear-gradient(to right, #FF96F9, #C32BAC); color: white; font-weight: bold; }
|