Permalink
Browse files

feat: Merged latest MDL/JS version

  • Loading branch information...
MikeMitterer committed Jul 21, 2017
1 parent 5d07547 commit 94fb9f0fc1f0a0ce848bc86371b9be64d5dbafd6
View
@@ -16,3 +16,4 @@ analyzer:
# and https://github.com/dart-lang/test/issues/436
- test/**
@@ -41,196 +41,198 @@
}
.mdl-cell {
box-sizing : border-box;
box-sizing: border-box;
}
.mdl-cell--top {
align-self : flex-start;
align-self: flex-start;
}
.mdl-cell--middle {
align-self : center;
align-self: center;
}
.mdl-cell--bottom {
align-self : flex-end;
align-self: flex-end;
}
.mdl-cell--stretch {
align-self : stretch;
align-self: stretch;
}
//.mdl-cell--center {
// text-align : center;
//}
.mdl-grid.mdl-grid--no-spacing > .mdl-cell {
margin : 0;
margin: 0;
}
// Define order override classes.
@for $i from 1 through $grid-max-columns {
.mdl-cell--order-#{$i} {
order : $i;
}
.mdl-cell--order-#{$i} {
order: $i;
}
}
// Mixins for width calculation.
@mixin partial-size($size, $columns, $gutter) {
width : calc(#{(($size / $columns) * 100)+"%"} - #{$gutter});
width: calc(#{(($size / $columns) * 100)+"%"} - #{$gutter});
.mdl-grid--no-spacing > & {
width : #{(($size / $columns) * 100)+"%"};
}
.mdl-grid--no-spacing > & {
width: #{(($size / $columns) * 100)+"%"};
}
}
@mixin full-size($gutter) {
@include partial-size(1, 1, $gutter);
@include partial-size(1, 1, $gutter);
}
@mixin offset-size($size, $columns, $gutter) {
margin-left : calc(#{(($size / $columns) * 100)+"%"} + #{$gutter / 2});
margin-left: calc(#{(($size / $columns) * 100)+"%"} + #{$gutter / 2});
.mdl-grid.mdl-grid--no-spacing > & {
margin-left : #{(($size / $columns) * 100)+"%"};
}
.mdl-grid.mdl-grid--no-spacing > & {
margin-left: #{(($size / $columns) * 100)+"%"};
}
}
////////// Phone //////////
@media (max-width : $grid-tablet-breakpoint - 1) {
.mdl-grid {
padding : $grid-phone-margin - ($grid-phone-gutter / 2);
}
@media (max-width: $grid-tablet-breakpoint - 1) {
.mdl-grid {
padding: $grid-phone-margin - ($grid-phone-gutter / 2);
}
.mdl-cell {
margin : $grid-phone-gutter / 2;
@include partial-size($grid-cell-default-columns, $grid-phone-columns,
$grid-phone-gutter);
}
.mdl-cell {
margin: $grid-phone-gutter / 2;
@include partial-size($grid-cell-default-columns, $grid-phone-columns,
$grid-phone-gutter);
}
.mdl-cell--hide-phone {
display : none !important;
}
.mdl-cell--hide-phone {
display: none !important;
}
// Define order override classes.
@for $i from 1 through $grid-max-columns {
.mdl-cell--order-#{$i}-phone.mdl-cell--order-#{$i}-phone {
order : $i;
}
// Define order override classes.
@for $i from 1 through $grid-max-columns {
.mdl-cell--order-#{$i}-phone.mdl-cell--order-#{$i}-phone {
order: $i;
}
}
// Define partial sizes for columnNumber < totalColumns.
@for $i from 1 through ($grid-phone-columns - 1) {
.mdl-cell--#{$i}-col,
.mdl-cell--#{$i}-col-phone.mdl-cell--#{$i}-col-phone {
@include partial-size($i, $grid-phone-columns, $grid-phone-gutter);
}
// Define partial sizes for columnNumber < totalColumns.
@for $i from 1 through ($grid-phone-columns - 1) {
.mdl-cell--#{$i}-col,
.mdl-cell--#{$i}-col-phone.mdl-cell--#{$i}-col-phone {
@include partial-size($i, $grid-phone-columns, $grid-phone-gutter);
}
}
// Define 100% for everything else.
@for $i from $grid-phone-columns through $grid-desktop-columns {
.mdl-cell--#{$i}-col,
.mdl-cell--#{$i}-col-phone.mdl-cell--#{$i}-col-phone {
@include full-size($grid-phone-gutter);
}
// Define 100% for everything else.
@for $i from $grid-phone-columns through $grid-desktop-columns {
.mdl-cell--#{$i}-col,
.mdl-cell--#{$i}-col-phone.mdl-cell--#{$i}-col-phone {
@include full-size($grid-phone-gutter);
}
}
// Define valid phone offsets.
@for $i from 1 through ($grid-phone-columns - 1) {
.mdl-cell--#{$i}-offset,
.mdl-cell--#{$i}-offset-phone.mdl-cell--#{$i}-offset-phone {
@include offset-size($i, $grid-phone-columns, $grid-phone-gutter);
}
// Define valid phone offsets.
@for $i from 1 through ($grid-phone-columns - 1) {
.mdl-cell--#{$i}-offset,
.mdl-cell--#{$i}-offset-phone.mdl-cell--#{$i}-offset-phone {
@include offset-size($i, $grid-phone-columns, $grid-phone-gutter);
}
}
}
////////// Tablet //////////
@media (min-width : $grid-tablet-breakpoint) and (max-width : $grid-desktop-breakpoint - 1) {
.mdl-grid {
padding : $grid-tablet-margin - ($grid-tablet-gutter / 2);
}
@media (min-width: $grid-tablet-breakpoint) and (max-width: $grid-desktop-breakpoint - 1) {
.mdl-grid {
padding: $grid-tablet-margin - ($grid-tablet-gutter / 2);
}
.mdl-cell {
margin : $grid-tablet-gutter / 2;
@include partial-size($grid-cell-default-columns, $grid-tablet-columns,
$grid-tablet-gutter);
}
.mdl-cell {
margin: $grid-tablet-gutter / 2;
@include partial-size($grid-cell-default-columns, $grid-tablet-columns,
$grid-tablet-gutter);
}
.mdl-cell--hide-tablet {
display : none !important;
}
.mdl-cell--hide-tablet {
display: none !important;
}
// Define order override classes.
@for $i from 1 through $grid-max-columns {
.mdl-cell--order-#{$i}-tablet.mdl-cell--order-#{$i}-tablet {
order : $i;
}
// Define order override classes.
@for $i from 1 through $grid-max-columns {
.mdl-cell--order-#{$i}-tablet.mdl-cell--order-#{$i}-tablet {
order: $i;
}
}
// Define partial sizes for columnNumber < totalColumns.
@for $i from 1 through ($grid-tablet-columns - 1) {
.mdl-cell--#{$i}-col,
.mdl-cell--#{$i}-col-tablet.mdl-cell--#{$i}-col-tablet {
@include partial-size($i, $grid-tablet-columns, $grid-tablet-gutter);
}
// Define partial sizes for columnNumber < totalColumns.
@for $i from 1 through ($grid-tablet-columns - 1) {
.mdl-cell--#{$i}-col,
.mdl-cell--#{$i}-col-tablet.mdl-cell--#{$i}-col-tablet {
@include partial-size($i, $grid-tablet-columns, $grid-tablet-gutter);
}
}
// Define 100% for everything else.
@for $i from $grid-tablet-columns through $grid-desktop-columns {
.mdl-cell--#{$i}-col,
.mdl-cell--#{$i}-col-tablet.mdl-cell--#{$i}-col-tablet {
@include full-size($grid-tablet-gutter);
}
// Define 100% for everything else.
@for $i from $grid-tablet-columns through $grid-desktop-columns {
.mdl-cell--#{$i}-col,
.mdl-cell--#{$i}-col-tablet.mdl-cell--#{$i}-col-tablet {
@include full-size($grid-tablet-gutter);
}
}
// Define valid tablet offsets.
@for $i from 1 through ($grid-tablet-columns - 1) {
.mdl-cell--#{$i}-offset,
.mdl-cell--#{$i}-offset-tablet.mdl-cell--#{$i}-offset-tablet {
@include offset-size($i, $grid-tablet-columns, $grid-tablet-gutter);
}
// Define valid tablet offsets.
@for $i from 1 through ($grid-tablet-columns - 1) {
.mdl-cell--#{$i}-offset,
.mdl-cell--#{$i}-offset-tablet.mdl-cell--#{$i}-offset-tablet {
@include offset-size($i, $grid-tablet-columns, $grid-tablet-gutter);
}
}
}
////////// Desktop //////////
@media (min-width : $grid-desktop-breakpoint) {
.mdl-grid {
padding : $grid-desktop-margin - ($grid-desktop-gutter / 2);
}
@media (min-width: $grid-desktop-breakpoint) {
.mdl-grid {
padding: $grid-desktop-margin - ($grid-desktop-gutter / 2);
}
.mdl-cell {
margin : $grid-desktop-gutter / 2;
@include partial-size($grid-cell-default-columns, $grid-desktop-columns,
$grid-desktop-gutter);
}
.mdl-cell {
margin: $grid-desktop-gutter / 2;
@include partial-size($grid-cell-default-columns, $grid-desktop-columns,
$grid-desktop-gutter);
}
.mdl-cell--hide-desktop {
display : none !important;
}
.mdl-cell--hide-desktop {
display: none !important;
}
// Define order override classes.
@for $i from 1 through $grid-max-columns {
.mdl-cell--order-#{$i}-desktop.mdl-cell--order-#{$i}-desktop {
order : $i;
}
// Define order override classes.
@for $i from 1 through $grid-max-columns {
.mdl-cell--order-#{$i}-desktop.mdl-cell--order-#{$i}-desktop {
order: $i;
}
}
// Define partial sizes for all numbers of columns.
@for $i from 1 through $grid-desktop-columns {
.mdl-cell--#{$i}-col,
.mdl-cell--#{$i}-col-desktop.mdl-cell--#{$i}-col-desktop {
@include partial-size($i, $grid-desktop-columns, $grid-desktop-gutter);
}
// Define partial sizes for all numbers of columns.
@for $i from 1 through $grid-desktop-columns {
.mdl-cell--#{$i}-col,
.mdl-cell--#{$i}-col-desktop.mdl-cell--#{$i}-col-desktop {
@include partial-size($i, $grid-desktop-columns, $grid-desktop-gutter);
}
}
// Define valid desktop offsets.
@for $i from 1 through ($grid-desktop-columns - 1) {
.mdl-cell--#{$i}-offset,
.mdl-cell--#{$i}-offset-desktop.mdl-cell--#{$i}-offset-desktop {
@include offset-size($i, $grid-desktop-columns, $grid-desktop-gutter);
}
// Define valid desktop offsets.
@for $i from 1 through ($grid-desktop-columns - 1) {
.mdl-cell--#{$i}-offset,
.mdl-cell--#{$i}-offset-desktop.mdl-cell--#{$i}-offset-desktop {
@include offset-size($i, $grid-desktop-columns, $grid-desktop-gutter);
}
}
}
@@ -4864,8 +4864,7 @@ input.mdl-button[type="submit"] {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
width: 100%; }
user-select: none; }
.mdl-menu__container.is-visible .mdl-menu__item {
opacity: 1; }
.mdl-menu__item::-moz-focus-inner {
@@ -5025,6 +5024,7 @@ input.mdl-button[type="submit"] {
display: block;
position: relative;
height: 4px;
width: 500px;
max-width: 100%; }
.mdl-progress > .bar {
@@ -5061,15 +5061,7 @@ input.mdl-button[type="submit"] {
.mdl-progress:not(.mdl-progress--indeterminate) > .auxbar,
.mdl-progress:not(.mdl-progress__indeterminate) > .auxbar {
background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), -webkit-linear-gradient(left, #3f51b5, #3f51b5);
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), linear-gradient(to right, #3f51b5, #3f51b5);
-webkit-animation-name: fadeinout;
animation-name: fadeinout;
-webkit-animation-duration: 2s;
animation-duration: 2s;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
animation-timing-function: linear; }
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), linear-gradient(to right, #3f51b5, #3f51b5); }
.mdl-progress.mdl-progress--indeterminate > .bar1,
.mdl-progress.mdl-progress__indeterminate > .bar1 {
@@ -5146,12 +5138,6 @@ input.mdl-button[type="submit"] {
left: 100%;
width: 0; } }
@keyframes fadeinout {
0%, 100% {
opacity: 0.3; }
50% {
opacity: 0.7; } }
.mdl-navigation {
display: -webkit-box;
display: -ms-flexbox;

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -142,7 +142,6 @@
opacity: 0;
transition: opacity $menu-fade-duration $animation-curve-default;
user-select: none;
width: 100%;
.mdl-menu__container.is-visible & {
opacity: 1;
Oops, something went wrong.

0 comments on commit 94fb9f0

Please sign in to comment.