Apply colours to components

This commit is contained in:
iRouge
2015-02-05 19:16:49 -05:00
committed by Francis Lachapelle
parent daaa4284cb
commit e00416e1b8
14 changed files with 6868 additions and 5015 deletions
@@ -91,7 +91,7 @@ $sogoGreen: (
A400: #00e676,
A700: #00c853
);
$vintageBlue: (
$sogoBlue: (
50: #f0faf9,
100:#e1f5f3,
200:#ceebe8,
@@ -396,7 +396,7 @@ $colorBlueGrey900: nth($paletteBlueGrey, 10);
};
};
}
@include colors($vintageBlue, 'sogoBlue');
@include colors($sogoBlue, 'sogoBlue');
@include colors($sogoGreen, 'sogoGreen');
@include colors($sogoPaper, 'sogoPaper');
@@ -1 +1,4 @@
@import 'extends';
@import 'extends';
md-content {
background-color: transparent;
}
@@ -1 +1,110 @@
@import "extends";
@import "extends";
$sidenav-default-width: (4 * $pitch);
$sidenav-min-space: $pitch;
md-sidenav {
position: absolute;
width: $sidenav-default-width;
min-width: $sidenav-default-width;
max-width: $sidenav-default-width;
bottom: 0;
z-index: $z-index-sidenav;
background-color: sg-color($sogoPaper, 400);
overflow: auto;
flex-direction: column;
&.md-closed {
display: none;
}
&.md-closed-add,
&.md-closed-remove {
display: flex;
/* this is required as of 1.3x to properly
apply all styling in a show/hide animation */
transition: 0s all;
}
&.md-closed-add.md-closed-add-active,
&.md-closed-remove.md-closed-remove-active {
transition: $swift-ease-out;
}
&.md-locked-open-add,
&.md-locked-open-remove {
position: static;
display: flex;
transform: translate3d(0, 0, 0);
}
&.md-locked-open {
width: $sidenav-default-width;
min-width: $sidenav-default-width;
max-width: $sidenav-default-width;
}
&.md-locked-open,
&.md-locked-open.md-closed,
&.md-locked-open.md-closed.md-sidenav-left,
&.md-locked-open.md-closed.md-sidenav-right,
&.md-locked-open-remove.md-closed {
position: static;
display: flex;
transform: translate3d(0, 0, 0);
}
&.md-locked-open-remove-active {
transition: width $swift-ease-in-duration $swift-ease-in-timing-function,
min-width $swift-ease-in-duration $swift-ease-in-timing-function;
width: 0;
min-width: 0;
}
&.md-closed.md-locked-open-add {
width: 0;
min-width: 0;
transform: translate3d(0%, 0, 0);
}
&.md-closed.md-locked-open-add-active {
transition: width $swift-ease-in-duration $swift-ease-in-timing-function,
min-width $swift-ease-in-duration $swift-ease-in-timing-function;
width: $sidenav-default-width;
min-width: $sidenav-default-width;
transform: translate3d(0%, 0, 0);
}
@extend .md-sidenav-left;
}
.md-sidenav-backdrop.md-locked-open {
display: none;
}
.md-sidenav-left {
left: 0;
top: 0;
transform: translate3d(0%, 0, 0);
&.md-closed {
transform: translate3d(-100%, 0, 0);
}
}
.md-sidenav-right {
left: 100%;
top: 0;
transform: translate3d(-100%, 0, 0);
&.md-closed {
transform: translate3d(0%, 0, 0);
}
}
@media (max-width: $sidenav-default-width + $sidenav-min-space) {
md-sidenav {
width: 85%;
}
}
.md-sidenav-left {
& md-content,
& md-toolbar {
background-color: inherit;
}
}
@@ -3,14 +3,12 @@
.sg-md-subheader {
padding: $baseline-grid $baseline-grid $baseline-grid $layout-gutter-width;
position: fixed;
background-color: rgb(247,241,220); // default theme background
z-index: 58;
box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.26);
background-color: transparent;
z-index: auto;
}
// WIdth for message list
// ----------------------------------------------------------------------------
[id = "messagesList"] .sg-md-subheader {
width: 390px; // todo : convert this in grid-pitch
transform: translateY(-100%); // Compensate the container top-margin
}
.sg-md-subheader {
@@ -20,12 +18,4 @@
.sg-md-subheader > * {
font-size: inherit;
font-weight: inherit;
}
.sg-md-subheader.sg-avatar {
&-left {
padding-left: $sg-md-grid-pitch + $baseline-grid;
}
&-right {
padding-left: $baseline-grid * 2;
}
}
};
@@ -1,5 +1,6 @@
@import 'extends';
.md-toolbar {
md-toolbar {
z-index: 20;
box-shadow: none;
}