From 9879ce59dadd1afb1b9d04974d16433882cf419a Mon Sep 17 00:00:00 2001 From: kingingcole <43896019+kingingcole@users.noreply.github.com> Date: Wed, 24 Apr 2019 16:38:44 +0200 Subject: [PATCH] Added styles as directed (#175) --- examples/demo.css | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/demo.css b/examples/demo.css index e2008f10..088d8f14 100644 --- a/examples/demo.css +++ b/examples/demo.css @@ -38,7 +38,7 @@ h1, h2, .section h3 { text-align: center; } #back2Top { - width: 40px; + width: 50px; line-height: 40px; overflow: hidden; z-index: 999; @@ -51,14 +51,21 @@ h1, h2, .section h3 { transform: rotate(270deg); position: fixed; bottom: 50px; - right: 0; + right: 10px; background-color: #DDD; color: #555; text-align: center; font-size: 30px; text-decoration: none; + border-radius: 1em; + box-shadow: -1.5px 1.5px 1.5px 1.5px lightgrey; + transition: box-shadow 150ms; } #back2Top:hover { background-color: #DDF; color: #000; + box-shadow: -1px 1px 1px 1px lightgrey; +} +#back2Top:active { + box-shadow: none; }