0001-scss-use-more-bulletproof-selector-for-float-grid-el.patch
static/includes/_grid.scss | ||
---|---|---|
1 | 1 |
$grid-gutter: 1rem !default; |
2 | 2 | |
3 |
div.cell[class*=grid-], |
|
4 |
div.dataview div[class*=grid-], |
|
5 |
form.quixote div[class*=grid-] { |
|
6 |
clear: none; |
|
7 |
&.newline { |
|
8 |
clear: both; |
|
9 |
} |
|
10 |
} |
|
11 | 3 | |
12 |
div[class*=grid-] { |
|
4 |
div[class^='grid-'], |
|
5 |
div[class*=' grid-'] { |
|
13 | 6 |
float: left; |
14 | 7 |
padding-right: $grid-gutter; |
15 | 8 |
@media screen and (max-width: $very-small-limit) { |
... | ... | |
28 | 21 |
&.newline { |
29 | 22 |
clear: both; |
30 | 23 |
} |
31 |
} |
|
32 | 24 | |
33 |
div.dataview div[class*=grid-], |
|
34 |
form div[class*=grid-] { |
|
25 |
&.cell, |
|
26 |
div.dataview &, |
|
27 |
form.quixote & { |
|
28 |
clear: none; |
|
29 |
&.newline { |
|
30 |
clear: both; |
|
31 |
} |
|
32 |
} |
|
33 | ||
34 |
div.dataview &, |
|
35 |
form & { |
|
35 | 36 |
@if $grid-gutter != 0px { |
36 | 37 |
box-sizing: content-box; |
37 | 38 |
} @else { |
... | ... | |
42 | 43 |
// "absorbed" by the floating element. |
43 | 44 |
padding-top: 1rem; |
44 | 45 |
} |
45 |
} |
|
46 |
}
|
|
46 | 47 | |
47 |
form div[class*=grid-] {
|
|
48 |
form & {
|
|
48 | 49 |
~ h3, ~ h4, ~ p, + div { |
49 | 50 |
clear: both; |
50 | 51 |
} |
51 |
} |
|
52 |
span.select2-selection, |
|
53 |
div.select2-container { |
|
54 |
width: 100% !important; |
|
55 |
} |
|
56 |
} |
|
52 | 57 | |
53 |
div.dataview div[class*=grid-] {
|
|
58 |
div.dataview & {
|
|
54 | 59 |
~ div.title, ~ div.subtitle { |
55 | 60 |
clear: both; |
56 | 61 |
} |
57 |
} |
|
58 | ||
59 |
form div[class*=grid-] span.select2-selection, |
|
60 |
form div[class*=grid-] div.select2-container { |
|
61 |
width: 100% !important; |
|
62 |
} |
|
62 |
} |
|
63 | 63 | |
64 |
@if $grid-gutter != 0px { |
|
64 |
@if $grid-gutter != 0px {
|
|
65 | 65 |
// only define property if some gutter is requested |
66 |
.gru-content #columns > .cell[class*=grid-] {
|
|
66 |
.gru-content #columns > &.cell {
|
|
67 | 67 |
padding-right: 0; |
68 | 68 |
margin-right: $grid-gutter; |
69 | 69 |
} |
70 |
} |
|
70 | 71 |
} |
71 | 72 | |
72 | 73 |
// compute width of elements |
73 |
- |