diff --git a/website/static/css/style.css b/website/static/css/style.css index d3a101a280dc55f5c844ccbfeb9ef45f9ae0fd39..42c434c25ec354bb181d4a0b646f9bb2e3e30266 100644 --- a/website/static/css/style.css +++ b/website/static/css/style.css @@ -35,6 +35,9 @@ body { padding-top: 50px; } +.clip{ + overflow: hidden; +} .title{ text-align: center; font-size: 50px; @@ -133,19 +136,70 @@ ul.ui-autocomplete { position: fixed; top: 51px; bottom: 0; - z-index: 3; + z-index: 10; display: none; + overflow-y: scroll; } #info-name { font-size: 22px; margin-bottom: 5px; } -#info-close { +#info-close, #about-close { position: absolute; right: 0; padding: 6px 19px 19px 19px; cursor: pointer; z-index: 10; + opacity: 0.4; +} +#about-close-nav { + opacity: 0.5; + padding: 2px 15px 0px 15px; + display: none; +} +#info-close:hover, #about-close:hover, #about-close-nav:hover { + opacity: 1; +} +#about-body{ + position: fixed; + z-index: 1040; + top: 51px; + width: 100%; + bottom: 0; + overflow: scroll; +} +#about-container { + width: 100%; + overflow-y: auto; +} +.about-content { + background-color: #FFF; + padding-bottom: 20px; +} +#about-example{ + background-color: rgba(255,255,255,0.4); +} +.about-top-p{ + margin-top: 20px; +} +#about-link{ + cursor: pointer; +} +.grid-blur{ + opacity: 0.54; + -webkit-filter: blur(3px); + -moz-filter: blur(3px); + -o-filter: blur(3px); + -ms-filter: blur(3px); + filter: blur(3px); +} +.main-container{ + /* Transitions for .grid-blur */ + -webkit-transition: opacity 356ms ease-in-out, -webkit-filter 356ms ease-in-out; + -moz-transition: opacity 356ms ease-in-out, -moz-filter 356ms ease-in-out;; + -o-transition: opacity 356ms ease-in-out, -o-filter 356ms ease-in-out;; + -ms-transition: opacity 356ms ease-in-out, -ms-filter 356ms ease-in-out; + transition: opacity 356ms ease-in-out, "filter" 356ms ease-in-out; } /* Custom Responsive Classes */ /* xs */ @@ -190,6 +244,16 @@ ul.ui-autocomplete { #info-close { display: none; } + #about-close { + display: none; + } + #about-body { + bottom: 100px; + } + .navbar-nav li{ + margin-left: 10px; + margin-right: 10px; + } } /* lg */ @media (min-width: 1200px) { diff --git a/website/static/js/about.js b/website/static/js/about.js new file mode 100644 index 0000000000000000000000000000000000000000..6a9b560a2b5ef8a72a00350507d602c319116bcb --- /dev/null +++ b/website/static/js/about.js @@ -0,0 +1,18 @@ +$(document).ready(function(){ + $('#about-link').click(function(){ + $(this).parent().toggleClass('active'); + $('#about-body').slideToggle(356); + $('.main-container').toggleClass('grid-blur'); + // Prevent body from scolling when about section is active + $('body').toggleClass('clip'); + $('#about-link-text, #about-close-nav').toggle(); + }); + $('#about-close').click(function(){ + $('#about-link').parent().removeClass('active'); + $('#about-body').slideUp(356); + $('.main-container').removeClass('grid-blur'); + $('body').removeClass('clip'); + $('#about-link-text').show(); + $('#about-close-nav').hide(); + }); +}); diff --git a/whats_open/templates/base.html b/whats_open/templates/base.html index d675ab1ec346e93007910a6c8835a850b0aaeedd..18ca176c972f9f4506d6a6a842a9d3569f6e70e7 100644 --- a/whats_open/templates/base.html +++ b/whats_open/templates/base.html @@ -12,6 +12,7 @@ + {% block title %}