Skip to content

Commit 79df000

Browse files
committed
MAGETWO-47593: Toggle buttons are displayed not aligned in responsive menu on Storefront
1 parent 4db9d2f commit 79df000

File tree

1 file changed

+72
-72
lines changed

1 file changed

+72
-72
lines changed

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

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -97,40 +97,40 @@
9797
}
9898

9999
&:last-child {
100-
border-bottom: 1px solid @color-gray82;
100+
border-bottom: 1px solid @color-gray82;
101101
}
102+
}
102103

103-
&-trigger {
104-
strong {
105-
position: relative;
106-
.lib-icon-font(
107-
@_icon-font-content: @icon-down,
108-
@_icon-font-size: 42px,
109-
@_icon-font-position: after,
110-
@_icon-font-display: block
111-
);
112-
113-
&:after {
114-
position: absolute;
115-
right: -40px;
116-
top: -16px;
117-
}
118-
}
104+
.switcher-trigger {
105+
strong {
106+
position: relative;
107+
.lib-icon-font(
108+
@_icon-font-content: @icon-down,
109+
@_icon-font-size: 42px,
110+
@_icon-font-position: after,
111+
@_icon-font-display: block
112+
);
119113

120-
&.active strong {
121-
.lib-icon-font-symbol(
122-
@_icon-font-content: @icon-up,
123-
@_icon-font-position: after
124-
);
114+
&:after {
115+
position: absolute;
116+
right: -40px;
117+
top: -16px;
125118
}
126119
}
127120

128-
&-dropdown {
129-
.lib-list-reset-styles();
130-
padding: @indent__s 0;
121+
&.active strong {
122+
.lib-icon-font-symbol(
123+
@_icon-font-content: @icon-up,
124+
@_icon-font-position: after
125+
);
131126
}
132127
}
133128

129+
.switcher-dropdown {
130+
.lib-list-reset-styles();
131+
padding: @indent__s 0;
132+
}
133+
134134
.header.links {
135135
.lib-list-reset-styles();
136136
border-bottom: 1px solid @color-gray82;
@@ -215,50 +215,48 @@
215215
}
216216
}
217217

218-
.nav-sections {
219-
&-items {
220-
.lib-clearfix();
221-
position: relative;
222-
z-index: 1;
223-
}
218+
.nav-sections-items {
219+
.lib-clearfix();
220+
position: relative;
221+
z-index: 1;
222+
}
224223

225-
&-item-title {
226-
background: darken(@navigation__background,5%);
227-
border: solid darken(@navigation__background,10%);
228-
border-width: 0 0 1px 1px;
229-
box-sizing: border-box;
230-
float: left;
231-
height: 71px;
232-
padding-top: 24px;
233-
text-align: center;
234-
width: 33.33%;
235-
236-
&.active {
237-
background: transparent;
238-
border-bottom: 0;
239-
}
224+
.nav-sections-item-title {
225+
background: darken(@navigation__background, 5%);
226+
border: solid darken(@navigation__background, 10%);
227+
border-width: 0 0 1px 1px;
228+
box-sizing: border-box;
229+
float: left;
230+
height: 71px;
231+
padding-top: 24px;
232+
text-align: center;
233+
width: 33.33%;
234+
235+
&.active {
236+
background: transparent;
237+
border-bottom: 0;
238+
}
240239

241-
.nav-sections-item-switch {
242-
&:hover {
243-
text-decoration: none;
244-
}
240+
.nav-sections-item-switch {
241+
&:hover {
242+
text-decoration: none;
245243
}
246244
}
245+
}
247246

248-
&-item-content {
249-
.lib-clearfix();
250-
box-sizing: border-box;
251-
float: right;
252-
margin-left: -100%;
253-
margin-top: 71px;
254-
width: 100%;
255-
256-
&.active {
257-
display: block;
258-
}
247+
.nav-sections-item-content {
248+
.lib-clearfix();
249+
box-sizing: border-box;
250+
float: right;
251+
margin-left: -100%;
252+
margin-top: 71px;
253+
width: 100%;
259254

260-
padding: @indent__m 0;
255+
&.active {
256+
display: block;
261257
}
258+
259+
padding: @indent__m 0;
262260
}
263261

264262
.lib-main-navigation();
@@ -277,20 +275,22 @@
277275
.lib-vendor-prefix-flex-shrink(0);
278276
.lib-vendor-prefix-flex-basis(auto);
279277
margin-bottom: @indent__m;
278+
}
280279

281-
&-item-title {
282-
display: none;
283-
}
280+
.nav-sections-item-title {
281+
display: none;
282+
}
284283

285-
&-item-content {
286-
display: block !important;
287-
}
284+
.nav-sections-item-content {
285+
display: block !important;
286+
}
288287

289-
&-item-content > * {
290-
display: none;
291-
}
288+
.nav-sections-item-content > * {
289+
display: none;
290+
}
292291

293-
&-item-content > .navigation {
292+
.nav-sections-item-content {
293+
> .navigation {
294294
display: block;
295295
}
296296
}

0 commit comments

Comments
 (0)