Skip to content

Commit 1b76317

Browse files
author
Tu Nguyen
committed
Removed redundant less styles navigation in blank theme
u up
1 parent 9e7b088 commit 1b76317

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

app/design/frontend/Magento/blank/web/css/source/_navigation.less

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828

2929
.nav-toggle {
3030
.lib-icon-font(
31-
@icon-menu,
32-
@_icon-font-size: 28px,
33-
@_icon-font-color: @header-icons-color,
34-
@_icon-font-color-hover: @header-icons-color-hover
31+
@icon-menu,
32+
@_icon-font-size: 28px,
33+
@_icon-font-color: @header-icons-color,
34+
@_icon-font-color-hover: @header-icons-color-hover
3535
);
3636
.lib-icon-text-hide();
3737
cursor: pointer;
@@ -54,13 +54,13 @@
5454

5555
.parent {
5656
.level-top {
57-
position: relative;
5857
.lib-icon-font(
59-
@_icon-font-content: @icon-down,
60-
@_icon-font-size: 42px,
61-
@_icon-font-position: after,
62-
@_icon-font-display: block
58+
@_icon-font-content: @icon-down,
59+
@_icon-font-size: 42px,
60+
@_icon-font-position: after,
61+
@_icon-font-display: block
6362
);
63+
position: relative;
6464

6565
&:after {
6666
position: absolute;
@@ -70,8 +70,8 @@
7070

7171
&.ui-state-active {
7272
.lib-icon-font-symbol(
73-
@_icon-font-content: @icon-up,
74-
@_icon-font-position: after
73+
@_icon-font-content: @icon-up,
74+
@_icon-font-position: after
7575
);
7676
}
7777
}
@@ -82,12 +82,10 @@
8282
-webkit-overflow-scrolling: touch;
8383
.lib-css(transition, left .3s, 1);
8484
height: 100%;
85-
left: -80%;
8685
left: calc(~'-1 * (100% - @{active-nav-indent})');
8786
overflow: auto;
8887
position: fixed;
8988
top: 0;
90-
width: 80%;
9189
width: calc(~'100% - @{active-nav-indent}');
9290

9391
.switcher {
@@ -109,13 +107,13 @@
109107

110108
.switcher-trigger {
111109
strong {
112-
position: relative;
113110
.lib-icon-font(
114-
@_icon-font-content: @icon-down,
115-
@_icon-font-size: 42px,
116-
@_icon-font-position: after,
117-
@_icon-font-display: block
111+
@_icon-font-content: @icon-down,
112+
@_icon-font-size: 42px,
113+
@_icon-font-position: after,
114+
@_icon-font-display: block
118115
);
116+
position: relative;
119117

120118
&:after {
121119
position: absolute;
@@ -126,23 +124,26 @@
126124

127125
&.active strong {
128126
.lib-icon-font-symbol(
129-
@_icon-font-content: @icon-up,
130-
@_icon-font-position: after
127+
@_icon-font-content: @icon-up,
128+
@_icon-font-position: after
131129
);
132130
}
133131
}
132+
134133
.switcher-dropdown {
135134
.lib-list-reset-styles();
136135
display: none;
137136
padding: @indent__s 0;
138137
}
138+
139139
.switcher-options {
140140
&.active {
141141
.switcher-dropdown {
142142
display: block;
143143
}
144144
}
145145
}
146+
146147
.header.links {
147148
.lib-list-reset-styles();
148149
border-bottom: 1px solid @color-gray82;
@@ -200,13 +201,11 @@
200201

201202
.nav-open {
202203
.page-wrapper {
203-
left: 80%;
204204
left: calc(~'100% - @{active-nav-indent}');
205205
}
206206

207207
.nav-sections {
208208
@_shadow: 0 0 5px 0 rgba(50, 50, 50, .75);
209-
210209
.lib-css(box-shadow, @_shadow, 1);
211210
left: 0;
212211
z-index: 99;
@@ -293,10 +292,6 @@
293292
display: none;
294293
}
295294

296-
.nav-sections-item-content {
297-
display: block !important;
298-
}
299-
300295
.nav-sections-item-content > * {
301296
display: none;
302297
}

0 commit comments

Comments
 (0)