forked from blisstown/campfire
rework post design; refine light theme
This commit is contained in:
parent
8d9c3cc4fe
commit
0a563e6121
6 changed files with 23 additions and 12 deletions
|
@ -8,6 +8,12 @@
|
|||
--bg-600: #edf5ba;
|
||||
--accent: #899911;
|
||||
--text: #11100d;
|
||||
|
||||
--bg-1000: #fffcf7;
|
||||
--bg-800: #f2e8d7;
|
||||
--bg-700: #d9ccad;
|
||||
--accent: #92a40a;
|
||||
--text: #322e1f;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
@ -31,10 +37,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
@supports (font-variation-settings: normal) {
|
||||
body { font-family: InterVariable, sans-serif; }
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -48,6 +50,12 @@ body {
|
|||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@supports (font-variation-settings: normal) {
|
||||
body {
|
||||
font-family: InterVariable, sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
|
|
|
@ -200,6 +200,8 @@
|
|||
height: calc(100vh - 32px);
|
||||
border-radius: 8px;
|
||||
background-color: var(--bg-800);
|
||||
transition: background-color .1s linear;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.server-header {
|
||||
|
@ -213,6 +215,7 @@
|
|||
background-size: cover;
|
||||
background-color: var(--bg-600);
|
||||
background-image: linear-gradient(to top, var(--bg-800), var(--bg-600));
|
||||
transition: background .1s linear;
|
||||
}
|
||||
|
||||
.server-icon {
|
||||
|
@ -270,6 +273,7 @@
|
|||
font-size: .9em;
|
||||
opacity: .6;
|
||||
text-align: center;
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
.version ul {
|
||||
|
|
|
@ -84,7 +84,6 @@
|
|||
}
|
||||
|
||||
.post-text {
|
||||
font-size: .9em;
|
||||
line-height: 1.45em;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
|
|
@ -73,19 +73,19 @@
|
|||
</div>
|
||||
|
||||
<style>
|
||||
.post-container:first-of-type {
|
||||
border-top: none;
|
||||
}
|
||||
.post-container {
|
||||
width: 732px;
|
||||
max-width: 732px;
|
||||
margin-bottom: 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: 8px;
|
||||
background-color: var(--bg-800);
|
||||
border-top: 1px solid color-mix(in srgb, transparent, var(--text) 25%);
|
||||
}
|
||||
|
||||
.post {
|
||||
padding: 16px;
|
||||
border-radius: 8px;
|
||||
transition: background-color .1s;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
@ -100,7 +100,7 @@
|
|||
}
|
||||
|
||||
.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 {
|
||||
|
|
|
@ -61,13 +61,12 @@
|
|||
flex-direction: row;
|
||||
color: var(--text);
|
||||
align-items: stretch;
|
||||
border-radius: 8px;
|
||||
transition: background-color .1s;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.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 {
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
margin: 16px 0 8px 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue