feat ContextMenu: Rename and Delete

This commit is contained in:
Mahdi Dibaiee
2015-09-03 15:02:46 +04:30
parent ee6f5d6ffb
commit 79ae4c1a47
94 changed files with 4211 additions and 2216 deletions

View File

@ -0,0 +1,8 @@
@import 'entries';
@import 'header';
@import 'menu';
@import 'navigation';
@import 'toolbar';
@import 'breadcrumb';
@import 'file-list';
@import 'dialog';

View File

@ -0,0 +1,26 @@
.breadcrumb {
display: flex;
flex: 1;
align-items: center;
width: 100vw;
height: 3.5rem;
padding: 8px;
box-sizing: border-box;
.light-medium;
background: @light-gray;
border-bottom: 1px solid @dark-transparent;
i {
margin: 0 2px;
}
span.history {
color: @overlay;
}
}

View File

@ -0,0 +1,62 @@
.dialog {
display: flex;
flex-flow: column;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 335px;
height: auto;
padding: 1.5rem 1.7rem;
background: white;
.shadow-bottom;
z-index: 3;
transition: opacity 0.5s ease;
opacity: 0;
pointer-events: none;
&.active {
opacity: 1;
pointer-events: all;
}
p:first-of-type {
margin: 0 0 2.5rem;
}
p {
margin: 0 0 2rem;
}
input {
margin-bottom: 2rem;
}
.foot {
display: flex;
justify-content: space-between;
button {
flex: 1;
margin: 0 8px;
&:first-of-type {
margin-left: 0;
}
&:last-of-type {
margin-right: 0;
}
}
}
}

View File

@ -0,0 +1,26 @@
.file, .directory {
display: flex;
flex-flow: row;
align-items: center;
padding: 1.4rem;
width: 100%;
.light-big;
box-sizing: border-box;
border-bottom: 1px solid @dark-separator;
i {
margin-right: 1.4rem;
}
}
.directory i {
.icon-directory;
}
.file i {
.icon-file;
}

View File

@ -0,0 +1,6 @@
.file-list {
height: ~'calc(100vh - 13.5rem)';
overflow-x: hidden;
overflow-y: auto;
}

View File

@ -0,0 +1,44 @@
header {
display: flex;
flex: 1;
flex-flow: row;
align-items: center;
width: 100%;
height: 5rem;
background: @dark;
color: white;
.shadow;
h1 {
margin-left: -3rem;
}
button {
background: none;
border: none;
width: 8rem;
height: 2rem;
&::before {
content: '';
display: block;
width: 2rem;
height: 4px;
margin-top: -9px;
border-radius: 4px;
background: @overlay;
box-shadow: 0 7px 0 @overlay,
0 14px 0 @overlay;
}
}
}

View File

@ -0,0 +1,43 @@
.menu {
width: 24.5rem;
position: fixed;
left: 0;
top: 0;
background: white;
border-radius: @radius;
pointer-events: none;
opacity: 0;
transition: opacity 0.5s ease;
.shadow-bottom;
&.active {
opacity: 1;
pointer-events: all;
}
ul {
list-style: none;
padding: 0 15px;
}
li {
margin: 0;
padding: 1.3rem 8px;
border-bottom: 1px solid @dark-separator;
&:last-of-type {
border-bottom: none;
}
}
}

View File

@ -0,0 +1,77 @@
nav {
display: flex;
flex-flow: column;
position: fixed;
left: -70vw;
top: 0;
width: 70vw;
height: 100vh;
background: @dark;
color: white;
box-shadow: 1px 0 5px @dark-transparent;
z-index: 6;
transition: left 0.5s ease;
&.active {
left: 0;
i {
pointer-events: all;
opacity: 0.99;
}
}
p {
margin-left: 1.6rem;
.regular-medium;
}
ul {
list-style: none;
padding-left: 0;
}
li {
.light-medium;
padding: 1rem 0 1rem 3rem;
border-bottom: 1px solid @bright-separator;
&:first-of-type {
padding-top: 0;
}
&:last-of-type {
padding-bottom: 0;
border-bottom: none;
}
}
i {
display: block;
position: fixed;
left: 0;
top: 0;
pointer-events: none;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.55);
opacity: 0;
z-index: -1;
transition: opacity 0.5s ease;
}
}

View File

@ -0,0 +1,14 @@
.toolbar {
display: flex;
flex-flow: row;
align-items: center;
justify-content: space-around;
align-self: flex-end;
width: 100vw;
height: 5rem;
box-sizing: border-box;
background: @light-gray;
}