Skip to content

Commit 95d800b

Browse files
devvaannshabose
authored andcommitted
feat: add styles for layers panel code hints
1 parent c7bf846 commit 95d800b

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

‎src/styles/Extn-LayersPanel.less‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,59 @@ body.layers-resizing {
969969
user-select: none;
970970
}
971971

972+
.layers-hints {
973+
position: fixed;
974+
z-index: 1000;
975+
box-sizing: border-box;
976+
max-height: 220px;
977+
padding: 3px;
978+
overflow-y: auto;
979+
border: 1px solid rgba(255, 255, 255, 0.12);
980+
border-radius: 6px;
981+
background: #2f2f2f;
982+
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
983+
font-family: @layers-mono;
984+
font-size: @sidebar-xs-font-size;
985+
line-height: 18px;
986+
}
987+
988+
.layers-hint {
989+
display: flex;
990+
align-items: center;
991+
gap: 6px;
992+
padding: 1px 6px;
993+
border-radius: 3px;
994+
color: #e0e0e0;
995+
white-space: nowrap;
996+
cursor: pointer;
997+
998+
&:hover {
999+
background: @layers-hover-bg;
1000+
}
1001+
1002+
&.layers-hint-selected {
1003+
background: @layers-accent-soft;
1004+
}
1005+
1006+
strong {
1007+
font-weight: 600;
1008+
color: @layers-accent;
1009+
}
1010+
}
1011+
1012+
.layers-hint-label {
1013+
overflow: hidden;
1014+
text-overflow: ellipsis;
1015+
}
1016+
1017+
.layers-hint-swatch {
1018+
flex: none;
1019+
width: 10px;
1020+
height: 10px;
1021+
border: 1px solid rgba(255, 255, 255, 0.25);
1022+
border-radius: 2px;
1023+
}
1024+
9721025
.dropdownbutton-popup.layers-menu-popup {
9731026
max-height: 80vh;
9741027
}

0 commit comments

Comments
 (0)