-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
102 lines (95 loc) · 1.83 KB
/
style.css
File metadata and controls
102 lines (95 loc) · 1.83 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
*{
margin:0;
padding: 0;
/* border: red solid 1px; */
box-sizing: border-box;
}
body{
font-family:'Signika Negative', sans-serif;
}
h1,h2,p{
color: #ffffff;
}
header{
background: url('http://dslv9ilpbe7p1.cloudfront.net/KeMTgcQ05UZSq45TRvOB1Q_store_banner_image.jpeg') no-repeat fixed;
background-size: cover;
padding: 2rem;
display: flex;
flex-direction: column;
text-align: center;
align-items: center;
}
header img{
width: 300px;
}
header p{
padding: 20px;
}
main{
max-width: 1024px;
padding:1em;
margin-right:auto ;
margin-left: auto;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
row-gap: 1em;
gap: 1em;
}
.card{
display: flex;
border-radius: 10px;
flex-direction: column;
align-items: center;
background-color: #500a30 ;
box-shadow: #313131 7px 7px 6px ;
overflow: hidden;
}
.card-img{
height: 150px;
overflow:hidden;
}
.card-img img{
height: 100%;
transition: transform .5s ;
}
.card-img img:hover{
transform: translateY(-40px);
}
.card img{
height: auto;
width: 100%;
}
.card .card-text{
position: relative;
padding-top: 1em;
padding-bottom: 1em;
text-align: center;
}
#enlace-codigo{
display: block;
margin-top: 1em;
background-color:#04397e;
padding: .5em 2em;
border-radius: 5px;
color: #ffffff;
text-decoration: none;
}
#enlace-codigo:hover{
background: linear-gradient(to right, #04397e 50%, #06af77 50%);
background-size: 210% 100%;
background-position: right bottom;
transition: all .2s ease-out;
}
/*Mobile versión*/
@media screen and (max-width:425px){
main{
grid-template-columns: 1fr;
}
.card-img{
height: 100%;
}
.card-img img{
height: 100%;
}
}
/*End Mobile versión*/