diff --git a/src/index.html b/src/index.html index 3ea2a74..61c68b6 100644 --- a/src/index.html +++ b/src/index.html @@ -15,6 +15,9 @@ min-height: 100vh; font-family: Helvetica, arial; } + h1 { + margin-top: 0; + } a { text-decoration: none; color: crimson; cursor: pointer; } /*a:hover { text-decoration: underline; }*/ .flex { @@ -133,9 +136,9 @@ } .footer__separator { display: inline-block; - height: 24px; - margin: 0 10px 0 20px; - border-left: 1px solid rgba(255,255,255,0.2); + height: 24px; + margin: 0 10px 0 20px; + border-left: 1px solid rgba(255,255,255,0.2); } .mode-btn { margin-left: 10px; @@ -218,6 +221,59 @@ opacity: 1; visibility: visible; } + .notifications-btn { + position: relative; + } + @keyframes shake { + 2%, 22% { + transform: translate3d(-1px, 0, 0); + } + 5%,20% { + transform: translate3d(2px, 0, 0); + } + 7%, 12%, 17% { + transform: translate3d(-4px, 0, 0); + } + 10%, 15% { + transform: translate3d(4px, 0, 0); + } + } + .notifications-btn.has-new { + animation: shake 10s linear infinite; + transform-origin: 50% 10px; + } + .notifications-btn__dot { + position: absolute; + right: 1; + top: -2px; + background: #2fbe3d; + border-radius: 50%; + width: 12px; + height: 12px; + display: none; + } + .has-new .notifications-btn__dot { + display: block; + } + .notification { + border: 1px solid #f1f1f1; + border-radius: 5px; + padding: 20px; + background: #f8f6f9; + position: relative; + } + .notification li:not(:last-child) { + margin-bottom: 10px; + } + .notification__version { + background: #ff8c00; + color: white; + padding: 3px; + border-radius: 5px; + position: absolute; + top: 2px; + left: 2px; + } @@ -237,7 +293,7 @@