BlazorStart/Start/Client/Sass/app.scss

205 lines
2.9 KiB
SCSS
Raw Normal View History

2021-12-11 06:37:36 +00:00
@import "./spectre/_variables";
@import "./spectre/mixins/_shadow";
/* 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
}
/* 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-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-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
}