aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static/css/resources/resources.css
blob: 3bf5ade45eff0b95d87f33d9c5978d129258e4f0 (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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
/* Colors for icons */
i.resource-icon.is-orangered {
    color: #FE640A;
}
i.resource-icon.is-blurple {
    color: #7289DA;
}
i.resource-icon.is-teal {
    color: #95DBE5;
}
i.resource-icon.is-youtube-red {
    color: #BB0000;
}
i.resource-icon.is-black {
    color: #2c3334;
}

/* Colors when icons are hovered */
i.resource-icon.is-hoverable:hover {
    filter: brightness(125%);
}
i.resource-icon.is-hoverable.is-black:hover {
    filter: brightness(170%);
}
i.resource-icon.is-hoverable.is-teal:hover {
    filter: brightness(80%);
}

/* Icon padding */
.breadcrumb-section {
    padding: 1rem;
}
i.has-icon-padding {
    padding: 0 10px 25px 0;
}
#tab-content p {
    display: none;
}
#tab-content p.is-active {
    display: block;
}

/* Disable highlighting for all text in the filters. */
.filter-checkbox,
.filter-panel label,
.card-header span {
    user-select: none
}

/* Remove pointless margin in panel header */
#filter-panel-header {
    margin-bottom: 0;
}

/* Full width filter cards */
#resource-filtering-panel .card .collapsible-content .card-content {
    padding:0
}

/* Don't round the corners of the collapsibles */
.filter-category-header {
    border-radius: 0;
}

/* Make the checkboxes indent under the filter headers */
.filter-category-header .card-header .card-header-title {
    padding-left: 0;
}
.filter-panel {
    padding-left: 1.5rem;
}
.filter-checkbox {
    margin-right: 0.25em !important;
}

/* Style the search bar */
#resource-search {
    margin: 0.25em 0.25em 0 0.25em;
}

/* Center the 404 div */
.no-resources-found {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 1em;
}

/* Make sure jQuery will use flex when setting `show()` again. */
.no-resources-found[style*='display: block'] {
    display: flex !important;
}

/* By default, we hide the search tag. We'll add it only when there's a search happening. */
.tag.search-query {
    display: none;
    min-width: fit-content;
    max-width: fit-content;
    padding-right: 2em;
}
.tag.search-query .inner {
    display: inline-block;
    padding: 0;
    max-width: 16.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 2em;
}
.tag.search-query i {
    margin: 0 !important;
    display: inline-block;
    line-height: 2em;
    float: left;
    padding-right: 1em;
}

/* Don't allow the tag pool to exceed its parent containers width. */
#tag-pool {
    max-width: 100%;
}

/* Disable clicking on the checkbox itself. */
/* Instead, we want to let the anchor tag handle clicks. */
.filter-checkbox {
    pointer-events: none;
}

/* Blurple category icons */
i.is-primary {
    color: #7289da;
}

/* A little space above the filter card, please! */
.filter-tags {
    padding-bottom: .5em;
}

/* Style the close all filters button */
.close-filters-button {
    margin-left: auto;
    display:none;
}
.close-filters-button a {
    height: fit-content;
    width: fit-content;
    margin-right: 6px;
}
.close-filters-button a i {
    color: #939bb3;
}
.close-filters-button a i:hover {
    filter: brightness(115%);
}

/* When hovering title anchors, just make the color a lighter primary, not black. */
[data-theme="light"] .resource-box a:hover {
    filter: brightness(120%);
    color: #7289DA;
}

[data-theme="dark"] .resource-box a:hover {
    color: white;
}

/* Set default display to inline-flex, for centering. */
span.filter-box-tag {
    display: none;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

/* Make sure jQuery will use inline-flex when setting `show()` again. */
span.filter-box-tag[style*='display: block'] {
    display: inline-flex !important;
}

/* Make resource tags clickable */
.resource-tag {
    cursor: pointer;
    user-select: none;
}

/* Give the resource tags a bit of breathing room */
.resource-tag-container {
    padding-left: 1.5rem;
}

/* When hovering tags, brighten them a bit. */
.resource-tag:hover,
.filter-box-tag:hover {
    filter: brightness(95%);
}

/* Move the x down 1 pixel to align center */
button.delete {
    margin-top: 1px;
}

/* Colors for delete button x's */
[data-theme="light"] button.delete.is-primary::before,
[data-theme="light"] button.delete.is-primary::after {
    background-color: #2a45a2;
}
[data-theme="light"] button.delete.is-success::before,
[data-theme="light"] button.delete.is-success::after {
    background-color: #2c9659;
}
[data-theme="light"] button.delete.is-danger::before,
[data-theme="light"] button.delete.is-danger::after {
    background-color: #c32841;
}
[data-theme="light"] button.delete.is-info::before,
[data-theme="light"] button.delete.is-info::after {
    background-color: #237fbd;
}
[data-theme="dark"] button.delete::before,
[data-theme="dark"] button.delete::after {
    background-color: #FFFFFF;
}

/* Give outlines to active tags */
span.filter-box-tag,
span.resource-tag.active,
.tag.search-query {
    outline-width: 1px;
    outline-style: solid;
}

/* Disable transitions */
.no-transition {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

/* Make filter tags sparkle when selected! */
@keyframes glow_success {
    from { box-shadow: 0 0 2px 2px #aef4af; }
    33% { box-shadow: 0 0 2px 2px #87af7a; }
    66% { box-shadow: 0 0 2px 2px #9ceaac; }
    to { box-shadow: 0 0 2px 2px #7cbf64; }
}

@keyframes glow_primary {
    from { box-shadow: 0 0 2px 2px #aeb8f3; }
    33% { box-shadow: 0 0 2px 2px #909ed9; }
    66% { box-shadow: 0 0 2px 2px #6d7ed4; }
    to { box-shadow: 0 0 2px 2px #6383b3; }
}

@keyframes glow_danger {
    from { box-shadow: 0 0 2px 2px #c9495f; }
    33% { box-shadow: 0 0 2px 2px #92486f; }
    66% { box-shadow: 0 0 2px 2px #d455ba; }
    to { box-shadow: 0 0 2px 2px #ff8192; }
}
@keyframes glow_info {
    from { box-shadow: 0 0 2px 2px #4592c9; }
    33% { box-shadow: 0 0 2px 2px #6196bb; }
    66% { box-shadow: 0 0 2px 2px #5adade; }
    to { box-shadow: 0 0 2px 2px #6bcfdc; }
}

span.resource-tag.active.is-primary {
    animation: glow_primary 4s infinite alternate;
}
span.resource-tag.active.has-background-danger-light {
    animation: glow_danger 4s infinite alternate;
}
span.resource-tag.active.has-background-success-light {
    animation: glow_success 4s infinite alternate;
}
span.resource-tag.active.has-background-info-light {
    animation: glow_info 4s infinite alternate;
}

/* Smaller filter category headers when on mobile */
@media screen and (max-width: 480px) {
    .filter-category-header .card-header .card-header-title {
        font-size: 14px;
        padding: 0;
    }
    .filter-panel {
        padding-top: 4px;
        padding-bottom: 4px;
    }
    .tag.search-query .inner {
        max-width: 16.2rem;
    }
}

/* Constrain the width of the filterbox */
@media screen and (min-width: 769px) {
    .filtering-column {
        max-width: 25rem;
        min-width: 18rem;
    }
}