Repository navigation
Expand file tree
/
Copy pathextra.css
More file actions
161 lines (133 loc) · 3.3 KB
/
Copy pathextra.css
File metadata and controls
161 lines (133 loc) · 3.3 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[data-md-color-scheme="default"] {
--md-primary-fg-color: #2f8bff;
--md-accent-fg-color: #1f5db0;
--md-accent-fg-color--transparent: #1f5db0;
}
[data-md-color-scheme="slate"] {
--md-hue: 200;
--md-primary-fg-color: #2f8bff;
--md-accent-fg-color: #1f5db0;
--md-accent-fg-color--transparent: #1f5db0;
}
/* Latest news cards on the home page (generated by hooks/latest_posts.py) */
.latest-posts > ul > li {
position: relative;
display: flex;
flex-direction: column;
}
/* Stretch the title link over the whole card */
.latest-posts > ul > li strong a::after {
content: "";
position: absolute;
inset: 0;
}
.latest-posts__meta {
display: block;
font-size: .7rem;
color: var(--md-default-fg-color--light);
}
.latest-posts__more {
margin-top: auto;
font-size: .7rem;
color: var(--md-accent-fg-color);
}
[data-md-color-scheme="slate"] .latest-posts__more {
color: var(--md-primary-fg-color);
}
/* Material's pin badge (md-pin) is a flex item on the Announcements page - align it inline here */
.latest-posts__meta .md-pin {
display: inline-block;
vertical-align: middle;
}
/* Sponsor logo grids (sponsors.md). Logo boxes have a 3:1 maximum aspect ratio: small 64 px high / max 192 px
wide, large 128 px high / max 384 px wide, clear space 16 / 32 px. A logo wider than its box is scaled down
to fit, keeping its aspect ratio (object-fit: contain). Past sponsors use the small box, grayscale and faded. */
.sponsor-grid {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .5rem 1rem;
margin: 1rem 0 1.5rem;
}
.sponsor-grid > p {
margin: 0;
}
.sponsor-grid a {
display: inline-block;
}
.sponsor-grid img {
display: block;
width: auto;
object-fit: contain;
}
.sponsor-grid--large a {
padding: 32px;
}
.sponsor-grid--large img {
height: 128px;
max-width: 384px;
}
.sponsor-grid--small a {
padding: 16px;
}
.sponsor-grid--small img {
height: 64px;
max-width: 192px;
}
.sponsor-grid--past a {
padding: 16px;
}
.sponsor-grid--past img {
height: 64px;
max-width: 192px;
filter: grayscale(100%);
opacity: .55;
}
.sponsor-grid--text {
gap: .25rem 1.5rem;
}
/* Sponsors who supply separate light and dark logos: add .logo-light / .logo-dark to the images */
.logo-dark {
display: none !important;
}
[data-md-color-scheme="slate"] .logo-light {
display: none !important;
}
[data-md-color-scheme="slate"] .logo-dark {
display: block !important;
}
/* Footer: make the sponsor and cookie links stand out from the copyright text */
.md-copyright a.footer-sponsor {
display: inline-flex;
overflow: hidden;
margin: 0 .4rem;
font-size: .65rem;
font-weight: 600;
line-height: 1;
color: #fff;
text-decoration: none;
vertical-align: middle;
border-radius: .2rem;
}
.footer-sponsor__label,
.footer-sponsor__name {
padding: .3rem .5rem;
}
.footer-sponsor__label {
background: #555;
}
.footer-sponsor__name {
background: #ea4aaa;
}
.md-copyright a.footer-sponsor:hover {
color: #fff;
opacity: .85;
}
.md-copyright a.footer-cookies {
color: var(--md-footer-fg-color);
text-decoration: underline;
text-underline-offset: .15em;
}
.md-copyright a.footer-cookies:hover {
color: var(--md-accent-fg-color);
}