1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2025-10-29 10:27:35 +01:00

Added basic behaviour for extra panel components

This commit is contained in:
Giulio Cesare Solaroli
2015-04-01 18:28:26 +02:00
parent 04e5b7fb02
commit b1de7de2c5
10 changed files with 463 additions and 189 deletions

View File

@@ -64,6 +64,7 @@ $transition-duration: 0.5s;
top: 0;
left: -$size;
// transition: left 0.3s ease-in-out;
}
@mixin sliding-panel-right ($size) {
@@ -74,6 +75,7 @@ $transition-duration: 0.5s;
top: 0;
right: -$size;
transition: right 0.3s ease-in-out;
}
@mixin sliding-panel ($side, $size) {
@@ -107,11 +109,13 @@ $transition-duration: 0.5s;
@mixin sliding-panel-wrapper-open-left ($size) {
top: 0;
left: $size;
// transition: left 0.3s ease-in-out;
}
@mixin sliding-panel-wrapper-open-right ($size) {
top: 0;
right: $size;
// transition: right 0.3s ease-in-out;
}
@mixin sliding-panel-wrapper-open ($side, $size) {

File diff suppressed because one or more lines are too long

View File

@@ -40,7 +40,7 @@ html {
.mainPage > #selectionPanel {
@include sliding-panel(left, $selectionPanelWidth);
&.open {
@include sliding-panel-open(left, $selectionPanelWidth);
}
@@ -123,12 +123,14 @@ html {
}
&.wide {
// transition: left 0.3s ease-in-out;
.container {
@include sliding-panel-container();
}
}
&.narrow {
// transition: left 0.3s ease-in-out;
.container {
@include sliding-panel-container();
}
@@ -143,6 +145,7 @@ html {
}
&.open.left {
// transition: left 0.3s ease-in-out;
@include sliding-panel-wrapper-open (left, $selectionPanelWidth);
@include mask();
}
@@ -154,30 +157,72 @@ html {
}
.mainPage.narrow {
#extraFeaturesPanel {
&.fullOpen {
.extraFeatureIndex {
width: 0px;
}
}
}
}
#extraFeaturesPanel {
@include sliding-panel(right, $settingsPanelWidth);
@include flexbox();
@include flex-direction(column);
min-height: 100%;
// transition: right 0.3s ease-in-out;
&.open {
@include sliding-panel-open(right, $settingsPanelWidth);
}
header {
@include flex(none);
}
& > div {
@include flex(auto);
overflow: auto;
.extraFeatureContent {
display: none;
}
footer {
&.fullOpen {
// right: 0px;
width: 100%;
.extraFeatureContent {
display: block;
}
}
@include flexbox();
@include flex-direction(row-reverse);
.extraFeatureIndex {
@include flex(none);
width: $settingsPanelWidth;
height: 100%;
@include flexbox();
@include flex-direction(column);
header {
@include flex(none);
}
& > div {
@include flex(auto);
overflow: auto;
}
footer {
@include flex(none);
}
}
.extraFeatureContent {
// display: none;
@include flex(auto);
width: 100%;
height: 100%;
// background-color: rgba( 0, 0, 0, 0.95);
background-color: black;
}
}