cambio de colores de main, aside, nav y footer
[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 }
85
86 aside .item {
87   display: flex;
88   flex-flow: row nowrap;
89   align-items: center;
90   justify-content: space-between;
91   font-size: 1.5rem;
92   width: 100%;
93   padding: 1rem 0;
94 }
95
96 nav {
97     grid-area: navbar;
98     display: flex;
99     flex-flow: row nowrap;
100     align-items: center;
101     justify-content: space-between;
102     width: 100%;
103     padding: 0 2rem;
104   }
105
106 main {
107   grid-area: main;
108   margin: 2rem;
109 }
110
111 main hr {
112   width: 100%;
113 }
114
115 .articles {
116   display: flex;
117   flex-flow: row wrap;
118   align-items: flex-start;
119   justify-content: space-between;
120 }
121
122 .articles article {
123   width: 30rem;
124   border: 1px solid;
125   border-radius: 0.5rem;
126   padding: 1rem;
127   margin: 1rem;
128 }
129
130 .content table {
131   padding-top: 2rem;
132   margin: 0 auto;
133 }
134
135 .content table img {
136   width: 3rem;
137 }
138
139 .content table td {
140   padding: 0 0.3rem;
141 }
142
143 footer {
144   grid-area: footer;
145   display: flex;
146   align-items: center;
147   width: 100%;
148   padding: 0 2rem;
149 }
150
151 .greetings {
152   background-color: var(--bgColorLight);
153   width: 80%;
154   heigth: 80%;
155   margin: 0 auto;
156 }
157
158 @media screen and (min-width: 780px) {
159   :root {
160     --globalScale: 1.5;
161   }
162
163   body {
164     grid-template-columns: 11rem 1fr;
165     grid-template-areas: /* Tabletas se muestra el aside */
166       "navbar navbar"
167       "aside main"
168       "footer footer";
169   }
170
171   aside {
172     display: flex;
173   }
174
175 }
176
177 @media screen and (min-width: 1280px) {
178   :root {
179     --globalScale: 2;
180   }
181 }
182 aside{
183   background-color: #242930;
184 }
185 main{
186   background-color: #353b43;
187   margin: 0;
188 }
189 nav{
190   background-color: #4f5864;
191 }
192 footer{
193   background-color: #4f5864;
194 }