forked from randyau/datawebring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathonionring.css
47 lines (38 loc) · 1.41 KB
/
onionring.css
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
/* onionring.js is made up of four files - onionring-widget.js, onionring-index.js, onionring-variables.js and onionring.css (this one!)
// it's licensed under the cooperative non-violent license (CNPL) v4+ (https://thufie.lain.haus/NPL.html)
// it was originally made by joey + mord of allium (蒜) house, last updated 2020-10-24 */
/* === ONIONRING.CSS === */
/* this file affects the style of the widget. remember to replace all instances of #webringid with whatever value you have for ringID in the onionring-widget.js file. make sure it still has the # at the front, though! probably easiest to use find+replace to do it */
#data-ring-dot-list {
margin: 0 auto;
padding: 15px; /* creates some space around the widget */
}
#data-ring-dot-list table {
margin: 0 auto; /* centers the widget */
border: 2px solid slategray; /* a bit of border */
/*
--bg-color: var(--main-bg-color);
background-color: var(--bg-color);
*/
}
#data-ring-dot-list table tr td {
padding: 15px; /* creates some space between the links and text inside the widget */
}
#data-ring-dot-list .webring-prev {
text-align: right;
}
#data-ring-dot-list .webring-info {
text-align: center;
}
/* Dark mode styles */
@media (prefers-color-scheme: dark) {
:root {
--main-bg-color: #121212;
}
}
/* Light mode styles */
@media (prefers-color-scheme: light) {
:root {
--main-bg-color: #ffffff;
}
}