Skip to content

Commit 2db3765

Browse files
committed
style(next): restyle menu item group headings
1 parent 61a2b2c commit 2db3765

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

src/public/stylesheets/theme-next-dark.css

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
--menu-item-keyboard-shortcut-color: #ffffff8f;
8989
--menu-item-arrow-color: #ffffffa3;
9090
--menu-item-delimiter-color: #ffffff1c;
91+
--menu-item-group-header-color: #ffffff91;
9192

9293
--modal-background-color: #333;
9394
--modal-backdrop-color: #444;

src/public/stylesheets/theme-next-light.css

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
--menu-item-keyboard-shortcut-color: #666666a8;
8383
--menu-item-arrow-color: #00000080;
8484
--menu-item-delimiter-color: #00000030;
85+
--menu-item-group-header-color: #00000061;
8586

8687
--modal-background-color: white;
8788
--modal-backdrop-color: black;

src/public/stylesheets/theme-next/shell.css

+23
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,29 @@ html body .dropdown-item[disabled] {
10821082
color: var(--menu-item-arrow-color) !important;
10831083
}
10841084

1085+
/* Menu item group heading */
1086+
1087+
/* The heading body */
1088+
.dropdown-menu h6 {
1089+
position: relative;
1090+
background: transparent;
1091+
padding: 1em 8px 14px 8px;
1092+
text-transform: uppercase;
1093+
font-size: .8em;
1094+
letter-spacing: 1pt;
1095+
color: var(--menu-item-group-header-color) !important;
1096+
}
1097+
1098+
/* The delimiter line */
1099+
.dropdown-menu h6::before {
1100+
content: "";
1101+
position: absolute;
1102+
bottom: 8px;
1103+
left: calc(0px - var(--menu-padding-size));
1104+
right: calc(0px - var(--menu-padding-size));
1105+
border-top: 1px solid var(--menu-item-delimiter-color);
1106+
}
1107+
10851108
/* Static menus (used as a list, such as on the note revisions dialog) */
10861109
body.desktop .dropdown-menu.static {
10871110
box-shadow: unset;

0 commit comments

Comments
 (0)