-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathv-accordion-material.css
141 lines (135 loc) · 3.72 KB
/
v-accordion-material.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
/**
* vAccordion - AngularJS multi-level accordion component
* @version v1.6.0
* @link https://github.com/dkyeremeh/v-accordion-material
* @author Desmond Kyeremeh <[email protected]>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
/***************************************
v-accordion-material
***************************************/
/**
* Example HTML:
*
<v-accordion class="v-accordion-material">
<v-pane>
<v-pane-header id="pane-header" aria-controls="pane-content">
<div class="md-title">Title of the panel</div>
<div class="md-summary">Summary of its content</div>
</v-pane-header>
<v-pane-content id="pane-content" aria-labelledby="pane-header">
[content]
</v-pane-content>
</v-pane>
</v-accordion>
*/
v-accordion.v-accordion-material {
margin: 5px;
}
.v-accordion-material v-pane {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.07),
0 3px 1px -2px rgba(0, 0, 0, 0.1), 0 1px 5px 0 rgba(0, 0, 0, 0.06);
background: white;
}
.v-accordion-material v-pane > v-pane-header > div {
display: flex;
white-space: nowrap;
}
.v-accordion-material v-pane > v-pane-header .md-title {
flex: 1;
font-size: inherit;
font-weight: normal;
overflow: hidden;
text-overflow: ellipsis;
outline: 0;
margin: 0;
padding-right: 8px;
}
.v-accordion-material v-pane > v-pane-header md-summary,
.v-accordion-material v-pane > v-pane-header [md-summary],
.v-accordion-material v-pane > v-pane-header .md-summary {
flex: 2;
max-width: 70%;
font-size: inherit;
opacity: 0.55;
overflow: hidden;
text-overflow: ellipsis;
outline: 0;
margin: 0;
font-weight: normal;
}
.v-accordion-material v-pane-content {
padding: 0 24px;
-webkit-transition: all 0.5s;
transition: all 0.5s;
}
.v-accordion-material v-pane-content > div {
padding-bottom: 20px;
opacity: 0;
-webkit-transform: translate3d(0, 30px, 0);
transform: translate3d(0, 30px, 0);
-webkit-transition: all 0.5s;
transition: all 0.5s;
}
.v-accordion-material v-pane {
overflow: hidden;
}
.v-accordion-material v-pane.is-expanded {
box-shadow: 0 -1px 0 #e5e5e5, 0 0 2px rgba(0, 0, 0, 0.06),
0 2px 4px rgba(0, 0, 0, 0.1);
margin: 16px 0;
}
.v-accordion-material v-pane.is-expanded > v-pane-header {
background: initial;
padding-top: 16px;
border-width: 0;
}
.v-accordion-material v-pane.is-expanded > v-pane-header::before {
-webkit-transform: rotate(-225deg);
transform: rotate(-225deg);
top: 36px;
}
.v-accordion-material v-pane.is-expanded > v-pane-content {
padding: 16px 24px;
}
.v-accordion-material v-pane.is-expanded > v-pane-content > div {
opacity: 1;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.v-accordion-material v-pane[disabled] v-pane-header::before {
display: none;
}
.v-accordion-material v-pane-header {
padding: 0 60px 0 24px;
line-height: 48px;
border-top: 1px solid #eee;
-webkit-transition: all 0.25s;
transition: all 0.25s;
}
.v-accordion-material v-pane-header::before {
content: '';
height: 8px;
width: 8px;
line-height: 24px;
display: block;
position: absolute;
top: 16px;
right: 30px;
border: 2px solid #888;
border-width: 0 0 2px 2px;
transition: all 0.25s;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.v-accordion-material v-pane-header:hover,
.v-accordion-material v-pane-header:focus {
background-color: #eee;
}
@media screen and (max-width: 599px) {
.v-accordion-material v-pane > v-pane-header md-summary,
.v-accordion-material v-pane > v-pane-header [md-summary],
.v-accordion-material v-pane > v-pane-header .md-summary {
display: none;
}
}