VulpesOS/gaia/apps/settings/style/dialog.css
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

95 lines
1.9 KiB
CSS
Executable file

/* align according to the document direction rather than the content direction */
html[dir="ltr"] section[role="region"].dialog [dir] { text-align: left; }
html[dir="rtl"] section[role="region"].dialog [dir] { text-align: right; }
.settings-dialog-overlay {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #000000;
opacity: 0.5;
z-index: 2;
}
/**
* Base style for settings dialog, need to override original transform
*/
html[dir="ltr"] section[role="region"].dialog,
html[dir="rtl"] section[role="region"].dialog {
/**
* IMPORTANT:
*
* we have to unset all predefined transform properties here, so we can
* easily customize our own animation and would not get influenced by
* previously defined transform.
*/
transform: unset;
z-index: 3;
}
body[data-ready="true"] section[role="region"].dialog {
transition: transform var(--transition-duration),
visibility var(--transition-duration),
opacity var(--transition-duration);
}
/**
* Bottom-up style
*/
section[role="region"].dialog.bottom-up {
transform: translateY(100%);
}
section[role="region"].dialog.bottom-up.current {
transform: translateY(0);
}
/**
* zoom-in
*/
section[role="region"].dialog.zoom-in {
transform: scale(0);
}
section[role="region"].dialog.zoom-in.current {
transform: scale(1);
}
/**
* zoom-in-80
*/
section[role="region"].dialog.zoom-in-80 {
transform: translate(-50%, -50%) scale(0);
top: 50%;
left: 50%; /* BiDi-proof */
width: 80%;
height: 80%;
}
section[role="region"].dialog.zoom-in-80.current {
transform: translate(-50%, -50%) scale(1);
}
/**
* zoom-out
*/
section[role="region"].dialog.zoom-out {
transform: scale(1);
}
section[role="region"].dialog.zoom-out.current {
transform: scale(0);
}
/**
* fade
*/
section[role="region"].dialog.fade {
opacity: 0;
}
section[role="region"].dialog.fade.current {
opacity: 1;
}