paperless-ngx/src-ui/src/app/components/app-frame/app-frame.component.scss

168 lines
2.6 KiB
SCSS
Raw Normal View History

2020-11-22 16:33:26 +01:00
@import "/src/theme";
2020-12-31 00:35:54 -08:00
/*
2020-10-27 01:10:18 +01:00
* Sidebar
*/
2020-12-31 00:35:54 -08:00
.sidebar {
2020-10-27 01:10:18 +01:00
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: 100; /* Behind the navbar */
2020-12-31 00:35:54 -08:00
padding: 50px 0 0; /* Height of navbar */
2020-10-27 01:10:18 +01:00
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}
@media (max-width: 767.98px) {
.sidebar {
2020-12-31 00:35:54 -08:00
top: 3.5rem;
2020-10-27 01:10:18 +01:00
}
}
.sidebar-sticky {
position: relative;
2021-01-01 12:43:19 -08:00
top: 0;
2020-11-22 16:33:26 +01:00
height: 100%;
2020-12-31 00:35:54 -08:00
padding-top: 0.5rem;
2020-10-27 01:10:18 +01:00
overflow-x: hidden;
2021-01-01 12:42:58 -08:00
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
2021-01-31 19:16:38 -08:00
min-height: min-content;
2020-10-27 01:10:18 +01:00
}
@supports ((position: -webkit-sticky) or (position: sticky)) {
.sidebar-sticky {
position: -webkit-sticky;
position: sticky;
}
}
.sidebar .nav-link {
font-weight: 500;
color: #333;
}
.sidebar .nav-link .sidebaricon {
margin-right: 4px;
color: #999;
}
.sidebar .nav-link.active {
2020-11-22 16:33:26 +01:00
color: $primary;
font-weight: bold;
2020-10-27 01:10:18 +01:00
}
2020-12-31 00:35:54 -08:00
.sidebar .nav-link.active .sidebaricon,
.sidebar .nav-link:hover .sidebaricon {
2020-10-27 01:10:18 +01:00
color: inherit;
}
.sidebar-heading {
2020-12-31 00:35:54 -08:00
font-size: 0.75rem;
2020-10-27 01:10:18 +01:00
text-transform: uppercase;
}
2021-01-31 19:09:31 -08:00
.nav {
flex-wrap: nowrap;
}
.nav-item {
position: relative;
&:hover .close {
display: block;
}
2021-01-31 19:24:37 -08:00
.close {
display: none;
position: absolute;
cursor: pointer;
opacity: 1;
top: 0;
padding: .25rem .3rem 0;
right: .4rem;
width: 1.8rem;
height: 100%;
}
.nav-link-additional {
margin-top: 0.2rem;
margin-left: 0.25rem;
padding-top: 0.5rem;
svg {
margin-bottom: 2px;
}
2021-01-31 19:24:37 -08:00
}
2021-01-31 19:20:00 -08:00
}
2020-10-27 01:10:18 +01:00
/*
* Navbar
*/
2020-12-31 00:35:54 -08:00
.navbar-brand {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
2020-10-27 01:10:18 +01:00
font-size: 1rem;
}
.dropdown.show .dropdown-toggle,
.dropdown-toggle:hover {
opacity: 0.7;
2020-12-31 00:35:54 -08:00
}
.dropdown-toggle::after {
margin-left: 0.4em;
vertical-align: 0.155em;
}
.navbar .dropdown-menu {
font-size: 0.875rem; // body size
a svg {
opacity: 0.6;
}
}
.navbar .search-form-container {
max-width: 550px;
2021-01-01 12:25:16 -08:00
form {
position: relative;
}
svg {
position: absolute;
2021-01-01 12:25:16 -08:00
left: 0.6rem;
color: rgba(255, 255, 255, 0.6);
}
2020-10-27 01:10:18 +01:00
&:focus-within {
svg {
display: none;
}
2021-01-01 12:29:52 -08:00
.form-control::placeholder {
color: rgba(255, 255, 255, 0);
}
}
.form-control {
2020-12-31 00:35:54 -08:00
color: rgba(255, 255, 255, 0.3);
background-color: rgba(0, 0, 0, 0.15);
padding-left: 1.8rem;
2020-12-31 00:35:54 -08:00
border-color: rgba(255, 255, 255, 0.2);
2021-01-07 19:23:59 -08:00
transition: all .3s ease, padding-left 0s ease, background-color 0s ease; // Safari requires all
max-width: 600px;
min-width: 300px; // 1/2 max
&::placeholder {
2020-12-31 00:35:54 -08:00
color: rgba(255, 255, 255, 0.4);
}
&:focus {
background-color: #fff;
2021-01-01 12:29:52 -08:00
color: #212529;
flex-grow: 1;
padding-left: 0.5rem;
}
}
2020-10-27 01:10:18 +01:00
}