-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
171 lines (148 loc) · 3.19 KB
/
styles.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700);
:root {
--transition: all 0.3s ease-in-out;
}
.frame {
position: absolute;
top: 50%;
left: 50%;
width: 400px;
height: 400px;
margin-top: -200px;
margin-left: -200px;
border-radius: 2px;
box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.05);
overflow: hidden;
background: #6190e8; /* fallback for old browsers */
background: -webkit-linear-gradient(
to right,
#a7bfe8,
#6190e8
); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(
to right,
#a7bfe8,
#6190e8
); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
color: #5e5e5e;
font-family: "Open Sans", Helvetica, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.plan {
position: absolute;
width: 110px;
height: 160px;
top: 30px;
background: #fff;
box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.1);
border-radius: 3px;
overflow: hidden;
cursor: pointer;
transition: var(--transition);
}
.plan.basic {
left: 25px;
}
.plan.pro {
left: 145px;
}
.plan.premium {
left: 265px;
}
.plan:hover {
transform: scale(1.1) translate3d(0, 0, 0);
box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.1);
}
.plan:hover .title {
background: #a7bfe8; /* lighter version of the gradient */
}
.plan:hover .price {
color: #a7bfe8; /* lighter version of the gradient */
}
.plan.basic:hover ~ .datas .users .fill,
.plan.basic:hover ~ .datas .gb .fill,
.plan.basic:hover ~ .datas .projects .fill {
transform: scaleX(0.05) translate3d(0, 0, 0);
}
.plan.pro:hover ~ .datas .users .fill {
transform: scaleX(0.3) translate3d(0, 0, 0);
}
.plan.pro:hover ~ .datas .gb .fill {
transform: scaleX(0.7) translate3d(0, 0, 0);
}
.plan.pro:hover ~ .datas .projects .fill {
transform: scaleX(0.5) translate3d(0, 0, 0);
}
.plan.premium:hover ~ .datas .users .fill,
.plan.premium:hover ~ .datas .gb .fill,
.plan.premium:hover ~ .datas .projects .fill {
transform: scaleX(1) translate3d(0, 0, 0);
}
.title {
height: 36px;
text-align: center;
background: #1d2671; /* original color */
color: #fff;
font-weight: 600;
line-height: 36px;
font-size: 14px;
transition: var(--transition);
}
.price {
text-align: center;
font-size: 30px;
line-height: 30px;
font-weight: 700;
padding: 16px 0 17px 0;
transition: var(--transition);
}
.price span {
display: block;
font-size: 12px;
line-height: 12px;
font-weight: 400;
}
.line {
height: 3px;
background: #e4e4e4;
margin: 0 auto 7px auto;
}
.datas {
position: absolute;
height: 160px;
width: 380px;
top: 220px;
left: 10px;
background: #fff;
box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.1);
}
.data {
margin: 17px 15px 0 15px;
}
.text {
font-size: 12px;
height: 20px;
display: flex;
justify-content: space-between;
}
.line {
position: relative;
z-index: 5;
width: 100%;
height: 10px;
background: #e9edef;
border-radius: 5px;
overflow: hidden;
}
.fill {
position: relative;
z-index: 1;
height: 10px;
width: 100%;
background: #a7bfe8; /* lighter version of the gradient */
transform: scaleX(0);
transform-origin: 0 50%;
transition: var(--transition);
border-radius: 3px;
}