mirror of
https://github.com/XFox111/my-website.git
synced 2026-04-22 07:28:01 +03:00
80 lines
1.3 KiB
SCSS
80 lines
1.3 KiB
SCSS
@use "@/_styles/theme" as *;
|
|
|
|
.dialog
|
|
{
|
|
max-height: unset;
|
|
max-width: 320px;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
padding: $spacingNone;
|
|
margin: $spacingNone;
|
|
margin-left: auto;
|
|
background-color: $colorNeutralBackground1;
|
|
box-shadow: $shadow16;
|
|
color: unset;
|
|
border: none;
|
|
|
|
transition: right $durationNormal $curveEasyEaseMax;
|
|
right: -350px;
|
|
|
|
&::backdrop
|
|
{
|
|
-webkit-backdrop-filter: blur(8px);
|
|
backdrop-filter: blur(8px);
|
|
|
|
// Since colors use variables, and dialog is rendered outside of the regular DOM,
|
|
// we need to specify them as literals (or add variables to the dialog scope, but that's too complicated).
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
|
|
@media (prefers-color-scheme: dark)
|
|
{
|
|
background-color: rgba(26, 26, 26, 0.5);
|
|
}
|
|
}
|
|
|
|
.wrapper
|
|
{
|
|
height: 100%;
|
|
|
|
@include flex(column);
|
|
@include align(flex-end, center);
|
|
gap: $spacingXXXL;
|
|
padding: $spacingXXXL;
|
|
|
|
> header
|
|
{
|
|
@include flex(row);
|
|
align-items: center;
|
|
gap: $spacingL;
|
|
|
|
> h3
|
|
{
|
|
@include subtitle1($fontFamilyBaseAlt);
|
|
}
|
|
}
|
|
|
|
.navigation
|
|
{
|
|
flex-flow: column;
|
|
align-items: flex-end;
|
|
|
|
.link
|
|
{
|
|
align-items: end;
|
|
background-position-x: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.show
|
|
{
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
body:has(dialog.menu[open])
|
|
{
|
|
overflow: hidden;
|
|
}
|