Skip to content

Commit faf6dbb

Browse files
committed
Use Wrap lines on the Main Hero items
1 parent 4201d8f commit faf6dbb

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

src/components/Header/Nav/ProductNavigation/Desktop/megaMenu.module.css

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
.row {
3434
display: grid;
3535
grid-template-columns: repeat(3, 1fr);
36-
border-bottom: 1px solid var(--border);
3736
}
3837

3938
.row:last-child {
@@ -68,7 +67,7 @@
6867
.groupItem {
6968
display: flex;
7069
align-items: center;
71-
padding: var(--space-6x) var(--space-8x);
70+
padding: var(--space-4x) var(--space-6x);
7271
gap: var(--space-4x);
7372
text-decoration: none;
7473
transition: background-color 0.2s;
@@ -87,22 +86,10 @@
8786
.itemList {
8887
display: flex;
8988
flex-direction: column;
90-
}
91-
92-
.groupItemDescription {
93-
display: -webkit-box;
94-
-webkit-line-clamp: 1;
95-
line-clamp: 1;
96-
-webkit-box-orient: vertical;
97-
overflow: hidden;
89+
padding: var(--space-2x);
9890
}
9991

10092
.groupItemTitle {
101-
display: -webkit-box;
102-
-webkit-line-clamp: 1;
103-
line-clamp: 1;
104-
-webkit-box-orient: vertical;
105-
overflow: hidden;
10693
font-size: 18px;
10794
font-weight: 500;
10895
}
@@ -125,6 +112,12 @@
125112
border-right: none;
126113
}
127114

115+
& .itemList {
116+
padding-top: var(--space-0);
117+
padding-left: var(--space-0);
118+
padding-right: var(--space-0);
119+
}
120+
128121
& .groupItemTitle {
129122
display: block;
130123
-webkit-line-clamp: unset;

0 commit comments

Comments
 (0)