Skip to content

Commit 76614e8

Browse files
committed
feat: show pixel values when resizing the webpage
1 parent 9c14a7d commit 76614e8

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,27 @@
119119
background: rgba(255, 255, 255, 0.6);
120120
}
121121

122+
.responsive-dimension-label {
123+
position: absolute;
124+
transform: translateX(-50%);
125+
z-index: 10;
126+
display: none;
127+
padding: 4px 12px;
128+
border-radius: 4px;
129+
background: rgba(0, 0, 0, 0.82);
130+
border: 1px solid rgba(255, 255, 255, 0.15);
131+
backdrop-filter: blur(8px);
132+
-webkit-backdrop-filter: blur(8px);
133+
color: #fff;
134+
font-size: 13px;
135+
font-weight: 600;
136+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
137+
white-space: nowrap;
138+
pointer-events: none;
139+
letter-spacing: 0.4px;
140+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
141+
}
142+
122143
.plugin-toolbar {
123144
height: var(--toolbar-height);
124145
color: #a0a0a0;

0 commit comments

Comments
 (0)