|
3 | 3 |
|
4 | 4 | .partners .results {
|
5 | 5 | padding: 2rem 0 20rem;
|
| 6 | + width: 100%; |
| 7 | + max-width: $content-max; |
| 8 | + margin: 0 auto; |
6 | 9 |
|
7 | 10 | @include width-up-to($phone-max) {
|
| 11 | + grid-template-columns: 100%; |
8 | 12 | padding: 0 $normal-margin 6rem;
|
9 | 13 | }
|
10 | 14 |
|
11 | 15 | @include wider-than($phone-max) {
|
12 | 16 | min-height: 60rem;
|
13 | 17 | }
|
14 | 18 |
|
15 |
| - >:first-child { |
16 |
| - @include width-up-to($phone-max) { |
17 |
| - margin-bottom: $normal-margin; |
| 19 | + .result-columns { |
| 20 | + align-items: start; |
| 21 | + display: grid; |
| 22 | + gap: 4rem; |
| 23 | + grid-template-columns: calc(100% - 38rem) 34rem; |
| 24 | + max-width: 100%; |
| 25 | + |
| 26 | + @include width-up-to($tablet-max) { |
| 27 | + grid-template-columns: 100%; |
| 28 | + gap: 5rem; |
18 | 29 | }
|
19 | 30 |
|
20 |
| - @include wider-than($phone-max) { |
21 |
| - margin-bottom: 3rem; |
| 31 | + .result-column { |
| 32 | + display: flex; |
| 33 | + flex-direction: column; |
| 34 | + justify-content: center; |
| 35 | + gap: 5rem; |
| 36 | + } |
| 37 | + } |
| 38 | + |
| 39 | + .heading-and-result-grid { |
| 40 | + border: thin solid os-color(light-blue); |
| 41 | + border-top-width: 1.1rem; |
| 42 | + margin: 0 auto; |
| 43 | + max-width: 100%; |
| 44 | + padding: 4rem; |
| 45 | + |
| 46 | + &.results-10 { |
| 47 | + border-color: os-color(gold); |
| 48 | + } |
| 49 | + |
| 50 | + &.results-7 { |
| 51 | + border-color: os-color(deep-green); |
| 52 | + } |
| 53 | + |
| 54 | + &.results-4 { |
| 55 | + border-color: os-color(orange); |
| 56 | + } |
| 57 | + |
| 58 | + &.results-1 { |
| 59 | + border-color: os-color(yellow); |
| 60 | + } |
| 61 | + |
| 62 | + &.results-new { |
| 63 | + border-color: os-color(blue); |
22 | 64 | }
|
23 | 65 | }
|
24 | 66 |
|
25 |
| - h2 { |
26 |
| - margin: 0; |
| 67 | + h3 { |
| 68 | + @include title-font(2.6rem); |
| 69 | + margin-bottom: 2rem; |
27 | 70 | width: 100%;
|
28 | 71 | text-align: center;
|
29 |
| - background-color: ui-color(form-border); |
30 |
| - padding: $normal-margin 0; |
31 |
| - border: thin solid ui-color(black); |
32 | 72 | }
|
33 | 73 |
|
34 | 74 | /*
|
|
49 | 89 |
|
50 | 90 | @mixin partner-grid {
|
51 | 91 | display: grid;
|
52 |
| - grid-auto-rows: minmax(min-content, 100%); |
53 |
| - padding: 0; |
54 |
| - |
55 |
| - @include width-between($phone-max, $first-break) { |
56 |
| - grid-template-columns: repeat(2, 1fr); |
57 |
| - } |
58 |
| - @include width-between($first-break, $second-break) { |
59 |
| - grid-template-columns: repeat(3, 1fr); |
60 |
| - } |
61 |
| - @include width-between($second-break, $third-break) { |
62 |
| - grid-template-columns: repeat(4, 1fr); |
63 |
| - } |
64 |
| - @include wider-than($third-break) { |
65 |
| - grid-template-columns: repeat(5, 1fr); |
66 |
| - } |
| 92 | + grid-template-columns: repeat(auto-fill, 21rem); |
| 93 | + justify-content: center; |
67 | 94 |
|
68 | 95 | @include width-up-to($phone-max) {
|
69 | 96 | grid-gap: 1.5rem;
|
70 |
| - justify-content: center; |
| 97 | + grid-template-columns: auto; |
71 | 98 | }
|
72 | 99 |
|
73 | 100 | @include wider-than($phone-max) {
|
74 | 101 | grid-gap: 3rem;
|
75 |
| - justify-content: left; |
76 | 102 | }
|
77 | 103 |
|
78 | 104 | .partner-card {
|
|
82 | 108 |
|
83 | 109 | @mixin partner-card {
|
84 | 110 | background-color: ui-color(white);
|
85 |
| - border-radius: 0.3rem; |
86 |
| - box-shadow: $card-shadow; |
| 111 | + border: thin solid os-color(light-gray); |
87 | 112 | color: inherit;
|
88 | 113 | display: grid;
|
89 | 114 | grid-row-gap: 1rem;
|
|
156 | 181 |
|
157 | 182 | .boxed {
|
158 | 183 | gap: 3rem;
|
159 |
| - padding: 0; |
160 | 184 |
|
161 | 185 | @include width-up-to($phone-max) {
|
162 | 186 | gap: $normal-margin;
|
|
0 commit comments