diff options
| author | User Content <content@content.events.ccc.de> | 2024-12-22 23:03:02 +0000 |
|---|---|---|
| committer | User Content <content@content.events.ccc.de> | 2024-12-22 23:03:02 +0000 |
| commit | 8f8a60a3b35020daedadfa041b01bda2fc163164 (patch) | |
| tree | 67be10057c9e8ddb7e8a0257edf79b9a7c110f8e /static/rater.css | |
| parent | df142fc3849671f8af421ff96a8a17e664c12318 (diff) | |
Introduce dark mode
Diffstat (limited to 'static/rater.css')
| -rw-r--r-- | static/rater.css | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/static/rater.css b/static/rater.css index b73f4a0..6f441a8 100644 --- a/static/rater.css +++ b/static/rater.css | |||
| @@ -1,5 +1,16 @@ | |||
| 1 | body { | 1 | body { |
| 2 | font-family: "HelveticaNeueLight", "HelveticaNeue-Light", "Helvetica Neue Light", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosRegular', "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; font-weight:200; font-stretch:normal; | 2 | font-family: "HelveticaNeueLight", "HelveticaNeue-Light", "Helvetica Neue Light", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosRegular', "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; font-weight:200; font-stretch:normal; |
| 3 | background-color: Canvas; | ||
| 4 | color: CanvasText; | ||
| 5 | color-scheme: light dark; | ||
| 6 | } | ||
| 7 | |||
| 8 | body.dark-mode { | ||
| 9 | color-scheme: dark; | ||
| 10 | } | ||
| 11 | |||
| 12 | body.light-mode { | ||
| 13 | color-scheme: light; | ||
| 3 | } | 14 | } |
| 4 | 15 | ||
| 5 | .username-wrapper { | 16 | .username-wrapper { |
| @@ -49,12 +60,13 @@ button { | |||
| 49 | 60 | ||
| 50 | .event-list-item { | 61 | .event-list-item { |
| 51 | vertical-align: top; | 62 | vertical-align: top; |
| 52 | background-color: #f6f6f6; | 63 | background-color: Field; |
| 53 | margin-bottom: 0.5em; | 64 | margin-bottom: 0.5em; |
| 54 | border: 1px solid silver; | 65 | border: 1px solid silver; |
| 55 | border-radius: 10px; | 66 | border-radius: 10px; |
| 56 | padding: 0 0.5em 0.5em 0.5em; | 67 | padding: 0 0.5em 0.5em 0.5em; |
| 57 | box-sizing: border-box; | 68 | box-sizing: border-box; |
| 69 | color: FieldText; | ||
| 58 | } | 70 | } |
| 59 | 71 | ||
| 60 | .event-list-item[event_state='gone'] { | 72 | .event-list-item[event_state='gone'] { |
| @@ -100,7 +112,8 @@ body.four-column .event-list-item { | |||
| 100 | width: 15em; | 112 | width: 15em; |
| 101 | margin: 1em 1em 0 0; | 113 | margin: 1em 1em 0 0; |
| 102 | padding: 0.2em; | 114 | padding: 0.2em; |
| 103 | background-color: #f0f0f0; | 115 | background-color: Field; |
| 116 | color: GrayText; | ||
| 104 | border-radius: 10px; | 117 | border-radius: 10px; |
| 105 | vertical-align:top; | 118 | vertical-align:top; |
| 106 | font-size: smaller; | 119 | font-size: smaller; |
| @@ -112,17 +125,19 @@ body.four-column .event-list-item { | |||
| 112 | font-weight: bold; | 125 | font-weight: bold; |
| 113 | } | 126 | } |
| 114 | 127 | ||
| 128 | .event-mail, | ||
| 115 | .event-duration, | 129 | .event-duration, |
| 116 | .event-speaker-count, | 130 | .event-speaker-count, |
| 117 | .event-subtitle { | 131 | .event-subtitle { |
| 118 | font-size: smaller; | 132 | font-size: smaller; |
| 119 | } | 133 | } |
| 120 | 134 | ||
| 135 | .event-mail, | ||
| 121 | .event-speaker-count, | 136 | .event-speaker-count, |
| 122 | .event-duration { | 137 | .event-duration { |
| 123 | display: inline; | 138 | display: inline; |
| 124 | font-weight: bold; | 139 | font-weight: bold; |
| 125 | background-color: cyan; | 140 | background-color: Highlight; |
| 126 | border-radius: 2px; | 141 | border-radius: 2px; |
| 127 | margin: 0.2em; | 142 | margin: 0.2em; |
| 128 | padding: 0.2em; | 143 | padding: 0.2em; |
| @@ -140,7 +155,7 @@ body.four-column .event-list-item { | |||
| 140 | .event-rating-comment { | 155 | .event-rating-comment { |
| 141 | min-height: 3em; | 156 | min-height: 3em; |
| 142 | margin-top: 0.1em; | 157 | margin-top: 0.1em; |
| 143 | background-color: white; | 158 | background-color: Field; |
| 144 | } | 159 | } |
| 145 | 160 | ||
| 146 | #Filter, #Username { | 161 | #Filter, #Username { |
| @@ -187,7 +202,7 @@ body.four-column .event-list-item { | |||
| 187 | .event-description.full, | 202 | .event-description.full, |
| 188 | .event-abstract.full { | 203 | .event-abstract.full { |
| 189 | cursor: zoom-out; | 204 | cursor: zoom-out; |
| 190 | background: white; | 205 | background-color: color-mix(in srgb, Field, black 5%); |
| 191 | overflow: visible; | 206 | overflow: visible; |
| 192 | height: auto !important; | 207 | height: auto !important; |
| 193 | white-space: initial; | 208 | white-space: initial; |
| @@ -199,6 +214,8 @@ body.show-ratings .ratings-button, | |||
| 199 | body.two-column .two-columns, | 214 | body.two-column .two-columns, |
| 200 | body.three-column .three-columns, | 215 | body.three-column .three-columns, |
| 201 | body.four-column .four-columns, | 216 | body.four-column .four-columns, |
| 217 | body.light-mode .light-mode-button, | ||
| 218 | body.dark-mode .dark-mode-button, | ||
| 202 | .event-list-item.editing .edit-button, | 219 | .event-list-item.editing .edit-button, |
| 203 | .event-list-item[event_state='accepted'] .accept-button, | 220 | .event-list-item[event_state='accepted'] .accept-button, |
| 204 | .event-list-item[event_state='rejected'] .reject-button, | 221 | .event-list-item[event_state='rejected'] .reject-button, |
