jolheiser revisó este gist . Ir a la revisión
1 file changed, 245 insertions
sakura.css(archivo creado)
@@ -0,0 +1,245 @@ | |||
1 | + | /* Sakura.css v1.5.0 | |
2 | + | * ================ | |
3 | + | * Minimal css theme. | |
4 | + | * Project: https://github.com/oxalorg/sakura/ | |
5 | + | */ | |
6 | + | ||
7 | + | :root { | |
8 | + | --blossom: #179299; | |
9 | + | --fade: #ea76cb; | |
10 | + | --bg: #eff1f5; | |
11 | + | --bg-alt: #dce0e8; | |
12 | + | --text: #4c4f69; | |
13 | + | } | |
14 | + | ||
15 | + | @media (prefers-color-scheme: dark) { | |
16 | + | :root { | |
17 | + | --blossom: #94e2d5; | |
18 | + | --fade: #f5c2e7; | |
19 | + | --bg: #1e1e2e; | |
20 | + | --bg-alt: #11111b; | |
21 | + | --text: #cdd6f4; | |
22 | + | } | |
23 | + | } | |
24 | + | ||
25 | + | /* Body */ | |
26 | + | html { | |
27 | + | font-size: 62.5%; | |
28 | + | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; | |
29 | + | } | |
30 | + | ||
31 | + | body { | |
32 | + | font-size: 1.8rem; | |
33 | + | line-height: 1.618; | |
34 | + | max-width: 38em; | |
35 | + | margin: auto; | |
36 | + | color: var(--text); | |
37 | + | background-color: var(--bg); | |
38 | + | padding: 13px; | |
39 | + | } | |
40 | + | ||
41 | + | @media (max-width: 684px) { | |
42 | + | body { | |
43 | + | font-size: 1.53rem; | |
44 | + | } | |
45 | + | } | |
46 | + | @media (max-width: 382px) { | |
47 | + | body { | |
48 | + | font-size: 1.35rem; | |
49 | + | } | |
50 | + | } | |
51 | + | h1, h2, h3, h4, h5, h6 { | |
52 | + | line-height: 1.1; | |
53 | + | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; | |
54 | + | font-weight: 700; | |
55 | + | margin-top: 3rem; | |
56 | + | margin-bottom: 1.5rem; | |
57 | + | overflow-wrap: break-word; | |
58 | + | word-wrap: break-word; | |
59 | + | -ms-word-break: break-all; | |
60 | + | word-break: break-word; | |
61 | + | } | |
62 | + | ||
63 | + | h1 { | |
64 | + | font-size: 2.35em; | |
65 | + | } | |
66 | + | ||
67 | + | h2 { | |
68 | + | font-size: 2em; | |
69 | + | } | |
70 | + | ||
71 | + | h3 { | |
72 | + | font-size: 1.75em; | |
73 | + | } | |
74 | + | ||
75 | + | h4 { | |
76 | + | font-size: 1.5em; | |
77 | + | } | |
78 | + | ||
79 | + | h5 { | |
80 | + | font-size: 1.25em; | |
81 | + | } | |
82 | + | ||
83 | + | h6 { | |
84 | + | font-size: 1em; | |
85 | + | } | |
86 | + | ||
87 | + | p { | |
88 | + | margin-top: 0px; | |
89 | + | margin-bottom: 2.5rem; | |
90 | + | } | |
91 | + | ||
92 | + | small, sub, sup { | |
93 | + | font-size: 75%; | |
94 | + | } | |
95 | + | ||
96 | + | hr { | |
97 | + | border-color: var(--blossom); | |
98 | + | } | |
99 | + | ||
100 | + | a { | |
101 | + | text-decoration: none; | |
102 | + | color: var(--blossom); | |
103 | + | } | |
104 | + | a:visited { | |
105 | + | color: #144f5a; | |
106 | + | } | |
107 | + | a:hover { | |
108 | + | color: var(--fade); | |
109 | + | border-bottom: 2px solid var(--text); | |
110 | + | } | |
111 | + | ||
112 | + | ul { | |
113 | + | padding-left: 1.4em; | |
114 | + | margin-top: 0px; | |
115 | + | margin-bottom: 2.5rem; | |
116 | + | } | |
117 | + | ||
118 | + | li { | |
119 | + | margin-bottom: 0.4em; | |
120 | + | } | |
121 | + | ||
122 | + | blockquote { | |
123 | + | margin-left: 0px; | |
124 | + | margin-right: 0px; | |
125 | + | padding-left: 1em; | |
126 | + | padding-top: 0.8em; | |
127 | + | padding-bottom: 0.8em; | |
128 | + | padding-right: 0.8em; | |
129 | + | border-left: 5px solid var(--blossom); | |
130 | + | margin-bottom: 2.5rem; | |
131 | + | background-color: var(--bg-alt); | |
132 | + | } | |
133 | + | ||
134 | + | blockquote p { | |
135 | + | margin-bottom: 0; | |
136 | + | } | |
137 | + | ||
138 | + | img, video { | |
139 | + | height: auto; | |
140 | + | max-width: 100%; | |
141 | + | margin-top: 0px; | |
142 | + | margin-bottom: 2.5rem; | |
143 | + | } | |
144 | + | ||
145 | + | /* Pre and Code */ | |
146 | + | pre { | |
147 | + | background-color: var(--bg-alt); | |
148 | + | display: block; | |
149 | + | padding: 1em; | |
150 | + | overflow-x: auto; | |
151 | + | margin-top: 0px; | |
152 | + | margin-bottom: 2.5rem; | |
153 | + | font-size: 0.9em; | |
154 | + | } | |
155 | + | ||
156 | + | code, kbd, samp { | |
157 | + | font-size: 0.9em; | |
158 | + | padding: 0 0.5em; | |
159 | + | background-color: var(--bg-alt); | |
160 | + | white-space: pre-wrap; | |
161 | + | } | |
162 | + | ||
163 | + | pre > code { | |
164 | + | padding: 0; | |
165 | + | background-color: transparent; | |
166 | + | white-space: pre; | |
167 | + | font-size: 1em; | |
168 | + | } | |
169 | + | ||
170 | + | /* Tables */ | |
171 | + | table { | |
172 | + | text-align: justify; | |
173 | + | width: 100%; | |
174 | + | border-collapse: collapse; | |
175 | + | margin-bottom: 2rem; | |
176 | + | } | |
177 | + | ||
178 | + | td, th { | |
179 | + | padding: 0.5em; | |
180 | + | border-bottom: 1px solid var(--bg-alt); | |
181 | + | } | |
182 | + | ||
183 | + | /* Buttons, forms and input */ | |
184 | + | input, textarea { | |
185 | + | border: 1px solid var(--text); | |
186 | + | } | |
187 | + | input:focus, textarea:focus { | |
188 | + | border: 1px solid var(--blossom); | |
189 | + | } | |
190 | + | ||
191 | + | textarea { | |
192 | + | width: 100%; | |
193 | + | } | |
194 | + | ||
195 | + | .button, button, input[type=submit], input[type=reset], input[type=button], input[type=file]::file-selector-button { | |
196 | + | display: inline-block; | |
197 | + | padding: 5px 10px; | |
198 | + | text-align: center; | |
199 | + | text-decoration: none; | |
200 | + | white-space: nowrap; | |
201 | + | background-color: var(--blossom); | |
202 | + | color: var(--bg); | |
203 | + | border-radius: 1px; | |
204 | + | border: 1px solid var(--blossom); | |
205 | + | cursor: pointer; | |
206 | + | box-sizing: border-box; | |
207 | + | } | |
208 | + | .button[disabled], button[disabled], input[type=submit][disabled], input[type=reset][disabled], input[type=button][disabled], input[type=file]::file-selector-button[disabled] { | |
209 | + | cursor: default; | |
210 | + | opacity: 0.5; | |
211 | + | } | |
212 | + | .button:hover, button:hover, input[type=submit]:hover, input[type=reset]:hover, input[type=button]:hover, input[type=file]::file-selector-button:hover { | |
213 | + | background-color: var(--fade); | |
214 | + | color: var(--bg); | |
215 | + | outline: 0; | |
216 | + | } | |
217 | + | .button:focus-visible, button:focus-visible, input[type=submit]:focus-visible, input[type=reset]:focus-visible, input[type=button]:focus-visible, input[type=file]::file-selector-button:focus-visible { | |
218 | + | outline-style: solid; | |
219 | + | outline-width: 2px; | |
220 | + | } | |
221 | + | ||
222 | + | textarea, select, input { | |
223 | + | color: var(--text); | |
224 | + | padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */ | |
225 | + | margin-bottom: 10px; | |
226 | + | background-color: var(--bg-alt); | |
227 | + | border: 1px solid var(--bg-alt); | |
228 | + | border-radius: 4px; | |
229 | + | box-shadow: none; | |
230 | + | box-sizing: border-box; | |
231 | + | } | |
232 | + | textarea:focus, select:focus, input:focus { | |
233 | + | border: 1px solid var(--blossom); | |
234 | + | outline: 0; | |
235 | + | } | |
236 | + | ||
237 | + | input[type=checkbox]:focus { | |
238 | + | outline: 1px dotted var(--blossom); | |
239 | + | } | |
240 | + | ||
241 | + | label, legend, fieldset { | |
242 | + | display: block; | |
243 | + | margin-bottom: 0.5rem; | |
244 | + | font-weight: 600; | |
245 | + | } |
Siguiente
Anterior