-
Notifications
You must be signed in to change notification settings - Fork 0
/
estilos.css
106 lines (83 loc) · 1.97 KB
/
estilos.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
* {
margin: 0;
padding: 0;
}
body {
background: #ee9ca7; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #ffdde1, #ee9ca7); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #ffdde1, #ee9ca7); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
color: #000;
font-family: 'Shadows Into Light', cursive;
}
.contenedor {
width: 90%;
max-width: 1000px;
margin: 20px auto;
display: grid;
grid-gap: 20px;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(4, auto);
text-align: justify;
grid-template-areas: "header header header"
"contenido contenido sidebar"
"widget-1 widget-2 sidebar"
"footer footer footer";
}
.contenedor > div,
.contenedor .header,
.contenedor .contenido,
.contenedor .sidebar,
.contenedor .footer {
background: #fff;
padding: 20px;
border-radius: 4px;
}
.contenedor .header {
background: #ffffff;
color: rgb(0, 0, 0);
grid-area: header;
}
.contenedor .contenido {
grid-area: contenido;
}
.contenedor .sidebar {
grid-column: 3 / 4;
background: #7f79a7;
color: #fff;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
min-height: 100px;
grid-area: sidebar;
}
.contenedor .widget-1,
.contenedor .widget-2 {
background: #B0CCFF;
color: rgb(0, 0, 0);
height: 100px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.contenedor .widget-1 {
grid-area: widget-1;
}
.contenedor .widget-2 {
grid-area: widget-2;
}
.contenedor .footer {
background: #f7f7f7;
color: rgb(0, 0, 0);
grid-area: footer;
}
@media screen and (max-width: 768px){
.contenedor {
grid-template-areas: "header header header"
"contenido contenido contenido"
"sidebar sidebar sidebar"
"widget-1 widget-1 widget-2"
"footer footer footer";
}
}