-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
118 lines (105 loc) · 2.35 KB
/
main.css
File metadata and controls
118 lines (105 loc) · 2.35 KB
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
/* Mediaqueries */
/* Mobile first design */
:root { /* El root te indica que eso se va ejecutar primero (pongas dónde lo pongas) */
--background-link-color: rgb(141, 210, 241);
}
* {
box-sizing: border-box;
}
.img-header {
border: 2px solid cornflowerblue;
width: 100%;
}
.navigation-bar__items {
text-align: center;
padding: 0.2rem;
margin: 0; /* Sacar el margen respecto al logo (hermano) */
background-color: var(--background-link-color); /* Toma el background color de la variable del root */
}
.navigation-bar__item {
font-size: 1.5rem;
border-radius: 12px;
margin-bottom: 0.5rem; /* Margenes entre los links*/
border: 1px solid cornflowerblue;
width: 80%;
text-align: center;
list-style: none; /* Eliminar punto negro de la izquierda de las listas */
margin-left: 2rem;
}
.navigation-bar__items a {
text-decoration: none;
color: black;
}
section {
border: 2px solid cornflowerblue;
margin-top: 0.2rem;
padding: 0.5rem;
}
.introduccion {
padding: 1.2rem;
}
article {
border: 2px solid blue;
margin: 1rem;
padding: 0.5rem;
width: 90%;
}
article img {
flex-wrap: wrap;
width: 100%;
}
/* TABLETS */
@media (min-width: 551px) and (max-width: 800px){
.navigation-bar__items {
text-align: left;
padding: 0;
}
.navigation-bar__item {
display: inline;
border: none;
font-size: 0.8rem;
width: 14%;
margin-left: 0.7rem;
}
article {
margin: 5rem;
width: 75%;
}
article img {
width: 50%;
}
article span {
width: 50%;
float: right;
padding-left: 0.5rem;
}
}
/* ORDENADORS */
@media (min-width: 801px){
.navigation-bar__items {
text-align: left;
}
.navigation-bar__item {
display: inline;
border: none;
font-size: 0.9rem;
margin-left: 1.5rem;
}
.sections {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
article {
width: 45%;
margin: 1em;
}
article img {
width: 50%;
}
article span {
width: 50%;
float: right;
padding-left: 0.5rem;
}
}