123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- // 设置页面属性
- page{
- background-color: #fff;
- color: #000;
- height: 100vh;
- }
- .red{
- color:red!important;
- }
- .customLabelWrap{
- display: flex;
- }
- .customLabel{
- display: flex;
- flex-direction: row;
- align-items: center;
- text-align: left;
- font-size: 14px;
- color: #606266;
- // height: 36px;
- padding: 0 12px 0 0;
- vertical-align: middle;
- // flex-shrink: 0;
- box-sizing: border-box;
- padding: 0 0 8px;
- line-height: 1.5715;
- }
- uni-toast,
- [longpressactions]{
- z-index: 99999!important;
- }
- .page_padding{
- padding-left: 24rpx;
- padding-right: 24rpx;
- }
- // 居中
- .text_center{
- text-align: center;
- }
- // 居左
- .text_left{
- text-align: left;
- }
- // 居右
- .text_right{
- text-align: right;
- }
- // 两端对齐
- .text_justify{
- text-align: justify;
- }
- // 按钮样式-绿色
- .primaryButton{
- color: #fff!important;
- background-color: $uni-primary!important;
- border-color: $uni-primary!important;
- }
- // 按钮样式-镂空-绿色
- .primaryPlainButton{
- color: $uni-primary!important;
- border-color: $uni-primary!important;
- margin: 0!important;
- }
- // 按钮样式-灰色
- .cancelButton{
- color: #fff!important;
- background-color: $uni-info!important;
- border-color: $uni-info!important;
- }
- // 底部按钮
- .foot_common_btns{
- width: 100%;
- box-sizing: border-box;
- padding: 24rpx;
- display: flex;
- align-items: center;
- gap: 24rpx;
- .btn{
- flex: 1;
- }
- }
- // 必填标识
- .required{
- color: #f00;
- font-size: 20rpx;
- }
- // flex:1
- .flex1{
- flex: 1;
- }
- // lable
- .label{
- margin-right: 35rpx;
- display: flex;
- align-items: center;
- font-size: 26rpx;
- }
- // easyinput边框选中色
- .is-focused{
- border-color: $uni-primary!important;
- }
- // 弹窗两端对齐
- .uni-modal__bd{
- text-align: justify;
- }
- // 按钮组
- .btns{
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding-top: 24rpx;
- .btn{
- flex: 1;
- margin-right: 24rpx;
- &:last-of-type{
- margin-right: 0;
- }
- }
- }
- // 单行省略
- .ellipsis {
- white-space: nowrap; /* 确保文本在一行内显示 */
- overflow: hidden; /* 隐藏超出容器的文本 */
- text-overflow: ellipsis; /* 使用省略符号表示文本被截断 */
- }
- // 两行省略
- .ellipsis-multiline {
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2; /* 定义显示的行数 */
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- }
- // 透明
- .transparent{
- opacity: 0;
- }
- // 边框红色
- .formRed{
- .uni-select,
- .uni-easyinput__content,
- .uni-date-x,
- .item-input,
- .uni-data-tree-input .input-value{
- border: 1px solid red!important;
- }
- }
- // 搜索框
- .uni-searchbar{
- padding: 0!important;
- width: 100%!important;
- }
- // 数字框
- .uni-numbox__value{
- background-color: #fff!important;
- color: #000!important;
- border: 1px solid #E5E5E5!important;
- margin-left: 20rpx!important;
- margin-right: 20rpx!important;
- }
- // 多选框
- .uni-data-checklist .checklist-group .checklist-box.is--list{
- padding: 24rpx!important;
- font-size: 26rpx!important;
- }
- .uni-data-checklist .checklist-group .checklist-box.is--list .checklist-content .checklist-text{
- margin-left: 0!important;
- margin-right: 24rpx!important;
- flex: 1!important;
- }
- .uni-data-checklist .checklist-group .checklist-box.is--list{
- border-top: none!important;
- border-bottom: 1rpx solid #DEDEDE!important;
- }
- // 清除按钮
- .content-clear-icon{
- color: $uni-primary!important;
- }
- // flex1
- .flex1{
- flex: 1;
- }
- // 表格控件遮罩
- .formMask{
- position: relative;
- &:after{
- content: '';
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- }
- }
- // 下拉框
- .uni-select__input-box{
- width: 100%!important;
- }
- // 数据组合框
- .uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checklist-content .checkobx__list{
- border-color: $uni-primary!important;
- }
- // 外边距-top
- .mt0{
- margin-top: 0!important;
- }
- // 内边距-top
- .pt0{
- padding-top: 0!important;
- }
- .no-scroll{
- overflow-y: hidden;
- }
- .view-body{
- overflow-y: scroll;
- }
|