Compare commits

...

2 commits

Author SHA1 Message Date
c402f329a7
rework of navigation UI 2025-07-10 22:32:54 +01:00
0a563e6121
rework post design; refine light theme 2025-07-10 18:11:49 +01:00
8 changed files with 40 additions and 31 deletions

View file

@ -8,6 +8,12 @@
--bg-600: #edf5ba; --bg-600: #edf5ba;
--accent: #899911; --accent: #899911;
--text: #11100d; --text: #11100d;
--bg-1000: #fffcf7;
--bg-800: #f2e8d7;
--bg-700: #d9ccad;
--accent: #92a40a;
--text: #322e1f;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
@ -31,10 +37,6 @@
} }
} }
@supports (font-variation-settings: normal) {
body { font-family: InterVariable, sans-serif; }
}
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -48,6 +50,12 @@ body {
box-sizing: border-box; box-sizing: border-box;
} }
@supports (font-variation-settings: normal) {
body {
font-family: InterVariable, sans-serif;
}
}
a { a {
color: var(--accent); color: var(--accent);
text-decoration: none; text-decoration: none;

View file

@ -48,10 +48,9 @@
<style> <style>
button { button {
/* min-width: 64px; */
width: 100%; width: 100%;
height: 54px; height: fit-content;
padding: 16px; padding: .7em .8em;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
@ -62,12 +61,10 @@
text-align: left; text-align: left;
border-radius: 8px; border-radius: 8px;
border-width: 2px; border: 2px solid var(--bg-700);
border-style: solid;
background-color: var(--bg-700); background-color: transparent;
color: var(--text); color: var(--text);
border-color: transparent;
transition-property: border-color, background-color, color; transition-property: border-color, background-color, color;
transition-timing-function: ease-out; transition-timing-function: ease-out;
@ -82,13 +79,11 @@
} }
button:hover { button:hover {
background-color: color-mix(in srgb, var(--bg-700), var(--accent) 10%); background-color: color-mix(in srgb, transparent, var(--bg-700) 50%);
border-color: color-mix(in srgb, var(--bg-700), var(--accent) 20%);
} }
button:active { button:active {
background-color: color-mix(in srgb, var(--bg-700), var(--bg-800) 50%); background-color: var(--bg-700);
border-color: color-mix(in srgb, var(--bg-700), var(--bg-800) 10%);
} }
button.active { button.active {
@ -127,7 +122,6 @@
} }
button.disabled { button.disabled {
background-color: var(--bg-700);
color: var(--text); color: var(--text);
opacity: .5; opacity: .5;
border-color: transparent; border-color: transparent;
@ -135,13 +129,15 @@
} }
button.disabled:hover { button.disabled:hover {
background-color: transparent;
} }
button.disabled:active { button.disabled:active {
background-color: transparent;
} }
.icon:not(:empty) { .icon:not(:empty) {
height: 150%; height: 1.8em;
margin-right: 8px; margin-right: 8px;
} }

View file

@ -200,6 +200,8 @@
height: calc(100vh - 32px); height: calc(100vh - 32px);
border-radius: 8px; border-radius: 8px;
background-color: var(--bg-800); background-color: var(--bg-800);
transition: background-color .1s linear;
user-select: none;
} }
.server-header { .server-header {
@ -213,6 +215,7 @@
background-size: cover; background-size: cover;
background-color: var(--bg-600); background-color: var(--bg-600);
background-image: linear-gradient(to top, var(--bg-800), var(--bg-600)); background-image: linear-gradient(to top, var(--bg-800), var(--bg-600));
transition: background .1s linear;
} }
.server-icon { .server-icon {
@ -270,6 +273,7 @@
font-size: .9em; font-size: .9em;
opacity: .6; opacity: .6;
text-align: center; text-align: center;
user-select: text;
} }
.version ul { .version ul {

View file

@ -141,18 +141,19 @@
<style> <style>
.notification { .notification {
display: block; display: block;
margin-bottom: 8px; border-top: 1px solid color-mix(in srgb, transparent, var(--text) 50%);
padding: 16px; padding: 16px;
border-radius: 8px;
background: var(--bg-800);
text-decoration: inherit; text-decoration: inherit;
color: inherit; color: inherit;
transition: background-color .1s; transition: background-color .1s;
cursor: pointer; cursor: pointer;
} }
.notification:first-of-type {
border-top: none;
}
.notification:hover { .notification:hover {
background-color: color-mix(in srgb, var(--bg-800), black 5%); background-color: color-mix(in srgb, var(--bg-800), transparent 50%);
} }
header { header {
@ -280,7 +281,7 @@
width: calc(100% - 16px); width: calc(100% - 16px);
margin-bottom: 10px; margin-bottom: 10px;
padding: 4px 8px; padding: 4px 8px;
--warn-bg: color-mix(in srgb, var(--bg-700), var(--accent) 1%); --warn-bg: color-mix(in srgb, transparent, var(--bg-700) 50%);
background: repeating-linear-gradient(-45deg, transparent, transparent 10px, var(--warn-bg) 10px, var(--warn-bg) 20px); background: repeating-linear-gradient(-45deg, transparent, transparent 10px, var(--warn-bg) 10px, var(--warn-bg) 20px);
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;

View file

@ -60,7 +60,7 @@
width: 100%; width: 100%;
margin-bottom: 10px; margin-bottom: 10px;
padding: 4px 8px; padding: 4px 8px;
--warn-bg: color-mix(in srgb, var(--bg-700), var(--accent) 1%); --warn-bg: color-mix(in srgb, transparent, var(--bg-700) 50%);
background: repeating-linear-gradient(-45deg, transparent, transparent 10px, var(--warn-bg) 10px, var(--warn-bg) 20px); background: repeating-linear-gradient(-45deg, transparent, transparent 10px, var(--warn-bg) 10px, var(--warn-bg) 20px);
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
@ -84,7 +84,6 @@
} }
.post-text { .post-text {
font-size: .9em;
line-height: 1.45em; line-height: 1.45em;
word-wrap: break-word; word-wrap: break-word;
} }

View file

@ -76,16 +76,16 @@
.post-container { .post-container {
width: 732px; width: 732px;
max-width: 732px; max-width: 732px;
margin-bottom: 8px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border-radius: 8px; border-top: 1px solid color-mix(in srgb, transparent, var(--text) 25%);
background-color: var(--bg-800); }
.post-container:first-of-type {
border-top: none;
} }
.post { .post {
padding: 16px; padding: 16px;
border-radius: 8px;
transition: background-color .1s; transition: background-color .1s;
cursor: pointer; cursor: pointer;
} }
@ -100,7 +100,7 @@
} }
.post:hover { .post:hover {
background-color: color-mix(in srgb, var(--bg-800), black 5%); background-color: color-mix(in srgb, transparent, var(--bg-800) 25%);
} }
.post-container:has(.post-context) .post { .post-container:has(.post-context) .post {

View file

@ -61,13 +61,12 @@
flex-direction: row; flex-direction: row;
color: var(--text); color: var(--text);
align-items: stretch; align-items: stretch;
border-radius: 8px;
transition: background-color .1s; transition: background-color .1s;
cursor: pointer; cursor: pointer;
} }
.post-reply:hover { .post-reply:hover {
background-color: color-mix(in srgb, var(--bg-800), black 5%); background-color: color-mix(in srgb, var(--bg-800), transparent 50%);
} }
.post-avatar-container { .post-avatar-container {

View file

@ -50,6 +50,7 @@
margin: 16px 0 8px 0; margin: 16px 0 8px 0;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
user-select: none;
} }
header h1 { header h1 {
@ -60,6 +61,7 @@
margin-left: auto; margin-left: auto;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center;
gap: 8px; gap: 8px;
} }