| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747 |
- /*
- * @Author: jmy
- * @Date: 2025-12-31 12:02:41
- * @LastEditors: Please set LastEditors
- * @LastEditTime: 2025-12-13 16:48:17
- * @Description:
- */
- /* 设置字体为苹方(PingFang SC),若系统无该字体则再次回退到 PingFang SC;强制正常字形;禁止文本大小写转换 */
- view,
- text {
- font-family: PingFang SC, PingFang SC;
- font-style: normal;
- text-transform: none;
- }
- view{
- box-sizing: border-box;
- }
- // 导航栏头部
- .uni-navbar__header {
- display: flex;
- align-items: center;
- padding: 0 24rpx !important;
- box-sizing: border-box;
- }
- .uni-navbar__header-container {
- padding: 0 !important;
- }
- .scs-headr-default {
- width: 73%;
- }
- /* #ifndef APP-NVUE */
- /* Display */
- .flex {
- display: flex;
- display: -webkit-flex;
- }
- /* Flex Direction */
- /* 主轴方向:水平,起点在左侧 */
- .flex-row {
- flex-direction: row;
- -webkit-flex-direction: row;
- }
- /* 主轴方向:水平,起点在右侧 */
- .flex-row-reverse {
- flex-direction: row-reverse;
- -webkit-flex-direction: row-reverse;
- }
- /* 主轴方向:垂直,起点在上方 */
- .flex-column {
- flex-direction: column;
- -webkit-flex-direction: column;
- }
- /* 主轴方向:垂直,起点在下方 */
- .flex-column-reverse {
- flex-direction: column-reverse;
- -webkit-flex-direction: column-reverse;
- }
- /* Flex Wrap */
- /* 主轴方向换行:空间不足时自动换行*/
- .flex-wrap {
- flex-wrap: wrap;
- -webkit-flex-wrap: wrap;
- }
- /*主轴方向不换行:所有子项强制单行/列*/
- .flex-nowrap {
- flex-wrap: nowrap;
- -webkit-flex-wrap: nowrap;
- }
- /*主轴方向反向换行:空间不足时自动换行,且行序反转*/
- .flex-wrap-reverse {
- flex-wrap: wrap-reverse;
- -webkit-flex-wrap: wrap-reverse;
- }
- /* Justify Content */
- /*主轴对齐:子项在主轴起点对齐*/
- .justify-start {
- justify-content: flex-start;
- -webkit-justify-content: flex-start;
- }
- /*主轴对齐:子项在主轴起点对齐*/
- .justify-center {
- justify-content: center;
- -webkit-justify-content: center;
- }
- /* 主轴对齐:子项在主轴终点对齐 */
- .justify-end {
- justify-content: flex-end;
- -webkit-justify-content: flex-end;
- }
- /* 主轴对齐:首尾子项贴边,其余子项间距相等 */
- .justify-between {
- justify-content: space-between;
- -webkit-justify-content: space-between;
- }
- /* 主轴对齐:每个子项两侧的间距相等,首尾子项与容器边缘间距为中间间距的一半 */
- .justify-around {
- justify-content: space-around;
- -webkit-justify-content: space-around;
- }
- /* 主轴对齐:项目之间与两端间距完全相等 */
- .justify-evenly {
- justify-content: space-evenly;
- -webkit-justify-content: space-evenly;
- }
- /* Align Items */
- /* 交叉轴对齐:子项顶部对齐 */
- .items-start {
- align-items: flex-start;
- -webkit-align-items: flex-start;
- }
- /* 交叉轴对齐:子项居中对齐 */
- .items-center {
- align-items: center;
- -webkit-align-items: center;
- }
- /* 交叉轴对齐:子项底部对齐 */
- .items-end {
- align-items: flex-end;
- -webkit-align-items: flex-end;
- }
- /* 交叉轴对齐:子项拉伸填满容器高度 */
- .items-stretch {
- align-items: stretch;
- -webkit-align-items: stretch;
- }
- /* 交叉轴对齐:子项基线对齐 */
- .items-baseline {
- align-items: baseline;
- -webkit-align-items: baseline;
- }
- /* 快捷 flex 值:占满剩余空间 */
- .flex-1 {
- flex: 1;
- -webkit-flex: 1;
- }
- /* 自动伸缩:根据内容决定尺寸,可伸可缩 */
- .flex-auto {
- flex: auto;
- -webkit-flex: auto;
- }
- /* 初始尺寸:使用 flex-basis 定义的初始大小,可伸可缩 */
- .flex-initial {
- flex: initial;
- -webkit-flex: initial;
- }
- /* 不伸缩:固定尺寸,不参与分配剩余空间 */
- .flex-none {
- flex: none;
- -webkit-flex: none;
- }
- /* 禁止放大 */
- .flex-grow-0 {
- flex-grow: 0;
- -webkit-flex-grow: 0;
- }
- /* 允许放大并占满剩余空间 */
- .flex-grow-1 {
- flex-grow: 1;
- -webkit-flex-grow: 1;
- }
- /* 禁止缩小 */
- .flex-shrink-0 {
- flex-shrink: 0;
- -webkit-flex-shrink: 0;
- }
- /* 允许缩小 */
- .flex-shrink-1 {
- flex-shrink: 1;
- -webkit-flex-shrink: 1;
- }
- /* #endif */
- .fw-400 {
- font-weight: 400;
- }
- .fw-500 {
- font-weight: 500;
- }
- .fw-600 {
- font-weight: 600;
- }
- /* 文本对齐方式 */
- .text-left {
- text-align: left;
- }
- .text-center {
- text-align: center;
- }
- .text-right {
- text-align: right;
- }
- .text-justify {
- text-align: justify;
- }
- .text-start {
- text-align: start;
- }
- .text-end {
- text-align: end;
- }
- .w-100vw {
- width: 100vw;
- }
- .h-100vh {
- height: 100vh;
- }
- .w-all {
- width: 100%;
- }
- .h-all {
- height: 100%;
- }
- .relative {
- position: relative;
- }
- .absolute {
- position: absolute;
- }
- .fixed {
- position: fixed;
- }
- /* Overflow */
- .overflow-visible {
- overflow: visible;
- }
- .overflow-hidden {
- overflow: hidden;
- }
- .overflow-scroll {
- overflow: scroll;
- }
- .overflow-auto {
- overflow: auto;
- }
- .overflow-x-visible {
- overflow-x: visible;
- }
- .overflow-x-hidden {
- overflow-x: hidden;
- }
- .overflow-x-scroll {
- overflow-x: scroll;
- }
- .overflow-x-auto {
- overflow-x: auto;
- }
- .overflow-y-visible {
- overflow-y: visible;
- }
- .overflow-y-hidden {
- overflow-y: hidden;
- }
- .overflow-y-scroll {
- overflow-y: scroll;
- }
- .overflow-y-auto {
- overflow-y: auto;
- }
- .inline-block {
- display: inline-block;
- }
- .m-auto {
- margin:0 auto;
- }
- /* (-500 to 1000px, all numbers, auto convert to rpx: px * 2 = rpx) */
- @for $i from -500 through 1000 {
- $size: $i * 2rpx;
- /* top */
- .top-#{$i} {
- top: $size;
- }
- /* left */
- .left-#{$i} {
- left: $size;
- }
- /* right */
- .right-#{$i} {
- right: $size;
- }
- /* bottom */
- .bottom-#{$i} {
- bottom: $size;
- }
- }
- /* z-index (-100 to 10000 all numbers) */
- @for $i from -100 through 10000 {
- .zi-#{$i} {
- z-index: $i;
- }
- }
- /* Font sizes (1px to 100px, all numbers, auto convert to rpx: px * 2 = rpx) */
- @for $i from 1 through 100 {
- $size: $i * 2rpx;
- .fs-#{$i} {
- font-size: $size;
- }
- }
- /* line height (1px to 100px, all numbers, auto convert to rpx: px * 2 = rpx) */
- @for $i from 1 through 100 {
- $size: $i * 2rpx;
- .lh-#{$i} {
- line-height: $size;
- }
- }
- /* Margins (1px to 100px, all numbers, auto convert to rpx: px * 2 = rpx) */
- @for $i from -500 through 500 {
- $size: $i * 2rpx;
- /* Margin */
- .m-#{$i} {
- margin: $size;
- }
- /* Margin top */
- .mt-#{$i} {
- margin-top: $size;
- }
- /* Margin right */
- .mr-#{$i} {
- margin-right: $size;
- }
- /* Margin bottom */
- .mb-#{$i} {
- margin-bottom: $size;
- }
- /* Margin left */
- .ml-#{$i} {
- margin-left: $size;
- }
- /* Margin horizontal */
- .mx-#{$i} {
- margin-left: $size;
- margin-right: $size;
- }
- /* Margin vertical */
- .my-#{$i} {
- margin-top: $size;
- margin-bottom: $size;
- }
- }
- /* Paddings (1px to 100px, all numbers, auto convert to rpx: px * 2 = rpx) */
- @for $i from 1 through 100 {
- $size: $i * 2rpx;
- /* Padding */
- .p-#{$i} {
- padding: $size;
- }
- /* Padding top */
- .pt-#{$i} {
- padding-top: $size;
- }
- /* Padding right */
- .pr-#{$i} {
- padding-right: $size;
- }
- /* Padding bottom */
- .pb-#{$i} {
- padding-bottom: $size;
- }
- /* Padding left */
- .pl-#{$i} {
- padding-left: $size;
- }
- /* Padding horizontal */
- .px-#{$i} {
- padding-left: $size;
- padding-right: $size;
- }
- /* Padding vertical */
- .py-#{$i} {
- padding-top: $size;
- padding-bottom: $size;
- }
- }
- /* Gaps (1px to 100px, all numbers, auto convert to rpx: px * 2 = rpx) */
- /* #ifndef APP-NVUE */
- @for $i from 1 through 100 {
- $size: $i * 2rpx;
- .gap-#{$i} {
- gap: $size;
- }
- }
- /* #endif */
- /* Widths (1px to 375px, all numbers, auto convert to rpx: px * 2 = rpx) */
- @for $i from 1 through 1000 {
- $size: $i * 2rpx;
- .w-#{$i} {
- width: $size;
- }
- }
- /* Heights (1px to 375px, all numbers, auto convert to rpx: px * 2 = rpx) */
- @for $i from 1 through 1000 {
- $size: $i * 2rpx;
- .h-#{$i} {
- height: $size;
- }
- }
- /* Border Radius (1px to 100px, all numbers, auto convert to rpx: px * 2 = rpx) */
- @for $i from 1 through 100 {
- $size: $i * 2rpx;
- .rounded-#{$i} {
- border-radius: $size;
- }
- }
- @for $i from 1 through 100 {
- $size: $i * 2rpx;
- .rounded-t-#{$i} {
- border-top-left-radius: $size;
- border-top-right-radius: $size;
- }
- }
- @for $i from 1 through 100 {
- $size: $i * 2rpx;
- .rounded-b-#{$i} {
- border-bottom-left-radius: $size;
- border-bottom-right-radius: $size;
- }
- }
- /* Line Height (1px to 100px, all numbers, auto convert to rpx: px * 2 = rpx) */
- @for $i from 1 through 100 {
- $size: $i * 2rpx;
- .lh-#{$i} {
- line-height: $size;
- }
- }
- /* Border Widths (0.5px to 20px, auto convert to rpx: px * 2 = rpx) */
- // 0.5px border (1rpx)
- .border-w-05 {
- border-width: 1rpx;
- }
- .border-t-w-05 {
- border-top-width: 1rpx;
- }
- .border-r-w-05 {
- border-right-width: 1rpx;
- }
- .border-b-w-05 {
- border-bottom-width: 1rpx;
- }
- .border-l-w-05 {
- border-left-width: 1rpx;
- }
- //borders 1px to 20px
- @for $i from 1 through 20 {
- $size: $i * 2rpx;
- /* all borders */
- .border-w-#{$i} {
- border-width: $size;
- }
- /* border top */
- .border-t-w-#{$i} {
- border-top-width: $size;
- }
- /* border right */
- .border-r-w-#{$i} {
- border-right-width: $size;
- }
- /* border bottom */
- .border-b-w-#{$i} {
- border-bottom-width: $size;
- }
- /* border left */
- .border-l-w-#{$i} {
- border-left-width: $size;
- }
- }
- /* Border Styles */
- .border-solid {
- border-style: solid;
- }
- .border-dashed {
- border-style: dashed;
- }
- .border-dotted {
- border-style: dotted;
- }
- .border-double {
- border-style: double;
- }
- .border-none {
- border-style: none;
- }
- /* Border Directions */
- .border {
- border-style: solid;
- border-width: 1rpx;
- }
- .border-t {
- border-top-style: solid;
- border-top-width: 1rpx;
- }
- .border-r {
- border-right-style: solid;
- border-right-width: 1rpx;
- }
- .border-b {
- border-bottom-style: solid;
- border-bottom-width: 1rpx;
- }
- .border-l {
- border-left-style: solid;
- border-left-width: 1rpx;
- }
- /* Clear Border Directions */
- .border-t-0 {
- border-top-width: 0;
- }
- .border-r-0 {
- border-right-width: 0;
- }
- .border-b-0 {
- border-bottom-width: 0;
- }
- .border-l-0 {
- border-left-width: 0;
- }
- .border-0 {
- border-width: 0;
- }
- // 定义颜色列表
- $colors: (
- '000000', '333333', '666666', '999999', 'CCCCCC', 'FFFFFF',
- 'FF0000', '00FF00', '0000FF', 'FFFF00', 'FF00FF', '00FFFF',
- 'FFA500', '800080', 'FFC0CB', 'A52A2A', '808080', 'D3D3D3',
- 'F5F5F5', 'FAFAFA', 'F8F9FA', 'E9ECEF', 'DEE2E6', 'CED4DA',
- 'ADB5BD', '6C757D', '495057', '343A40', '212529', '007BFF',
- '0069D9', '0056B3', '004085', '002752', '28A745', '218838',
- '1E7E34', '155724', '0F3D1F', 'DC3545', 'C82333', 'BD2130',
- 'A71E2A', '6E001D', 'FFC107', 'E0A800', 'D39E00', 'B8860B',
- '6C5600', '17A2B8', '138496', '117A8B', '0C5460', '062B36',
- 'F5F7FA', 'EEEEEE', '02B176', 'FA341E', 'D46C0D', 'FFA599',
- 'FF4B33', '38D97D', 'C39760', 'ED4B17', 'F9B71B', 'FFE600',
- 'FFF4E8'
- );
- // 文字颜色类 - 标准化格式
- @each $hex in $colors {
- .text-#{$hex} {
- color: unquote('#')#{$hex};
- }
- }
- // 背景颜色类
- @each $hex in $colors {
- .bg-#{$hex} {
- background-color: unquote('#')#{$hex};
- }
- }
- // 边框颜色类
- @each $hex in $colors {
- .border-#{$hex} {
- border-color: unquote('#')#{$hex};
- }
- }
- /* 主题色彩快捷类 */
- .text-blue {
- color: #007bff;
- }
- .text-green {
- color: #28a745;
- }
- .text-red {
- color: #dc3545;
- }
- .text-yellow {
- color: #ffc107;
- }
- .text-cyan {
- color: #17a2b8;
- }
- .text-gray {
- color: #f8f9fa;
- }
- .text-black {
- color: #000000;
- }
- .text-white {
- color: #ffffff;
- }
- .bg-blue {
- background-color: #007bff;
- }
- .bg-green {
- background-color: #28a745;
- }
- .bg-red {
- background-color: #dc3545;
- }
- .bg-yellow {
- background-color: #ffc107;
- }
- .bg-cyan {
- background-color: #17a2b8;
- }
- .bg-gray {
- background-color: #f8f9fa;
- }
- .bg-black {
- background-color: #000000;
- }
- .bg-white {
- background-color: #ffffff;
- }
- .bg-img{
- background-color: rgba(0, 0, 0, 0.1);
- transition: opacity 0.3s ease-in-out;// 图片加载过渡效果
- }
- /* 透明度类 */
- @for $i from 1 through 9 {
- .opacity-#{$i} {
- opacity: $i * 0.1;
- }
- }
- .opacity-0 {
- opacity: 0;
- }
- .opacity-10 {
- opacity: 1;
- }
|