health.css
2.4 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
128
/**
* Author: Kris Olszewski
* CodePen: https://codepen.io/KrisOlszewski/full/wBQBNX
*/
html {
-webkit-tap-highlight-color: transparent;
}
/**
* Component: Dropdown
* --------------------------------------------------
*/
.c-dropdown {
position: relative;
display: inline-block;
text-align: left;
}
.c-dropdown__list {
margin: 5px 0 0 0;
padding: 6px 0;
list-style: none;
position: absolute;
top: 125%;
left: 0;
width: 100%;
opacity: 0;
visibility: hidden;
border-radius: 3px;
background: #fff;
/* -webkit-transition: opacity .25s linear, top .25s linear;
transition: opacity .25s linear, top .25s linear;*/
}
.c-dropdown.is-open .c-dropdown__list {
opacity: 1;
visibility: visible;
top: 100%;
}
.c-dropdown__item {
padding: 0.06rem 0.12rem;
font-size: 0.18rem;
line-height: 0.20rem;
cursor: pointer;
color: #434A54;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
-webkit-transition: background-color .25s linear;
transition: background-color .25s linear;
border-bottom: 0.01rem solid #eeeeee;
}
.c-dropdown__item:hover {
background-color: #E6E9ED;
}
/**
* Component: Button
* --------------------------------------------------
*/
.c-button {
-webkit-appearance: none;
margin: 0;
border: 0;
overflow: visible;
font: inherit;
text-transform: none;
display: inline-block;
vertical-align: middle;
text-decoration: none;
text-align: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.c-button:hover, .c-button:focus {
outline: none;
text-decoration: none;
}
.c-button:not(:disabled) {
cursor: pointer;
}
.c-dropdown__item a{
color:#424242;
}
#target{
transition: transform 0.2s ease-out 0s;
}
/**
* Component: Button
* Modifier: Dropdown
* --------------------------------------------------
*/
.c-button--dropdown {
padding: 0.06rem 0.12rem 0.06rem 1.04rem;
color: #E6E9ED;
font-size: 0.14rem;
line-height: 0.20rem;
min-height: 0.32rem;
border-radius: 3px;
-webkit-transition: background-color .2s linear;
transition: background-color .2s linear;
}
.c-dropdown__item a img{
vertical-align:middle;
margin-right:0.1rem;
width:0.3rem;
}
/*.c-button--dropdown:after {
content: "";
position: absolute;
top: 14px;
right: 11px;
width: 0;
height: 0;
border: 5px solid transparent;
border-top-color: #E6E9ED;
}*/