diff options
Diffstat (limited to 'motto/public/style.css')
-rw-r--r-- | motto/public/style.css | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/motto/public/style.css b/motto/public/style.css new file mode 100644 index 0000000..f7562ba --- /dev/null +++ b/motto/public/style.css @@ -0,0 +1,87 @@ +*, +*:before, +*:after { + box-sizing: border-box; + user-select: none; + padding: 0; + margin: 0; +} + +html, +body { + 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; +} + +.cards { + flex-grow: 1; + padding-top: 40px; + text-align: center; + display: flex; + justify-content: center; + /* align-items: flex-end; */ + 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; +} + +.card * { + pointer-events: none; +} + +.moving.card { + transition: none; + cursor: grabbing; +} + +.yay_or_nay { + 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; +} + +.yay_or_nay button:focus { + outline: 0; +} + +.yay_or_nay img { + vertical-align: middle; +} |