BlazorStart/Start/Client/Sass/app.scss

271 lines
4 KiB
SCSS
Raw Normal View History

@import "../node_modules/spectre.css/src/spectre.scss";
@import "../node_modules/spectre.css/src/spectre-icons.scss";
@import "../node_modules/spectre.css/src/spectre-exp.scss";
@import "../node_modules/spectre.css/src/_variables";
@import "../node_modules/spectre.css/src/mixins/_shadow";
2021-12-11 06:37:36 +00:00
/* Validation */
2021-12-09 05:59:43 +00:00
.valid.modified:not([type=checkbox]) {
2021-12-11 06:37:36 +00:00
outline: 1px solid #26b050;
2021-12-09 05:59:43 +00:00
}
.invalid {
2021-12-11 06:37:36 +00:00
background: lighten($error-color, 53%);
border-color: $error-color;
&:focus {
@include control-shadow($error-color);
}
2021-12-09 05:59:43 +00:00
}
.validation-message {
2021-12-11 06:37:36 +00:00
color: $error-color;
2021-12-09 05:59:43 +00:00
}
/* Blazor */
#blazor-error-ui {
2021-12-11 06:37:36 +00:00
background: lightyellow;
bottom: 0;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
display: none;
left: 0;
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
position: fixed;
width: 100%;
z-index: 1000;
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
.dismiss {
cursor: pointer;
position: absolute;
right: 0.75rem;
top: 0.5rem;
}
2021-12-09 05:59:43 +00:00
}
.tab li.tab-item:not(.tab-action) {
display: flex;
flex-direction: row;
align-items: center;
margin-right: 0.4rem;
a {
flex: 1;
margin-right: 0;
}
.btn-clear {
margin-top: 0;
margin-right: 0.4rem;
}
&.active {
border-bottom: solid 0.1rem $primary-color;
a {
border-bottom: none;
margin-right: 0;
}
}
}
2021-12-09 05:59:43 +00:00
/* Spectre's default is no padding */
.container {
2021-12-11 06:37:36 +00:00
padding: 0.4rem;
2021-12-09 05:59:43 +00:00
}
/* The splash screen */
.appLoadingContainer {
2021-12-11 06:37:36 +00:00
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
2021-12-09 05:59:43 +00:00
}
.authorizingContainer {
2021-12-11 06:37:36 +00:00
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
2021-12-09 05:59:43 +00:00
#sidebar {
2021-12-11 06:37:36 +00:00
display: flex;
flex-direction: column;
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
#sidebarHeading {
padding: 0.5rem 1.5rem;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
h1 {
margin: 0;
}
}
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
.nav {
padding: 0.5rem 1.5rem;
}
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
#sidebarItems {
flex: 1; /* Fill remaining space */
overflow-y: auto;
}
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
.accountActions {
border-top: solid 1px #dadee4;
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
.accountName {
font-weight: bold;
margin-bottom: 1em;
}
}
2021-12-09 05:59:43 +00:00
}
.off-canvas .off-canvas-content {
2021-12-11 06:37:36 +00:00
padding: 0;
2021-12-09 05:59:43 +00:00
}
#menuButton .icon {
2021-12-11 06:37:36 +00:00
transform: scale(1.2);
2021-12-09 05:59:43 +00:00
}
#containerTabStrip {
2021-12-11 06:37:36 +00:00
width: 100%;
display: flex;
align-items: center;
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
#menuButton {
flex: 0 0 auto;
margin-right: 1em;
margin-left: 1em;
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
.icon {
transform: scale(1.2);
}
}
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
.containerList {
flex: 1 0 0;
2021-12-11 06:37:36 +00:00
.tab-item a {
padding: .6rem .4rem .6rem .4rem;
cursor: pointer;
}
}
2021-12-09 05:59:43 +00:00
}
#bookmarkGroups {
2021-12-11 06:37:36 +00:00
margin-top: 1em;
margin-bottom: 3em;
margin-left: auto;
margin-right: auto;
max-width: 1440px;
display: grid;
grid-column-gap: 1.25rem;
grid-row-gap: 1.25rem;
@media screen and (max-width: 960px) {
grid-template-columns: repeat(1, 1fr);
padding: 1em;
}
@media screen and (min-width: 960px) {
grid-template-columns: repeat(2, 1fr);
width: 60%;
}
@media screen and (min-width: 1440) {
grid-template-columns: repeat(3, 1fr);
width: 60%;
}
2021-12-09 05:59:43 +00:00
}
.bookmarkGroup {
2021-12-11 06:37:36 +00:00
width: 100%;
border-radius: 0.5em;
box-shadow: 0 0.1rem 0.3rem rgba(48, 55, 66, 0.1);
.card-header {
padding-top: 0;
border-radius: 0.4em 0.4em 0 0;
}
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
.card-title {
margin-top: 0.5em;
2021-12-11 21:56:35 +00:00
font-weight: bold;
// Keep the delete button from increasing the height of the header
line-height: 1.25;
2021-12-11 06:37:36 +00:00
}
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
.card-body {
padding: 0;
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
.empty {
border-radius: 0 0 0.4em 0.4em;
}
}
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
.card-body:last-child {
padding: 0;
}
2021-12-09 05:59:43 +00:00
}
ul.bookmarks {
2021-12-11 06:37:36 +00:00
list-style: none;
margin: 0;
2021-12-14 00:27:13 +00:00
margin-block: 0;
.bookmark {
margin-top: 0;
2021-12-16 18:46:22 +00:00
display: flex;
flex-direction: row;
.bookmarkDetails {
flex: 1;
}
2021-12-14 00:27:13 +00:00
2021-12-16 18:46:22 +00:00
.bookmarkLink {
2021-12-14 00:27:13 +00:00
display: inline-block;
width: 100%;
padding: 0.5em 0.83em;
&:hover {
text-decoration: none;
background-color: $bg-color-dark;
}
}
&:last-child {
a {
border-radius: 0 0 0.4em 0.4em;
}
}
&:not(:last-child) {
border-bottom: solid 1px $border-color;
}
}
2021-12-09 05:59:43 +00:00
2021-12-11 06:37:36 +00:00
li.noBookmarksItem {
margin-top: 0;
}
2021-12-09 05:59:43 +00:00
}
.addBookmarkGroupButton button {
2021-12-11 06:37:36 +00:00
width: 100%;
margin-top: 0.5em;
2021-12-09 05:59:43 +00:00
}
button.addBookmarkButton {
2021-12-11 06:37:36 +00:00
width: 100%;
2021-12-09 05:59:43 +00:00
}