| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- // 基础flex布局
- .uni-flex {
- display: flex;
- flex-direction: row;
- }
- .uni-flex-item {
- flex: 1;
- }
- .uni-row {
- flex-direction: row;
- }
- .uni-column {
- flex-direction: column;
- }
- // 高度填充
- .height-all {
- min-height: 100%;
- }
- // 公共区块样式
- .common-wrap {
- box-sizing: border-box;
- background: #fff;
- // margin: .15rem .2rem;
-
- // &:first-child {
- // margin-right: 0;
- // }
-
- // &:last-child {
- // margin-right: .14rem;
- // }
- }
- // 公共滚动条样式
- .common-scrollbar, .common-scrollbar .uni-scroll-view {
- &::-webkit-scrollbar {
- width: .06rem;
- height: .06rem;
- background-color: rgba($color: #000000, $alpha: 0);
- }
-
- &::-webkit-scrollbar-button {
- display: none;
- }
-
- &::-webkit-scrollbar-thumb {
- border-radius: .06rem;
- box-shadow: inset 0 0 .06rem rgba(45,43,43,.45);
- background-color: #ddd;
- }
-
- &::-webkit-scrollbar-track {
- background-color: transparent;
- }
- }
- // 公共头像样式
- .common-headimg {
- overflow: hidden;
- border-radius: 50%;
-
- image {
- width: 100%;
- }
- }
- // 公共tab切换
- .common-tab-wrap {
- height: .53rem;
- border-bottom: .01rem solid #E6E6E6;
- display: flex;
- padding: 0 .2rem;
- position: relative;
-
- .tab-item {
- height: .53rem;
- line-height: .53rem;
- padding: 0 .2rem;
- cursor: pointer;
-
- &:first-child {
- padding-left: 0;
- }
-
- &.active-bar {
- color: $primary-color;
- }
- }
-
- .active {
- position: absolute;
- width: 0;
- height: .03rem;
- border-radius: .03rem;
- background: $primary-color;
- bottom: -.01rem;
- left: 0;
- transition: transform .3s cubic-bezier(.645,.045,.355,1);
- }
- }
- // 公共表格操作样式
- .common-table-action {
- text {
- margin-left: .1rem;
- color: $primary-color;
- cursor: pointer;
- transition: all .3s;
-
- &:hover {
- color: rgba($color: $primary-color, $alpha: 0.6);
- }
- }
- }
- // 公共表格批量操作样式
- .common-table-batch {
- display: flex;
-
- button {
- width: auto!important;
- margin: .1rem 0 .1rem .1rem!important;
- font-size: .12rem;
- }
- }
- @mixin button {
- font-size: .14rem;
- transition: .1s;
- border-radius: .02rem;
- border-width: .01rem!important;
-
- &:after{
- border-radius: .02rem!important;
- }
-
- }
- // 主要按钮
- .primary-btn {
- @include button;
- background: $primary-color!important;
- color: #fff!important;
-
- &:hover {
- background-color: rgba($color: $primary-color, $alpha: 0.6)!important;
- }
-
- &[disabled] {
- background: rgba($color: $primary-color, $alpha: 0.6)!important;
- border-color: rgba($color: $primary-color, $alpha: 0.6)!important;
- color: #fff!important;
-
- &:hover {
- background: rgba($color: $primary-color, $alpha: 0.6)!important;
- border-color: rgba($color: $primary-color, $alpha: 0.6)!important;
- color: #fff!important;
- }
- }
- }
- // 默认按钮
- .default-btn {
- @include button;
- background: #fff!important;
- color: #606266!important;
- border-color: #606266!important;
-
- &:hover {
- color: $primary-color!important;
- border-color: $primary-color!important;
- }
-
- &:hover:after{
- border-color: $primary-color!important;
- }
-
-
-
- &[plain] {
- color: $primary-color!important;
- border-color: $primary-color!important;
- background-color: rgba($color: $primary-color, $alpha: 0.1)!important;
-
- &:after{
- border-color: $primary-color!important;
- }
-
- &:hover {
- background: $primary-color!important;
- color: #fff!important;
- }
-
- &[disabled] {
- color: #ddd!important;
- border-color: #e6e6e6!important;
- background: #f5f5f5!important;
-
- &:after{
- border-color: #e6e6e6!important;
- }
-
- &:hover {
- color: #ddd!important;
- border-color: #e6e6e6!important;
- }
- }
- }
-
- &[disabled] {
- color: #ddd!important;
- border-color: #e6e6e6!important;
- background: #f5f5f5!important;
-
- &:after{
- border-color: #e6e6e6!important;
- }
-
- &:hover {
- color: #ddd!important;
- border-color: #e6e6e6!important;
- }
- }
- }
- /* 公共数字键盘 */
- .keyboard-wrap {
- width: 5rem;
- margin-top: 0.2rem;
- display: flex;
- .num-wrap {
- flex: 1;
- width: 0;
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- .key-item {
- margin: 0.1rem 0.1rem 0 0;
- background: #f5f5f5;
- min-width: calc((100% - 0.3rem) / 3);
- text-align: center;
- padding: 0.15rem 0;
- border-radius: 0.05rem;
- font-size: 0.16rem;
- font-weight: bold;
- transtion: all 0.3s;
- cursor: pointer;
- &:hover {
- background: #ddd;
- }
- &.empty:hover {
- background: #f5f5f5;
- }
- }
- }
- .operation-wrap {
- display: flex;
- flex-direction: column;
- width: 1rem;
- .delete,
- .confirm {
- background: #f5f5f5;
- min-width: calc((100% - 0.3rem) / 3);
- text-align: center;
- padding: 0.15rem 0;
- margin-top: 0.1rem;
- border-radius: 0.05rem;
- font-size: 0.16rem;
- cursor: pointer;
- transtion: all 0.3s;
- &:hover {
- background: #ddd;
- }
- }
- .confirm {
- flex: 1;
- background: $primary-color;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #fff;
- &:hover {
- background: rgba($color: $primary-color, $alpha: 0.9);
- }
- }
- }
- }
- /* 单行超出隐藏 */
- .using-hidden {
- word-break: break-all;
- text-overflow: ellipsis;
- overflow: hidden;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- -webkit-box-orient: vertical;
- white-space: break-spaces;
- }
- /* 多行超出隐藏 */
- .multi-hidden {
- word-break: break-all;
- text-overflow: ellipsis;
- overflow: hidden;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- }
|