Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit a046c3c

Browse files
committed
[design] improve menu layout
1 parent 588fc36 commit a046c3c

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

css/menu.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
.menu-content-area {
4646
display: grid;
47-
grid-template-columns: repeat(auto-fill, 1fr);
47+
grid-template-columns: 1fr;
4848
grid-gap: 2em;
4949
}
5050

@@ -81,16 +81,19 @@
8181
}
8282

8383
.menu-content-area {
84-
grid-template-columns: repeat(auto-fill, minmax(12em, 1fr));
84+
grid-template-columns: repeat(2, 1fr);
8585
}
8686
}
8787

8888
@media (min-width: 900px) {
8989
.menu {
90-
width: calc(50vw - 2em);
90+
width: calc(60vw - 2em);
91+
max-height: calc(100vh - 2em);
9192
}
93+
}
9294

93-
.menu-content-area {
94-
grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
95+
@media (min-width: 1100px) {
96+
.menu {
97+
width: calc(50vw - 2em);
9598
}
9699
}

0 commit comments

Comments
 (0)