feat: divide most content.scss styles into components

- contentAuth
- contentNoAuth.vue
- Login.vue
- button.vue
- comments.vue
This commit is contained in:
Dominik Pschenitschni 2021-10-18 14:32:59 +02:00
parent 584ade68d2
commit 2596fd98b4
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
6 changed files with 73 additions and 68 deletions

View File

@ -134,6 +134,43 @@ export default {
</script>
<style lang="scss" scoped>
.app-container {
min-height: calc(100vh - 65px);
@media screen and (max-width: $tablet) {
padding-top: $navbar-height;
}
.app-content {
padding: $navbar-height + 1.5rem 1.5rem 1rem 1.5rem;
z-index: 2;
@media screen and (max-width: $tablet) {
margin-left: 0;
padding-top: 1.5rem;
min-height: calc(100vh - 4rem);
}
&.is-menu-enabled {
margin-left: $navbar-width;
@media screen and (max-width: $tablet) {
min-width: 100%;
margin-left: 0;
}
}
&.task\.detail {
padding-left: 0;
padding-right: 0;
}
.card {
background: $white;
}
}
}
.keyboard-shortcuts-button {
position: fixed;
bottom: calc(1rem - 4px);

View File

@ -65,3 +65,17 @@ export default {
},
}
</script>
<style lang="scss" scoped>
.no-auth-wrapper {
background: url('@/assets/llama.svg') no-repeat bottom left fixed $light-background;
min-height: 100vh;
}
.noauth-container {
max-width: 450px;
width: 100%;
margin: 0 auto;
padding: 1rem;
}
</style>

View File

@ -72,4 +72,10 @@ export default {
},
},
}
</script>
</script>
<style lang="scss" scoped>
.underline-none {
text-decoration: none !important;
}
</style>

View File

@ -345,4 +345,8 @@ export default {
}
}
.media-content {
width: calc(100% - 48px - 2rem);
}
</style>

View File

@ -1,75 +1,9 @@
.app-container {
min-height: calc(100vh - 65px);
@media screen and (max-width: $tablet) {
padding-top: $navbar-height;
}
.app-content {
padding: $navbar-height + 1.5rem 1.5rem 1rem 1.5rem;
z-index: 2;
&.is-menu-enabled {
margin-left: $navbar-width;
}
@media screen and (max-width: $tablet) {
margin-left: 0;
padding-top: 1.5rem;
min-height: calc(100vh - 4rem);
&.is-menu-enabled {
min-width: 100%;
margin-left: 0;
}
}
.card {
background: $white;
}
&.task\.detail {
padding-left: 0;
padding-right: 0;
}
}
}
.no-auth-wrapper {
background: url('@/assets/llama.svg') no-repeat bottom left fixed $light-background;
min-height: 100vh;
.noauth-container {
max-width: 450px;
width: 100%;
margin: 0 auto;
padding: 1rem;
@media screen and (max-width: 450px) {
.login-buttons {
flex-direction: column;
.control:first-child {
margin-bottom: 1rem;
}
}
}
}
}
.media-content {
width: calc(100% - 48px - 2rem);
}
.content h3 {
.icon, .is-small {
font-size: 1rem;
}
}
.underline-none {
text-decoration: none !important;
}
.table.has-actions {
border-top: 1px solid $grey-100;
border-radius: 4px;

View File

@ -222,7 +222,17 @@ export default {
}
</script>
<style scoped>
<style lang="scss" scoped>
.login-buttons {
@media screen and (max-width: 450px) {
flex-direction: column;
.control:first-child {
margin-bottom: 1rem;
}
}
}
.button {
margin: 0 0.4rem 0 0;
}