feat: merge update-notification.scss styles with the update.vue component

This commit is contained in:
Dominik Pschenitschni 2021-10-18 14:33:45 +02:00
parent d258af625d
commit becacabe63
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
3 changed files with 39 additions and 41 deletions

View File

@ -47,3 +47,42 @@ export default {
},
}
</script>
<style lang="scss" scoped>
.update-notification {
margin: 1rem;
display: flex;
align-items: center;
background: $warning;
padding: 0 0 0 .5rem;
border-radius: $radius;
font-size: .9rem;
color: $grey-900;
justify-content: space-between;
@media screen and (max-width: $desktop) {
position: fixed;
bottom: 1rem;
margin: 0;
width: 450px;
left: calc(50vw - 225px);
}
@media screen and (max-width: $tablet) {
position: fixed;
left: 1rem;
right: 1rem;
bottom: 1rem;
width: auto;
}
p {
text-align: center;
width: 100%;
}
> * + * {
margin-left: .5rem;
}
}
</style>

View File

@ -8,5 +8,4 @@
@import "loading";
@import "navigation";
@import "notification";
@import "update-notification";
@import "background";

View File

@ -1,40 +0,0 @@
.update-notification {
margin: 1rem;
display: flex;
align-items: center;
background: $warning;
padding: 0 0 0 .5rem;
border-radius: $radius;
font-size: .9rem;
color: $grey-900;
justify-content: space-between;
@media screen and (max-width: $desktop) {
& {
position: fixed;
bottom: 1rem;
margin: 0;
width: 450px;
left: calc(50vw - 225px);
}
}
@media screen and (max-width: $tablet) {
& {
position: fixed;
left: 1rem;
right: 1rem;
bottom: 1rem;
width: auto;
}
}
p {
text-align: center;
width: 100%;
}
.button {
margin-left: .5rem;
}
}