phantasmobile/app/static/css/site.scss

224 lines
4.3 KiB
SCSS
Raw Normal View History

2023-08-16 15:31:51 +00:00
:root {
2023-08-22 15:55:23 +00:00
--bg: rgb(16, 16, 16);
--fg: #CCCCCC;
2023-08-22 15:35:56 +00:00
--blue: rgb(110, 194, 240);
2023-08-22 15:58:14 +00:00
//--title: #ffe2e7;
2023-08-22 16:02:26 +00:00
--title: rgb(240, 240, 240);
2023-08-16 15:31:51 +00:00
}
2023-08-17 10:42:22 +00:00
@font-face {
font-family: "wrong font";
src: url("https://files.pad.ma/ttf/wrongfont.woff") format("woff");
}
2023-08-21 14:20:10 +00:00
i {
font-style: italic;
}
2023-07-16 05:56:14 +00:00
header, footer {
max-width: 1000px;
padding-top: 16px;
margin: auto;
}
header {
2023-07-26 09:50:09 +00:00
width: 100%;
2023-07-16 05:56:14 +00:00
a {
color: yellow;
text-decoration: none;
2023-08-17 10:42:22 +00:00
font-family: "wrong font";
2023-08-17 10:43:01 +00:00
font-size: 24px;
2023-08-17 10:46:52 +00:00
letter-spacing: 1px;
2023-07-16 05:56:14 +00:00
}
2023-07-27 07:12:53 +00:00
display: flex;
div {
margin-top: auto;
margin-bottom: auto;
line-height: 1;
}
.burger {
cursor: pointer;
padding-right: 4px;
2023-08-22 15:55:23 +00:00
@media(max-width:768px) {
padding-left: 4px;
}
2023-07-27 07:12:53 +00:00
svg {
width: 16px;
height: 16px;
}
}
2023-07-16 05:56:14 +00:00
}
.index {
.item {
2023-08-22 15:42:40 +00:00
border-bottom: 1px solid blueviolet;
2023-07-16 05:56:14 +00:00
padding-bottom: 4px;
margin-bottom: 8px;
a {
text-decoration: none;
2023-08-16 15:31:51 +00:00
color: var(--fg);
2023-07-16 05:56:14 +00:00
h1 {
2023-08-22 15:35:56 +00:00
color: var(--title);
2023-07-16 05:56:14 +00:00
text-decoration: underline;
2023-08-22 15:35:56 +00:00
font-size: 16px;
}
h2 {
2023-08-22 15:42:40 +00:00
//border-bottom: 1px solid pink;
2023-08-22 15:35:56 +00:00
font-size: 18px;
font-weight: bold;
2023-07-16 05:56:14 +00:00
}
}
h1 {
margin: 0;
padding: 0;
}
h1, .info, .comments {
}
.image {
padding-top: 4px;
width: 100%;
img {
width: 100%;
aspect-ratio: 16/9;
object-fit: cover;
}
}
.content {
max-width: 1000px;
margin: auto;
}
}
.archive {
text-align: center;
2023-08-22 15:35:56 +00:00
padding-bottom: 32px;
2023-07-16 05:56:14 +00:00
}
2023-08-21 09:24:53 +00:00
&.archive {
h2.week {
text-align: center;
padding-top: 16px;
padding-bottom: 8px;
margin-bottom: 8px;
border-bottom: 1px solid blueviolet;
}
.item > a {
display: flex;
flex-direction: row-reverse;
gap: 16px;
.image, .info {
width: 50%;
}
}
.item {
2023-08-22 15:35:56 +00:00
h2 {
font-size: 16px;
font-weight: initial;
2023-08-22 15:42:40 +00:00
border-bottom: none;
2023-08-22 15:35:56 +00:00
}
2023-08-21 09:24:53 +00:00
.comments {
text-align: right;
padding-right: 4px;
margin-top: -4px;
padding-bottom: 4px;
}
}
}
2023-07-16 05:56:14 +00:00
}
2023-08-22 15:35:56 +00:00
@media(max-width:768px) {
.index {
.item {
a {
h1, h2 {
padding-left: 4px;
padding-right: 4px;
}
}
}
}
}
2023-08-31 16:05:27 +00:00
.weeks {
text-align: center;
padding-bottom: 32px;
}
2023-07-16 05:56:14 +00:00
2023-07-25 19:03:54 +00:00
nav.overlay {
position: absolute;
width: 100%;
height: 100vh;
2023-08-31 13:20:57 +00:00
height: 100svh;
2023-07-26 09:50:09 +00:00
top: 0;
2023-07-25 19:03:54 +00:00
left: 0;
2023-07-25 19:18:20 +00:00
right: 0;
2023-07-26 09:50:09 +00:00
padding: 0;
border: 0;
2023-07-25 19:18:20 +00:00
max-width: 1000px;
margin: auto;
2023-07-25 19:03:54 +00:00
background: rgb(16, 16, 16);
opacity: 0;
z-index: 100;
display: none;
&.active {
2023-07-26 09:50:09 +00:00
display: flex;
flex-direction: column;
2023-07-25 19:03:54 +00:00
opacity: 0.9;
}
2023-07-26 09:50:09 +00:00
.about {
padding: 4px;
padding-top: 8px;
padding-bottom: 8px;
flex-grow: 1;
2023-08-31 13:13:04 +00:00
overflow: auto;
2023-07-26 11:17:34 +00:00
//white-space: pre-line;
2023-07-26 09:50:09 +00:00
}
.user {
padding: 4px;
padding-bottom: 8px;
}
2023-07-25 19:03:54 +00:00
}
2023-08-14 12:10:30 +00:00
.now {
background: lightyellow;
color: black;
padding: 8px;
opacity: 0.8;
}
2023-08-20 19:14:23 +00:00
.login, .register {
margin-top: 16px;
margin-left: 24px;
textarea,
input {
padding: 4px;
margin-left: 0;
margin-top: 4px;
margin-bottom: 4px;
margin-right: 4px;
background: none;
color: white;
border: 1px solid green;
}
button {
margin-top: 4px;
background: black;
color: white;
border: solid 1px green;
padding: 8px;
}
button:hover,
button:active {
border: solid 1px lightgreen;
cursor: pointer;
}
}
2023-08-23 12:57:57 +00:00
.content {
position: relative;
nav.items {
position: absolute;
top: -22px;
right: 0px;
@media(max-width:768px) {
right: 16px;
}
}
}