tikz.escobar.life
The setup for tikz.escobar.life
styles.css (3162B)
1 /* This program is free software: you can redistribute it and/or modify 2 it under the terms of the GNU General Public License as published by 3 the Free Software Foundation, either version 3 of the License, or 4 (at your option) any later version. 5 6 This program is distributed in the hope that it will be useful, 7 but WITHOUT ANY WARRANTY; without even the implied warranty of 8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9 GNU General Public License for more details. 10 11 You should have received a copy of the GNU General Public License 12 along with this program. If not, see <https://www.gnu.org/licenses/>. */ 13 14 @import url('/css/alfa-slab.css'); 15 16 :root { 17 --background: #02010f; 18 --foreground: #dfdfdf; 19 --accent: #80db4f; 20 } 21 22 body { 23 padding: 1em; 24 margin: 0; 25 26 background: var(--background); 27 color: var(--foreground); 28 29 font-size: 14pt; 30 line-height: 17pt; 31 font-family: sans-serif; 32 } 33 34 @media (min-width: 800px) { 35 body { 36 padding: 1em 15vw; 37 } 38 } 39 40 main { 41 padding: 1em 0 2em 0; 42 } 43 44 main > *:first-child { 45 margin-top: 0; 46 } 47 48 main > *:last-child { 49 margin-bottom: 0; 50 } 51 52 footer { 53 text-align: center; 54 } 55 56 p { 57 margin-top: 1em; 58 text-align: justify; 59 } 60 61 a { 62 color: var(--accent); 63 text-decoration: underline; 64 } 65 66 ul li::marker, ol li::marker { 67 font-weight: bold; 68 font-style: normal; 69 color: var(--accent); 70 } 71 72 h1, h2, h3, h4, h5, h6 { 73 font-family: 'Alfa Slab One', sans-serif; 74 letter-spacing: 1pt; 75 margin: 0; 76 color: var(--accent); 77 text-align: left; 78 line-height: 1em; 79 } 80 81 h1 { 82 font-size: 35pt; 83 } 84 85 h2 { 86 font-size: 24pt; 87 } 88 89 h3 { 90 font-size: 19pt; 91 } 92 93 img { 94 max-width: 100%; 95 max-height: 100%; 96 } 97 98 code { 99 background: var(--foreground); 100 color: var(--background); 101 font-weight: bold; 102 padding: 0 6pt; 103 border-radius: 6pt; 104 } 105 106 .codeblock { 107 display: block; 108 margin: 1em 0; 109 background: #1b192b; 110 111 overflow-x: scroll; 112 scrollbar-width: none; 113 114 border-left: solid 4pt var(--accent); 115 border-top-right-radius: 6pt; 116 border-bottom-right-radius: 6pt; 117 } 118 119 .codeblock::-webkit-scrollbar { 120 display: none; 121 } 122 123 .codeblock pre { 124 width: max-content; 125 margin: 1em 0; 126 padding: 0 1em; 127 } 128 129 /* Remove special formatting for inline code */ 130 .codeblock pre code { 131 background: none; 132 color: var(--foreground); 133 font-weight: normal; 134 padding: 0; 135 } 136 137 #gallery { 138 display: grid; 139 grid-template-columns: 1fr; 140 grid-gap: 1em; 141 } 142 143 @media (min-width: 800px) { 144 #gallery { 145 grid-template-columns: 1fr 1fr; 146 } 147 148 .tikz .img-container { 149 aspect-ratio: 1; 150 } 151 152 .tikz .img-container img { 153 max-height: 100%; 154 } 155 } 156 157 .tikz .img-container { 158 display: grid; 159 grid-template-areas: "preview" "author"; 160 grid-gap: 1em; 161 grid-template-rows: auto 17pt; 162 163 max-width: 100%; 164 border-radius: 6pt; 165 166 background: white; 167 color: var(--background); 168 padding: 1em; 169 } 170 171 .tikz .preview { 172 grid-area: preview; 173 width: 100%; 174 height: 100%; 175 176 object-fit: contain; 177 } 178 179 .tikz .author { 180 grid-area: author; 181 182 font-style: italic; 183 overflow: hidden; 184 text-overflow: ellipsis; 185 white-space: nowrap; 186 } 187 188 .tikz .author a { 189 color: currentColor; 190 } 191 192 .tikz a { 193 postition: relative; 194 bottom: 0; 195 }