-
Notifications
You must be signed in to change notification settings - Fork 164
/
counter.css
94 lines (94 loc) · 2 KB
/
counter.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
.counter{
color: var(--main-color);
font-family: 'Open Sans', sans-serif;
text-align: center;
height: 190px;
width: 190px;
padding: 30px 25px 25px;
margin: 0 auto;
border: 3px solid var(--main-color);
border-radius: 20px 20px;
position: relative;
z-index: 1;
}
.counter:before,
.counter:after{
content: "";
background: #f3f3f3;
border-radius: 20px;
box-shadow: 4px 4px 2px white;
position: absolute;
left: 15px;
top: 15px;
bottom: 15px;
right: 15px;
z-index: -1;
}
.counter:after{
background: transparent;
width: 100px;
height: 100px;
border: 15px solid var(--main-color);
border-top: none;
border-right: none;
border-radius: 0 0 0 20px;
box-shadow: none;
top: auto;
left: -25px;
bottom: -25px;
right: auto;
}
/* .counter:before{
background: transparent;
width: 100px;
height: 100px;
border: 15px solid var(--main-color);
border-bottom: none;
border-left: none;
border-radius: 0 20px 0 0;
box-shadow: none;
top: -25px;
left: auto;
bottom: auto;
right: -25px;
} */
.counter .counter-icon{
font-size: 35px;
line-height: 35px;
margin: 0 0 15px;
transition: all 0.3s ease 0s;
}
.counter:hover .counter-icon{ transform: rotateY(360deg); }
.counter .counter-value{
color: #555;
font-size: 30px;
font-weight: 600;
line-height: 20px;
margin: 0 0 20px;
display: block;
transition: all 0.3s ease 0s;
}
.counter:hover .counter-value{ text-shadow: 2px 2px 0 #d1d8e0; }
.counter h3{
font-size: 17px;
font-weight: 700;
text-transform: uppercase;
margin: 0 0 15px;
}
.counter.blue{
color: #4accdb;
border-color: #4accdb;
}
.counter.blue:after{
border-bottom-color: #4accdb;
border-left-color: #4accdb;
}
@media screen and (max-width:990px){
.counter{ margin-bottom: 40px; }
}
.counter-container .row{
display: flex;
justify-content: space-around;
align-items: center;
flex-wrap: wrap;
}