diff options
author | CruiseDevice | 2019-01-08 16:41:15 +0530 |
---|---|---|
committer | CruiseDevice | 2019-01-28 12:32:15 +0530 |
commit | 4abe98d8b6401ec4d5a69e5343ab1d7092e994c7 (patch) | |
tree | 2e5e64dc8f7f85babb91d005e165341c17ed777d /yaksh/static | |
parent | 85960d2623a024381018f87369879f9f82a6d0ff (diff) | |
download | online_test-4abe98d8b6401ec4d5a69e5343ab1d7092e994c7.tar.gz online_test-4abe98d8b6401ec4d5a69e5343ab1d7092e994c7.tar.bz2 online_test-4abe98d8b6401ec4d5a69e5343ab1d7092e994c7.zip |
Fix nav-tab issue in design_questionpaper.html
- Fixes nav-tab active status.
- Fixes nav-tab flickering on hover over tab.
Diffstat (limited to 'yaksh/static')
-rw-r--r-- | yaksh/static/yaksh/css/question_paper_creation.css | 16 | ||||
-rw-r--r-- | yaksh/static/yaksh/js/question_paper_creation.js | 2 |
2 files changed, 14 insertions, 4 deletions
diff --git a/yaksh/static/yaksh/css/question_paper_creation.css b/yaksh/static/yaksh/css/question_paper_creation.css index 6a132c6..5f9f388 100644 --- a/yaksh/static/yaksh/css/question_paper_creation.css +++ b/yaksh/static/yaksh/css/question_paper_creation.css @@ -5,9 +5,20 @@ body { line-height: 18px; color: #404040; } +.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { + -moz-border-bottom-colors: none; + -moz-border-left-colors: none; + -moz-border-right-colors: none; + -moz-border-top-colors: none; + background-color: #FFFFFF; + border-color: #DDDDDD #DDDDDD rgba(0, 0, 0, 0); + border-image: none; + border-style: solid; + border-width: 1px; + color: #555555; + cursor: default; +} .tabs li { - padding-top: 1em; - padding-bottom: 1em; text-align: center; width: 33%; } @@ -16,7 +27,6 @@ body { } .tabs > .active{ border: 0; - background: lightgreen; } .tabs > .active > a:hover { border: 0; diff --git a/yaksh/static/yaksh/js/question_paper_creation.js b/yaksh/static/yaksh/js/question_paper_creation.js index 9996f8c..9d04728 100644 --- a/yaksh/static/yaksh/js/question_paper_creation.js +++ b/yaksh/static/yaksh/js/question_paper_creation.js @@ -21,7 +21,7 @@ $(document).ready(function(){ $('#is_active').val("fixed"); } if($(this).attr("id") == "random-tab") { - $('#is_active').val("random"); + $('#is_active').val("random"); } $question_type.val('select'); $marks.val('select') |