-
Notifications
You must be signed in to change notification settings - Fork 0
/
estilos.scss
173 lines (155 loc) · 3.15 KB
/
estilos.scss
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
body{
margin: 0;
padding: 0;
font-family: Arial,sans-serif;
background: #FCF5EA;
}
#plantilla{
display: grid;
height: 100vh;
grid-template-areas:
" header header" /* 100px */
"logo logo"
" producto publicidad" /* 2fr */
" servicios publicidad" /* 3fr */
" footer footer"; /* 170px */
/* 20% auto 200px */
grid-template-rows: 60px 150px 3fr 2fr 60px;
grid-template-columns: auto 200px;
grid-column-gap: 10px;
grid-row-gap: 20px;
@media(max-width: 700px){
grid-template-areas:
" header header"
"logo logo"
" producto producto"
" publicidad publicidad"
" servicios servicios"
" footer footer";
grid-template-rows: 60px 150px 3fr 150px 2fr 60px;
}
}
@media(max-width: 500px){
#plantilla{
display: flex;
flex-direction: column;
}
}
header{
grid-area: header;
background-color: #000;
color: #fff;
display: grid;
align-content: center;
}
nav ul{
margin: 0;
padding: 0;
display:flex;
justify-content: space-evenly;
li{
display: inline;
padding: 10px 10px;
border-radius: 15px 0 15px 0;
}
li:hover{
color: #000;
background-color: #fff;
}
}
a:link{
color: white;
text-decoration: none;
}
a:visited{
color: white;
text-decoration: none;
}
a:hover{
color: #000;
text-decoration: underline;
}
footer{
display: grid;
justify-content: center; /* Horizontal */
align-items: center; /* vertical */
grid-area: footer;
color: #fff;
background-color: #000;
h2{
justify-self: center;
align-self: center;
}
}
#servicios{
grid-area: servicios;
text-align: center;
}
#productos{
grid-area: producto;
text-align: center;
}
#logo{
grid-area: logo;
display:grid;
justify-items: center;
svg{
width: 80px;
height: auto;
transform: translate( 50%, 50%);
}
}
.fadein{
animation: fadeIn 3s infinite linear;
}
.spin{
animation: spin 4s infinite linear;
}
@keyframes spin{
from { transform: rotate(0deg);}
to { transform:rotate(360deg);}
}
@keyframes fadeIn{
0%{
opacity: .75;
}
50%{
opacity: 1;
}
75%{
opacity: .75;
}
100%{
opacity: .5;
}
}
.productos__contenedor{
display: flex;
flex-wrap: wrap;
overflow: scroll;
padding: 15px;
&__card{
width: 150px;
height: 250px;
background-color: #FCF5EA;
background-color: rgb(70, 20, 20) !important;
margin: auto;
margin-top: 10px;
margin-bottom: 10px;
border-radius: 15px;
}
}
.publicidad{
grid-area: publicidad;
background-color: blueviolet;
background-image: url(https://images.unsplash.com/photo-1601645191163-3fc0d5d64e35?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1035&q=80);
}
.menu{
grid-area: menu;
background-color: crimson;
}
.border-items{
/* border: 3px;
border-color: black;
border-style: solid; */
}