aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static/css/base/base.css
blob: 150c0287d2fdb23ff776a07f290161c57c3dc15d (plain) (blame)
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
html {
    overflow: auto;
    scroll-behavior: smooth;
}

body.site {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main.site-content {
    flex: 1;
}

.card.has-equal-height {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.navbar {
    padding-right: 0.8em;
}

[data-theme="dark"] .navbar.is-primary {
    background-color: #3B4774;
}

/* No good way other than this for now, because the item hover background setting
 * applies only for a navbar without is-primary.
 */
@media screen and (min-width: 1024px) {
    [data-theme="dark"] .navbar.is-primary .navbar-end > a.navbar-item:hover,
    [data-theme="dark"] .navbar.is-primary .navbar-item.has-dropdown:hover .navbar-link {
        background-color: #455382;
    }
}

.navbar-item .navbar-link {
    padding-left: 1.5em;
    padding-right: 2.5em;
}

.navbar-link:not(.is-arrowless)::after {
    right: 1.125em;
    margin-top: -0.455em;
}

.navbar-item.has-no-highlight:hover {
    background-color: transparent;
}

#navbar-banner {
    background-color: transparent;
}

#navbar-banner img {
    max-height: 3rem;
}

#discord-btn a {
    color: transparent;
    background-image: url(../../images/navbar/discord.svg);
    background-size: 200%;
    background-position: 100% 50%;
    background-repeat: no-repeat;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    background-color: #697ec4ff;
    transition: all 0.2s cubic-bezier(.25,.8,.25,1);
    overflow: hidden;
}

[data-theme="dark"] #discord-btn a {
    background-color: #58689cff;
}

#discord-btn:hover a {
    box-shadow: 0 1px 4px rgba(0,0,0,0.16), 0 1px 6px rgba(0,0,0,0.23);
    /*transform: scale(1.03) translate3d(0,0,0);*/
    background-size: 200%;
    background-position: 1% 50%;
}

#discord-btn:hover {
    background-color: transparent;
}

#linode-logo {
    padding-left: 15px;
    background: url(https://www.linode.com/wp-content/uploads/2021/01/Linode-Logo-Black.svg) no-repeat center;
    filter: invert(1) grayscale(1);
    background-size: 60px;
    color: #00000000;
}

#netcup-logo {
    padding-left: 15px;
    background: url(/static/images/sponsors/netcup-white.svg) no-repeat center;
    background-size: 60px;
    background-position: 0px 3px;
    color: #00000000;
}

#django-logo {
    padding-bottom: 2px;
    background: url(https://static.djangoproject.com/img/logos/django-logo-negative.svg) no-repeat center;
    filter: grayscale(1) invert(0.09);
    background-size: 52px 25.5px;
    background-position: -2px -1px;
    color: #00000000;
}

#bulma-logo {
    padding-left: 18px;
    height: 20px;
    background: url(https://bulma.io/images/bulma-logo-white.png) no-repeat center;
    background-size: 60px;
    background-position: 0px 3px;
    color: #00000000;
}

#pydis-text {
    font-weight: bold;
}


/* Navbar "more" menu should be on top of messages. I could not figure
 * out a better way to fix this one without just applying a high z-index
 * to everything - anyone have any better ideas? Does it matter since the
 * navbar should be above everything anyway?
 */

.navbar, .navbar * {
    z-index: 1001;
}

/* Fix for logout form submit button in navbar */

button.is-size-navbar-menu, a.is-size-navbar-menu {
    font-size: 14px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media screen and (min-width: 1088px) {
    button.is-size-navbar-menu, a.is-size-navbar-menu {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 16:9 aspect ratio fixing */
.force-aspect-container {
    position: relative;
    padding-bottom: 56.25%;
}

.force-aspect-content {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

/* 16:9 aspect ratio fixing */
.force-aspect-container {
    position: relative;
    padding-bottom: 56.25%;
}

.force-aspect-content {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

/* Tone down animations to avoid motion triggers */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

[data-theme="dark"] .button.is-primary, .button.is-link {
    background-color: #5365A4;
}

[data-theme="dark"] .button.is-primary:hover, .button.is-primary.is-hovered,
[data-theme="dark"] .button.is-link:hover, .button.is-link.is-hovered {
    background-color: #6276BC;
}

[data-theme="dark"] .light-image {
    display: none;
}

[data-theme="light"] .dark-image {
    display: none;
}