Skip to content

Commit a035c55

Browse files
committed
feat: layers panel button styles and strings
1 parent c461ea5 commit a035c55

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,23 @@
428428
color: #FBB03B;
429429
}
430430

431+
#livePreviewLayersBtn {
432+
border: 1px solid transparent;
433+
border-radius: 3px;
434+
}
435+
436+
#live-preview-plugin-toolbar #livePreviewLayersBtn:hover,
437+
#live-preview-plugin-toolbar #livePreviewLayersBtn:focus,
438+
#live-preview-plugin-toolbar #livePreviewLayersBtn:active {
439+
border-color: var(--lp-toolbar-border) !important;
440+
background: transparent !important;
441+
box-shadow: none !important;
442+
}
443+
444+
#livePreviewLayersBtn.selected {
445+
color: #FBB03B;
446+
}
447+
431448
.lp-mode-dropdown-chevron,
432449
.lp-device-size-dropdown-chevron {
433450
display: flex;

‎src/nls/root/strings.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,7 @@ define({
775775
"LIVE_DEV_IMAGE_FOLDER_DIALOG_REMEMBER": "Don't ask again for this project",
776776
"AVAILABLE_IN_PRO_TITLE": "Available in Phoenix Pro",
777777
"DEVICE_SIZE_LIMIT_MESSAGE": "To switch between mobile, tablet, and desktop views, upgrade to Phoenix Pro.",
778+
"LAYERS_PANEL_LIMIT_MESSAGE": "To see your page structure and select or edit any element in it, upgrade to Phoenix Pro.",
778779
"DEVICE_SIZE_NOT_ENOUGH_SPACE": "This screen doesn’t fit in the current window size — try expanding the window",
779780
"DEVICE_SIZE_CYCLE_NO_FIT": "Screen too small to switch to another device size — increase the window size",
780781
"DEVICE_SIZE_CYCLE_TOOLTIP": "Switch between mobile, tablet, and desktop",
@@ -809,6 +810,7 @@ define({
809810
"LIVE_PREVIEW_SHOW_STYLES_BAR": "Show Styles Bar",
810811
"LIVE_PREVIEW_MODE_PREFERENCE": "'{0}' shows only the webpage, '{1}' connects the webpage to your code - click on elements to jump to their code and vice versa, '{2}' provides highlighting along with advanced element manipulation",
811812
"LIVE_PREVIEW_CONFIGURE_MODES": "Configure Live Preview Modes",
813+
"LIVE_PREVIEW_LAYERS_PANEL": "Toggle Layers Panel",
812814

813815
"LIVE_DEV_DETACHED_REPLACED_WITH_DEVTOOLS": "Live Preview was canceled because the browser's developer tools were opened",
814816
"LIVE_DEV_DETACHED_TARGET_CLOSED": "Live Preview was canceled because the page was closed in the browser",

0 commit comments

Comments
 (0)