-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
151 lines (136 loc) · 2.58 KB
/
Copy pathstyle.css
File metadata and controls
151 lines (136 loc) · 2.58 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/*
Variables CSS / Custom properties
super-azul: #72c0c0
*/
:root {
--yellow: #ed9d1b;
--orange: #ff7820;
--black: #000;
--white: #fff;
--space: 20px;
}
body {
background-color: var(--blue);
background-image: url(images/pattern.jpg);
font-family: Arial, Helvetica, sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.child-right {
color: var(--yellow);
}
.header,
.container {
max-width: 1000px;
margin: auto;
}
.container {
background-color: var(--white);
border-radius: 4px 4px 0 0;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 5px 0;
}
/*-------------- Navegation --------------*/
.nav {
background-color: var(--orange);
display: flex;
padding: 10px;
padding-left: 45px;
border-radius: 4px 4px 0 0;
margin-bottom: 30px;
}
.nav-list,
.nav-form {
flex-grow: 1;
}
.nav-list {
background-color: var(--orange);
display: flex;
list-style: none;
}
.nav-list-item {
background-color: var(--orange);
color: var(--white);
}
.nav-item-list-link {
background-color: var(--orange);
display: block;
padding: 4px 8px;
border-right: 1px solid var(--white);
text-decoration: none;
font-weight: bold;
color: var(--white);
}
.nav-item-list-link:hover {
text-decoration: underline;
}
.nav-form {
background-color: var(--orange);
display: flex;
justify-content: flex-end;
}
/* ------------- Slider de imagenes ---------- */
.slider {
/* Si quiero centrar una imagen solo puedo usar text align center en el elmento padre */
text-align: center;
background-color: var(--white);
margin-bottom: 30px;
}
/* ----------- Principal ----------- */
.main {
background-color: var(--white);
display: grid;
grid-template-columns: 250px 1fr;
padding: var(--space);
padding-top: 0;
margin-bottom: 40px;
}
.category-list-item {
list-style: none;
padding: 10px;
border-bottom: 1px dashed gray;
}
.category-list-item-link {
text-decoration: none;
display: block;
color: var(--black);
}
.product-main {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--space);
}
.product {
padding: var(--space);
}
.img-text {
display: flex;
justify-content: space-evenly;
gap: 20px;
}
.product-name {
padding-bottom: 15px;
}
/* Termina producto */
.news {
margin: auto;
margin-bottom: 200px;
max-width: 940px;
background-color: aqua;
border-radius: 6px;
border: 1px solid var(--black);
padding: 10px 40px;
background-image: linear-gradient(white, grey);
display: grid;
grid-template-columns: repeat(3, 1fr);
}
.news figure {
margin-top: 10px;
}