style.scss
2.45 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
@import "./var.scss";
@import "./format.scss";
@import "./animation.scss";
@import "./mixins/mixins.scss";
// THINGS_KIT 增加scss mixins
@import "../external/mixins.scss";
// 过度
.go-transition {
  transition: all 0.4s;
}
.go-transition-quick {
  transition: all 0.2s;
}
.go-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.go-flex-items-center {
  display: flex;
  align-items: center;
  text-align: center;
}
.go-flex-no-wrap {
  flex-wrap: nowrap !important;
}
.go-absolute-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
// cursor 小手
.go-cursor-pointer {
  cursor: pointer;
}
// IE盒模型
.go-boderbox {
  box-sizing: border-box;
}
// 毛玻璃
.go-background-filter {
  backdrop-filter: $--filter-blur-base;
  @include fetch-bg-color("filter-color");
  box-shadow: $--border-shadow;
}
// 毛玻璃
.go-background-filter-shallow {
  backdrop-filter: $--filter-blur-base;
  @include fetch-bg-color("filter-color-shallow");
  box-shadow: $--border-shadow;
}
// 边框圆角
.go-border-radius {
  border-radius: $--border-radius-base;
  overflow: hidden;
}
// 背景斑点需配合 @mixin background-image 使用
.go-point-bg {
  @include fetch-theme-custom("background-color", "background-color1");
  background-size: 15px 15px, 15px 15px;
}
// 省略号
.go-ellipsis-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}
// class:m-1 => margin:1em
// class:mt-1 => margin-top:1em
// m-0|mt-0|mx-0|my-0|p-0|pt-0|...
@each $typekey, $type in $spacing-types {
  //.m-1
  @each $sizekey, $size in $spacing-sizes {
    .go-#{$typekey}-#{$sizekey} {
      #{$type}: $size * $spacing-base-size;
    }
  }
  //.mx-1
  @each $sizekey, $size in $spacing-sizes {
    .go-#{$typekey}x-#{$sizekey} {
      #{$type}-left: $size * $spacing-base-size;
      #{$type}-right: $size * $spacing-base-size;
    }
    .go-#{$typekey}y-#{$sizekey} {
      #{$type}-top: $size * $spacing-base-size;
      #{$type}-bottom: $size * $spacing-base-size;
    }
  }
  //.mt-1
  @each $directionkey, $direction in $spacing-directions {
    @each $sizekey, $size in $spacing-sizes {
      .go-#{$typekey}#{$directionkey}-#{$sizekey} {
        #{$type}-#{$direction}: $size * $spacing-base-size;
      }
    }
  }
  .go-#{$typekey} {
    #{$type}: 0 !important;
  }
}
.go-d-inline-block {
  display: inline-block;
}
.go-d-block {
  display: block;
}