summaryrefslogtreecommitdiffstats
path: root/assets/css/default.css
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2025-05-17 16:16:20 -0700
committersyeopite <syeopite@syeopite.dev>2025-05-17 16:16:20 -0700
commitd5cb653fd1e46e48332624f450390bfcda6e0b4c (patch)
tree7c36f75761bcffb4d94ed50d8989ec0c0edd6d9c /assets/css/default.css
parent0b23dd12e1c2f38387369a2b4527cc0a70166977 (diff)
parent6c063436d4259d62ed6794e99298348b0be74b61 (diff)
downloadinvidious-d5cb653fd1e46e48332624f450390bfcda6e0b4c.tar.gz
invidious-d5cb653fd1e46e48332624f450390bfcda6e0b4c.tar.bz2
invidious-d5cb653fd1e46e48332624f450390bfcda6e0b4c.zip
Handle parse errors gracefully on timeline items (#5196)
Diffstat (limited to 'assets/css/default.css')
-rw-r--r--assets/css/default.css70
1 files changed, 70 insertions, 0 deletions
diff --git a/assets/css/default.css b/assets/css/default.css
index 2cedcf0c..01d4b736 100644
--- a/assets/css/default.css
+++ b/assets/css/default.css
@@ -550,6 +550,10 @@ span > select {
color: #565d64;
}
+.light-theme .error-card {
+ border: 1px solid black;
+}
+
@media (prefers-color-scheme: light) {
.no-theme a:hover,
.no-theme a:active,
@@ -596,6 +600,10 @@ span > select {
.light-theme .pure-menu-heading {
color: #565d64;
}
+
+ .no-theme .error-card {
+ border: 1px solid black;
+ }
}
@@ -658,6 +666,10 @@ body.dark-theme {
color: inherit;
}
+.dark-theme .error-card {
+ border: 1px solid #5e5e5e;
+}
+
@media (prefers-color-scheme: dark) {
.no-theme a:hover,
.no-theme a:active,
@@ -719,6 +731,10 @@ body.dark-theme {
.no-theme footer a {
color: #adadad !important;
}
+
+ .no-theme .error-card {
+ border: 1px solid #5e5e5e;
+ }
}
@@ -816,3 +832,57 @@ h1, h2, h3, h4, h5, p,
#download_widget {
width: 100%;
}
+
+.error-card {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ padding: 25px;
+ margin-bottom: 1em;
+ border-radius: 10px;
+ box-sizing: border-box;
+ height: 100%;
+}
+
+.error-card > .explanation {
+ display: grid;
+ grid-template-columns: max-content 1fr;
+ grid-template-rows: 1fr max-content;
+ align-items: center;
+ column-gap: 10px;
+ row-gap: 4px;
+}
+
+.error-card > .explanation > i {
+ color: #f44;
+ font-size: 24px;
+ grid-area: 1 / 1 / 2 / 2;
+}
+
+.error-card > .explanation > h4 {
+ grid-area: 1 / 2 / 2 / 3;
+ margin: 0;
+}
+
+.error-card > .explanation > p {
+ grid-area: 2 / 2 / 3 / 3;
+ margin: 0;
+}
+
+.error-card details {
+ margin-top: 10px;
+ width: 100%;
+}
+
+.error-card summary {
+ width: 100%;
+}
+
+.error-card pre {
+ height: 300px;
+}
+
+.error-issue-template {
+ padding: 20px;
+ background: rgba(0, 0, 0, 0.12345);
+} \ No newline at end of file