Skip to content

Commit 7955edc

Browse files
committed
Improve responsive layout and menu
1 parent 28d86a4 commit 7955edc

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

assets/css/custom.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,21 @@ html:not(.dark):not([data-theme="dark"]):not([data-scheme="dark"]) #header-deskt
147147

148148
html:not(.dark):not([data-theme="dark"]):not([data-scheme="dark"]) #header-desktop .sub-menu {
149149
min-width: 14rem;
150+
max-height: none !important;
151+
overflow-y: hidden !important;
152+
padding: 0.35rem 0.3rem !important;
153+
}
154+
155+
html:not(.dark):not([data-theme="dark"]):not([data-scheme="dark"]) #header-desktop .sub-menu .menu-item {
156+
height: auto !important;
157+
line-height: 1.2 !important;
158+
max-width: none !important;
150159
}
151160

152161
html:not(.dark):not([data-theme="dark"]):not([data-scheme="dark"]) #header-desktop .sub-menu .menu-link {
153-
padding: 0.55rem 1.05rem !important;
162+
display: block;
163+
padding: 0.48rem 0.9rem !important;
164+
overflow: visible !important;
154165
}
155166

156167
/* body text serif */

0 commit comments

Comments
 (0)