rat/static/css/main.css

229 lines
3.1 KiB
CSS
Raw Normal View History

2023-07-11 14:23:48 +00:00
.emoticons {
max-width: 5% !important;
}
2023-07-12 14:52:47 +00:00
.vlist {
display: flex;
justify-content: space-between;
}
.vlist > div {
flex: 1;
text-align: center;
margin: 0.5em;
}
.current-sel {
color: inherit !important;
}
2023-07-11 14:23:48 +00:00
/* global styling */
2023-07-11 11:32:13 +00:00
:root {
--bg-color: #eeeecc;
--fg-color: #ffffdd;
--replies-color: #f0f0d0;
--text-color: #663333;
2023-07-11 14:23:48 +00:00
--border-color: #66333388;
2023-07-11 11:32:13 +00:00
--primary-color: #0066cc;
--important-color: #ff0000;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #000033;
--fg-color: #202044;
--replies-color: #16163a;
--text-color: #cccccc;
2023-07-11 14:23:48 +00:00
--border-color: #cccccc44;
2023-07-11 11:32:13 +00:00
--primary-color: #6699ff;
--important-color: #ff0000;
}
}
body {
max-width: 48rem;
margin: auto;
background-color: var(--bg-color);
color: var(--text-color);
font-family: sans-serif;
}
2023-07-11 14:23:48 +00:00
footer {
display: flex;
gap: 2rem;
padding: 1rem;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
2023-07-11 11:32:13 +00:00
a[href] {
color: var(--primary-color);
text-decoration: none;
}
a[href]:hover {
text-decoration: underline;
}
img {
max-width: 100%;
}
2023-07-11 14:23:48 +00:00
.paginator {
padding: 1rem;
gap: .3rem;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.paginator a {
flex: 0 0 auto;
height: 1rem;
line-height: 1rem;
padding: .5rem;
text-align: center;
background-color: var(--replies-color);
}
header {
2023-07-11 11:32:13 +00:00
background-color: var(--fg-color);
display: flex;
flex-wrap: wrap;
gap: 0 1rem;
padding: 1rem;
margin-bottom: 1rem;
align-items: center;
}
2023-07-11 14:23:48 +00:00
.list {
background-color: var(--fg-color);
margin-bottom: 1rem;
2023-07-11 11:32:13 +00:00
}
2023-07-11 14:23:48 +00:00
/* thread.html: nav bar */
2023-07-11 11:32:13 +00:00
2023-07-11 14:23:48 +00:00
.thread-nav .title {
font-size: 1.2rem;
flex: 1 0 70%;
2023-07-11 11:32:13 +00:00
}
2023-07-11 14:23:48 +00:00
.thread-nav .from {
font-size: 1.2rem;
2023-07-11 11:32:13 +00:00
}
2023-07-11 14:23:48 +00:00
/* thread.html: user post */
2023-07-11 11:32:13 +00:00
.post {
display: flex;
flex-wrap: wrap;
gap: 0 1rem;
2023-07-11 14:23:48 +00:00
border-bottom: 1px solid var(--border-color);
2023-07-11 11:32:13 +00:00
padding: 1rem;
}
.post .avatar {
width: 4rem;
height: 4rem;
}
.post > div {
flex: 1;
}
.post .userinfo {
display: flex;
gap: .5rem;
align-items: center;
}
.tag {
border-radius: .4rem;
font-size: .8rem;
padding: .1rem .4rem;
margin-right: .2rem;
color: white;
}
.tag-blue {
background-color: var(--primary-color);
}
.tag-red {
background-color: var(--important-color);
}
.post .permalink {
float: right;
}
2023-07-11 14:23:48 +00:00
/* thread.html: replies to a user post */
.post .replies {
background-color: var(--replies-color);
margin-top: 1rem;
}
.post .replies .post {
border-bottom: none;
}
.post .replies .post .avatar {
width: 3rem;
height: 3rem;
}
/* bar.html: nav bar */
.bar-nav img {
width: 5rem;
height: 5rem;
}
.bar-nav .title {
font-size: 1.5rem;
}
.bar-nav .stats small {
margin-right: .5rem;
}
/* bar.html: thread list */
2023-07-11 11:32:13 +00:00
.thread {
display: flex;
gap: 1rem;
padding: 1rem;
}
.thread .stats {
flex: 0 0 4rem;
text-align: center;
}
.thread .replies {
font-size: .8rem;
padding: .5rem .2rem;
background-color: var(--replies-color);
}
.thread .summary {
flex: 1 1 auto;
}
.thread .title {
font-size: 1.1rem;
margin-bottom: .5rem;
}
.thread .participants {
font-size: .8rem;
flex: 0 0 6rem;
}
.thread .participants a {
padding-left: .3rem;
color: var(--text-color);
}