redstrate.com/themes/red/assets/css/site.css

194 lines
2.8 KiB
CSS
Raw Normal View History

2022-09-14 16:54:11 -04:00
/* desktop devices */
@media (min-width: 768px) {
2022-09-14 17:13:15 -04:00
aside {
2022-09-20 12:34:16 -04:00
flex: 200px 0 0;
2022-09-14 17:13:15 -04:00
}
2022-10-26 08:56:44 -04:00
header {
margin: 10px;
}
aside {
margin: 10px;
}
article {
margin: 10px;
}
footer {
margin: 10px;
}
2022-09-14 16:54:11 -04:00
}
/* mobile devices */
@media (max-width: 768px) {
2022-09-14 17:13:15 -04:00
aside {
width: 100%;
}
aside div {
padding: 2px;
}
aside div a {
font-size: 135%;
margin-top: 13px;
margin-bottom: 13px;
}
2022-09-14 16:54:11 -04:00
}
2022-09-14 16:48:15 -04:00
body {
2022-11-06 17:25:01 -05:00
background-color: var(--background-primary);
accent-color: var(--accent-color);
2022-09-14 16:48:15 -04:00
2022-09-20 12:34:16 -04:00
display: flex;
flex-flow: row wrap;
2022-11-06 17:25:01 -05:00
color: var(--text-color);
}
:root {
--primary-accent: #9f5858;
--secondary-accent: #c99192;
--border-color: #325e8d;
--background-primary: #eff1ff;
--background-secondary: #ffffff;
--text-color: #363131;
--link-visited: #460b0b;
--extra-color: #efe4e4;
}
@media (prefers-color-scheme: dark) {
:root {
--primary-accent: #ce4545;
--secondary-accent: #c99192;
--background-primary: #34313a;
--background-secondary: #3c3a44;
--border-color: #515860;
--text-color: #fbeded;
--link-visited: #ad1616;
--extra-color: #504e5a;
}
.ext-link {
filter: invert(100%);
}
}
a:link {
color: var(--primary-accent);
}
a:visited {
color: var(--link-visited);
2022-09-14 16:48:15 -04:00
}
header {
2022-09-20 12:34:16 -04:00
flex-grow: 1;
flex-basis: 100%;
2022-09-14 16:48:15 -04:00
}
aside {
2022-11-06 17:25:01 -05:00
background-color: var(--background-secondary);
2022-09-14 16:48:15 -04:00
2022-09-14 17:13:30 -04:00
text-align: center;
2022-11-06 17:25:01 -05:00
border: 1px solid var(--border-color);
border-radius: 3px;
padding: 15px;
2022-09-14 16:48:15 -04:00
}
article {
2022-11-06 17:25:01 -05:00
background-color: var(--background-secondary);
2022-11-06 17:25:01 -05:00
border: 1px solid var(--border-color);
border-radius: 3px;
padding: 15px;
2022-09-20 12:34:16 -04:00
2022-10-25 17:45:27 -04:00
flex: 2 0;
2022-09-14 16:48:15 -04:00
}
footer {
2022-11-06 17:25:01 -05:00
background-color: var(--background-secondary);
2022-09-20 12:34:16 -04:00
flex-grow: 1;
flex-basis: 100%;
2022-10-27 10:44:07 -04:00
2022-11-06 17:25:01 -05:00
border: 1px solid var(--border-color);
2022-10-27 10:44:07 -04:00
border-radius: 3px;
padding: 15px;
2022-09-14 16:48:15 -04:00
}
.site-menu {
width: 100%;
border: 1px solid gray;
border-radius: 5px;
margin-top: 5px;
margin-bottom: 5px;
}
.article-img {
2022-09-21 10:37:36 -04:00
width: 100%;
height: auto;
2022-09-21 10:37:36 -04:00
}
2022-10-25 16:05:48 -04:00
.gallery-img {
border: 1px black solid;
border-radius: 5px;
}
2022-10-25 16:08:36 -04:00
figure {
flex-grow: 1;
text-align: center;
margin: 25px;
}
figure figcaption {
text-align: center;
}
2022-10-25 16:08:36 -04:00
.gallery-con {
display: flex;
flex-wrap: wrap;
border: 1px solid gray;
2022-10-25 17:25:20 -04:00
}
td {
text-align: center;
2022-10-25 17:31:00 -04:00
}
tr:nth-child(even) {
2022-11-06 17:25:01 -05:00
background-color: var(--extra-color);
}
2022-10-25 17:31:00 -04:00
table {
width: 100%;
}
2022-11-03 15:13:15 -04:00
#f-badges {
text-align: center;
}
#f-badges * {
display: inline;
margin-left: 0.2em;
margin-right: 0.2em;
}
#f-list {
text-align: center;
}
#f-list * {
display: inline;
margin-left: 1em;
margin-right: 1em;
}
h2 {
margin-top: 0.2em;
}