Skip to content

Commit e31fbc2

Browse files
author
Federico Zivolo
committed
Fixed snackbar theme
1 parent c0f869b commit e31fbc2

2 files changed

Lines changed: 18 additions & 14 deletions

File tree

css-compiled/material.css

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,28 +1698,27 @@ fieldset[disabled] .navbar .btn-link:focus {
16981698
border-bottom-color: #323232;
16991699
}
17001700
.snackbar {
1701-
display: inline-block;
1702-
position: fixed;
1703-
z-index: 99999;
1704-
left: 20px;
1705-
bottom: 0;
1706-
min-width: 288px;
1707-
max-width: 568px;
1708-
padding: 14px 15px;
1709-
margin-bottom: 20px;
1701+
background-color: #323232;
17101702
color: #ffffff;
17111703
font-size: 14px;
1712-
background-color: #323232;
17131704
border-radius: 2px;
17141705
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
1715-
opacity: 0;
1716-
-webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in;
1717-
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in;
1706+
height: 0;
1707+
-moz-transition: -moz-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s, padding 0 linear 0.2s, height 0 linear 0.2s;
1708+
-webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s, padding 0 linear 0.2s, height 0 linear 0.2s;
1709+
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s, padding 0 linear 0.2s, height 0 linear 0.2s;
1710+
-moz-transform: translateY(200%);
17181711
-webkit-transform: translateY(200%);
17191712
transform: translateY(200%);
17201713
}
17211714
.snackbar.snackbar-opened {
1722-
opacity: 1;
1715+
padding: 14px 15px;
1716+
margin-bottom: 20px;
1717+
height: auto;
1718+
-moz-transition: -moz-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s;
1719+
-webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s;
1720+
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s, height 0 linear 0.2s;
1721+
-moz-transform: none;
17231722
-webkit-transform: none;
17241723
transform: none;
17251724
}

less/popups.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@
6161
-webkit-transform: none;
6262
transform: none;
6363
}
64+
65+
// Variations
66+
.snackbar.toast {
67+
border-radius: 200px;
68+
}

0 commit comments

Comments
 (0)