Skip to content
Snippets Groups Projects
Commit 19411f42 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

style: fix display of banner in width

parent dd3ed610
No related branches found
No related tags found
No related merge requests found
<div class="alert-wrapper"> <div class="alert-wrapper">
<div *ngIf="filesRetrieve(listDataFileObs | async) && !canSubmit(listDataFileObs | async)" <div *ngIf="filesRetrieve(listDataFileObs | async) && !canSubmit(listDataFileObs | async)"
class="alert" class="alert warn"
> >
{{message| translate}} {{message| translate}}
</div> </div>
......
...@@ -2,63 +2,80 @@ ...@@ -2,63 +2,80 @@
@import "../../../../../../sass/abstracts/mixins"; @import "../../../../../../sass/abstracts/mixins";
@import "../../../../../shared/components/routables/shared-abstract-detail/shared-abstract-detail.routable.scss"; @import "../../../../../shared/components/routables/shared-abstract-detail/shared-abstract-detail.routable.scss";
$height-alert: 30px;
:host { :host {
.tab-header-icon { $padding-top: $height-alert + 10px;
padding-top: $padding-top;
@include respond-to-breakpoint("xs") {
$padding-top: $height-alert + 10px + 20px;
padding-top: $padding-top;
} }
.tab-header-label { .alert-wrapper {
padding-left: 10px; height: $height-alert;
padding-bottom: 10px;
top: 0;
width: 100vw;
position: absolute;
right: 0;
@include respond-to-breakpoint("xs") { .alert {
display: none; color: $white;
} font-weight: bold;
} text-align: center;
} padding: 5px 10px;
box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.05);
animation: appear 0.25s;
.alert-wrapper { &.warn {
height: 30px; background-color: $warning;
padding-bottom: 10px; }
margin: -25px -25px 0;
.alert { &.error {
background-color: $warning; background-color: $red;
color: $white; }
font-weight: bold;
text-align: center;
padding: 5px;
box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.05);
animation: appear 0.25s;
&.error { &.success {
background-color: $red; background-color: $success;
} }
&.success { &.info {
background-color: $success; background-color: $info;
}
} }
&.info { @-webkit-keyframes appear {
background-color: $info; 0% {
-webkit-transform: scaleY(0);
height: 0;
padding: 0;
opacity: 0;
display: none;
-webkit-animation-play-state: paused;
}
100% {
-webkit-transform: scaleY(1);
opacity: 1;
}
} }
} }
}
.success { .tab-header-icon {
background-color: $green !important; }
color: $white !important;;
} .tab-header-label {
padding-left: 10px;
@-webkit-keyframes appear { @include respond-to-breakpoint("xs") {
0% { display: none;
-webkit-transform: scaleY(0); }
height: 0;
padding: 0;
opacity: 0;
display: none;
-webkit-animation-play-state: paused;
} }
100% {
-webkit-transform: scaleY(1); button.success {
opacity: 1; background-color: $green !important;
color: $white !important;;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment