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

229 lines
4.9 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;
}
}
#id_dash_content {
flex: 1;
min-width: 425px;
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
}
#id_dash_gear {
position: absolute;
bottom: 0.5rem;
right: 0.5rem;
padding-bottom: 0.2rem;
z-index: 1;
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
color: rgba(var(--secUser), 1);
display: inline-flex;
align-items: center;
justify-content: center;
width: 3rem;
height: 3rem;
border-radius: 50%;
background-color: rgba(var(--priUser), 1);
border: 0.15rem solid rgba(var(--secUser), 1);
}
#id_applet_menu {
position: absolute;
bottom: 3rem;
right: 0.5rem;
z-index: 100;
background-color: rgba(var(--priUser), 0.95);
border: 0.15rem solid rgba(var(--secUser), 0.5);
border-radius: 0.75rem;
padding: 1rem;
.menu-btns {
display: flex;
gap: 0.25rem;
margin-top: 0.75rem;
}
}
#id_applets_container {
container-type: inline-size;
--grid-gap: 0.5rem;
flex: 1;
overflow-y: auto;
overflow-x: hidden;
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-auto-rows: 3rem;
gap: var(--grid-gap);
padding: 0.75rem;
-webkit-overflow-scrolling: touch;
mask-image: linear-gradient(
to bottom,
transparent 0%,
black 2%,
black 98%,
transparent 100%
);
section {
border: 0.2rem solid rgba(var(--secUser), 0.5);
border-radius: 0.75rem;
padding: 1rem;
overflow: hidden;
min-width: 0;
grid-column: span var(--applet-cols, 12);
grid-row: span var(--applet-rows, 3);
}
#id_applet_my_lists {
padding: 1.25rem 1.5rem;
display: flex;
flex-direction: column;
.my-lists-main {
font-size: 1.6rem;
}
.my-lists-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_palette {
padding: 0;
.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: 380px;
overflow: hidden;
}
#id_applets_container {
section {
grid-column: span 12;
}
}
}
@media (max-height: 500px) {
body.page-dashboard {
height: auto;
overflow-y: auto;
.container {
overflow: visible;
}
}
#id_dash_content,
#id_applets_container {
overflow: visible;
flex: none;
}
}