Actually use SCSS structure in app.scss

This commit is contained in:
Neil Brommer 2021-12-08 22:38:49 -08:00
parent 8a5e54d17c
commit 4e9f710162

View file

@ -23,14 +23,14 @@
position: fixed; position: fixed;
width: 100%; width: 100%;
z-index: 1000; z-index: 1000;
}
#blazor-error-ui .dismiss { .dismiss {
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
right: 0.75rem; right: 0.75rem;
top: 0.5rem; top: 0.5rem;
} }
}
/* Spectre's default is no padding */ /* Spectre's default is no padding */
@ -59,37 +59,37 @@
#sidebar { #sidebar {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
}
#sidebar #sidebarHeading { #sidebarHeading {
padding: 0.5rem 1.5rem; padding: 0.5rem 1.5rem;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
}
#sidebar #sidebarHeading h1 { h1 {
margin: 0; margin: 0;
} }
}
#sidebar .nav { .nav {
padding: 0.5rem 1.5rem; padding: 0.5rem 1.5rem;
} }
#sidebar #sidebarItems { #sidebarItems {
flex: 1; /* Fill remaining space */ flex: 1; /* Fill remaining space */
overflow-y: auto; overflow-y: auto;
} }
#sidebar .accountActions { .accountActions {
border-top: solid 1px #dadee4; border-top: solid 1px #dadee4;
}
#sidebar .accountActions .accountName { .accountName {
font-weight: bold; font-weight: bold;
margin-bottom: 1em; margin-bottom: 1em;
} }
}
}
.off-canvas .off-canvas-content { .off-canvas .off-canvas-content {
padding: 0; padding: 0;
@ -103,21 +103,25 @@
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
}
#containerTabStrip #menuButton { #menuButton {
flex: 0 0 auto; flex: 0 0 auto;
margin-right: 1em; margin-right: 1em;
margin-left: 1em; margin-left: 1em;
.icon {
transform: scale(1.2);
}
} }
#containerTabStrip .containerList { .containerList {
flex: 1 0 0; flex: 1 0 0;
}
#containerTabStrip .containerList .tab-item a { .tab-item a {
padding: .6rem .4rem .6rem .4rem; padding: .6rem .4rem .6rem .4rem;
} }
}
}
#bookmarkGroups { #bookmarkGroups {
margin-top: 1em; margin-top: 1em;
@ -127,24 +131,18 @@
display: grid; display: grid;
grid-column-gap: 1.25rem; grid-column-gap: 1.25rem;
grid-row-gap: 1.25rem; grid-row-gap: 1.25rem;
}
@media screen and (max-width: 960px) { @media screen and (max-width: 960px) {
#bookmarkGroups {
grid-template-columns: repeat(1, 1fr); grid-template-columns: repeat(1, 1fr);
padding: 1em; padding: 1em;
} }
}
@media screen and (min-width: 960px) { @media screen and (min-width: 960px) {
#bookmarkGroups {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
width: 60%; width: 60%;
} }
}
@media screen and (min-width: 1440) { @media screen and (min-width: 1440) {
#bookmarkGroups {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
width: 60%; width: 60%;
} }
@ -152,32 +150,32 @@
.bookmarkGroup { .bookmarkGroup {
width: 100%; width: 100%;
}
.bookmarkGroup .card-header { .card-header {
padding-top: 0; padding-top: 0;
} }
.bookmarkGroup .card-title { .card-title {
margin-top: 0.5em; margin-top: 0.5em;
} }
.bookmarkGroup .card-body { .card-body {
padding: 0; padding: 0;
} }
.bookmarkGroup .card-body:last-child { .card-body:last-child {
padding: 0; padding: 0;
} }
}
ul.bookmarks { ul.bookmarks {
list-style: none; list-style: none;
margin: 0; margin: 0;
}
li.noBookmarksItem { li.noBookmarksItem {
margin-top: 0; margin-top: 0;
} }
}
.addBookmarkGroupButton button { .addBookmarkGroupButton button {
width: 100%; width: 100%;