-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
119 lines (113 loc) · 2.35 KB
/
style.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
114
115
116
117
118
119
*, *::before, *::after{
font-family: "Open Sans", sans-serif;
box-sizing: border-box;
margin: 0;
}
:root{
--color-one: hsl(192, 95%, 50%);
--color-two: hsl(191, 100%, 98%);
}
.cards-container{
display: flex;
}
.card-main{
margin: 10px;
border-radius: 10px;
box-shadow: 0 5px 7px 0 black;
width: 50%;
}
.card-main:hover{
transform: scale(1.01);
box-shadow: 0 5px 10px 0 pink;
transition: ease-out .3s;
}
.card-header img{
aspect-ratio: 16/9;
object-fit: cover;
display: block;
width: 100%;
max-height: 200px;
object-position: center;
overflow: hidden;
border-radius: 10px 10px 0 0;
}
.card-body, .card-footer{
padding: 10px;
font-size: 1rem;
}
.card-footer{
margin-top: 0px;
}
.card-footer .blue{
border: none;
padding: 20px;
margin-right: 5px;
border-radius: 15px;
background-color: var(--color-one);
color: var(--color-two);
cursor: pointer;
box-shadow: 0 0 0 1px var(--color-two);
}
.card-footer .blue:hover{
background-color: var(--color-two);
color: var(--color-one);
box-shadow: 0 0 0 1px var(--color-one);
transition: ease-out .3s;
}
.card-footer .white{
border: none;
padding: 20px;
margin-right: 5px;
border-radius: 15px;
background-color: var(--color-two);
color: var(--color-one);
cursor: pointer;
box-shadow: 0 0 0 1px var(--color-one);
}
.card-footer .white:hover{
background-color: var(--color-one);
color: var(--color-two);
box-shadow: 0 0 0 1px var(--color-two);
transition: ease-out .3s;
}
@media (max-width: 700px) {
.cards-container{
display: flex;
flex-direction: column;
}
.card-main{
width: 100%;
display: flex;
}
.card-body{
display: none;
}
.card-header img{
border-radius: 10px 0 0 10px;
}
.card-footer{
display: flex;
position: relative;
flex-direction: row;
}
.card-footer button{
position: relative;
height: 30%;
font-size: 70%;
font-weight: bold;
margin: auto 0;
}
}
@media (max-width: 650px){
.card-main{
display: flex;
flex-direction: column;
}
.card-main img{
border-radius: 10px 10px 0 0;
}
.card-footer{
display: flex;
justify-content: center;
}
}