|
4 | 4 | // */
|
5 | 5 |
|
6 | 6 | //
|
7 |
| -// Common |
8 |
| -//-------------------------------------- |
| 7 | +// Common |
| 8 | +// _____________________________________________ |
9 | 9 |
|
10 | 10 | @toolbar-mode-icon-font-size: 24px;
|
11 | 11 | @toolbar-element-background: @panel__background-color;
|
12 | 12 |
|
13 | 13 | & when (@media-common = true) {
|
14 | 14 |
|
15 |
| -.page-products .columns { |
16 |
| - position: relative; |
17 |
| - z-index: 1; |
18 |
| -} |
19 |
| - |
20 |
| -.toolbar { |
21 |
| - &:extend(.abs-add-clearfix all); |
22 |
| - &-amount { |
23 |
| - display: block; |
24 |
| - line-height: @toolbar-mode-icon-font-size+2; |
25 |
| - padding: 8px 0 0; |
26 |
| - margin: 0; |
27 |
| - vertical-align: middle; |
28 |
| - .products.wrapper ~ .toolbar & { |
29 |
| - display: none; |
| 15 | + .page-products { |
| 16 | + .columns { |
| 17 | + position: relative; |
| 18 | + z-index: 1; |
30 | 19 | }
|
31 | 20 | }
|
32 |
| - &-products { |
33 |
| - margin-bottom: @indent__xl; |
34 |
| - text-align: center; |
35 |
| - padding: 0 @indent__s; |
| 21 | + |
| 22 | + .toolbar { |
36 | 23 | &:extend(.abs-add-clearfix all);
|
37 |
| - .pages { |
38 |
| - display: none; |
39 |
| - .products.wrapper ~ & { |
40 |
| - display: block; |
| 24 | + &-amount { |
| 25 | + display: block; |
| 26 | + line-height: @toolbar-mode-icon-font-size+2; |
| 27 | + margin: 0; |
| 28 | + padding: 8px 0 0; |
| 29 | + vertical-align: middle; |
| 30 | + .products.wrapper ~ .toolbar & { |
| 31 | + display: none; |
41 | 32 | }
|
42 | 33 | }
|
43 |
| - .limiter { |
44 |
| - display: none; |
45 |
| - .control { |
46 |
| - display: inline-block; |
| 34 | + &-products { |
| 35 | + margin-bottom: @indent__xl; |
| 36 | + padding: 0 @indent__s; |
| 37 | + text-align: center; |
| 38 | + &:extend(.abs-add-clearfix all); |
| 39 | + .pages { |
| 40 | + display: none; |
| 41 | + .products.wrapper ~ & { |
| 42 | + display: block; |
| 43 | + } |
| 44 | + } |
| 45 | + .limiter { |
| 46 | + display: none; |
| 47 | + .control { |
| 48 | + display: inline-block; |
| 49 | + } |
47 | 50 | }
|
48 | 51 | }
|
49 | 52 | }
|
50 |
| -} |
51 | 53 |
|
52 |
| -.sorter { |
53 |
| - padding: 4px 0 0; |
54 |
| - .products.wrapper ~ .toolbar & { |
55 |
| - display: none; |
56 |
| - } |
57 |
| - &-options { |
58 |
| - margin: 0 0 0 7px; |
59 |
| - width: auto; |
60 |
| - } |
61 |
| - &-action { |
62 |
| - vertical-align: top; |
63 |
| - .lib-icon-font( |
| 54 | + .sorter { |
| 55 | + padding: 4px 0 0; |
| 56 | + .products.wrapper ~ .toolbar & { |
| 57 | + display: none; |
| 58 | + } |
| 59 | + &-options { |
| 60 | + margin: 0 0 0 7px; |
| 61 | + width: auto; |
| 62 | + } |
| 63 | + &-action { |
| 64 | + vertical-align: top; |
| 65 | + .lib-icon-font( |
64 | 66 | @icon-arrow-up,
|
65 | 67 | @_icon-font-size: 28px,
|
66 | 68 | @_icon-font-line-height: 32px,
|
67 | 69 | @_icon-font-color: @header-icons-color,
|
68 | 70 | @_icon-font-color-hover: @header-icons-color-hover,
|
69 | 71 | @_icon-font-text-hide: true
|
70 |
| - ); |
71 |
| - &.sort-desc:before { |
72 |
| - content: @icon-arrow-down; |
| 72 | + ); |
| 73 | + &.sort-desc:before { |
| 74 | + content: @icon-arrow-down; |
| 75 | + } |
73 | 76 | }
|
74 | 77 | }
|
75 |
| -} |
76 | 78 |
|
77 |
| -.modes { |
78 |
| - display: none; |
79 |
| -} |
80 |
| - |
81 |
| -.limiter { |
82 |
| - &-options { |
83 |
| - width: auto; |
84 |
| - margin: 0 5px 0 7px; |
85 |
| - } |
86 |
| - &-label { |
87 |
| - font-weight: 400; |
88 |
| - } |
89 |
| - .page-products .toolbar & { |
| 79 | + .modes { |
90 | 80 | display: none;
|
91 | 81 | }
|
92 |
| -} |
93 | 82 |
|
| 83 | + .limiter { |
| 84 | + &-options { |
| 85 | + width: auto; |
| 86 | + margin: 0 5px 0 7px; |
| 87 | + } |
| 88 | + &-label { |
| 89 | + font-weight: 400; |
| 90 | + } |
| 91 | + .page-products .toolbar & { |
| 92 | + display: none; |
| 93 | + } |
| 94 | + } |
94 | 95 | }
|
95 | 96 |
|
96 | 97 | //
|
97 |
| -// Mobile |
98 |
| -// --------------------------------------------- |
| 98 | +// Desctop |
| 99 | +// _____________________________________________ |
99 | 100 |
|
100 | 101 | .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
|
101 |
| - .page-products .columns { |
102 |
| - position: relative; |
103 |
| - z-index: 1; |
104 |
| - padding-top: 0; |
| 102 | + .page-products { |
| 103 | + .columns { |
| 104 | + padding-top: 0; |
| 105 | + position: relative; |
| 106 | + z-index: 1; |
| 107 | + } |
105 | 108 | }
|
| 109 | + |
106 | 110 | .toolbar {
|
107 | 111 | .products.wrapper ~ & .pages {
|
108 | 112 | float: left;
|
|
111 | 115 | float: left;
|
112 | 116 | }
|
113 | 117 | }
|
| 118 | + |
114 | 119 | .sorter {
|
115 | 120 | float: right;
|
116 | 121 | }
|
| 122 | + |
117 | 123 | .modes {
|
118 |
| - float: left; |
119 | 124 | display: inline-block;
|
| 125 | + float: left; |
120 | 126 | margin-right: @indent__base;
|
| 127 | + |
121 | 128 | .products.wrapper ~ .toolbar & {
|
122 | 129 | display: none;
|
123 | 130 | }
|
| 131 | + |
124 | 132 | &-label {
|
125 | 133 | &:extend(.abs-visually-hidden-desktop-s all);
|
126 | 134 | }
|
| 135 | + |
127 | 136 | &-mode {
|
128 | 137 | .lib-css(color, @text__color__muted);
|
129 | 138 | border: 1px solid @border-color__base;
|
|
134 | 143 | padding: 7px 10px;
|
135 | 144 | text-align: center;
|
136 | 145 | &:not(.active):hover {
|
137 |
| - background: darken(@toolbar-element-background, 7%); |
138 | 146 | .lib-css(color, @text__color__muted);
|
| 147 | + background: darken(@toolbar-element-background, 7%); |
139 | 148 | }
|
140 | 149 | &:last-child {
|
141 | 150 | border-right: 1px solid @border-color__base;
|
|
144 | 153 | .lib-css(color, @primary__color__light);
|
145 | 154 | }
|
146 | 155 | .lib-icon-font(
|
147 |
| - @icon-grid, |
148 |
| - @_icon-font-size: @toolbar-mode-icon-font-size, |
149 |
| - @_icon-font-text-hide: true |
| 156 | + @icon-grid, |
| 157 | + @_icon-font-size: @toolbar-mode-icon-font-size, |
| 158 | + @_icon-font-text-hide: true, |
| 159 | + @_icon-font-color: @text__color__muted, |
| 160 | + @_icon-font-color-hover: @text__color__muted |
150 | 161 | );
|
151 | 162 | }
|
152 | 163 | }
|
| 164 | + |
153 | 165 | .mode-list {
|
154 | 166 | .lib-icon-font-symbol(@icon-list);
|
155 | 167 | }
|
| 168 | + |
156 | 169 | .limiter {
|
157 | 170 | float: right;
|
158 | 171 | .products.wrapper ~ .toolbar & {
|
|
0 commit comments