colocados los cambios en sus clases correspondientes
[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 }
17
18 :root {
19   --bgColorDark: #006b91;
20   --bgColorLight: #D2D2D2;
21   --globalScale: 1;
22 }
23
24 h1 {
25   font-size: 6rem;
26 }
27
28 h2 {
29   font-size: 4rem;
30 }
31
32 h3 {
33   font-size: 3rem;
34 }
35
36 h4 {
37   font-size: 2rem;
38 }
39
40 p {
41   font-size: 1.5rem;
42 }
43
44 h1, h2, h3, h4, p {
45   padding: 0.5rem 0;
46   margin: 0;
47 }
48
49   a:link,
50   a:visited,
51   a:hover,
52   a:active {
53     text-decoration: none;
54     font-size: 1.5rem;
55   }
56
57 html {
58   font-size: calc(62.5% * var(--globalScale));
59   background-color: var(--bgColorDark);
60 }
61
62 /* REGLAS DEL HOME */
63
64 body {
65   display: grid;
66   grid-template-columns: 1fr;
67   grid-template-rows: 5rem 1fr 5rem;
68   grid-template-areas: /* No mostramos el aside en móbiles */
69     "navbar"
70     "main"
71     "footer";
72   height: 100vh;
73   margin: 0;
74 }
75
76 aside {
77   grid-area: aside;
78   display: none;
79   flex-flow: column nowrap;
80   align-items: flex-start;
81   justify-content: flex-start;
82   width: 100%;
83   padding: 0 1rem;
84   background-color: #242930;
85 }
86
87 aside .item {
88   display: flex;
89   flex-flow: row nowrap;
90   align-items: center;
91   justify-content: space-between;
92   font-size: 1.5rem;
93   width: 100%;
94   padding: 1rem 0;
95 }
96
97 nav {
98     grid-area: navbar;
99     display: flex;
100     flex-flow: row nowrap;
101     align-items: center;
102     justify-content: space-between;
103     width: 100%;
104     padding: 0 2rem;
105     background-color: #4f5864;
106   }
107   main {
108     grid-area: main;
109     padding: 2rem;
110     background-color: #353b43;
111   }
112     
113   main hr {
114     width: 100%;
115   }
116   
117   .articles {
118     display: flex;
119     flex-flow: row wrap;
120     align-items: flex-start;
121     justify-content: space-between;
122   }
123   
124   .articles article {
125     width: 30rem;
126     border: 1px solid;
127     border-radius: 0.5rem;
128     padding: 1rem;
129     margin: 1rem;
130   }
131   
132   
133   .content table {
134     padding-top: 2rem;
135     margin: 0 auto;
136   }
137   
138
139
140
141
142
143
144 .content table img {
145   width: 3rem;
146 }
147
148 .content table td {
149   padding: 0 0.3rem;
150 }
151
152 footer {
153   grid-area: footer;
154   display: flex;
155   align-items: center;
156   width: 100%;
157   padding: 0 2rem;
158   background-color: #4f5864;
159 }
160 }
161
162 .greetings {
163   background-color: var(--bgColorLight);
164   width: 80%;
165   height: 80%;
166   margin: 0 auto;
167 }
168
169 @media screen and (min-width: 780px) {
170   :root {
171     --globalScale: 1.5;
172   }
173
174   body {
175     grid-template-columns: 11rem 1fr;
176     grid-template-areas: /* Tabletas se muestra el aside */
177       "navbar navbar"
178       "aside main"
179       "footer footer";
180   }
181   
182   aside {
183     display: flex;
184   }
185 }
186
187
188 @media screen and (min-width: 1280px) {
189   :root {
190     --globalScale: 2;
191   }
192 }
193
194