mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
set global margin on the main app grid
+ refactor margins and paddings in some components
This commit is contained in:
@@ -26,7 +26,7 @@ defineProps<{
|
||||
gap: $medium;
|
||||
border-bottom: 1px solid $gray3;
|
||||
padding: 1rem 0;
|
||||
padding-top: $small;
|
||||
padding-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
<style lang="scss">
|
||||
.r-home {
|
||||
height: calc(100% - 1rem);
|
||||
padding: 0 $small $small 0;
|
||||
margin-top: $small;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -27,9 +27,7 @@ const tabs = useTabStore();
|
||||
|
||||
<style lang="scss">
|
||||
.r-sidebar {
|
||||
width: 29em;
|
||||
background-color: rgba(4, 12, 34, 0.103);
|
||||
padding: 0 $small;
|
||||
|
||||
|
||||
@include phone-only {
|
||||
display: none;
|
||||
@@ -64,18 +62,6 @@ const tabs = useTabStore();
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.tab-keys {
|
||||
display: none;
|
||||
width: 3rem;
|
||||
right: 0;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
grid-area: tabs;
|
||||
border-radius: 0;
|
||||
overflow: hidden;
|
||||
border-left: solid 1px $gray;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -36,7 +36,6 @@ function loadMore() {
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
|
||||
@@ -35,7 +35,6 @@ function loadMore() {
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,6 @@ function loadMore() {
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
|
||||
@@ -32,9 +32,9 @@ function unfocusThis() {
|
||||
|
||||
<style lang="scss">
|
||||
#gsearch-input {
|
||||
padding: $small;
|
||||
display: flex;
|
||||
|
||||
margin-bottom: $small;
|
||||
|
||||
@include tablet-landscape {
|
||||
display: none;
|
||||
}
|
||||
@@ -46,7 +46,6 @@ function unfocusThis() {
|
||||
display: flex;
|
||||
gap: $small;
|
||||
background-color: $gray4;
|
||||
height: 2.25rem;
|
||||
|
||||
.icon {
|
||||
width: 2rem;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="tabs">
|
||||
<div class="tabs" id="tabs">
|
||||
<div class="cont rounded">
|
||||
<div
|
||||
v-for="tab in tabs.tabs"
|
||||
@@ -22,8 +22,8 @@ const tabs = useTabStore();
|
||||
|
||||
<style lang="scss">
|
||||
.tabs {
|
||||
padding: $small;
|
||||
height: 4.25rem;
|
||||
grid-area: tabs;
|
||||
height: 100%;
|
||||
|
||||
.cont {
|
||||
background-color: $black;
|
||||
@@ -58,7 +58,6 @@ const tabs = useTabStore();
|
||||
.t-item {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.search {
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
<Loader />
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="more image"></div>
|
||||
<Search />
|
||||
</div>
|
||||
</div>
|
||||
@@ -78,16 +77,12 @@ watch(
|
||||
);
|
||||
</script>
|
||||
|
||||
<!-- !!use nav store to sync the title component!! -->
|
||||
|
||||
<style lang="scss">
|
||||
.topnav {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr min-content max-content;
|
||||
padding-bottom: 1rem;
|
||||
margin: $small $small 0 0;
|
||||
border-bottom: 1px solid $gray3;
|
||||
height: 3rem;
|
||||
// border-bottom: 1px solid $gray3;
|
||||
// padding-bottom: $small;
|
||||
|
||||
.left {
|
||||
display: grid;
|
||||
@@ -115,16 +110,6 @@ watch(
|
||||
width: 100%;
|
||||
display: flex;
|
||||
gap: $small;
|
||||
|
||||
.more {
|
||||
width: 2.25rem;
|
||||
aspect-ratio: 1;
|
||||
height: 100%;
|
||||
background-color: $gray5;
|
||||
background-image: url("../../assets/icons/more.svg");
|
||||
transform: rotate(90deg);
|
||||
border-radius: $small;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user