diff options
author | Marvin Borner | 2020-09-17 16:23:07 +0200 |
---|---|---|
committer | Marvin Borner | 2020-09-17 16:23:07 +0200 |
commit | 33ff64f9e1b680dc8c0af4c219f392ad5c72f4b2 (patch) | |
tree | 5616b51853bed5fa840650bc59c6b45035a6c421 /motto/public/style.css | |
parent | 399f93696add3299e3bfb74cd24ddc7f15e8f18b (diff) |
Tis code very code
Diffstat (limited to 'motto/public/style.css')
-rw-r--r-- | motto/public/style.css | 121 |
1 files changed, 66 insertions, 55 deletions
diff --git a/motto/public/style.css b/motto/public/style.css index f7562ba..9de73ad 100644 --- a/motto/public/style.css +++ b/motto/public/style.css @@ -1,87 +1,98 @@ *, *:before, *:after { - box-sizing: border-box; - user-select: none; - padding: 0; - margin: 0; + box-sizing: border-box; + user-select: none; + padding: 0; + margin: 0; } html, body { - background: #ccfbfe; - font-family: sans-serif; - overflow: hidden; + background: #ccfbfe; + font-family: sans-serif; + overflow: hidden; } .wrapper { - width: 100vw; - height: 100vh; - overflow: hidden; - display: flex; - flex-direction: column; - position: relative; - opacity: 0; - transition: opacity 0.5s ease-in-out; + width: 100vw; + height: 100vh; + overflow: hidden; + display: flex; + flex-direction: column; + position: relative; + opacity: 0; + transition: opacity 0.5s ease-in-out; } .cards { - flex-grow: 1; - padding-top: 40px; - text-align: center; - display: flex; - justify-content: center; - /* align-items: flex-end; */ - z-index: 1; + flex-grow: 1; + padding-top: 40px; + text-align: center; + display: flex; + justify-content: center; + align-items: center; + z-index: 1; } .card { - display: inline-block; - width: 90vw; - max-width: 400px; - height: 70vh; - background: white; - padding-bottom: 40px; - border-radius: 8px; - overflow: hidden; - position: absolute; - transition: all 0.3s ease-in-out; - cursor: grab; - padding: 20px; + display: inline-block; + width: 90vw; + max-width: 400px; + height: 70vh; + max-height: 400px; + background: white; + padding-bottom: 40px; + border-radius: 8px; + overflow: hidden; + position: absolute; + transition: all 0.3s ease-in-out; + cursor: grab; + padding: 20px; } .card * { - pointer-events: none; + pointer-events: none; } .moving.card { - transition: none; - cursor: grabbing; + transition: none; + cursor: grabbing; } .yay_or_nay { - position: absolute; - bottom: 0; - flex: 0 0 100px; - text-align: center; - padding-top: 20px; - width: 100%; + z-index: 100000; + position: absolute; + bottom: 0; + flex: 0 0 100px; + text-align: center; + padding-top: 20px; + width: 100%; } -.yay_or_nay button { - border-radius: 50%; - line-height: 60px; - width: 60px; - border: 0; - background: white; - display: inline-block; - margin: 20px; +.fab button { + z-index: 100000; + border-radius: 50%; + line-height: 60px; + width: 60px; + border: 0; + background: white; + display: inline-block; + margin: 20px; } -.yay_or_nay button:focus { - outline: 0; +.fab button:focus { + outline: 0; } -.yay_or_nay img { - vertical-align: middle; +.fab img { + z-index: 100000; + vertical-align: middle; +} + +.add_button { + position: absolute; + right: 0; + top: 0; + bottom: unset; } |