-
Notifications
You must be signed in to change notification settings - Fork 1
/
folders.html
150 lines (127 loc) · 2.94 KB
/
folders.html
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
<button class="back">
<i class="mdi mdi-arrow-left"></i>
</button>
<div class="stage">
<div class="folder-wrap level-current scrolling">
<div class="tile folder">
<i class="mdi mdi-folder"></i>
<h3>test 1</h3>
<p>Something something</p>
</div><!-- .tile.folder -->
<div class="tile folder">
<a href="google.com">
<i class="mdi mdi-folder"></i> </a>
<h3>test 2 </h3>
<p>Something something</p>
</div><!-- .tile.folder -->
<div class="tile folder">
<i class="mdi mdi-folder"></i>
<h3>test3</h3>
<p>Something something</p>
</div><!-- .tile.folder -->
<div class="tile folder">
<i class="mdi mdi-folder"></i>
<h3>test5</h3>
<p>Something something</p>
</div><!-- .tile.folder -->
</div><!-- .stage -->
<style>
*{box-sizing:border-box;}
body{
font-family:source sans pro;
}
h3{
font-weight:400;
font-size:16px;
}
p{
font-size:12px;
color:#888;
}
.stage{
max-width:80%;margin:60px 10%;
position:relative;
}
.folder-wrap{
display: flex;
flex-wrap:wrap;
}
.folder-wrap::before{
content:'Folder name';
display: block;
position: absolute;
top:-40px;
}
.folder-wrap:first-child::before{
content:'Home (top of file structure)';
display: block;
position: absolute;
top:-40px;
}
.tile{
border-radius: 3px;
width: calc(20% - 17px);
margin-bottom: 23px;
text-align: center;
border: 1px solid #eeeeee;
transition: 0.2s all cubic-bezier(0.4, 0.0, 0.2, 1);
position: relative;
padding: 35px 16px 25px;
margin-right: 17px;
cursor: pointer;
}
.tile:hover{
box-shadow: 0px 7px 5px -6px rgba(0, 0, 0, 0.12);
}
.tile i{
color: #00A8FF;
height: 55px;
margin-bottom: 20px;
font-size: 55px;
display: block;
line-height: 54px;
cursor: pointer;
}
.tile i.mdi-file-document{
color:#8fd9ff;
}
.back{
font-size: 26px;
border-radius: 50px;
background: #00a8ff;
border: 0;
color: white;
width: 60px;
height: 60px;
margin: 20px 20px 0;
outline:none;
cursor:pointer;
}
/* Transitioning */
.folder-wrap{
position: absolute;
width: 100%;
transition: .365s all cubic-bezier(.4,0,.2,1);
pointer-events: none;
opacity: 0;
top: 0;
}
.folder-wrap.level-up{
transform: scale(1.2);
}
.folder-wrap.level-current{
transform: scale(1);
pointer-events:all;
opacity:1;
position:relative;
height: auto;
overflow: visible;
}
.folder-wrap.level-down{
transform: scale(0.8);
}
</style>
<!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> -->
<!-- <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.1.min.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/2.5.94/css/materialdesignicons.min.css">