Adds expand-content component, update various UI measurements

This commit is contained in:
Sam Cheng Hung 2018-07-24 15:27:21 +08:00
commit 4b18e4b1c3
11 changed files with 133 additions and 59 deletions

View file

@ -3,10 +3,10 @@
font-size: 14px;
&.mt-negative {
margin-top: -10px;
margin-top: 0;
}
&.right {
&.text-right {
text-align: right;
}
@ -19,5 +19,6 @@
> .action-text {
vertical-align: middle;
color: #444444;
}
}

View file

@ -0,0 +1,5 @@
.card {
&.card-gutter-compact {
margin: 10px 12px;
}
}

View file

@ -1,6 +1,9 @@
@import "header";
@import "content-frame";
@import "item";
@import "ion-content";
@import "card";
@import "header";
@import "content-frame";
@import "address";
@import "action-minor";
@import "expand-content";

View file

@ -1,6 +1,6 @@
.content-frame {
&.negative-top {
margin-top: -20px;
margin-top: -40px;
.card {
&:first-child {

View file

@ -0,0 +1,26 @@
.expand-content-frame {
position: relative;
.expand-content-trigger {
position: absolute;
top: 0;
transition: opacity 0.3s ease;
right: 0;
&.expand-content-revealed {
opacity: 0;
}
}
.expand-content {
opacity: 0;
transform-origin: 100% 0%;
transform: scale(0,0);
transition: opacity 0.3s ease, transform 0.3s ease;
&.expand-content-revealed {
opacity: 1;
transform: scale(1,1);
}
}
}

View file

@ -1,5 +1,5 @@
.header {
padding: 29px 12px 65px;
padding: 29px 12px 61px;
background-color: #FAB915;
color: #FFFFFF;

View file

@ -1 +1,2 @@
@import "gravatar";
@import "elastic";

View file

@ -0,0 +1,4 @@
.elastic {
width: 100%;
font-size: 14px;
}