forked from alexander-ruehle/paper-collapse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaper-collapse.css
More file actions
74 lines (72 loc) · 1.62 KB
/
paper-collapse.css
File metadata and controls
74 lines (72 loc) · 1.62 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
@charset "UTF-8";
/*
Paper Collapse
Collapsible paper cards.
Made with love by bbo - ©2014 Alexander Rühle
MIT License http://opensource.org/licenses/MIT
*/
.collapse-card {
background-color: white;
border-bottom: 1px solid #eeeeee;
cursor: pointer;
color: #777777;
padding: 1rem;
-webkit-transition: 0.4s;
-moz-transition: 0.4s;
-o-transition: 0.4s;
transition: 0.4s;
}
.collapse-card .title {
font-size: 1rem;
line-height: 1.8rem;
}
.collapse-card .title:before, .collapse-card .title:after {
content: " ";
display: table;
}
.collapse-card .title:after {
clear: both;
}
.collapse-card .title i {
float: left;
}
.collapse-card .title span {
float: right;
margin-left: 1rem;
}
.collapse-card .title strong {
display: block;
margin-left: 4rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.collapse-card .title strong::after {
color: #404040;
font-family: 'FontAwesome';
padding-left: .4rem;
font-size: 1rem;
line-height: 1.49rem;
}
.collapse-card .body {
padding: 1rem;
display: none;
}
.collapse-card * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.collapse-card.active {
-moz-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.18824);
-webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.18824);
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.18824);
z-index: 200;
margin: 1rem -1rem;
}
.collapse-card.active:hover .title strong::after {
content: "\f066";
}
.collapse-card:hover .title strong::after {
content: "\f065";
}