password-manager/frontend/delta/scss/style/card.scss
Giulio Cesare Solaroli afaa767238 Updated SCSS
2015-01-21 18:29:30 +01:00

311 lines
4.2 KiB
SCSS

$cardListHeight: 48px;
$faviconSize: 32px;
$padding: ($cardListHeight - $faviconSize) / 2;
$cardToolbarBackgroundColor: brown;
div.cardList {
// background-color: $yellow;
&.loadingCard {
li.selected {
background-color: gray;
}
}
ul {
li {
cursor: pointer;
border-bottom: 1px solid #eee;
@include flexbox();
@include flex-direction(row);
&.selected {
background-color: yellow;
}
&.archived {
background-color: pink;
}
.favicon {
width: $cardListHeight;
@include flex(none);
img {
width: $faviconSize;
height: $faviconSize;
padding: $padding;
}
}
.label {
@include flex(auto);
font-size: 18pt;
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-left: $padding;
padding-right: $padding;
}
}
}
}
div.cardList.narrow {
&.loadingCard {
li.selected {
// background-color: gray;
&:after {
color: white;
margin-right: 10px;
content: "loading";
@include animation(spin, 1s, linear, infinite);
}
}
}
ul {
li {
&:after {
content: "show detail";
@include flex(none);
@include icon-font();
height: 48px;
font-size: 24pt;
line-height: 48px;
margin-right: 25px;
}
}
}
&.EXPIRED {
ul {
li {
&:after {
content: "";
}
}
}
}
}
$cardViewBasePadding: 10px;
#cardDetailPage, .cardDetail {
.loading {
// height: 100%;
// width: 100%;
// background-color: rgba(0,0,0,0.5);
}
.view {
&.archived {
background-color: pink;
}
.cardDetailToolbar {
background-color: $cardToolbarBackgroundColor;
color: white;
&.narrow {
font-size: 24pt;
.back {
@include icon-font();
}
.cardMenuOptions {
@include icon-font();
text-align: right;
font-size: 18pt;
padding-right: 10px;
}
.commandMenu {
// display: none;
.commandMenuMask {
display: none;
}
.commandMenu {
display: none;
}
&.show {
.commandMenuMask {
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0);
}
.commandMenu {
display: block;
float: right;
position: absolute;
min-width: 200px;
top: 48px;
right: 5px;
color: black;
background-color: white;
@include box-shadow(0px, 2px, 5px, rgba(50, 50, 50, 0.75));
ul {
@include flex-direction(column);
li {
text-align: left;
font-size: 18pt;
padding: 5px 10px;
border-bottom: 1px solid black;
}
}
}
}
}
}
}
}
.edit {
.cardDetailToolbar {
background-color: purple;
color: white;
}
}
}
.cardDetailToolbar {
&.edit {
li {
font-weight: 100;
}
li.save {
color: yellow;
}
&.hasPendingChanges {
li {
font-weight: 500;
}
li.save {
color: white;
}
}
}
ul {
li {
text-align: center;
}
}
&.narrow {
.cardMenuOptions {
margin-right: 5px;
}
}
}
.content {
.cardLabel {
@include user-select(text);
font-size: 24pt;
padding: $cardViewBasePadding;
}
.tagEditor {
padding: $cardViewBasePadding;
}
.cardNotes {
padding: $cardViewBasePadding;
}
.dropArea {
border: 3px dashed red;
width: 100%;
height: 40px;
}
.cardField {
@include flexbox;
@include flex-direction(row);
background-color: lightgreen;
&.dragged {
// border: 4px dotted red;
display: none;
}
.fieldValues {
@include flex(1);
padding: $cardViewBasePadding;
.fieldLabel {
color: gray;
}
.fieldValue {
font-size: 18pt;
@include user-select(text);
&.hidden {
font-family: clipperz-password;
}
}
.removeField {
cursor: pointer;
}
}
.fieldAction {
@include flex(none);
@include align-self(center);
}
.action {
width: 32px;
height: 32px;
@include icon-font();
font-size: 20pt;
}
}
.newCardField {
cursor: pointer;
}
.cardDirectLogin {
font-size: 18pt;
padding: $cardViewBasePadding;
background-color: pink;
cursor: pointer;
}
}