Skip to content

Commit 9a61c08

Browse files
committed
feat: improve live preview resize ruler styling
1 parent 782118a commit 9a61c08

1 file changed

Lines changed: 33 additions & 3 deletions

File tree

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

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,22 +155,48 @@
155155
transform: translateX(-50%);
156156
z-index: 10;
157157
display: none;
158-
padding: 6px 16px;
158+
padding: 6px 14px;
159159
border-radius: 6px;
160160
background: rgba(0, 0, 0, 0.88);
161161
border: 1px solid rgba(255, 255, 255, 0.18);
162162
backdrop-filter: blur(12px);
163163
-webkit-backdrop-filter: blur(12px);
164164
color: #fff;
165-
font-size: 15px;
165+
font-size: 13px;
166166
font-weight: 600;
167167
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
168168
white-space: nowrap;
169169
pointer-events: none;
170-
letter-spacing: 0.5px;
170+
letter-spacing: 0.3px;
171171
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
172172
}
173173

174+
.responsive-dimension-label .responsive-dimension-device {
175+
color: rgba(255, 255, 255, 0.7);
176+
font-weight: 400;
177+
}
178+
179+
.responsive-dimension-label .responsive-dimension-device i {
180+
margin-right: 5px;
181+
font-size: 11px;
182+
vertical-align: middle;
183+
}
184+
185+
.responsive-dimension-label .responsive-dimension-name {
186+
vertical-align: middle;
187+
}
188+
189+
.responsive-dimension-label .responsive-dimension-separator {
190+
color: rgba(255, 255, 255, 0.35);
191+
margin: 0 6px;
192+
font-weight: 400;
193+
}
194+
195+
.responsive-dimension-label .responsive-dimension-size {
196+
color: #fff;
197+
font-weight: 600;
198+
}
199+
174200
.plugin-toolbar {
175201
height: var(--toolbar-height);
176202
color: #a0a0a0;
@@ -321,6 +347,10 @@
321347
font-size: inherit;
322348
}
323349

350+
.device-size-item-icon-fit {
351+
font-size: 11px;
352+
}
353+
324354
.device-size-item-row {
325355
display: flex;
326356
justify-content: space-between;

0 commit comments

Comments
 (0)