-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsponsors.scss
More file actions
116 lines (100 loc) · 2.15 KB
/
Copy pathsponsors.scss
File metadata and controls
116 lines (100 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
ul.sponsor-list {
list-style: none;
li {
margin-bottom: 1em;
&:last-of-type {
margin-bottom: 0;
}
}
}
.sponsor-level {
display: flex;
align-items: center;
flex-direction: column;
&:nth-of-type(even) {
flex-direction: column-reverse;
@include media-query("medium") {
flex-direction: row;
}
}
// if large enough screen display images and
// descriptions side by side
@include media-query("medium") {
flex-direction: row;
}
div:nth-child(odd) {
padding-right: 0;
}
.sponsor-level-image:nth-child(even) {
padding-left: 0;
}
}
.sponsor-level-image {
display: flex;
align-items: center;
}
.sponsor-level-description {
display: flex;
flex-direction: column;
align-items: center;
h3 {
margin-bottom: 0;
}
h4 {
color: $sr-orange;
}
ul {
list-style: none;
}
li {
// Ensure wrapping aligns with the start of the text, not with the bullet marker
padding-left: 1.5rem;
position: relative;
// Don't get too close to the images on the other side
padding-right: 0.5rem;
// Replace the marker with our custom checkmark. We can't use
// `list-style-image` here as we need to be able to style the image.
&:before {
margin: initial;
padding: initial;
content: "";
display: inline-block;
height: 1rem;
width: 1rem;
background-image: url("#{$image-directory}/icons/check.svg");
background-size: contain;
background-repeat: no-repeat;
position: absolute;
top: 0.25rem; // account for line-height
left: 0;
}
}
}
.sponsor-submission-result {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
border-radius: 3px;
padding: 1rem;
font-size: 18px;
margin-bottom: 1rem;
}
.sponsor-submission-success {
background-color: #dff0d8;
}
.sponsor-submission-error {
background-color: #f2dede;
}
.sponsor-row {
display: flex;
justify-content: center;
flex-flow: wrap;
row-gap: 0.5rem;
div {
padding: 0.2em 0.7em;
}
}
// not just 'sponsor-logo' to avoid ad blockers hiding them.
.charity-sponsor-logo {
display: flex;
align-items: center;
justify-content: center;
}