-
Notifications
You must be signed in to change notification settings - Fork 1
/
style_cards.css
113 lines (97 loc) · 2.66 KB
/
style_cards.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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
.wrapper {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.card_container {
height: 200px;
display: flex;
flex-wrap: nowrap;
justify-content: start;
/*border: 1px solid white;*/
}
.card {
width: 80px;
border-radius: .75rem;
background-size: cover;
cursor: pointer;
overflow: hidden;
border-radius: .75rem;
margin: 0 10px;
display: flex;
align-items: flex-end;
transition: .6s cubic-bezier(.28,-0.03,0,.99);
box-shadow: 0px 5px 20px -5px rgba(0,0,0,0.6);
}
.card > .row {
color: white;
display: flex;
flex-wrap: nowrap;
}
.card > .row > .icon {
/*background: #223;*/
background: #4682B4;
color: white;
border-radius: 15%;
width: 50px;
display: flex;
justify-content: center;
align-items: center;
margin: 15px;
}
.card > .row > .icon:hover{
box-shadow: 0px 5px 20px -5px rgba(0,0,0,0.6);
}
.card > .row > .description {
display: flex;
justify-content: center;
flex-direction: column;
overflow: hidden;
height: 80px;
width: 520px;
opacity: 0;
transform: translateY(30px);
transition-delay: .3s;
transition: all .3s ease;
}
.card > .row > .description p{
display: none;
}
.description p {
color: #FFFAF0;
padding-top: 5px;
}
.description h4 {
font-size: 1.5rem;
text-transform: uppercase;
}
input {
display: none;
}
input:checked + label {
width: 200px;
}
input:checked + label .description {
opacity: 1 !important;
transform: translateY(0) !important;
}
.card[for="c1"] {
background-image: url('https://images.unsplash.com/photo-1453306458620-5bbef13a5bca?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}
.card[for="c2"] {
background-image: url('https://images.unsplash.com/photo-1470240731273-7821a6eeb6bd?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}
.card[for="c3"] {
background-image: url('https://images.unsplash.com/photo-1473496169904-658ba7c44d8a?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}
.card[for="c4"] {
background-image: url('https://images.unsplash.com/flagged/photo-1552863047-1dd55fb6f8fa?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}