mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-17 09:18:13 +00:00
Preparation for build of a unique CSS
This commit is contained in:
1 parent
6040838396
commit
36c931b596
42 files changed
+65
-1794
No files matched your search
@@ -0,0 +1,2 @@
|
||||
/*! toast/_extends.scss - */
|
||||
@import '../../../angular-material/src/components/toast/toast.scss';
|
||||
@@ -1,130 +1 @@
|
||||
// See height set globally, depended on by buttons
|
||||
md-toast {
|
||||
display: flex;
|
||||
position:absolute;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
|
||||
min-height: 48px;
|
||||
padding-left: 24px;
|
||||
padding-right: 24px;
|
||||
|
||||
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
|
||||
border-radius: 2px;
|
||||
font-size: 14px;
|
||||
cursor: default;
|
||||
|
||||
max-width: 879px;
|
||||
max-height: 40px;
|
||||
|
||||
height: $toast-height;
|
||||
z-index: $z-index-toast;
|
||||
|
||||
&.md-capsule {
|
||||
border-radius: 24px;
|
||||
}
|
||||
|
||||
opacity: 1;
|
||||
transform: translate3d(0,0,0) rotateZ(0deg);
|
||||
transition: $swift-ease-out;
|
||||
|
||||
&.ng-leave-active {
|
||||
transition: $swift-ease-in;
|
||||
}
|
||||
|
||||
/* Transition differently when swiping */
|
||||
&.md-swipeleft,
|
||||
&.md-swiperight,
|
||||
&.md-swipeup,
|
||||
&.md-swipedown {
|
||||
transition: $swift-ease-out;
|
||||
}
|
||||
|
||||
&.ng-enter {
|
||||
transform: translate3d(0, 100%, 0);
|
||||
&.md-top {
|
||||
transform: translate3d(0, -100%, 0);
|
||||
}
|
||||
opacity: 0;
|
||||
&.ng-enter-active {
|
||||
transform: translate3d(0, 0, 0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
&.ng-leave.ng-leave-active {
|
||||
opacity: 0;
|
||||
transform: translate3d(0, 100%, 0);
|
||||
&.md-top {
|
||||
transform: translate3d(0, -100%, 0);
|
||||
}
|
||||
&.md-swipeleft {
|
||||
transform: translate3d(-100%, 0%, 0);
|
||||
}
|
||||
&.md-swiperight {
|
||||
transform: translate3d(100%, 0%, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.md-action {
|
||||
line-height: 19px;
|
||||
padding-left: 24px;
|
||||
cursor: pointer;
|
||||
text-transform: uppercase;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: $layout-breakpoint-sm) {
|
||||
md-toast {
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
border-radius: 0;
|
||||
bottom: 0;
|
||||
&.md-top {
|
||||
bottom: auto;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (min-width: $layout-breakpoint-sm) {
|
||||
md-toast {
|
||||
min-width: 288px;
|
||||
&.md-bottom {
|
||||
bottom: $toast-margin;
|
||||
}
|
||||
&.md-left {
|
||||
left: $toast-margin;
|
||||
}
|
||||
&.md-right {
|
||||
right: $toast-margin;
|
||||
}
|
||||
&.md-top {
|
||||
top: $toast-margin;
|
||||
}
|
||||
|
||||
/*
|
||||
* When the toast doesn't take up the whole screen,
|
||||
* make it rotate when the user swipes it away
|
||||
*/
|
||||
&.ng-leave.ng-leave-active {
|
||||
&.md-swipeleft {
|
||||
transform: translate3d(-100%, 25%, 0) rotateZ(-15deg);
|
||||
}
|
||||
&.md-swiperight {
|
||||
transform: translate3d(100%, 25%, 0) rotateZ(15deg);
|
||||
}
|
||||
&.md-top {
|
||||
&.md-swipeleft {
|
||||
transform: translate3d(-100%, 0, 0) rotateZ(-15deg);
|
||||
}
|
||||
&.md-swiperight {
|
||||
transform: translate3d(100%, 0, 0) rotateZ(15deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@import 'extends';
|
||||
Reference in new issue
Block a user