git-repo-styles

Design documents for git.pablopie.xyz ✏️

File Name Size Mode
styles.css 4024B -rw-r--r--
  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 :root {
 15   --lighter-background: #1a2533;
 16   --light-background: #101822;
 17   --dark-background: #070d15;
 18   --foreground: #dfdfdf;
 19   --accent: #ff6b9c;
 20 }
 21 
 22 body {
 23   margin: 0;
 24   padding: 1em;
 25 
 26   color: var(--foreground);
 27   background: var(--light-background);
 28 
 29   font-size: 12.5pt;
 30   text-align: left;
 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;
 42 }
 43 
 44 p {
 45   margin-top: 1em;
 46 }
 47 
 48 a {
 49   color: var(--foreground);
 50 }
 51 
 52 h1, h2, h3, h4, h5, h6 {
 53   color: var(--accent);
 54   margin: 1rem 0;
 55   text-align: left;
 56 }
 57 
 58 ul, ol {
 59   padding: 0;
 60 }
 61 
 62 ul {
 63   margin-left: 1em;
 64   list-style-type: disc;
 65 }
 66 
 67 ol {
 68   margin-left: 2em;
 69   list-style-type: decimal;
 70 }
 71 
 72 ul li::marker, ol li::marker {
 73   font-weight: bold;
 74   font-style: normal;
 75   color: var(--accent);
 76 }
 77 
 78 dt {
 79   font-weight: bold;
 80 }
 81 
 82 dd {
 83   margin-left: 1em;
 84 }
 85 
 86 footer {
 87   text-align: center;
 88 }
 89 
 90 table {
 91   width: 100%;
 92   border-collapse: collapse;
 93 }
 94 
 95 td {
 96   line-height: 1.75em;
 97   padding: 0 .5em;
 98 }
 99 
100 thead td {
101   font-weight: bold;
102 }
103 
104 tbody td {
105   font-family: monospace;
106 }
107 
108 thead tr, tbody tr:nth-child(2n) {
109   background: var(--lighter-background);
110 }
111 
112 main > *:first-child, #readme > *:first-child {
113   margin-top: 0;
114 }
115 
116 main > *:last-child, #readme > *:last-child {
117   margin-bottom: 0;
118 }
119 
120 header nav img {
121   position: relative;
122   top: 0.3rem;
123   width: 1.2rem;
124   height: 1.2rem;
125   margin-right: .5rem;
126 }
127 
128 main nav {
129   margin: 1em 0;
130 }
131 
132 main nav * {
133   margin: 0;
134 }
135 
136 main nav ul {
137   list-style: none;
138 }
139 
140 main nav ul li {
141   display: inline;
142   font-weight: bold;
143   padding-right: .5em;
144 }
145 
146 main nav ul li a {
147   text-decoration: none;
148 }
149 
150 main nav li.nav-selected a {
151   color: var(--accent);
152 }
153 
154 .article-list article, #readme {
155   background: var(--dark-background);
156   padding: 1em;
157   margin: .5em 0;
158 }
159 
160 .article-list article h4 {
161   margin: 0;
162   margin-bottom: .5em;
163   font-size: 1rem;
164 }
165 
166 .article-list article > p:last-child {
167   margin-bottom: 0;
168 }
169 
170 .article-list article h4 a, header nav a {
171   color: var(--accent);
172   font-weight: bold;
173   text-decoration: none;
174 }
175 
176 .article-list article h4 a:hover {
177   text-decoration: underline;
178 }
179 
180 .article-list article h4 {
181   border-bottom: 1px solid var(--accent);
182   font-size: 1em;
183 }
184 
185 .article-list article time {
186   display: inline-block;
187   float: right;
188   color: var(--dark-background);
189   background: var(--foreground);
190   padding: 0 10px;
191   maring-top: 10px;
192 }
193 
194 .table-container {
195   max-width: 100%;
196   overflow-x: scroll;
197   scrollbar-width: none;
198 }
199 
200 .table-container::-webkit-scrollbar {
201   display: none;
202 }
203 
204 .codeblock {
205   background: var(--dark-background);
206   border-left: 5px solid var(--accent);
207 
208   overflow-x: scroll;
209   scrollbar-width: none;
210 
211   margin: 1em 0;
212 }
213 
214 .codeblock::-webkit-scrollbar {
215   display: none;
216 }
217 
218 #readme .codeblock {
219   background: var(--light-background);
220 }
221 
222 .codeblock pre {
223   margin: 1em;
224   width: min-content;
225 }
226 
227 .line {
228   color: var(--accent);
229   font-weight: bold;
230   text-decoration: none;
231 }
232 
233 .line:hover {
234   text-decoration: underline;
235 }
236 
237 .commit {
238   margin-top: 1em;
239   padding: 1em;
240   background: var(--dark-background);
241   overflow-wrap: break-word;
242 }
243 
244 .commit > :first-child {
245   margin-top: 0;
246 }
247 
248 .commit > :last-child {
249   margin-bottom: 0;
250 }
251 
252 .d {
253   color: #ff0a38;
254   text-decoration: none;
255 }
256 
257 .i {
258   color: #00e639;
259   text-decoration: none;
260 }
261 
262 .h {
263   color: var(--accent);
264   font-weight: bold;
265 }