feat: Give scope lists and device cards a fresh coat of paint

This commit is contained in:
Ginger authored and Ellis Git committed 2026-10-05 14:22:53 +00:00
1 parent 38f8011b95
commit 0d48c9681d
10 files changed
+147 -54

No files matched your search

+74 -10
View File
@@ -16,6 +16,8 @@
--card-bg: oklch(from var(--panel-bg) calc(l - 0.05) c h);
--c1: oklch(0.44 0.177 353.06);
--c2: oklch(0.59 0.158 150.88);
--danger-color: oklch(87.303% 0.06774 18.457);
--danger-color-dark: oklch(0.2 0.197 20.272);
--avatar-color: var(--c2);
--name-lightness: 0.45;
@@ -41,6 +43,7 @@
--secondary: var(--secondary-dark);
--bg: var(--bg-dark);
--panel-bg: var(--panel-bg-dark);
--danger-color: var(--danger-color-dark);
--name-lightness: 0.8;
--background-lightness: 0.2;
@@ -143,7 +146,6 @@ small.error {
margin-bottom: 0.5rem;
}
img.matrix-icon {
@media (prefers-color-scheme: dark) {
filter: invert();
@@ -173,7 +175,8 @@ label {
margin-bottom: 0.2em;
}
a, a:visited {
a,
a:visited {
color: oklch(from var(--c1) var(--name-lightness) c h);
}
@@ -182,13 +185,15 @@ code {
}
pre {
background-color: oklch(from var(--panel-bg) calc(l - 0.05) c h);
background-color: var(--card-bg);
border-radius: var(--border-radius-sm);
padding: 8px;
overflow-x: scroll;
}
input, button, a.button {
input,
button,
a.button {
display: inline-block;
padding: 0.5em;
@@ -218,10 +223,11 @@ input[type="checkbox"] {
width: auto !important;
}
button, a.button {
button,
a.button {
color: white;
background-color: var(--c1);
transition: opacity .2s;
transition: opacity 0.2s;
text-align: center;
margin: 0.5rem 0;
@@ -231,7 +237,9 @@ button, a.button {
}
&:not(:disabled) {
transition: linear color, background-color 0.1s;
transition:
linear color,
background-color 0.1s;
&:hover {
opacity: 0.8;
@@ -265,6 +273,44 @@ ul.bullet-separated {
}
}
ul.list-group {
list-style: none;
display: flex;
flex-direction: column;
padding: 0;
li {
display: block;
background-color: var(--card-bg);
padding: 10px;
margin-bottom: 3px;
color: var(--secondary);
&:first-child {
border-top-left-radius: var(--border-radius-lg);
border-top-right-radius: var(--border-radius-lg);
}
&:last-child {
border-bottom-left-radius: var(--border-radius-lg);
border-bottom-right-radius: var(--border-radius-lg);
margin-bottom: 0;
}
&.danger {
color: var(--text-color);
background-color: var(--danger-color);
}
svg {
vertical-align: center;
margin-inline-end: 0.5rem;
width: 20px;
height: 20px;
}
}
}
.fullwidth {
width: 100%;
margin-bottom: 0 !important;
@@ -274,6 +320,10 @@ ul.bullet-separated {
user-select: all;
}
.small-text {
font-size: small;
}
.panel {
--preferred-width: 12rem + 40dvw;
--maximum-width: 48rem;
@@ -297,7 +347,9 @@ ul.bullet-separated {
--preferred-width: 12rem + 20dvw;
--maximum-width: 36rem;
input, button, a.button {
input,
button,
a.button {
width: 100%;
}
}
@@ -340,7 +392,12 @@ ul.bullet-separated {
}
}
@media (max-width: 450px) {
.bi {
display: inline-block;
vertical-align: -.125em;
}
@media (max-width: 425px) {
main {
padding-block-start: 2rem;
width: 100%;
@@ -362,7 +419,14 @@ ul.bullet-separated {
}
@media (max-width: 799px) {
input, button, a.button {
input,
button,
a.button {
width: 100%;
}
}
@font-face {
font-family: "Boots";
src: url();
}