Files
python-tdd/src/static_src/scss/_dashboard.scss

171 lines
3.7 KiB
SCSS
Raw Normal View History

html:has(body.page-dashboard) {
overflow: hidden;
}
body.page-dashboard {
overflow: hidden;
.container {
overflow: hidden;
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.row {
flex-shrink: 0;
margin-bottom: -1rem;
}
}
#id_dash_content {
flex: 1;
min-width: 425px;
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
}
#id_applets_container {
#id_applet_my_notes {
display: flex;
flex-direction: column;
.my-notes-container {
flex: 1;
min-height: 0;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
&::-webkit-scrollbar { display: none; }
mask-origin: padding-box;
mask-clip: padding-box;
mask-image: linear-gradient(
to bottom,
transparent 0%,
black 5%,
black 85%,
transparent 100%
);
}
}
#id_applet_wallet {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
#id_applet_palette {
padding: 0 0 0 2rem;
.palette-scroll {
display: flex;
gap: 3.5rem;
overflow-x: auto;
padding: 0.75rem 2rem;
height: 100%;
scrollbar-width: none;
&::-webkit-scrollbar { display: none; }
mask-image: linear-gradient(
to right,
transparent 0%,
black 2%,
black 98%,
transparent 100%
);
}
}
#id_applet_username {
display: flex;
align-items: center;
overflow: hidden;
form {
min-width: 0;
width: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
.save-btn {
align-self: left;
}
}
.username-field {
display: flex;
align-items: baseline;
gap: 0.1em;
min-width: 0;
overflow: hidden;
.username-at{
user-select: none;
pointer-events: none;
font-size: 1.8rem;
font-weight: bold;
color: rgba(var(--secUser), 0.875);
margin-left: 0.3rem;
}
input {
background: transparent;
border: none;
outline: none;
font-size: 1.8rem;
font-weight: bold;
color: rgba(var(--secUser), 0.875);;
font-family: inherit;
padding: 0;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
@media (max-width: 550px) {
#id_dash_content {
min-width: 0;
overflow: hidden;
}
}
@media (min-width: 738px) {
#id_dash_content {
min-width: 666px;
overflow: hidden;
}
}
@media (orientation: landscape) {
// Reset the 666px min-width so #id_dash_content shrinks to fit within the
// sidebar-bounded container rather than overflowing into the footer sidebar.
#id_dash_content {
min-width: 0;
}
}
@media (max-height: 500px) {
body.page-dashboard {
.container {
.row {
padding: 0.25rem 0;
.col-lg-6 h2 {
margin-bottom: 0.5rem;
}
}
}
}
}