|
92 | 92 | // ------------------------------ |
93 | 93 |
|
94 | 94 | @include flex-properties-for-name(); |
95 | | -[hide]:not([show]):not([show-sm]):not([show-md]):not([show-lg]):not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]) { |
| 95 | +[hide]:not([show]) { |
96 | 96 | display: none; |
97 | 97 | } |
98 | 98 |
|
99 | 99 | @media (max-width: $layout-breakpoint-sm) { |
100 | | - [hide-sm]:not([show-sm]) { |
101 | | - display: none; |
| 100 | + [hide-sm], [hide] { |
| 101 | + &:not([show-sm]) { |
| 102 | + display: none; |
| 103 | + } |
102 | 104 | } |
103 | 105 |
|
104 | 106 | @include layout-for-name(sm); |
105 | 107 | @include flex-properties-for-name(sm); |
106 | 108 | } |
107 | 109 | @media (min-width: $layout-breakpoint-sm) { |
108 | | - [hide-gt-sm]:not([show-gt-sm]):not([show-md]):not([show-gt-md]):not([show-lg]):not([show-gt-lg]) { |
109 | | - display: none; |
| 110 | + [hide-gt-sm], [hide] { |
| 111 | + &:not([show-gt-sm]):not([show-md]):not([show-gt-md]):not([show-lg]):not([show-gt-lg]) { |
| 112 | + display: none; |
| 113 | + } |
110 | 114 | } |
111 | 115 |
|
112 | 116 | @include layout-for-name(gt-sm); |
113 | 117 | @include flex-properties-for-name(gt-sm); |
114 | 118 | } |
115 | 119 |
|
116 | 120 | @media (min-width: $layout-breakpoint-sm) and (max-width: $layout-breakpoint-md) { |
117 | | - [hide-md]:not([show-md]) { |
118 | | - display: none; |
| 121 | + [hide-md], [hide] { |
| 122 | + &:not([show-md]) { |
| 123 | + display: none; |
| 124 | + } |
119 | 125 | } |
120 | 126 |
|
121 | 127 | @include layout-for-name(md); |
122 | 128 | @include flex-properties-for-name(md); |
123 | 129 | } |
124 | 130 | @media (min-width: $layout-breakpoint-md) { |
125 | | - [hide-gt-md]:not([show-gt-md]):not([show-lg]):not([show-gt-lg]) { |
126 | | - display: none; |
| 131 | + [hide-gt-md], [hide] { |
| 132 | + &:not([show-gt-md]):not([show-lg]):not([show-gt-lg]) { |
| 133 | + display: none; |
| 134 | + } |
127 | 135 | } |
128 | 136 |
|
129 | 137 | @include layout-for-name(gt-md); |
130 | 138 | @include flex-properties-for-name(gt-md); |
131 | 139 | } |
132 | 140 |
|
133 | 141 | @media (min-width: $layout-breakpoint-md) and (max-width: $layout-breakpoint-lg) { |
134 | | - [hide-lg]:not([show-lg]) { |
135 | | - display: none; |
| 142 | + [hide-lg], [hide] { |
| 143 | + &:not([show-lg]) { |
| 144 | + display: none; |
| 145 | + } |
136 | 146 | } |
137 | 147 |
|
138 | 148 | @include layout-for-name(lg); |
139 | 149 | @include flex-properties-for-name(lg); |
140 | 150 | } |
141 | 151 | @media (min-width: $layout-breakpoint-lg) { |
142 | | - [hide-gt-lg]:not([show-gt-lg]) { |
143 | | - display: none; |
| 152 | + [hide-gt-lg], [hide] { |
| 153 | + &:not([show-gt-lg]) { |
| 154 | + display: none; |
| 155 | + } |
144 | 156 | } |
145 | 157 |
|
146 | 158 | @include layout-for-name(gt-lg); |
|
0 commit comments