96e69c85478feac8bc88b04b2777ab0883438f16
[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: #242930;
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    margin: 0;
80 }
81
82 aside {
83    grid-area: aside;
84    display: none;
85    flex-flow: column nowrap;
86    align-items: flex-start;
87    justify-content: flex-start;
88    width: 100%;
89    padding: 0 1rem;
90    background-color: var(--bgColorDark);
91 }
92
93 aside .item {
94    display: flex;
95    flex-flow: row nowrap;
96    align-items: center;
97    justify-content: space-between;
98    font-size: 1.5rem;
99    width: 100%;
100    padding: 1rem 0;
101 }
102
103 nav {
104    grid-area: navbar;
105    background-color: var(--bgColorLightDark);
106    width: 100%;
107 }
108
109 nav ul {
110    display: flex;
111    flex-flow: row nowrap;
112    align-items: center;
113    justify-content: flex-start;
114    list-style-type: none;
115    width: 100%;
116    height: 100%;
117    margin: 0;
118    padding: 0;
119    overflow: hidden;
120    background-color: #333;
121 }
122
123 nav li {
124    display: flex;
125    align-items: center;
126    height: 100%;
127  }
128  
129 nav a {
130    display: block;
131    color: white;
132    text-align: center;
133    padding: 14px 16px;
134    text-decoration: none;
135  }
136  
137  nav li:hover {
138    background-color: #111;
139  }
140
141 main {
142    grid-area: main;
143    padding: 2rem;
144    background-color: var(--bgColorMidDark);
145    background-image: url('../images/salamandra.svg');
146    background-size: 10rem;
147    background-position-x: right;
148    background-position-y: bottom;
149    background-repeat: no-repeat;
150 }
151
152 main hr {
153    width: 100%;
154 }
155
156 .articles {
157    display: flex;
158    flex-flow: row wrap;
159    align-items: flex-start;
160    justify-content: space-between;
161 }
162
163 .articles article {
164    width: 30rem;
165    border: 1px solid;
166    border-radius: 0.5rem;
167    padding: 1rem;
168    margin: 1rem;
169 }
170
171 .content table {
172    padding-top: 2rem;
173    margin: 0 auto;
174 }
175
176 .content table img {
177    width: 3rem;
178 }
179
180 .content table td {
181    padding: 0 0.3rem;
182 }
183
184 footer {
185    grid-area: footer;
186    display: flex;
187    align-items: center;
188    width: 100%;
189    padding: 0 2rem;
190    background-color: var(--bgColorLightDark);
191 }
192
193 .greetings {
194    width: 80%;
195    height: 80%;
196    margin: 0 auto;
197 }
198
199 @media screen and (min-width: 780px) {
200    :root {
201       --globalScale: 1.5;
202    }
203
204    body {
205       grid-template-columns: 11rem 1fr;
206       grid-template-areas: /* Tabletas se muestra el aside */
207          "navbar navbar"
208          "aside main"
209          "footer footer";
210    }
211
212    aside {
213       display: flex;
214    }
215 }
216
217 @media screen and (min-width: 1280px) {
218    :root {
219       --globalScale: 2;
220    }
221 }
222