From 23fb4da05a151cdd5eb7f17e2863e76f99f13685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Sat, 5 Jul 2014 14:36:58 +0100 Subject: [PATCH] Implement modal without bootstrap.js and jQuery --- css/glowingbear.css | 33 ++++++++++++++++++++++++++++++--- index.html | 8 ++++---- js/glowingbear.js | 9 +++++++++ 3 files changed, 43 insertions(+), 7 deletions(-) diff --git a/css/glowingbear.css b/css/glowingbear.css index 4da300a..70bf245 100644 --- a/css/glowingbear.css +++ b/css/glowingbear.css @@ -359,15 +359,42 @@ table.notimestampseconds td.time span.seconds { display: none !important; } -.modal ul { +.gb-modal { + position: absolute; + left: 0px; + width:100%; + height:200%; + z-index: 1000; + background-color:rgba(0, 0, 0, 0.5) +} +.gb-modal[data-state=hidden] { + transition: .2s ease-in-out, top .2s ease-in; + transition-delay: 0.1s, 0s; + top: -150px; + visibility: hidden; + opacity: 0; +} + +.gb-modal[data-state=visible] { + transition: .2s ease-in-out, top .3s ease-out; + transition-delay: 0s, 0.1s; + top: 0px; + visibility: visible; + opacity: 1; +} +.gb-modal[ng-click], .gb-modal div[ng-click] { + cursor: default; +} + +.gb-modal ul { list-style: none; padding-left: 15px; } -.modal li { +.gb-modal li { font-size: larger; margin-bottom: 10px; } -.modal li li { +.gb-modal li li { font-size: medium; } .modal-header { diff --git a/index.html b/index.html index 19d3117..b86b220 100644 --- a/index.html +++ b/index.html @@ -198,7 +198,7 @@ $ openssl req -nodes -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out rel
@@ -265,8 +265,8 @@ $ openssl req -nodes -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out rel
-