1
- $size--brands-per-row : 5 ;
2
- $size--brands-per-row-tablet : 3 ;
3
- $size--brand-width : 100% / $size--brands-per-row ;
4
- $size--brand-width-tablet : 100% / $size--brands-per-row-tablet ;
5
- $size--brand-width-small : 100% ;
6
- $size--item-width : 70% ;
7
- $size--item-width-tablet : 80% ;
8
- $size--item-width-small : 40% ;
1
+ .container-extended {
2
+ @extend .container-fluid ;
9
3
10
- .site-brands-container {
11
- background-color : $hint-of-red ;
12
- padding : $space * 2.5 0 ;
4
+ @media #{ $from-medium-resolutions } {
5
+ max-width : $bootstrap-md ;
6
+ }
13
7
14
- @media #{$just-medium -resolutions } {
15
- padding : $space * 2 0 ;
8
+ @media #{$from-large -resolutions } {
9
+ max-width : $bootstrap-lg ;
16
10
}
17
11
}
18
12
19
- .site-brands {
20
- display : flex ;
21
- justify-content : center ;
22
- flex-direction : row ;
23
- flex-wrap : wrap ;
24
- list-style : none ;
25
- padding : 0 ;
26
- margin : 0 ;
27
- width : 100% ;
28
-
29
- li {
30
- display : inline-block ;
31
- width : $size--brand-width ;
13
+ .site-brands-container {
14
+ background-color : $hint-of-red ;
15
+ padding : $space * 2 0 0 ;
32
16
33
- a {
34
- display : block ;
35
- width : $size--item-width ;
36
- margin : 0 auto ;
37
- cursor : pointer ;
38
- }
17
+ @media #{$from-medium-resolutions } {
18
+ padding : $space * 2.25 0 ;
19
+ }
20
+ }
39
21
40
- img {
41
- width : 100% ;
42
- display : block ;
43
- margin : 0 auto ;
44
- }
22
+ .brand-logo {
23
+ img {
24
+ object-fit : contain ;
45
25
}
26
+ }
46
27
47
- @media #{$just-medium-resolutions } {
48
- li {
49
- width : $size--brand-width ;
28
+ .col-brand {
29
+ width : 100% ;
50
30
51
- a {
52
- width : $size--item-width-tablet ;
53
- }
54
- }
31
+ @media #{$from-small-resolutions } {
32
+ width : 20% ;
55
33
}
34
+ }
56
35
57
- @media #{$just-very-small-resolutions } {
58
- li {
59
- width : $size--brand-width-small ;
60
-
61
- a {
62
- width : $size--item-width-small ;
63
- }
36
+ .site-brand {
37
+ margin : 0 auto $space * 2 ;
38
+ text-align : center ;
39
+ width : 120px ;
64
40
65
- & + li {
66
- margin-top : $space ;
67
- }
68
- }
41
+ @media #{$from-medium-resolutions } {
42
+ width : 140px ;
43
+ margin-bottom : 0 ;
69
44
}
70
-
71
- }
45
+ }
0 commit comments