1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-14 07:29:01 +01:00

Added transition when opening the left panel

This commit is contained in:
Giulio Cesare Solaroli 2015-04-03 16:57:18 +02:00
parent 0863e61631
commit fcfae5f4a4
7 changed files with 135 additions and 114 deletions

View File

@ -128,6 +128,7 @@ http://jonibologna.com/flexbox-cheatsheet/
-ms-transform: rotate(0deg) translate(0, 0); -ms-transform: rotate(0deg) translate(0, 0);
-o-transform: rotate(0deg) translate(0, 0); -o-transform: rotate(0deg) translate(0, 0);
transform: rotate(0deg) translate(0, 0); } transform: rotate(0deg) translate(0, 0); }
100% { 100% {
-webkit-transform: rotate(359deg) translate(0, 0); -webkit-transform: rotate(359deg) translate(0, 0);
-moz-transform: rotate(359deg) translate(0, 0); -moz-transform: rotate(359deg) translate(0, 0);
@ -141,6 +142,7 @@ http://jonibologna.com/flexbox-cheatsheet/
-ms-transform: rotate(0deg) translate(0, 0); -ms-transform: rotate(0deg) translate(0, 0);
-o-transform: rotate(0deg) translate(0, 0); -o-transform: rotate(0deg) translate(0, 0);
transform: rotate(0deg) translate(0, 0); } transform: rotate(0deg) translate(0, 0); }
100% { 100% {
-webkit-transform: rotate(359deg) translate(0, 0); -webkit-transform: rotate(359deg) translate(0, 0);
-moz-transform: rotate(359deg) translate(0, 0); -moz-transform: rotate(359deg) translate(0, 0);
@ -154,6 +156,7 @@ http://jonibologna.com/flexbox-cheatsheet/
-ms-transform: rotate(0deg) translate(0, 0); -ms-transform: rotate(0deg) translate(0, 0);
-o-transform: rotate(0deg) translate(0, 0); -o-transform: rotate(0deg) translate(0, 0);
transform: rotate(0deg) translate(0, 0); } transform: rotate(0deg) translate(0, 0); }
100% { 100% {
-webkit-transform: rotate(359deg) translate(0, 0); -webkit-transform: rotate(359deg) translate(0, 0);
-moz-transform: rotate(359deg) translate(0, 0); -moz-transform: rotate(359deg) translate(0, 0);
@ -167,6 +170,7 @@ http://jonibologna.com/flexbox-cheatsheet/
-ms-transform: rotate(0deg) translate(0, 0); -ms-transform: rotate(0deg) translate(0, 0);
-o-transform: rotate(0deg) translate(0, 0); -o-transform: rotate(0deg) translate(0, 0);
transform: rotate(0deg) translate(0, 0); } transform: rotate(0deg) translate(0, 0); }
100% { 100% {
-webkit-transform: rotate(359deg) translate(0, 0); -webkit-transform: rotate(359deg) translate(0, 0);
-moz-transform: rotate(359deg) translate(0, 0); -moz-transform: rotate(359deg) translate(0, 0);
@ -469,61 +473,73 @@ div.overlay {
@-webkit-keyframes overlay-spin { @-webkit-keyframes overlay-spin {
from { from {
opacity: 1; } opacity: 1; }
to { to {
opacity: 0.25; } } opacity: 0.25; } }
@-moz-keyframes overlay-spin { @-moz-keyframes overlay-spin {
from { from {
opacity: 1; } opacity: 1; }
to { to {
opacity: 0.25; } } opacity: 0.25; } }
@-ms-keyframes overlay-spin { @-ms-keyframes overlay-spin {
from { from {
opacity: 1; } opacity: 1; }
to { to {
opacity: 0.25; } } opacity: 0.25; } }
@keyframes overlay-spin { @keyframes overlay-spin {
from { from {
opacity: 1; } opacity: 1; }
to { to {
opacity: 0.25; } } opacity: 0.25; } }
@-webkit-keyframes ios-overlay-show { @-webkit-keyframes ios-overlay-show {
0% { 0% {
opacity: 0; } opacity: 0; }
100% { 100% {
opacity: 1; } } opacity: 1; } }
@-moz-keyframes ios-overlay-show { @-moz-keyframes ios-overlay-show {
0% { 0% {
opacity: 0; } opacity: 0; }
100% { 100% {
opacity: 1; } } opacity: 1; } }
@-ms-keyframes ios-overlay-show { @-ms-keyframes ios-overlay-show {
0% { 0% {
opacity: 0; } opacity: 0; }
100% { 100% {
opacity: 1; } } opacity: 1; } }
@keyframes ios-overlay-show { @keyframes ios-overlay-show {
0% { 0% {
opacity: 0; } opacity: 0; }
100% { 100% {
opacity: 1; } } opacity: 1; } }
@-webkit-keyframes ios-overlay-hide { @-webkit-keyframes ios-overlay-hide {
0% { 0% {
opacity: 1; } opacity: 1; }
100% { 100% {
opacity: 0; } } opacity: 0; } }
@-moz-keyframes ios-overlay-hide { @-moz-keyframes ios-overlay-hide {
0% { 0% {
opacity: 1; } opacity: 1; }
100% { 100% {
opacity: 0; } } opacity: 0; } }
@-ms-keyframes ios-overlay-hide { @-ms-keyframes ios-overlay-hide {
0% { 0% {
opacity: 1; } opacity: 1; }
100% { 100% {
opacity: 0; } } opacity: 0; } }
@keyframes ios-overlay-hide { @keyframes ios-overlay-hide {
0% { 0% {
opacity: 1; } opacity: 1; }
100% { 100% {
opacity: 0; } } opacity: 0; } }
/* /*
@ -620,7 +636,8 @@ html {
width: 250px; width: 250px;
height: 100%; height: 100%;
top: 0; top: 0;
left: -250px; } left: -250px;
transition: left 0.3s ease-in-out; }
.mainPage > #selectionPanel.open { .mainPage > #selectionPanel.open {
left: 0px; } left: 0px; }
@ -669,88 +686,100 @@ html {
flex: none; flex: none;
cursor: pointer; } cursor: pointer; }
#mainPanel.extra-wide { #mainPanel {
width: 100%; left: 0px; }
height: 100%; #mainPanel.extra-wide {
margin: 0 auto; } width: 100%;
#mainPanel.extra-wide .container { height: 100%;
display: -webkit-box; margin: 0 auto; }
display: -webkit-flex; #mainPanel.extra-wide .container {
display: -moz-flex; display: -webkit-box;
display: -ms-flexbox; display: -webkit-flex;
display: flex; } display: -moz-flex;
#mainPanel.extra-wide .subpanel.selection { display: -ms-flexbox;
-webkit-box-flex: 1; display: flex; }
-webkit-flex: 1 0; #mainPanel.extra-wide .subpanel.selection {
-moz-box-flex: 1; -webkit-box-flex: 1;
-moz-flex: 1 0; -webkit-flex: 1 0;
-ms-flex: 1 0; -moz-box-flex: 1;
flex: 1 0; -moz-flex: 1 0;
overflow: scroll; -ms-flex: 1 0;
-webkit-overflow-scrolling: touch; } flex: 1 0;
#mainPanel.extra-wide .subpanel.cardContent { overflow: scroll;
-webkit-box-flex: 4; -webkit-overflow-scrolling: touch; }
-webkit-flex: 4; #mainPanel.extra-wide .subpanel.cardContent {
-moz-box-flex: 4; -webkit-box-flex: 4;
-moz-flex: 4; -webkit-flex: 4;
-ms-flex: 4; -moz-box-flex: 4;
flex: 4; -moz-flex: 4;
display: -webkit-box; -ms-flex: 4;
display: -webkit-flex; flex: 4;
display: -moz-flex; display: -webkit-box;
display: -ms-flexbox; display: -webkit-flex;
display: flex; display: -moz-flex;
-webkit-box-direction: normal; display: -ms-flexbox;
-webkit-box-orient: vertical; display: flex;
-webkit-flex-direction: column; -webkit-box-direction: normal;
-moz-flex-direction: column; -webkit-box-orient: vertical;
-ms-flex-direction: column; -webkit-flex-direction: column;
flex-direction: column; } -moz-flex-direction: column;
#mainPanel.extra-wide .selectionToggle .button { -ms-flex-direction: column;
display: none; flex-direction: column; }
visibility: hidden; } #mainPanel.extra-wide .selectionToggle .button {
#mainPanel.extra-wide div.addCardButton { display: none;
margin-left: 20%; } visibility: hidden; }
#mainPanel.wide .container { #mainPanel.extra-wide div.addCardButton {
width: 100%; margin-left: 20%; }
height: 100%; #mainPanel.wide {
margin: 0 auto; } transition: left 0.3s ease-in-out; }
#mainPanel.narrow .container { #mainPanel.wide .container {
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 0 auto; } margin: 0 auto; }
#mainPanel.narrow .column { #mainPanel.narrow .container {
position: absolute; width: 100%;
top: 0; height: 100%;
left: 0; margin: 0 auto; }
width: 100%; #mainPanel.narrow .column {
height: 100%; position: absolute;
overflow: hidden; top: 0;
-webkit-transform: translate3d(0, 0, 0); left: 0;
transform: translate3d(0, 0, 0); width: 100%;
-webkit-transition-duration: 0.5s; height: 100%;
transition-duration: 0.5s; } overflow: hidden;
#mainPanel.narrow .column.left { -webkit-transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(0, 0, 0);
transform: translate3d(-100%, 0, 0); } -webkit-transition-duration: 0.5s;
#mainPanel.narrow .column.right { transition-duration: 0.5s; }
-webkit-transform: translate3d(100%, 0, 0); #mainPanel.narrow .column.left {
transform: translate3d(100%, 0, 0); -webkit-transform: translate3d(-100%, 0, 0);
visibility: hidden; transform: translate3d(-100%, 0, 0); }
display: none; } #mainPanel.narrow .column.right {
#mainPanel.narrow .column.right.transition { -webkit-transform: translate3d(100%, 0, 0);
visibility: visible; transform: translate3d(100%, 0, 0);
display: block; } visibility: hidden;
#mainPanel.narrow div.addCardButton { display: none; }
margin-left: 75%; } #mainPanel.narrow .column.right.transition {
#mainPanel.open.left { visibility: visible;
width: 100%; display: block; }
margin: 0 auto; #mainPanel.narrow div.addCardButton {
position: relative; margin-left: 75%; }
z-index: 10; #mainPanel.open.left {
top: 0; width: 100%;
left: 250px; } margin: 0 auto;
#mainPanel.open.left .mask { position: relative;
z-index: 10;
top: 0;
left: 250px; }
#mainPanel.open.left .mask {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
background-color: rgba(0, 0, 0, 0.5); }
#mainPanel.open.right .mask {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
@ -758,14 +787,6 @@ html {
height: 100%; height: 100%;
z-index: 10; z-index: 10;
background-color: rgba(0, 0, 0, 0.5); } background-color: rgba(0, 0, 0, 0.5); }
#mainPanel.open.right .mask {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
background-color: rgba(0, 0, 0, 0.5); }
.mainPage.narrow #extraFeaturesPanel.fullOpen .extraFeatureIndex { .mainPage.narrow #extraFeaturesPanel.fullOpen .extraFeatureIndex {
width: 0px; } width: 0px; }
@ -1492,11 +1513,11 @@ div.dialogBox {
flex: 1; flex: 1;
font-size: 8pt; } font-size: 8pt; }
#loginPage div.loginForm footer .applicationVersion span { #loginPage div.loginForm footer .applicationVersion span {
color: #999; } color: #999999; }
#loginPage div.loginForm footer .applicationVersion span:after { #loginPage div.loginForm footer .applicationVersion span:after {
content: ":"; } content: ":"; }
#loginPage div.loginForm footer .applicationVersion a { #loginPage div.loginForm footer .applicationVersion a {
color: #999; color: #999999;
text-decoration: none; text-decoration: none;
padding-left: 5px; padding-left: 5px;
font-weight: bold; } font-weight: bold; }
@ -2011,9 +2032,9 @@ span.count {
display: inline-block; display: inline-block;
padding: 10px 16px; padding: 10px 16px;
background-color: green; background-color: green;
color: white; } color: lightgrey; }
#extraFeaturesPanel .extraFeatureIndex > div ul li a.button:hover { #extraFeaturesPanel .extraFeatureIndex > div ul li a.button:hover {
color: lightgrey; } color: white; }
#extraFeaturesPanel .extraFeatureIndex > div ul li a.button.disabled { #extraFeaturesPanel .extraFeatureIndex > div ul li a.button.disabled {
background-color: #999; } background-color: #999; }
#extraFeaturesPanel .extraFeatureIndex > div ul li a.button.disabled:hover { #extraFeaturesPanel .extraFeatureIndex > div ul li a.button.disabled:hover {
@ -2021,13 +2042,13 @@ span.count {
#extraFeaturesPanel .extraFeatureIndex footer { #extraFeaturesPanel .extraFeatureIndex footer {
font-size: 8pt; font-size: 8pt;
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
border-top: 1px solid #999; } border-top: 1px solid #999999; }
#extraFeaturesPanel .extraFeatureIndex footer span { #extraFeaturesPanel .extraFeatureIndex footer span {
color: #999; } color: #999999; }
#extraFeaturesPanel .extraFeatureIndex footer span:after { #extraFeaturesPanel .extraFeatureIndex footer span:after {
content: ":"; } content: ":"; }
#extraFeaturesPanel .extraFeatureIndex footer a { #extraFeaturesPanel .extraFeatureIndex footer a {
color: #999; color: #999999;
text-decoration: none; text-decoration: none;
padding-left: 5px; padding-left: 5px;
font-weight: bold; } font-weight: bold; }
@ -2121,7 +2142,7 @@ div.cardList ul {
padding-right: 0px; padding-right: 0px;
box-shadow: -4px 0px 3px -1px rgba(0, 0, 0, 0.2); } box-shadow: -4px 0px 3px -1px rgba(0, 0, 0, 0.2); }
div.cardList ul li.archived { div.cardList ul li.archived {
background-color: #eee; background-color: #eeeeee;
color: #999; } color: #999; }
div.cardList ul li .favicon { div.cardList ul li .favicon {
width: 48px; width: 48px;
@ -2207,7 +2228,7 @@ div.cardList.narrow {
content: ""; } content: ""; }
#cardDetailPage .view.archived, .cardDetail .view.archived { #cardDetailPage .view.archived, .cardDetail .view.archived {
background-color: #eee; } background-color: #eeeeee; }
#cardDetailPage .view .cardDetailToolbar, .cardDetail .view .cardDetailToolbar { #cardDetailPage .view .cardDetailToolbar, .cardDetail .view .cardDetailToolbar {
background-color: #1863a1; background-color: #1863a1;
color: white; } color: white; }
@ -2401,7 +2422,7 @@ div.cardList.narrow {
cursor: grab; cursor: grab;
cursor: -moz-grab; cursor: -moz-grab;
cursor: -webkit-grab; cursor: -webkit-grab;
background: repeating-linear-gradient(0deg, white, white 2px, #ddd 2px, #ddd 3px); background: repeating-linear-gradient(0deg, white, white 2px, #dddddd 2px, #dddddd 3px);
width: 28px; width: 28px;
height: 20px; height: 20px;
margin-left: 6px; margin-left: 6px;

File diff suppressed because one or more lines are too long

View File

@ -64,7 +64,7 @@ $transition-duration: 0.5s;
top: 0; top: 0;
left: -$size; left: -$size;
// transition: left 0.3s ease-in-out; transition: left 0.3s ease-in-out;
} }
@mixin sliding-panel-right ($size) { @mixin sliding-panel-right ($size) {

View File

@ -26,6 +26,7 @@ refer to http://www.clipperz.com.
// //
// C l i p p e r z I c o n s // C l i p p e r z I c o n s
// //
// openssl enc -base64 -in ./fonts/clipperz-icons.woff | awk 1 ORS='' | pbcopy
@font-face { @font-face {
font-family: "clipperz-icons"; font-family: "clipperz-icons";

View File

@ -87,6 +87,7 @@ html {
#mainPanel { #mainPanel {
// background-color: $yellow; // background-color: $yellow;
left: 0px;
&.extra-wide { &.extra-wide {
@include sliding-panel-container(); @include sliding-panel-container();
@ -123,7 +124,7 @@ html {
} }
&.wide { &.wide {
// transition: left 0.3s ease-in-out; transition: left 0.3s ease-in-out;
.container { .container {
@include sliding-panel-container(); @include sliding-panel-container();
} }

View File

@ -46,7 +46,6 @@ This configuration is now located in the first script included in the index_temp
} }
} }
@media only screen and (min-width: 700px) { @media only screen and (min-width: 700px) {
html { html {
font-family: "wide"; font-family: "wide";

View File

@ -44,7 +44,6 @@ refer to http://www.clipperz.com.
& > div { & > div {
border-top: 1px solid white; border-top: 1px solid white;
& > ul > li { & > ul > li {
// padding: 10px; // padding: 10px;
// padding-right: 0px; // padding-right: 0px;
@ -111,10 +110,10 @@ refer to http://www.clipperz.com.
display: inline-block; display: inline-block;
padding: 10px 16px; padding: 10px 16px;
background-color: green; background-color: green;
color: white; color: lightgrey;
&:hover { &:hover {
color: lightgrey; color: white;
}; };
&.disabled { &.disabled {
@ -162,12 +161,12 @@ refer to http://www.clipperz.com.
label { label {
display: block; display: block;
} }
input { input {
display: block; display: block;
} }
} }
} }
} }
@ -193,4 +192,4 @@ refer to http://www.clipperz.com.
} }
} }
} }
} }