summaryrefslogtreecommitdiff
path: root/static/website/bootstrap-css
diff options
context:
space:
mode:
authorprashantsinalkar2018-08-15 23:22:57 +0530
committerprashantsinalkar2018-08-15 23:22:57 +0530
commitc203fcb7df9ef3853d7842a9083609b4725032ca (patch)
tree87650aa5f6bab356d83bb8b15984a52d10b6d52b /static/website/bootstrap-css
parent2c3046ffa4d454195f18b61b25e5213c3cc27a5e (diff)
downloadSciPy2018-c203fcb7df9ef3853d7842a9083609b4725032ca.tar.gz
SciPy2018-c203fcb7df9ef3853d7842a9083609b4725032ca.tar.bz2
SciPy2018-c203fcb7df9ef3853d7842a9083609b4725032ca.zip
added custom css class for other than home page tempates
Diffstat (limited to 'static/website/bootstrap-css')
-rw-r--r--static/website/bootstrap-css/assets/css/main.css6
-rw-r--r--static/website/bootstrap-css/assets/js/main.js11
2 files changed, 15 insertions, 2 deletions
diff --git a/static/website/bootstrap-css/assets/css/main.css b/static/website/bootstrap-css/assets/css/main.css
index 819e3a5..d74c2ea 100644
--- a/static/website/bootstrap-css/assets/css/main.css
+++ b/static/website/bootstrap-css/assets/css/main.css
@@ -299,6 +299,12 @@ ul li {
-webkit-transition: all 0.2s linear 0s;
transition: all 0.2s linear 0s;
}
+.navbar-solid-other {
+ background-color: #000 !important;
+ padding: 0 !important;
+ -webkit-transition: all 0.2s linear 0s;
+ transition: all 0.2s linear 0s;
+}
.site-branding {
float: left;
diff --git a/static/website/bootstrap-css/assets/js/main.js b/static/website/bootstrap-css/assets/js/main.js
index 66a2645..bb476df 100644
--- a/static/website/bootstrap-css/assets/js/main.js
+++ b/static/website/bootstrap-css/assets/js/main.js
@@ -12,13 +12,20 @@ $(window).load(function(){
function handleTopNavAnimation() {
var top=$(window).scrollTop();
-
+ if($('#home').attr("data") == 'home'){
if(top>10){
+
$('#site-nav').addClass('navbar-solid');
}
else{
$('#site-nav').removeClass('navbar-solid');
}
+ }
+ else{
+ $('#site-nav').addClass('navbar-solid-other');
+ $("a").removeAttr("data-scroll");
+ }
+
}
/*
@@ -66,4 +73,4 @@ $('#registration-form').submit(function(e){
* SmoothScroll
*/
-smoothScroll.init(); \ No newline at end of file
+smoothScroll.init();