noway.moe/src/styles/global.css

177 lines
3.8 KiB
CSS
Raw Normal View History

2023-12-25 22:26:26 -07:00
@font-face {
font-family: 'PoetsenOne';
src: url('/fonts/PoetsenOne-Regular.woff') format('woff');
font-weight: 400;
font-style: normal;
font-display: swap;
}
2023-12-25 23:43:59 -07:00
:root {
2023-12-27 11:58:55 -07:00
--font-title: PoetsenOne, "Noto Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
2023-12-25 23:43:59 -07:00
--font-sans: "Noto Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
2023-12-26 03:46:58 -07:00
--font-mono: 'Noto Mono', monospace;
--font-jp: "Source Han Sans", "源ノ角ゴシック", "Hiragino Sans", "HiraKakuProN-W3", "Hiragino Kaku Gothic ProN W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Noto Sans", "Noto Sans CJK JP", "メイリオ", Meiryo, "游ゴシック", YuGothic, " Pゴシック", "MS PGothic", " ゴシック", "MS Gothic", sans-serif;
2023-12-25 23:43:59 -07:00
--box-shadow: 0 2px 6px rgba(#000, 25%), 0 8px 24px rgba(#000, 33%), 0 16px 32px rgba(#000, 33%);
2023-12-26 02:24:34 -07:00
--font-size: 1em;
2023-12-26 14:55:13 -07:00
--accent-color: deeppink;
2023-12-25 23:43:59 -07:00
}
2023-12-25 22:08:17 -07:00
body {
2023-12-26 02:24:34 -07:00
font-family: var(--font-sans);
font-size: var(--font-size);
2023-12-25 22:08:17 -07:00
}
2023-12-25 22:26:26 -07:00
2023-12-26 20:11:44 -07:00
*::selection {
color: white;
background-color: var(--accent-color);
}
2023-12-25 22:08:17 -07:00
/*/
2023-12-25 20:01:37 -07:00
:root {
2023-12-25 22:08:17 -07:00
--accent: #2337ff;
--accent-dark: #000d8a;
--black: 15, 18, 25;
--gray: 96, 115, 159;
--gray-light: 229, 233, 240;
--gray-dark: 34, 41, 57;
--gray-gradient: rgba(var(--gray-light), 50%), #fff;
--box-shadow: 0 2px 6px rgba(var(--gray), 25%), 0 8px 24px rgba(var(--gray), 33%),
0 16px 32px rgba(var(--gray), 33%);
2023-12-25 20:01:37 -07:00
}
2023-12-25 22:08:17 -07:00
2023-12-25 20:01:37 -07:00
@font-face {
2023-12-25 22:08:17 -07:00
font-family: 'Atkinson';
src: url('/fonts/atkinson-regular.woff') format('woff');
font-weight: 400;
font-style: normal;
font-display: swap;
2023-12-25 20:01:37 -07:00
}
2023-12-25 22:08:17 -07:00
2023-12-25 20:01:37 -07:00
@font-face {
2023-12-25 22:08:17 -07:00
font-family: 'Atkinson';
src: url('/fonts/atkinson-bold.woff') format('woff');
font-weight: 700;
font-style: normal;
font-display: swap;
2023-12-25 20:01:37 -07:00
}
body {
2023-12-25 22:08:17 -07:00
font-family: 'Atkinson', sans-serif;
margin: 0;
padding: 0;
text-align: left;
background: linear-gradient(var(--gray-gradient)) no-repeat;
background-size: 100% 600px;
word-wrap: break-word;
overflow-wrap: break-word;
color: rgb(var(--gray-dark));
font-size: 20px;
line-height: 1.7;
2023-12-25 20:01:37 -07:00
}
main {
2023-12-25 22:08:17 -07:00
width: 720px;
max-width: calc(100% - 2em);
margin: auto;
padding: 3em 1em;
2023-12-25 20:01:37 -07:00
}
h1,
h2,
h3,
h4,
h5,
h6 {
2023-12-25 22:08:17 -07:00
margin: 0 0 0.5rem 0;
color: rgb(var(--black));
line-height: 1.2;
2023-12-25 20:01:37 -07:00
}
h1 {
2023-12-25 22:08:17 -07:00
font-size: 3.052em;
2023-12-25 20:01:37 -07:00
}
h2 {
2023-12-25 22:08:17 -07:00
font-size: 2.441em;
2023-12-25 20:01:37 -07:00
}
h3 {
2023-12-25 22:08:17 -07:00
font-size: 1.953em;
2023-12-25 20:01:37 -07:00
}
h4 {
2023-12-25 22:08:17 -07:00
font-size: 1.563em;
2023-12-25 20:01:37 -07:00
}
h5 {
2023-12-25 22:08:17 -07:00
font-size: 1.25em;
2023-12-25 20:01:37 -07:00
}
strong,
b {
2023-12-25 22:08:17 -07:00
font-weight: 700;
2023-12-25 20:01:37 -07:00
}
a {
2023-12-25 22:08:17 -07:00
color: var(--accent);
2023-12-25 20:01:37 -07:00
}
a:hover {
2023-12-25 22:08:17 -07:00
color: var(--accent);
2023-12-25 20:01:37 -07:00
}
p {
2023-12-25 22:08:17 -07:00
margin-bottom: 1em;
2023-12-25 20:01:37 -07:00
}
.prose p {
2023-12-25 22:08:17 -07:00
margin-bottom: 2em;
2023-12-25 20:01:37 -07:00
}
textarea {
2023-12-25 22:08:17 -07:00
width: 100%;
font-size: 16px;
2023-12-25 20:01:37 -07:00
}
input {
2023-12-25 22:08:17 -07:00
font-size: 16px;
2023-12-25 20:01:37 -07:00
}
table {
2023-12-25 22:08:17 -07:00
width: 100%;
2023-12-25 20:01:37 -07:00
}
img {
2023-12-25 22:08:17 -07:00
max-width: 100%;
height: auto;
border-radius: 8px;
2023-12-25 20:01:37 -07:00
}
code {
2023-12-25 22:08:17 -07:00
padding: 2px 5px;
background-color: rgb(var(--gray-light));
border-radius: 2px;
2023-12-25 20:01:37 -07:00
}
pre {
2023-12-25 22:08:17 -07:00
padding: 1.5em;
border-radius: 8px;
2023-12-25 20:01:37 -07:00
}
pre > code {
2023-12-25 22:08:17 -07:00
all: unset;
2023-12-25 20:01:37 -07:00
}
blockquote {
2023-12-25 22:08:17 -07:00
border-left: 4px solid var(--accent);
padding: 0 0 0 20px;
margin: 0px;
font-size: 1.333em;
2023-12-25 20:01:37 -07:00
}
hr {
2023-12-25 22:08:17 -07:00
border: none;
border-top: 1px solid rgb(var(--gray-light));
2023-12-25 20:01:37 -07:00
}
@media (max-width: 720px) {
2023-12-25 22:08:17 -07:00
body {
font-size: 18px;
}
main {
padding: 1em;
}
2023-12-25 20:01:37 -07:00
}
.sr-only {
2023-12-25 22:08:17 -07:00
border: 0;
padding: 0;
margin: 0;
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px 1px 1px 1px);
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
white-space: nowrap;
}
/*/