Skip to content

Commit 4401efa

Browse files
committed
feat: better live preview toolbar buttons styling
1 parent 06f7dde commit 4401efa

1 file changed

Lines changed: 24 additions & 3 deletions

File tree

src/extensionsIntegrated/Phoenix-live-preview/live-preview.css

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,30 @@
182182

183183
.toolbar-button {
184184
background-color: transparent;
185-
width:28px;
185+
width: 28px;
186186
height: 22px;
187187
}
188188

189+
#live-preview-plugin-toolbar .btn-alt-quiet:hover,
190+
#live-preview-plugin-toolbar .btn-alt-quiet:focus,
191+
#live-preview-plugin-toolbar .btn-alt-quiet:active {
192+
border-color: rgba(255, 255, 255, 0.1) !important;
193+
box-shadow: none !important;
194+
}
195+
196+
#live-preview-plugin-toolbar .lp-device-size-icon:hover,
197+
#live-preview-plugin-toolbar .lp-device-size-icon:focus,
198+
#live-preview-plugin-toolbar .lp-device-size-icon:active {
199+
border: none !important;
200+
}
201+
202+
#live-preview-plugin-toolbar .lp-device-size-dropdown-chevron:hover,
203+
#live-preview-plugin-toolbar .lp-device-size-dropdown-chevron:focus,
204+
#live-preview-plugin-toolbar .lp-device-size-dropdown-chevron:active {
205+
border: none !important;
206+
border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
207+
}
208+
189209
.open-icon {
190210
background: url("./images/sprites.svg#open-icon") no-repeat 72.5%;
191211
width: 30px;
@@ -279,7 +299,7 @@
279299
.lp-device-size-icon:hover,
280300
.lp-device-size-icon:focus,
281301
.lp-device-size-icon:active {
282-
background: rgba(255, 255, 255, 0.06) !important;
302+
background: transparent !important;
283303
border: none !important;
284304
box-shadow: none !important;
285305
}
@@ -293,6 +313,7 @@
293313
box-shadow: none !important;
294314
border: none;
295315
border-left: 1px solid transparent;
316+
border-radius: 0 3px 3px 0;
296317
color: #a0a0a0;
297318
padding: 0 4px;
298319
margin: 0;
@@ -307,7 +328,7 @@
307328
.lp-device-size-dropdown-chevron:hover,
308329
.lp-device-size-dropdown-chevron:focus,
309330
.lp-device-size-dropdown-chevron:active {
310-
background: rgba(255, 255, 255, 0.06) !important;
331+
background: transparent !important;
311332
border: none !important;
312333
border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
313334
box-shadow: none !important;

0 commit comments

Comments
 (0)