cambio de variable bgColorDark al código de color del nuevo diseño, y aplicada dicha...
[salamandradevs.site/.git] / themes / droda / assets / css / main.css
1 /* ESTILOS CSS PARA EL SITIO WEB DE SALAMANDRADEVS */
2
3 /* Copyright GNU LGPL. 
4    Puedes copiar, modificar y usar este software bajo los términos de la licencia general de uso público reducida de GNU.
5    Encontrarás una copia de la licencia aquí https://www.gnu.org/licenses/lgpl-3.0.html */
6
7 /* Metodología mobile first o pantallas pequeñas primero.
8    Primero se escriben las reglas para el ancho de portview
9    más pequeño a considerar */
10
11 /* VARIABLES Y REGLAS GENERALES */
12 @charset "UTF-8";
13
14 * {
15    box-sizing: border-box;
16    margin: 0;
17    padding: 0;
18 }
19
20 :root {
21    --bgColorDark: #0e0e0e;
22    --bgColorMidDark: #353b43;
23    --bgColorLightDark: #4f5864;
24    --bgColorLight: #D2D2D2;
25    --globalScale: 1;
26    
27 }
28
29 h1 {
30    font-size: 6rem;
31 }
32
33 h2 {
34    font-size: 4rem;
35 }
36
37 h3 {
38    font-size: 3rem;
39 }
40
41 h4 {
42    font-size: 2rem;
43 }
44
45 p {
46    font-size: 1.5rem;
47 }
48
49 h1, h2, h3, h4, p {
50    padding: 0.5rem 0;
51    margin: 0;
52 }
53
54 a:link,
55 a:visited,
56 a:hover,
57 a:active {
58    text-decoration: none;
59    font-size: 1.5rem;
60 }
61
62 html {
63    font-size: calc(62.5% * var(--globalScale));
64    background-color: var(--bgColorLight);
65    height: 100%;
66 }
67
68 /* REGLAS DEL HOME */
69
70 body {
71    display: grid;
72    grid-template-columns: 1fr;
73    grid-template-rows: 5rem 1fr 5rem;
74    grid-template-areas: /* No mostramos el aside en móbiles */
75       "navbar"
76       "main"
77       "footer";
78    height: 100%;
79 }
80
81 aside {
82    grid-area: aside;
83    display: none;
84    flex-flow: column nowrap;
85    align-items: flex-start;
86    justify-content: flex-start;
87    width: 100%;
88    padding: 0 1rem;
89    background-color: var(--bgColorDark);
90 }
91
92 aside .item {
93    display: flex;
94    flex-flow: row nowrap;
95    align-items: center;
96    justify-content: space-between;
97    font-size: 1.5rem;
98    width: 100%;
99    padding: 1rem 0;
100 }
101
102 nav {
103    grid-area: navbar;
104    background-color: var(--bgColorDark);
105    width: 100%;
106 }
107
108 nav ul {
109    display: flex;
110    flex-flow: row nowrap;
111    align-items: center;
112    justify-content: flex-start;
113    list-style-type: none;
114    width: 100%;
115    height: 100%;
116    margin: 0;
117    padding: 0;
118    overflow: hidden;
119 }
120
121 .hover {
122    --c:linear-gradient(#1482c8 0 0); /* update the color here */
123
124    padding-bottom: .15em;
125    background: var(--c), var(--c);
126    background-size: .3em .1em;
127    background-position:50% 100%;
128    background-repeat: no-repeat;
129    transition: .3s linear, background-size .3s .2s linear;
130 }
131
132 .hover:hover {
133    background-size: 50% .1em;
134    background-position: 10% 100%, 90% 100%;
135 }
136
137 nav li {
138    display: flex;
139    align-items: center;
140    height: 100%;
141  }
142  
143 nav a {
144    display: block;
145    color: white;
146    text-align: center;
147    padding: 1rem 1.5rem;
148    text-decoration: none;
149  }
150
151 main {
152    grid-area: main;
153    padding: 2rem;
154    background-color: var(--bgColorMidDark);
155    background-image: url('../images/salamandra_margin.svg');
156    background-size: 10rem;
157    background-position-x: right;
158    background-position-y: bottom;
159    background-repeat: no-repeat;
160 }
161
162 /* Regla que aplica solo a firefox */
163 @-moz-document url-prefix() {
164    main {
165       background-image: url('../images/salamandra.svg');
166       background-position-x: right 1rem;
167       background-position-y: bottom 1rem;
168    }
169 }
170
171 main hr {
172    width: 100%;
173 }
174
175 .articles {
176    display: flex;
177    flex-flow: row wrap;
178    align-items: flex-start;
179    justify-content: space-between;
180 }
181
182 .articles article {
183    width: 30rem;
184    border: 1px solid;
185    border-radius: 0.5rem;
186    padding: 1rem;
187    margin: 1rem;
188 }
189
190 .content table {
191    padding-top: 2rem;
192    margin: 0 auto;
193 }
194
195 .content table img {
196    width: 3rem;
197 }
198
199 .content table td {
200    padding: 0 0.3rem;
201 }
202
203 .content .highlight code {
204    white-space: pre-wrap;
205    overflow-x: auto;
206 }
207
208 footer {
209    grid-area: footer;
210    display: flex;
211    align-items: center;
212    width: 100%;
213    padding: 0 2rem;
214    background-color: var(--bgColorLightDark);
215 }
216
217 .greetings {
218    width: 80%;
219    height: 80%;
220    margin: 0 auto;
221 }
222
223 @media screen and (min-width: 780px) {
224    :root {
225       --globalScale: 1.5;
226    }
227
228    body {
229       grid-template-columns: 11rem 1fr;
230       grid-template-areas: /* Tabletas se muestra el aside */
231          "navbar navbar"
232          "aside main"
233          "footer footer";
234    }
235
236    aside {
237       display: flex;
238    }
239 }
240
241 @media screen and (min-width: 1280px) {
242    :root {
243       --globalScale: 2;
244    }
245 }
246