Skip to content

Commit 715e16c

Browse files
committed
refactor: 撤销格式化
1 parent 36dfc04 commit 715e16c

File tree

1 file changed

+86
-86
lines changed

1 file changed

+86
-86
lines changed
Lines changed: 86 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,170 +1,170 @@
11
:root {
2-
--bb-primary-color: #{$bb-primary-color};
3-
--bb-primary-color-rgb: #{$bb-primary-color-rgb};
4-
--bb-border-focus-color: #{$bb-border-focus-color};
5-
--bb-border-hover-color: #{$bb-border-hover-color};
6-
--bb-height: #{$bb-height};
7-
--bb-dropdown-max-height: #{$bb-dropdown-max-height};
8-
--bb-shadow: #{$bb-shadow};
9-
--bb-hover-shadow: #{$bb-hover-shadow};
10-
--bb-font-size: #{$bb-font-size};
2+
--bb-primary-color: #{$bb-primary-color};
3+
--bb-primary-color-rgb: #{$bb-primary-color-rgb};
4+
--bb-border-focus-color: #{$bb-border-focus-color};
5+
--bb-border-hover-color: #{$bb-border-hover-color};
6+
--bb-height: #{$bb-height};
7+
--bb-dropdown-max-height: #{$bb-dropdown-max-height};
8+
--bb-shadow: #{$bb-shadow};
9+
--bb-hover-shadow: #{$bb-hover-shadow};
10+
--bb-font-size: #{$bb-font-size};
1111
}
1212

1313
body,
1414
.form-control,
1515
.dropdown-menu,
1616
.form-select,
1717
.input-group-text {
18-
font-size: var(--bb-font-size);
18+
font-size: var(--bb-font-size);
1919
}
2020

2121
a,
2222
[for] {
23-
cursor: pointer;
23+
cursor: pointer;
2424
}
2525

2626
a, a:hover, a:focus {
27-
text-decoration: none;
27+
text-decoration: none;
2828
}
2929

3030
[disabled],
3131
:disabled,
3232
.disabled,
3333
.disabled > * {
34-
cursor: not-allowed !important;
34+
cursor: not-allowed !important;
3535
}
3636

3737
.disabled .range-separator,
3838
:disabled {
39-
background-color: var(--bs-secondary-bg);
40-
opacity: 1;
39+
background-color: var(--bs-secondary-bg);
40+
opacity: 1;
4141
}
4242

4343
:focus-visible,
4444
:focus {
45-
outline: none;
45+
outline: none;
4646
}
4747

4848
@mixin direction($var, $child) {
49-
> .datetime-picker:not(:#{$child}-child) .form-control,
50-
> .select:not(:#{$child}-child) .form-control,
51-
> .switch:not(:#{$child}-child),
52-
> .multi-select:not(:#{$child}-child) .dropdown-toggle,
53-
> [data-bs-toggle]:not(:#{$child}-child) > .form-control,
54-
> .auto-complete:not(:#{$child}-child) .form-control {
55-
border-top-#{$var}-radius: 0;
56-
border-bottom-#{$var}-radius: 0;
57-
}
49+
> .datetime-picker:not(:#{$child}-child) .form-control,
50+
> .select:not(:#{$child}-child) .form-control,
51+
> .switch:not(:#{$child}-child),
52+
> .multi-select:not(:#{$child}-child) .dropdown-toggle,
53+
> [data-bs-toggle]:not(:#{$child}-child) > .form-control,
54+
> .auto-complete:not(:#{$child}-child) .form-control {
55+
border-top-#{$var}-radius: 0;
56+
border-bottom-#{$var}-radius: 0;
57+
}
5858
}
5959

6060
.input-group {
61-
@include direction(right, last);
62-
@include direction(left, first)
61+
@include direction(right, last);
62+
@include direction(left, first)
6363
}
6464

6565
.btn-group {
66-
@include direction(right, last);
67-
@include direction(left, first)
66+
@include direction(right, last);
67+
@include direction(left, first)
6868
}
6969

7070
.popover.popover-table-column-toolbox {
71-
--bs-popover-min-width: 120px;
72-
--bs-popover-header-font-size: 12px;
73-
--bs-popover-header-padding-x: 0.5rem;
74-
--bs-popover-header-padding-y: 0.5rem;
75-
--bs-popover-body-padding-x: 0.5rem;
76-
--bs-popover-body-padding-y: 0.5rem;
71+
--bs-popover-min-width: 120px;
72+
--bs-popover-header-font-size: 12px;
73+
--bs-popover-header-padding-x: 0.5rem;
74+
--bs-popover-header-padding-y: 0.5rem;
75+
--bs-popover-body-padding-x: 0.5rem;
76+
--bs-popover-body-padding-y: 0.5rem;
7777
}
7878

7979
::view-transition-old(*) {
80-
mix-blend-mode: normal;
81-
animation: none;
82-
z-index: 1;
80+
mix-blend-mode: normal;
81+
animation: none;
82+
z-index: 1;
8383
}
8484

8585
::view-transition-new(*) {
86-
mix-blend-mode: normal;
87-
animation: clip .3s ease-in-out;
88-
z-index: 9999;
86+
mix-blend-mode: normal;
87+
animation: clip .3s ease-in-out;
88+
z-index: 9999;
8989
}
9090

9191
@keyframes clip {
92-
from {
93-
clip-path: circle(0% at var(--bb-theme-x) var(--bb-theme-y));
94-
}
92+
from {
93+
clip-path: circle(0% at var(--bb-theme-x) var(--bb-theme-y));
94+
}
9595

96-
to {
97-
clip-path: circle(100% at var(--bb-theme-x) var(--bb-theme-y));
98-
}
96+
to {
97+
clip-path: circle(100% at var(--bb-theme-x) var(--bb-theme-y));
98+
}
9999
}
100100

101101
[data-bs-theme='dark'] {
102-
&::view-transition-old(*) {
103-
animation: clip2 .3s ease-in-out;
104-
z-index: 9999;
105-
}
102+
&::view-transition-old(*) {
103+
animation: clip2 .3s ease-in-out;
104+
z-index: 9999;
105+
}
106106

107-
&::view-transition-new(*) {
108-
animation: none;
109-
z-index: 1;
110-
}
107+
&::view-transition-new(*) {
108+
animation: none;
109+
z-index: 1;
110+
}
111111
}
112112

113113
@keyframes clip2 {
114-
from {
115-
clip-path: circle(100% at var(--bb-theme-x) var(--bb-theme-y));
116-
}
114+
from {
115+
clip-path: circle(100% at var(--bb-theme-x) var(--bb-theme-y));
116+
}
117117

118-
to {
119-
clip-path: circle(0% at var(--bb-theme-x) var(--bb-theme-y));
120-
}
118+
to {
119+
clip-path: circle(0% at var(--bb-theme-x) var(--bb-theme-y));
120+
}
121121
}
122122

123123
[data-bs-theme='memorial'] {
124-
&:root {
125-
--bs-body-bg: #000;
126-
--bs-body-color: #b5b5c3;
127-
filter: grayscale(100%);
128-
}
124+
&:root {
125+
--bs-body-bg: #000;
126+
--bs-body-color: #b5b5c3;
127+
filter: grayscale(100%);
128+
}
129129
}
130130

131131
body:before {
132-
content: "extraExtraSmall";
133-
display: none;
132+
content: "extraExtraSmall";
133+
display: none;
134134
}
135135

136136
@media (min-width: 375px) {
137-
body:before {
138-
content: "extraSmall";
139-
}
137+
body:before {
138+
content: "extraSmall";
139+
}
140140
}
141141

142142
@media (min-width: 576px) {
143-
body:before {
144-
content: "small";
145-
}
143+
body:before {
144+
content: "small";
145+
}
146146
}
147147

148148
@media (min-width: 768px) {
149-
body:before {
150-
content: "medium";
151-
}
149+
body:before {
150+
content: "medium";
151+
}
152152
}
153153

154154
@media (min-width: 992px) {
155-
body:before {
156-
content: "large";
157-
}
155+
body:before {
156+
content: "large";
157+
}
158158
}
159159

160160
@media (min-width: 1200px) {
161-
body:before {
162-
content: "extraLarge";
163-
}
161+
body:before {
162+
content: "extraLarge";
163+
}
164164
}
165165

166166
@media (min-width: 1400px) {
167-
body:before {
168-
content: "extraExtraLarge";
169-
}
167+
body:before {
168+
content: "extraExtraLarge";
169+
}
170170
}

0 commit comments

Comments
 (0)