summaryrefslogtreecommitdiff
path: root/WebInterface/NodeJSServer/src/style/partials/modal
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-10-01 02:28:52 +0200
committerTrueDoctor <d-kobert@web.de>2018-10-01 02:28:52 +0200
commit4ddde4c2e793c7d4cc240c90d5fcb0bc1ddf7a4b (patch)
treead9e45b40bfdb2175e6edca26541e3ea68984616 /WebInterface/NodeJSServer/src/style/partials/modal
parent6285967d1cf6e9322f584de761eea31ade32b3e5 (diff)
parent71783b20dbddd018d2ea140bced59048c7baf0a4 (diff)
Merge branch 'WebApi' of https://github.com/TrueDoctor/DiscoBot into WebApi
Diffstat (limited to 'WebInterface/NodeJSServer/src/style/partials/modal')
-rw-r--r--WebInterface/NodeJSServer/src/style/partials/modal/_base.scss35
-rw-r--r--WebInterface/NodeJSServer/src/style/partials/modal/_login.scss34
2 files changed, 69 insertions, 0 deletions
diff --git a/WebInterface/NodeJSServer/src/style/partials/modal/_base.scss b/WebInterface/NodeJSServer/src/style/partials/modal/_base.scss
new file mode 100644
index 0000000..006c241
--- /dev/null
+++ b/WebInterface/NodeJSServer/src/style/partials/modal/_base.scss
@@ -0,0 +1,35 @@
+@import '../colors';
+
+.modal-container {
+ position:absolute;
+ top: 0;
+ width: 100vw;
+ height: 100vh;
+ background-color: #000000AA;
+ display: flex;
+ opacity: 1;
+ transition: opacity 200ms ease;
+
+ &.hidden {
+ opacity: 0;
+ }
+
+ .modal {
+ background-color: $primary;
+ margin: auto;
+ padding: 1rem;
+ border-style: none;
+ border-radius: 8px;
+ box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
+ }
+
+ .modal-title {
+ max-width: 85vw;
+ margin: 1rem;
+ text-align: center;
+ }
+
+ .modal-body {
+ margin: 0.25rem;
+ }
+}
diff --git a/WebInterface/NodeJSServer/src/style/partials/modal/_login.scss b/WebInterface/NodeJSServer/src/style/partials/modal/_login.scss
new file mode 100644
index 0000000..eed978f
--- /dev/null
+++ b/WebInterface/NodeJSServer/src/style/partials/modal/_login.scss
@@ -0,0 +1,34 @@
+.modal {
+ .modal-title {
+ white-space: nowrap;
+ overflow: hidden;
+ }
+
+ .modal-body {
+ display: grid;
+ grid-template-columns: 10em 1fr;
+ grid-template-rows: 1fr 1fr 1fr;
+ grid-row-gap: 0.5rem;
+
+ div {
+ display: contents;
+ font-size: 1.25rem;
+
+ label {
+ flex-basis: 30%;
+ margin-right: 2rem;
+
+ grid-column: 1 2;
+ }
+
+ input {
+ flex-basis: calc(70% - 2rem);
+ grid-column: 2 3;
+ }
+
+ button {
+ grid-column: 1 / 3;
+ }
+ }
+ }
+}