phantasmobile/app/static/css/site.scss

292 lines
6.1 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-09-28 10:56:49 +00:00
// Font: Noto Sans
@font-face {
font-family: 'Noto Sans';
src: url('../fonts/noto-sans/noto-sans-regular-webfont.woff2') format('woff2'),
url('../fonts/noto-sans/noto-sans-regular-webfont.woff') format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Noto Sans';
src: url('../fonts/noto-sans/noto-sans-italic-webfont.woff2') format('woff2'),
url('../fonts/noto-sans/noto-sans-italic-webfont.woff') format('woff');
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: 'Noto Sans';
src: url('../fonts/noto-sans/noto-sans-bold-webfont.woff2') format('woff2'),
url('../fonts/noto-sans/noto-sans-bold-webfont.woff') format('woff');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'Noto Sans';
src: url('../fonts/noto-sans-bold-italic-webfont.woff2') format('woff2'),
url('../fonts/noto-sans-bold-italic-webfont.woff') format('woff');
font-weight: 700;
font-style: italic;
}
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-09-15 07:45:08 +00:00
font-size: 18px;
font-weight: bold;
2023-08-22 15:35:56 +00:00
}
h2 {
2023-08-22 15:42:40 +00:00
//border-bottom: 1px solid pink;
2023-09-15 07:45:08 +00:00
font-size: 16px;
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;
2023-12-01 19:45:47 +00:00
}
&.document {
img {
object-position: top;
}
2023-07-16 05:56:14 +00:00
}
}
.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;
2024-02-06 16:47:54 +00:00
&.with-byline {
display: flex;
margin-left: 4px;
margin-right: 4px;
div {
flex-grow: 1;
text-align: left;
}
.byline {
text-align: right;
}
@media(max-width:768px) {
display: block;
div {
margin-left: 4px;
margin-right: 4px;
}
.byline {
text-align: left;
margin-left: 0;
}
}
}
2023-08-21 09:24:53 +00:00
}
.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;
2024-01-26 11:53:41 +00:00
.year {
padding-bottom: 16px;
}
2023-08-31 16:05:27 +00:00
}
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;
}
}
}