📎 Minor changes on scss code style on framework.scss.

This commit is contained in:
Andrey Antukh 2020-10-20 17:26:48 +02:00 committed by Hirunatan
parent 9f917603d8
commit 4705656d29

View file

@ -1046,7 +1046,7 @@ input[type=range]:focus::-ms-fill-upper {
@include animation(0, .6s, fadeOutUp); @include animation(0, .6s, fadeOutUp);
} }
& .icon { .icon {
display: flex; display: flex;
svg { svg {
@ -1056,11 +1056,11 @@ input[type=range]:focus::-ms-fill-upper {
} }
} }
& .content { .content {
&.bottom-actions { &.bottom-actions {
flex-direction: column; flex-direction: column;
& .actions { .actions {
margin-top: $medium; margin-top: $medium;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
@ -1072,7 +1072,7 @@ input[type=range]:focus::-ms-fill-upper {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
& .actions { .actions {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
@ -1083,12 +1083,12 @@ input[type=range]:focus::-ms-fill-upper {
} }
} }
& .btn-close { .btn-close {
position: absolute; position: absolute;
right: 0px; right: 0px;
top: 0px; top: 0px;
width: 40px; width: 48px;
height: 40px; height: 48px;
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -1107,223 +1107,118 @@ input[type=range]:focus::-ms-fill-upper {
opacity: .8; opacity: .8;
} }
} }
}
.banner.fixed { &.fixed {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0px; left: 0px;
width: 100%; width: 100%;
height: 40px; height: 48px;
z-index: 13; z-index: 13;
display: flex;
justify-content: center;
align-items: center;
& .wrapper {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
max-width: 60%;
& .icon { .wrapper {
margin-right: $medium;
}
& .content {
color: $color-white;
display: flex; display: flex;
align-items: center;
justify-content: center; justify-content: center;
font-size: $fs15; align-items: center;
max-width: 60%;
.icon {
margin-right: $medium;
}
.content {
color: $color-white;
display: flex;
align-items: center;
justify-content: center;
font-size: $fs15;
}
} }
} }
}
.banner.floating, &.floating, &.inline {
.banner.inline { min-height: 40px;
min-height: 40px;
& .wrapper { .wrapper {
display: flex;
& .icon {
padding: $small;
width: 40px;
}
& .content {
color: $color-black;
display: flex; display: flex;
font-size: $fs14;
padding: $small; .icon {
width: 100%; padding: $small;
width: 40px;
}
.content {
color: $color-black;
display: flex;
font-size: $fs14;
padding: $small;
width: 100%;
}
}
&.error {
.content {
background-color: lighten($color-danger,30%);
}
}
&.success {
.content {
background-color: lighten($color-success,30%);
}
}
&.warning {
.content {
background-color: lighten($color-warning,30%);
}
}
&.info {
.content {
background-color: lighten($color-info,30%);
}
} }
} }
&.error { &.floating {
& .content { box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.18);
background-color: lighten($color-danger,30%); position: absolute;
top: 70px;
left: 0;
right: 0;
width: 35rem;
margin-left: auto;
margin-right: auto;
z-index: 20;
&.error {
border: 1px solid $color-danger;
}
&.success {
border: 1px solid $color-success;
}
&.warning {
border: 1px solid $color-warning;
}
&.info {
border: 1px solid $color-info;
} }
} }
&.success { &.inline {
& .content { width: 100%;
background-color: lighten($color-success,30%); margin-bottom: $big;
}
}
&.warning {
& .content {
background-color: lighten($color-warning,30%);
}
}
&.info {
& .content {
background-color: lighten($color-info,30%);
}
} }
} }
.banner.floating {
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.18);
position: absolute;
top: 70px;
left: 0;
right: 0;
width: 35rem;
margin-left: auto;
margin-right: auto;
z-index: 20;
&.error {
border: 1px solid $color-danger;
}
&.success {
border: 1px solid $color-success;
}
&.warning {
border: 1px solid $color-warning;
}
&.info {
border: 1px solid $color-info;
}
}
.banner.inline {
width: 100%;
margin-bottom: $big;
}
// .inline-banner {
// // display: flex;
// // margin-bottom: $big;
// // min-height: 40px;
// // width: 100%;
//
// // .icon {
// // display: flex;
// // flex-shrink: 0;
// // justify-content: center;
// // margin-right: $small;
// // padding: $small;
// // width: 40px;
// //
// // svg {
// // fill: $color-white;
// // height: 20px;
// // width: 20px;
// // }
// // }
//
// .content {
// display: flex;
// flex-direction: column;
// }
//
// .main {
// display: flex;
// }
//
// .extra {
// display: flex;
// justify-content: flex-end;
// padding: $small;
//
// > div:not(:last-child) {
// margin-right: $small;
// }
// }
//
// .text {
// display: flex;
// font-size: $fs14;
// color: $color-black;
// padding: $small;
// }
//
// &.error {
// background-color: lighten($color-danger,30%);
// .icon {
// background-color: $color-danger;
// }
// }
//
// &.success {
// background-color: lighten($color-success,30%);
// .icon {
// background-color: $color-success;
// }
// }
//
// &.warning {
// background-color: lighten($color-warning,30%);
// .icon {
// background-color: $color-warning;
// }
// }
//
// &.info {
// background-color: lighten($color-info,30%);
// .icon {
// background-color: $color-info;
// }
// }
//
// .btn-close {
// width: 40px;
// height: 40px;
// flex-shrink: 0;
// display: flex;
// justify-content: center;
// align-items: center;
// cursor: pointer;
// opacity: .35;
//
// svg {
// fill: $color-black;
// height: 18px;
// width: 18px;
// transform: rotate(45deg);
// }
//
// &:hover {
// opacity: .8;
// }
// }
//
// &.quick {
// .btn-close {
// display: none;
// }
// }
// }
.close-bezier { .close-bezier {
fill: $color-danger; fill: $color-danger;
stroke: $color-danger-dark; stroke: $color-danger-dark;