mirror of
https://github.com/plausible/analytics.git
synced 2024-12-22 09:01:40 +03:00
dd20fc8a17
* chore(docker): improve repeat contributions workflow * This change adds two new commands to gracefully stop and remove the Postgres and Clickhouse docker containers. To do so, it also gives them a recognizable name. * Additionally, the Postgres container is updated to use a named volume for its data. This lower friction for repeat contributions where one would otherwise sign up and activate their accounts again and again each time. * Format countries modal * Remove unused imports * Run ESLint and make related fixes * ESlint formatting for entry pages modal * WIP: proof of concept for scrollable modals on mobile * Fix modals being too wide on desktop * Make modals truly responsive This fixes the desktop behaviour completely now. * Update changelog with modals responsiveness * Update desktop modal width to 860px It was an oversight to set it at 800px in the first place. Co-authored-by: Uku Taht <Uku.taht@gmail.com>
72 lines
1.0 KiB
CSS
72 lines
1.0 KiB
CSS
.modal {
|
|
display: none;
|
|
}
|
|
|
|
.modal.is-open {
|
|
display: block;
|
|
}
|
|
|
|
.modal[aria-hidden="false"] .modal__overlay {
|
|
animation: mmfadeIn .2s ease-in;
|
|
}
|
|
|
|
.modal[aria-hidden="true"] .modal__overlay {
|
|
animation: mmfadeOut .2s ease-in;
|
|
}
|
|
|
|
.modal-enter {
|
|
opacity: 0;
|
|
}
|
|
|
|
.modal-enter-active {
|
|
opacity: 1;
|
|
transition: opacity 100ms ease-in;
|
|
}
|
|
|
|
.modal__overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0,0,0,0.6);
|
|
z-index: 99;
|
|
overflow-x: auto;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.modal__container {
|
|
background-color: #fff;
|
|
padding: 1rem 2rem;
|
|
border-radius: 4px;
|
|
margin: 50px auto;
|
|
box-sizing: border-box;
|
|
min-height: 509px;
|
|
transition: height 200ms ease-in;
|
|
}
|
|
|
|
.modal__close {
|
|
position: fixed;
|
|
color: #b8c2cc;
|
|
font-size: 48px;
|
|
font-weight: bold;
|
|
top: 12px;
|
|
right: 24px;
|
|
}
|
|
|
|
.modal__close:before { content: "\2715"; }
|
|
|
|
.modal__content {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
@keyframes mmfadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes mmfadeOut {
|
|
from { opacity: 1; }
|
|
to { opacity: 0; }
|
|
}
|