123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- /* ==================
- 布局
- ==================== */
- /* -- flex弹性布局 -- */
- .flex {
- display: flex;
- }
- .flex-sub {
- flex: 1;
- }
- .flex-twice {
- flex: 2;
- }
- .flex-treble {
- flex: 3;
- }
- /* nvue 默认 column */
- .flex-direction-row {
- flex-direction: row;
- }
- .flex-direction-column {
- flex-direction: column;
- }
- .flex-wrap {
- flex-wrap: wrap;
- }
- .align-start {
- align-items: flex-start;
- }
- .align-end {
- align-items: flex-end;
- }
- .align-center {
- align-items: center;
- }
- .align-stretch {
- align-items: stretch;
- }
- .justify-start {
- justify-content: flex-start;
- }
- .justify-end {
- justify-content: flex-end;
- }
- .justify-center {
- justify-content: center;
- }
- .justify-between {
- justify-content: space-between;
- }
- .justify-around {
- justify-content: space-around;
- }
- /* ==================
- position
- ==================== */
- .pos-relative {
- position: relative;
- }
- .pos-center {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- justify-content: center;
- align-items: center;
- }
- .pos-top-center {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- justify-content: center;
- align-items: center;
- }
- /* ==================
- 线
- ==================== */
- .border-1rpx-black {
- border-width: 1rpx;
- border-style: solid;
- border-color: #000000;
- }
- .border-1rpx-bottom-black {
- border-width: 1rpx;
- border-style: solid;
- border-color: rgba(0,0,0,0.7);
- }
- .border-1rpx-red {
- border-width: 1rpx;
- border-style: solid;
- border-color: #FF0000;
- }
- /* ==================
- 蒙层 透明度
- ==================== */
- .mask-bg-07 {
- background-color: rgba(0, 0, 0, 0.7);
- }
- /* ==================
- 文本
- ==================== */
- .text-18px {
- font-size: 18px;
- /* line-height: 36px; */
- }
- .text-16px {
- font-size: 16px;
- /* line-height: 32px; */
- }
- .text-11px {
- font-size: 11px;
- /* line-height: 22px; */
- }
- .text-12px {
- font-size: 12px;
- }
- .text-13px {
- font-size: 13px;
- /* line-height: 23px; */
- }
- .text-14px {
- font-size: 14px;
- /* line-height: 28px; */
- }
- .text-15px {
- font-size: 15px;
- /* line-height: 30px; */
- }
- .text-22px {
- font-size: 22px;
- height: 22px;
- line-height: 22px;
- }
- .text-26px {
- font-size: 26px;
- /* line-height: 52px; */
- }
- .text-38px {
- font-size: 38px;
- /* line-height: 52px; */
- }
- .text-18px-before::before {
- font-size: 18px;
- }
- .text-20px-before::before {
- font-size: 20px;
- }
- .text-22px-before::before {
- font-size: 22px;
- }
- /* .text-price::before {
- content: "¥";
- font-size: 80%;
- margin-right: 4upx;
- } */
- .text-cut {
- text-overflow: ellipsis;
- /* white-space: nowrap; */
- overflow: hidden;
- }
- .text-lines1 {
- /** 显示的行数 **/
- lines: 1;
- }
- .text-lines2 {
- /** 显示的行数 **/
- lines: 2;
- }
- .text-bold {
- font-weight: bold;
- }
- .text-medium {
- font-weight: 400;
- }
- .text-center {
- text-align: center;
- }
- .text-content {
- line-height: 1.6;
- }
- .text-left {
- text-align: left;
- }
- .text-right {
- text-align: right;
- }
- .text-red,
- .line-red,
- .lines-red {
- color: #e54d42;
- }
- .text-orange,
- .line-orange,
- .lines-orange {
- color: #f37b1d;
- }
- .text-yellow,
- .line-yellow,
- .lines-yellow {
- color: #fbbd08;
- }
- .text-olive,
- .line-olive,
- .lines-olive {
- color: #8dc63f;
- }
- .text-green,
- .line-green,
- .lines-green {
- color: #39b54a;
- }
- .text-cyan,
- .line-cyan,
- .lines-cyan {
- color: #1cbbb4;
- }
- .text-blue,
- .line-blue,
- .lines-blue {
- color: #0081ff;
- }
- .text-purple,
- .line-purple,
- .lines-purple {
- color: #6739b6;
- }
- .text-mauve,
- .line-mauve,
- .lines-mauve {
- color: #9c26b0;
- }
- .text-pink,
- .line-pink,
- .lines-pink {
- color: #e03997;
- }
- .text-brown,
- .line-brown,
- .lines-brown {
- color: #a5673f;
- }
- .text-grey,
- .line-grey,
- .lines-grey {
- color: #8799a3;
- }
- .line-mGrey {
- color: #EAEAEA;
- }
- .text-gray,
- .line-gray,
- .lines-gray {
- color: #aaaaaa;
- }
- .text-black,
- .line-black,
- .lines-black {
- color: #333333;
- }
- .text-white,
- .line-white,
- .lines-white {
- color: #ffffff;
- }
- /* 蓝紫 */
- .make-line-bPurple::after,
- .make-lines-bPurple::after {
- border-color: rgba(151, 151, 255, 1);
- }
- .make-line-bPurple,
- .make-lines-bPurple,
- .make-text-bPurple {
- color: rgba(151, 151, 255, 1);
- }
- .make-bg-bPurple {
- background-color: rgba(151, 151, 255, 1);
- }
- .bg-gray {
- background-color: #f0f0f0;
- color: #333333;
- }
- .bg-grey {
- background-color: #8799a3;
- color: #ffffff;
- }
- .bg-grey-mid {
- background-color: #CDCDCD;
- color: #ffffff;
- }
- /* -- 内外边距 -- */
- .margin-0 {
- margin: 0;
- }
- .margin-12px {
- margin: 12px;
- }
- .margin-17px {
- margin: 17px;
- }
- .margin-24px {
- margin: 24px;
- }
- .position-relative {
- position: relative;
- }
- .position-absolute-center {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- justify-content: center;
- align-items: center;
- }
- .position-absolute-center-bottom {
- position: absolute;
- /* top: 0; */
- bottom: 0;
- left: 0;
- right: 0;
- /* justify-content: center; */
- align-items: center;
- }
- .position-absolute-center-top {
- position: absolute;
- top: 0;
- /* bottom: 0; */
- left: 0;
- right: 0;
- /* justify-content: center; */
- align-items: center;
- }
- .position-absolute-center-around {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- justify-content: space-around;
- align-items: center;
- }
- .position-absolute-right-top {
- position: absolute;
- right: 0;
- top: 0;
- }
- /* 自定义导航栏的图片大小 */
- .png-more {
- width: 20px;
- height: 20px;
- }
- .png-more-black {
- width: 16px;
- height: 16px;
- }
|