summaryrefslogtreecommitdiff
path: root/src/components/Modal.module.scss
diff options
context:
space:
mode:
authorHaishan <[email protected]>2018-10-20 20:32:02 +0800
committerHaishan <[email protected]>2018-10-20 20:32:02 +0800
commit133b29c9dac2209a3c88c3289f84ff709d404392 (patch)
treee023785cc82db732c64328a5d99938992eceecfd /src/components/Modal.module.scss
first commit
Diffstat (limited to 'src/components/Modal.module.scss')
-rw-r--r--src/components/Modal.module.scss22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/components/Modal.module.scss b/src/components/Modal.module.scss
new file mode 100644
index 0000000..46feef0
--- /dev/null
+++ b/src/components/Modal.module.scss
@@ -0,0 +1,22 @@
+.overlay {
+ position: fixed;
+ z-index: 1000;
+ top: 0;
+ right: 0;
+ left: 0;
+ bottom: 0;
+ background: rgba(255, 255, 255, 0.5);
+}
+
+.content {
+ outline: none;
+ position: absolute;
+ color: #ddd;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ background: #444;
+ padding: 20px;
+ // border: 1px solid #ccc;
+ border-radius: 10px;
+}