-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
127 lines (120 loc) · 2.03 KB
/
style.css
File metadata and controls
127 lines (120 loc) · 2.03 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
body {
font-family: "Poppins", sans-serif;
}
a {
text-decoration: none;
color: #555;
}
p {
color: #555;
}
.row {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
text-align: left;
}
.col-2 {
flex: 1;
max-width: 45%;
margin: 10px;
}
.col-2 img {
max-width: 75%;
height: auto;
padding: 0;
}
.btn {
display: inline-block;
background: #ff523b;
color: #fff;
padding: 8px 30px;
margin: 30px 0;
border-radius: 30px;
}
.header {
background: radial-gradient(#fff, #ffd6d6);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.block-title {
text-align: center;
}
.categories{
margin: 70px 0;
}
.col-3{
flex-basis: 30%;
min-width: 250px;
margin-bottom: 30px;
}
.col-3 img{
width: 100%;
}
.small-container{
max-width: 1080px;
margin: auto;
padding-left: 25px;
padding-right: 25px;
}
.container{
position: relative;
width: 1200px;
height: 300px;
margin: 240px auto;
}
.container .box{
position: relative;
width: calc(280px - 20px);
height: calc(300px - 20px);
background: #ff523b;
float: left;
margin: 15px;
box-sizing: border-box;
overflow: hidden;
border-radius: 10px;
}
.container .box .icon{
position: absolute;
top: 20px;
left: calc(50% - 50px);
width: 100px;
height: 100px;
background: #fff;
border-radius: 50%;
overflow: hidden;
z-index: 1;
}
.container .box .icon img{
width: 100%;
height: 100%;
object-fit: cover;
}
.container .box .content{
position: absolute;
top: 100%;
height: calc(100% - 100px);
text-align: center;
padding: 20px;
box-sizing: border-box;
transition: 0.5s;
opacity: 0;
}
.container .box:hover .content{
top: 100px;
opacity: 1;
}
.container .box .content h3{
margin: 0 0 10px;
padding: 0;
color: #fff;
font-size: 24px;
}
.container .box .content p{
margin: 0;
padding: 0;
color: #fff;
}