Skip to content

Commit 1cb7e31

Browse files
committed
widget config 优化
1 parent 64f1caa commit 1cb7e31

File tree

7 files changed

+381
-345
lines changed

7 files changed

+381
-345
lines changed

src/assets/css/widget.scss

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ $primary-background-color: #ecf5ff;
7979
&.active {
8080
background: $primary-background-color;
8181
// box-shadow: 0px 1px 10px 1px #90c7ff;
82-
z-index: 2001;
82+
z-index: 1111;
8383
}
8484

8585
.widget-action-delete {
@@ -111,7 +111,7 @@ $primary-background-color: #ecf5ff;
111111
margin-right: 10px;
112112
color: #333;
113113
}
114-
.wg-radio, .wg-checkbox {
114+
.wg-checkbox {
115115
line-height: 40px;
116116

117117
.label {
@@ -125,9 +125,9 @@ $primary-background-color: #ecf5ff;
125125
border-radius: 10px;
126126
border: 1px solid #ddd;
127127
}
128-
.wg-radio-input:checked + span, .wg-checkbox-input:checked + span {
129-
background-color: #26a2ff;
130-
border-color: #26a2ff;
128+
.wg-checkbox-input:checked + span {
129+
background-color: $primary-color;
130+
border-color: $primary-color;
131131
color: #fff;
132132
}
133133
}
@@ -167,15 +167,30 @@ $primary-background-color: #ecf5ff;
167167
background-color: #fff;
168168
}
169169
.wg-switch-input:checked + span {
170-
background-color: #26a2ff;
171-
border-color: #26a2ff;
170+
background-color: $primary-color;
171+
border-color: $primary-color;
172172
color: #fff;
173173
}
174174
.wg-switch-input:checked + span::after {
175175
left: 100%;
176176
margin-left: -17px;
177177
}
178-
}
178+
}
179+
.wg-button {
180+
width: 90%;
181+
margin: 15px 5%;
182+
background: $primary-color;
183+
color: #fff;
184+
height: 46px;
185+
line-height: 46px;
186+
font-size: 18px;
187+
outline: none;
188+
border: none;
189+
letter-spacing: 2px;
190+
border-radius: 20px;
191+
text-align: center;
192+
box-shadow: 0 5px 10px 3px #90c7ff;
193+
}
179194
}
180195
}
181196
}

0 commit comments

Comments
 (0)