1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-14 09:05:08 +01:00
onion/sass/ascribe_global_notification.scss

76 lines
1.6 KiB
SCSS
Raw Normal View History

2015-06-08 18:14:25 +02:00
.ascribe-global-notification {
background-color: #212121;
2015-07-08 17:06:53 +02:00
color: white;
2015-08-31 19:04:44 +02:00
display: table;
height: 3.5em;
left: 0;
position: fixed;
transition: .2s bottom cubic-bezier(.77, 0, .175, 1);
2015-06-08 18:14:25 +02:00
width: 100%;
2016-02-05 10:38:59 +01:00
z-index: 9999;
2015-06-08 18:14:25 +02:00
2016-02-05 10:38:59 +01:00
> div {
padding: .5em 1em;
text-align: center;
}
2015-06-08 18:14:25 +02:00
2016-02-05 10:38:59 +01:00
&.ascribe-global-notification-off {
bottom: -5em;
}
&.ascribe-global-notification-on {
bottom: 0;
// React can sometimes take some time to load the notification message,
// so add a small delay before showing the notification
transition-delay: 0.2s;
}
2015-07-08 15:40:32 +02:00
}
2015-07-08 17:06:53 +02:00
.ascribe-global-notification-bubble {
background-color: #212121;
border-radius: 2px;
2015-08-31 19:04:44 +02:00
bottom: 3em;
2015-07-08 17:06:53 +02:00
color: white;
2015-08-31 19:04:44 +02:00
display: table;
height: 3.5em;
2016-02-05 10:38:59 +01:00
max-width: 75%;
2015-08-31 19:04:44 +02:00
position: fixed;
2016-02-05 10:38:59 +01:00
transition: 0.5s right ease;
z-index: 9999;
2015-08-31 19:04:44 +02:00
> div {
padding: .75em 1.5em;
2016-02-05 10:38:59 +01:00
text-align: left;
2015-08-31 19:04:44 +02:00
}
2015-07-08 15:40:32 +02:00
2016-02-05 10:38:59 +01:00
&.ascribe-global-notification-bubble-off {
right: -100em;
}
&.ascribe-global-notification-bubble-on {
right: 3.5em;
// React can sometimes take some time to load the notification message,
// so add a small delay before showing the notification
transition-delay: 0.5s;
}
2015-07-08 17:06:53 +02:00
}
2016-02-05 10:38:59 +01:00
.ascribe-global-notification > div,
.ascribe-global-notification-bubble > div {
display: table-cell;
font-size: 1.25em;
vertical-align: middle;
2015-07-08 15:40:32 +02:00
}
2015-07-08 17:06:53 +02:00
.ascribe-global-notification-danger {
background-color: #d9534f;
}
.ascribe-global-notification-success {
background-color: rgba(2, 182, 163, 1);
2015-08-31 19:04:44 +02:00
}