diff options
| author | igorechek06 <me@igorek.dev> | 2024-08-22 01:01:32 +0900 |
|---|---|---|
| committer | igorechek06 <me@igorek.dev> | 2024-08-22 01:01:32 +0900 |
| commit | e112d9461e05f44abcde621bcbcb61fb24d06caa (patch) | |
| tree | 132261ec9988eaf49e2825d6e0a98a83fea7ec0a /style.css | |
| parent | 0d9b63c7075610af96985d3574d3dc8410b19977 (diff) | |
| download | pages-e112d9461e05f44abcde621bcbcb61fb24d06caa.tar.gz pages-e112d9461e05f44abcde621bcbcb61fb24d06caa.zip | |
Change site stylistic
Diffstat (limited to 'style.css')
| -rw-r--r-- | style.css | 146 |
1 files changed, 110 insertions, 36 deletions
| @@ -1,62 +1,136 @@ | |||
| 1 | @font-face { | 1 | @import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&display=swap"); |
| 2 | src: url(font.ttf); | ||
| 3 | font-family: Noto Sans Mono; | ||
| 4 | } | ||
| 5 | 2 | ||
| 6 | * { | 3 | @media (prefers-color-scheme: light) { |
| 7 | font-family: Noto Sans Mono; | 4 | :root { |
| 8 | text-decoration-thickness: 0.01em; | 5 | --color-primary: rgb(0 104 119); |
| 9 | } | 6 | --color-on-primary: rgb(255 255 255); |
| 7 | --color-primary-container: rgb(163 238 255); | ||
| 8 | --color-on-primary-container: rgb(0 31 37); | ||
| 10 | 9 | ||
| 11 | @media screen and (max-width: 700px) { | 10 | --color-secondary: rgb(74 98 104); |
| 12 | * { | 11 | --color-on-secondary: rgb(255 255 255); |
| 13 | font-size: small; | 12 | --color-secondary-container: rgb(205 231 237); |
| 14 | } | 13 | --color-on-secondary-container: rgb(5 31 36); |
| 15 | } | ||
| 16 | 14 | ||
| 17 | @media screen and (min-width: 700px) { | 15 | --color-tertiary: rgb(84 93 126); |
| 18 | * { | 16 | --color-on-tertiary: rgb(255 255 255); |
| 19 | font-size: x-large; | 17 | --color-tertiary-container: rgb(220 225 255); |
| 18 | --color-on-tertiary-container: rgb(17 26 55); | ||
| 19 | |||
| 20 | --color-error: rgb(186 26 26); | ||
| 21 | --color-on-error: rgb(255 255 255); | ||
| 22 | --color-error-container: rgb(255 218 214); | ||
| 23 | --color-on-error-container: rgb(65 0 2); | ||
| 24 | |||
| 25 | --color-surface: rgb(245 250 252); | ||
| 26 | --color-on-surface: rgb(23 29 30); | ||
| 27 | |||
| 28 | --color-surface-container-lowest: rgb(255 255 255); | ||
| 29 | --color-surface-container-low: rgb(239 244 246); | ||
| 30 | --color-surface-container: rgb(233 239 240); | ||
| 31 | --color-surface-container-high: rgb(227 233 235); | ||
| 32 | --color-surface-container-highest: rgb(222 227 229); | ||
| 20 | } | 33 | } |
| 21 | } | 34 | } |
| 22 | 35 | ||
| 23 | @media (prefers-color-scheme: dark) { | 36 | @media (prefers-color-scheme: dark) { |
| 24 | body { | 37 | :root { |
| 25 | color: #a7a7a7; | 38 | --color-primary: rgb(131 210 228); |
| 26 | background: #1e1e1e; | 39 | --color-on-primary: rgb(0 54 62); |
| 40 | --color-primary-container: rgb(0 78 90); | ||
| 41 | --color-on-primary-container: rgb(163 238 255); | ||
| 42 | |||
| 43 | --color-secondary: rgb(178 203 209); | ||
| 44 | --color-on-secondary: rgb(28 52 57); | ||
| 45 | --color-secondary-container: rgb(51 74 80); | ||
| 46 | --color-on-secondary-container: rgb(205 231 237); | ||
| 47 | |||
| 48 | --color-tertiary: rgb(188 197 235); | ||
| 49 | --color-on-tertiary: rgb(38 47 77); | ||
| 50 | --color-tertiary-container: rgb(61 70 101); | ||
| 51 | --color-on-tertiary-container: rgb(220 225 255); | ||
| 52 | |||
| 53 | --color-error: rgb(255 180 171); | ||
| 54 | --color-on-error: rgb(105 0 5); | ||
| 55 | --color-error-container: rgb(147 0 10); | ||
| 56 | --color-on-error-container: rgb(255 218 214); | ||
| 57 | |||
| 58 | --color-surface: rgb(14 20 22); | ||
| 59 | --color-on-surface: rgb(222 227 229); | ||
| 60 | |||
| 61 | --color-surface-container-lowest: rgb(9 15 16); | ||
| 62 | --color-surface-container-low: rgb(23 29 30); | ||
| 63 | --color-surface-container: rgb(27 33 34); | ||
| 64 | --color-surface-container-high: rgb(37 43 44); | ||
| 65 | --color-surface-container-highest: rgb(48 54 55); | ||
| 27 | } | 66 | } |
| 28 | } | 67 | } |
| 29 | 68 | ||
| 30 | @media (prefers-color-scheme: light) { | 69 | body { |
| 31 | body { | 70 | font-family: "Noto Sans", sans-serif; |
| 32 | color: #464b50; | 71 | background-color: var(--color-surface); |
| 33 | background: #ffffff; | 72 | color: var(--color-on-surface); |
| 34 | } | 73 | margin: 0 auto; |
| 74 | padding: 0; | ||
| 75 | |||
| 76 | max-width: 50em; | ||
| 35 | } | 77 | } |
| 36 | 78 | ||
| 37 | input { | 79 | nav { |
| 38 | border: none; | 80 | margin: 0; |
| 39 | color: #7587a6; | 81 | padding: 1em 0; |
| 40 | background: none; | ||
| 41 | 82 | ||
| 42 | border-bottom: 0.01em solid#7587a6; | 83 | display: flex; |
| 43 | } | 84 | } |
| 44 | 85 | ||
| 45 | input::placeholder { | 86 | nav > * { |
| 46 | opacity: 1; | 87 | background-color: var(--color-surface-container); |
| 47 | font-style: italic; | 88 | border-radius: 2em; |
| 89 | |||
| 90 | margin: 0 0.5em; | ||
| 91 | padding: 0.5em; | ||
| 92 | |||
| 93 | flex: 1; | ||
| 94 | |||
| 95 | text-decoration: none; | ||
| 96 | text-align: center; | ||
| 97 | overflow: hidden; | ||
| 98 | text-overflow: ellipsis; | ||
| 99 | white-space: nowrap; | ||
| 100 | } | ||
| 101 | |||
| 102 | nav > .current { | ||
| 103 | background-color: var(--color-primary); | ||
| 104 | color: var(--color-on-primary); | ||
| 105 | } | ||
| 106 | |||
| 107 | main { | ||
| 108 | background-color: var(--color-surface-container); | ||
| 109 | border-radius: 2em; | ||
| 110 | |||
| 111 | margin: 0 0.5em 2em 0.5em; | ||
| 112 | padding: 1.5em; | ||
| 48 | } | 113 | } |
| 49 | 114 | ||
| 50 | a, | 115 | a, |
| 51 | .copy, | 116 | .copy, |
| 52 | .add { | 117 | .add { |
| 53 | cursor: pointer; | 118 | color: var(--color-primary); |
| 54 | color: #7587a6; | ||
| 55 | } | 119 | } |
| 56 | 120 | ||
| 57 | a:active, | ||
| 58 | .copy:hover, | 121 | .copy:hover, |
| 59 | .add:hover { | 122 | .add:hover { |
| 60 | cursor: pointer; | 123 | cursor: pointer; |
| 61 | color: #9b859d; | 124 | color: var(--color-secondary); |
| 125 | } | ||
| 126 | |||
| 127 | input { | ||
| 128 | background: none; | ||
| 129 | color: var(--color-primary); | ||
| 130 | border: none; | ||
| 131 | |||
| 132 | width: 10rem; | ||
| 133 | |||
| 134 | border-bottom: 0.01em solid var(--color-primary); | ||
| 135 | font-size: 1em; | ||
| 62 | } | 136 | } |
