Update for latest md changes

This commit is contained in:
Francis Lachapelle
2016-07-12 11:29:24 -04:00
parent 8f382192ee
commit 7e950896ba
11 changed files with 31 additions and 33 deletions
@@ -26,7 +26,7 @@ md-list-item {
// Gain some space with secondary action button;
// Impact: list with checkbox in sidevav of Calendar module
&.md-with-secondary ._md-list-item-inner {
&.md-with-secondary .md-list-item-inner {
padding-right: $bl;
}
@@ -34,11 +34,11 @@ md-list-item {
&._md-button-wrap > div.md-button:first-child > .md-button:first-child {
z-index: $z-index-sidenav - 2;
}
._md-secondary-container {
.md-secondary-container {
z-index: $z-index-sidenav - 1;
}
._md-list-item-inner {
.md-list-item-inner {
overflow: hidden;
// Gain some space since we want small list items
@@ -87,8 +87,8 @@ md-list-item {
md-list-item {
// Gain some space on the right side of the folder icon
._md-list-item-inner > md-icon:first-child,
._md-list-item-inner > md-checkbox:first-child {
.md-list-item-inner > md-icon:first-child,
.md-list-item-inner > md-checkbox:first-child {
margin-right: $bl * 2;
}
@@ -151,7 +151,7 @@ div.md-tile-left {
min-width: $sg-md-grid-pitch + $baseline-grid;
}
.sg-section-list md-list-item._md-button-wrap > .md-button:first-child ._md-list-item-inner {
.sg-section-list md-list-item._md-button-wrap > .md-button:first-child .md-list-item-inner {
// Expect the container to include a sg-tile-icons (Mailer module)
padding-right: 0px;
}
@@ -286,7 +286,7 @@ div.md-tile-left {
.md-avatar {
display: block;
// From md-list-item ._md-list-item-inner .md-avatar
// From md-list-item .md-list-item-inner .md-avatar
width: $list-item-primary-avatar-width;
height: $list-item-primary-avatar-width;
margin-top: $baseline-grid;
@@ -9,7 +9,7 @@ $sidenav-min-space: $pitch;
md-sidenav {
overflow: inherit;
&._md-locked-open {
&.md-locked-open {
@include from(md) {
@include flex-col($breakpoint: md, $nb: 4, $grow: 1, $shrink: 0);
// Custom representation of a closed sidenav where the sidenav is pushed to the left;
@@ -1,8 +1,2 @@
@import "extends";
._md-sticky-clone {
// Increase the z-index of sticky subheaders so it always appear above
// seconday buttons of list items.
// See z-index changes in custom list.scss.
z-index: $z-index-sidenav;
}
@@ -5,15 +5,22 @@ $sg-subheader-padding-top-bottom: ($subheader-padding - ($icon-button-height - $
$sg-subheader-padding-left-right: $baseline-grid;
.md-subheader-wrapper:not(.md-sticky-no-effect).md-sticky-clone {
// Increase the z-index of sticky subheaders so it always appear above
// seconday buttons of list items.
// See z-index changes in custom list.scss.
z-index: $z-index-sidenav;
}
.sg-md-subheader {
&--with-icon ._md-subheader-inner,
&--with-secondary-icon ._md-subheader-inner {
&--with-icon .md-subheader-inner,
&--with-secondary-icon .md-subheader-inner {
line-height: $sg-avatar-width + ($sg-subheader-padding-top-bottom)*2;
padding: ($subheader-padding - ($icon-button-height - $subheader-font-size)/2) $baseline-grid;
padding: 0;
padding-left: $subheader-padding;
}
&--with-icon ._md-subheader-inner {
&--with-icon .md-subheader-inner {
padding-left: 0;
}
&--fixed {