2016-01-14 21:08:28 +03:00
- - -
- - -
//---
//---
2016-01-14 23:19:55 +03:00
// This scss is written from the override perspective. Note that when @import'ing, some of this can be more simply accomplished with variable overrides.
2016-01-14 21:08:28 +03:00
$teal-300 : #4db6ac !default ;
$grey-100 : #f5f5f5 !default ;
$grey-600 : #757575 !default ;
$blue-grey-800 : #37474f !default ;
$blue-grey-400 : #78909c !default ;
$blue-grey-900 : #263238 !default ;
$blue-grey-50 : #eceff1 !default ;
$deep-purple-500 : #673ab7 !default ;
a , a : hover {
color : rgba ( 255 , 255 , 255 , 0 .56 ) ;
}
2016-01-15 02:05:16 +03:00
. mdb-layout-header {
background-color : $grey-100 ;
color : $grey-600 ;
> . navbar {
// .navbar is not flex based by default, so have to vertical align with padding.
// If this were my own app, I would flex position items in my navbar and stick .mdb-layout-header on my existing .navbar
// instead of wrapping it. But nonetheless, this example shows how this can work with minimal markup to match an MDL design.
$header-height : 3 .5 rem !default ; // 56px
$line-height : 1 .5 ;
min-height : $header-height ;
$padding : ( $header-height - ( 1 rem * $line-height )) / 2 ;
padding-top : $padding ;
padding-bottom : $padding ;
2016-01-14 21:08:28 +03:00
}
2016-01-15 02:05:16 +03:00
}
2016-01-14 21:08:28 +03:00
2016-01-15 02:05:16 +03:00
. mdb-layout-content {
padding-top : .5 rem ;
background-color : $grey-100 ;
2016-01-14 21:08:28 +03:00
}
. mdb-layout-drawer {
background-color : $blue-grey-900 ;
color : $blue-grey-50 ;
font-size : .875 rem ;
> header {
box-sizing : border-box ;
display : flex ;
flex-direction : column ;
justify-content : flex-end ;
padding : 16 px ;
height : 151 px ;
. avatar {
width : 48 px ;
height : 48 px ;
border-radius : 24 px ;
margin-bottom : 1 rem ;
}
. account {
display : flex ;
position : relative ;
flex-direction : row ;
align-items : center ;
width : 100 % ;
. dropdown {
margin-left : auto ;
. dropdown-menu {
font-size : .875 rem ;
. dropdown-item {
flex-wrap : nowrap ;
}
}
}
}
}
. mdl-navigation {
flex-grow : 1 ;
background-color : $blue-grey-800 ;
z-index : - 2 ;
. mdb-list-group-item {
padding-left : 2 .5 rem ;
padding-right : 2 .5 rem ;
font-size : .8125 rem ;
font-weight : 500 ;
color : rgba ( 255 , 255 , 255 , 0 .56 ) ;
& : hover {
background-color : #00BCD4 ;
color : #37474F ;
}
. material-icons {
color : $blue-grey-400 ;
}
}
}
}
. demo-chart {
& : nth-child ( 1 ) {
color : #ACEC00 ;
}
& : nth-child ( 2 ) {
color : #00BBD6 ;
}
& : nth-child ( 3 ) {
color : #BA65C9 ;
}
& : nth-child ( 4 ) {
color : #EF3C79 ;
}
}
. demo-graphs {
padding : 16 px 32 px ;
display : flex ;
flex-direction : column ;
align-items : stretch ;
. demo-graph {
2016-01-14 23:19:55 +03:00
width : 100 % ; // make sure the svg occupies the available space
2016-01-14 21:08:28 +03:00
& : nth-child ( 1 ) {
color : #00b9d8 ;
}
& : nth-child ( 2 ) {
color : #d9006e ;
}
}
}
/ * TODO : Find a proper solution to have the graphs
* not float around outside their container in IE10 / 11 .
* Using a browserhacks . com solution for now .
* /
: -ms-input-placeholder ,
: root . demo-graphs {
min-height : 664 px ;
}
: -ms-input-placeholder ,
: root . demo-graph {
max-height : 300 px ;
}
/* TODO end */
. demo-cards {
. card {
margin-bottom : 2 rem ;
}
. card-title {
color : #fff ;
}
. card-text {
color : $grey-600
}
. card-footer {
display : flex ;
align-items : center ;
}
. demo-updates {
. card-header {
border : 0 ; // we are using color as a separator instead of a bottom border, this allows image to meet the bottom edge
min-height : 200 px ;
background-color : $teal-300 ;
background-image : url( 'images/dog.png' ) ;
background-position : 90 % 100 % ;
background-repeat : no-repeat ;
. card-title {
// position the title down towards the bottom header with respect to the bg image
margin-bottom : 0 ;
padding-top : 8 .5 rem ;
}
}
. btn {
color : #00BCD4 ;
}
}
. demo-options {
& ,
. card-footer {
background-color : $deep-purple-500 ;
}
. card-footer {
. material-icons {
margin-left : auto ;
color : rgba ( 255 , 255 , 255 , 0 .89 ) ;
}
}
. btn ,
. checkbox label {
color : $blue-grey-50 ;
}
. checkbox . check {
border-color : $blue-grey-50 ;
}
}
}