From 5ff2f89afb71fd2976c487692ec73085241e09c7 Mon Sep 17 00:00:00 2001 From: Haishan Date: Sun, 6 Jun 2021 00:32:24 +0800 Subject: Stop use postcss-nested postcss-extend-rule --- src/components/Modal.module.scss | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/components/Modal.module.scss (limited to 'src/components/Modal.module.scss') diff --git a/src/components/Modal.module.scss b/src/components/Modal.module.scss new file mode 100644 index 0000000..6192a1f --- /dev/null +++ b/src/components/Modal.module.scss @@ -0,0 +1,21 @@ +.overlay { + position: fixed; + top: 0; + right: 0; + left: 0; + bottom: 0; + background: #444; + z-index: 1024; +} + +.content { + outline: none; + position: relative; + color: #ddd; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + background: #444; + padding: 20px; + border-radius: 10px; +} -- cgit v1.3.1