-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
126 lines (96 loc) · 2.14 KB
/
index.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*=============================================
= GLOBAL =
=============================================*/
* {
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
}
/*===== End of GLOBAL ======*/
body {
background: white;
color: black;
}
.contenedor {
display: grid;
grid-template-areas: "header header header"
"aside article article"
"aside article article"
"footer footer footer";
grid-template-columns: 2fr 3fr 5fr;
grid-template-rows: 2fr 3fr 5fr 1fr;
grid-gap: 5px;
margin: auto;
text-align: center;
grid-auto-flow: dense;
}
header {
grid-area: header;
background: red;
}
nav {
background: rgb(255, 251, 0);
}
aside {
grid-area: aside;
background: rgb(129, 20, 93);
}
article {
grid-area: article;
background: rgb(17, 155, 136);
}
article button {
text-decoration: none;
padding: 20px;
font-weight: 800;
font-size: 25px;
color: black;
background-color: #9b0e0e;
}
article button:hover {
color: #9b0e0e;
background-color: #bc6355;
text-decoration: none;
}
/*=============================================
= footer =
=============================================*/
footer {
grid-area: footer;
}
footer ul {
overflow: hidden;
background-color: #333;
}
footer ul li {
display: inline-block;
}
footer ul li a {
display: block;
color: white;
text-align: center;
text-decoration: none;
padding: 14px 150px;
}
footer ul li a:hover {
background-color: aqua;
}
/*===== End of footer ======*/
/*=============================================
= Breakpoints =
=============================================*/
/* ipad */
@media screen and (max-width:768px) {
.contenedor {
grid-template-areas: "header header "
"article article"
"aside aside "
"footer footer ";
grid-template-columns: 2fr 3fr ;
}
}
/* iphone */
@media screen and (max-width:414px) {}
/*===== End of Breakpoints ======*/