-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle for select box.css
138 lines (133 loc) · 2.99 KB
/
style for select box.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
@import url(https://fonts.googleapis.com/css?family=Dosis);
@import url(https://fonts.googleapis.com/css?family=Josefin+Slab:400,600,700,300|Open+Sans:400,300,700);
body {
text-align: center;
background: #ffffff;
font-family: "Josefin Slab", san-serif;
color: #000000;
}
#content {
position:absolute;
left:70px;
top:160px;
}
body * {
user-select: none;
-webkit-user-select: none;
}
h3 {
font-weight: 700;
}
.arial {
margin: 4px 14px;
display: inline-block;
position: relative;
}
.arial, .arial * {
cursor: default;
}
.arial.selected .container {
transition: all 0.3s 0.6s cubic-bezier(1, 0.5, 0.1, 0.9);
transform: scale(1.3, 1);
}
.arial.selected .container .header {
transition: all 1s cubic-bezier(1, 0.5, 0.1, 0.9);
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0);
top: calc(100% - 1px);
/*background: red;*/
transform: translateY(100%);
}
.arial.selected .container .header .innerHeader {
position: relative;
transform: translateY(-39px);
}
.arial.selected .contentHolder .content {
top: 0;
}
.arial .container {
transition: all 0.3s 0.2s cubic-bezier(1, 0.5, 0.1, 0.9);
overflow: hidden;
}
.arial .container .header {
padding: 10px 20px;
display: inline-block;
background: #00BCD4;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.6);
color: white;
max-height: 30px;
overflow: hidden;
transition: all 1s 0.2s cubic-bezier(1, 0.5, 0.1, 0.9);
position: relative;
z-index: 2;
font-weight: 200;
}
.arial .container .header .innerHeader {
position: relative;
transition: all 1s 0.2 cubic-bezier(1, 0.5, 0.1, 0.9);
}
.arial .container .header .innerHeader:after {
content: "";
width: 0;
height: 0;
display: inline-block;
position: relative;
margin-left: 10px;
margin-right: -2px;
top: 3px;
border-right: 10px solid transparent;
border-left: 10px solid transparent;
border-top: 12px solid rgba(255, 255, 255, 0.8);
}
.arial .contentHolder {
position: absolute;
left: 0;
right: 0;
top: 100%;
overflow: hidden;
height: 1000px;
}
.arial .contentHolder .content {
position: absolute;
left: 0;
right: 0;
top: -100%;
transition: all 1s cubic-bezier(1, 0.5, 0.1, 0.9);
background: #00BCD4;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.4);
padding: 0 4px 4px 4px;
overflow: hidden;
/* .list:hover:after{
content: "";
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 100%;
transform: translateX(-50%);
background: rgba(255,255,255,0.5);
-webkit-animation: spread 0.4s;
}
@-webkit-keyframes spread{
from{
opacity: 0;
}
to{
opacity: 1;
}
}
*/
}
.arial .contentHolder .content .list {
position: relative;
padding: 10px 0;
transition: all 0.2s cubic-bezier(0.9, 0.4, 0.4, 0.2);
background: #eee;
color: #888;
box-sizing: border-box;
}
.arial .contentHolder .content .list:hover {
color: #444;
box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.2);
z-index: 4;
transform: scale(1.02, 1);
}