diff options
| author | Wolfboy248 <105884620+Wolfboy248@users.noreply.github.com> | 2024-10-20 00:27:38 +0200 |
|---|---|---|
| committer | Wolfboy248 <105884620+Wolfboy248@users.noreply.github.com> | 2024-10-20 00:27:38 +0200 |
| commit | 8c8edfc9c8bb1a0fa3d1e02aab576044857f1c95 (patch) | |
| tree | cf23b52befb9af6d16321b9e9031ace724543875 /frontend/src/css/Dialog.css | |
| parent | backend: actually fix download demo (diff) | |
| download | lphub-8c8edfc9c8bb1a0fa3d1e02aab576044857f1c95.tar.gz lphub-8c8edfc9c8bb1a0fa3d1e02aab576044857f1c95.tar.bz2 lphub-8c8edfc9c8bb1a0fa3d1e02aab576044857f1c95.zip | |
refactor: custom modals
Diffstat (limited to 'frontend/src/css/Dialog.css')
| -rw-r--r-- | frontend/src/css/Dialog.css | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/frontend/src/css/Dialog.css b/frontend/src/css/Dialog.css new file mode 100644 index 0000000..c25a755 --- /dev/null +++ b/frontend/src/css/Dialog.css | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | .dimmer { | ||
| 2 | position: absolute; | ||
| 3 | width: calc(100%); | ||
| 4 | height: 100%; | ||
| 5 | background-color: rgba(0, 0, 0, 0.5); | ||
| 6 | } | ||
| 7 | |||
| 8 | .dialog { | ||
| 9 | position: absolute; | ||
| 10 | z-index: 10000; | ||
| 11 | top: 50%; | ||
| 12 | left: 50%; | ||
| 13 | transform: translate(-50%, -50%); | ||
| 14 | background-color: #2b2e46; | ||
| 15 | border-radius: 24px; | ||
| 16 | overflow: hidden; | ||
| 17 | min-width: 350px; | ||
| 18 | border: 0.1em solid #272831; | ||
| 19 | animation: dialog_in 0.2s cubic-bezier(0.075, 0.82, 0.165, 1.1); | ||
| 20 | } | ||
| 21 | |||
| 22 | .dialog-element { | ||
| 23 | padding: 8px; | ||
| 24 | } | ||
| 25 | |||
| 26 | .dialog-header, .dialog-btns-container { | ||
| 27 | background-color: #202232; | ||
| 28 | } | ||
| 29 | |||
| 30 | .dialog-btns-container { | ||
| 31 | display: flex; | ||
| 32 | justify-content: right; | ||
| 33 | border-top: 2px solid #3f4151; | ||
| 34 | gap: 8px; | ||
| 35 | } | ||
| 36 | |||
| 37 | .dialog-header { | ||
| 38 | border-bottom: 2px solid #3f4151; | ||
| 39 | } | ||
| 40 | |||
| 41 | .dialog-description { | ||
| 42 | font-size: 18px; | ||
| 43 | padding: 14px 10px; | ||
| 44 | white-space: pre-wrap; | ||
| 45 | } | ||
| 46 | |||
| 47 | .dialog-btns-container button { | ||
| 48 | border-radius: 24px; | ||
| 49 | padding: 5px 10px; | ||
| 50 | } | ||
| 51 | |||
| 52 | .dialog-btns-container button:nth-child(2):hover { | ||
| 53 | background-color: rgb(105, 36, 36); | ||
| 54 | } | ||
| 55 | |||
| 56 | .dialog-btns-container button:nth-child(2) { | ||
| 57 | background-color: rgb(147, 45, 45); | ||
| 58 | } | ||
| 59 | |||
| 60 | .dialog-btns-container button:nth-child(1):hover { | ||
| 61 | background-color: rgb(38, 42, 62); | ||
| 62 | } | ||
| 63 | |||
| 64 | @keyframes dialog_in { | ||
| 65 | 0% { | ||
| 66 | transform: translate(-50%, calc(-50% + 100px)) scaleX(0%); | ||
| 67 | opacity: 0; | ||
| 68 | } | ||
| 69 | |||
| 70 | 20% { | ||
| 71 | opacity: 0; | ||
| 72 | } | ||
| 73 | |||
| 74 | 100% { | ||
| 75 | transform: translate(-50%, calc(-50%)); | ||
| 76 | opacity: 1; | ||
| 77 | } | ||
| 78 | } \ No newline at end of file | ||