diff --git a/assets/css/post_page.css b/assets/css/post_page.css index f96433a..b1653a2 100644 --- a/assets/css/post_page.css +++ b/assets/css/post_page.css @@ -1,17 +1,17 @@ - - -.upper_taglist{ +.upper_taglist { margin-left: auto; margin-right: auto; max-width: 90%; } + .less { - overflow: hidden; - height:1.8em; + overflow: hidden; + height: 1.8em; } -.taglist{ + +.taglist { margin: 0 auto; padding: 0.5vw 0 6vw 0; @@ -20,20 +20,20 @@ flex-wrap: wrap; } -.more-tags-button { - display:none; - padding: 9px 16px; - border-style: solid; - border-color: #3eb0ef; - border-width: 1px; - font-size: 1.2rem; - line-height: 1; - color:#ffff; - font-weight: 500; - border-radius: 20px; - transition: all ease 0.2s; - background-color: #3eb0ef +.more-tags-button { + display: none; + padding: 9px 16px; + border-style: solid; + border-color: #3eb0ef; + border-width: 1px; + font-size: 1.2rem; + line-height: 1; + color: #ffff; + font-weight: 500; + border-radius: 20px; + transition: all ease 0.2s; + background-color: #3eb0ef } .more-tags-button:hover { @@ -43,18 +43,18 @@ background-color: #ffff; } -.tag_item{ -margin: 3px; -padding: 5px 10px; -font-size: 12px; -cursor: pointer; -display: inline-block; -border-style: solid; -border-color: gray; -border-width: 1px; -border-radius: 20px; -transition: all ease 0.2s; -color: black; +.tag_item { + margin: 3px; + padding: 5px 10px; + font-size: 12px; + cursor: pointer; + display: inline-block; + border-style: solid; + border-color: gray; + border-width: 1px; + border-radius: 20px; + transition: all ease 0.2s; + color: black; } @@ -64,22 +64,24 @@ color: black; text-decoration: none; } -.taglabel{ +.taglabel { margin: 0 auto; padding: 0.5vw 0 0 0; max-width: 840px; } -.questionlist{ -display: flex; -flex-wrap: wrap; -justify-content: center; -margin-bottom: 20px; + +.questionlist { + display: flex; + flex-wrap: wrap; + justify-content: center; + margin-bottom: 20px; } -.correct_option , .wrong_option { +.correct_option, +.wrong_option { display: none; line-height: 50px; margin: 10px; @@ -94,53 +96,61 @@ margin-bottom: 20px; font-size: 16px; } -.correct_option:hover , .wrong_option:hover{ +.correct_option:hover, +.wrong_option:hover { transform: scale(1.05); } -.correct_answer{ - border-color: lightgreen; - color:MediumSeaGreen; +.correct_answer { + border-color: lightgreen; + color: MediumSeaGreen; } -.wrong_answer{ + +.wrong_answer { border-color: coral; color: coral; } -.Answer_explanation{ + +.Answer_explanation { padding: 10px; display: none; border: 3px solid MediumSeaGreen; border-radius: 5px; } + @media (max-width: 480px) { - .Answer_explanation{ - margin:12px; + .Answer_explanation { + margin: 12px; } - .correct_option , .wrong_option{ - width:100%; + .correct_option, + .wrong_option { + + width: 100%; } } + .fadeMe { - animation:fadeIn 0.2s linear; + animation: fadeIn 0.2s linear; } @keyframes fadeIn { 0% { - opacity:0 + opacity: 0 } + 100% { - opacity:1; + opacity: 1; } } .fadeMe.none { - display:none + display: none } -.question_message{ +.question_message { color: MediumSeaGreen; text-align: center; margin-top: 30px; @@ -149,124 +159,201 @@ margin-bottom: 20px; } +/* CSS code for the sidebar menu */ +#Sidebar_Button { + align-content: center; + background-color: #351ded; + color: white; + padding: 10px 20px; + border-radius: 50%; + height: 84px; + padding-top: 8px; + outline: none; +} + + +#Sidebar_Button_div { + position: fixed; + top: 80px; + z-index: 9999; + right: -5px; + margin-bottom: 30px; + margin-right: 20px; +} + +.sidebar { + display: none; + position: fixed; + border-radius: 5px; + z-index: 999; + padding: 0px; + padding-top: -5px; + background-color: white; + top: 150px; + right: 20px; + width: 200px; + height: 280px; + font-size: 18px; + color: black; + text-align: center; + border: thin solid black; +} + +.sidebar-title-item, +.sidebar-item { + width: 100%; + display: block; + text-align: left; + border: none; + white-space: normal; + float: none; + outline: 0; + padding-left: 10px; +} + +.sidebar-title-item { + text-align: left; + padding-bottom: 8px; + padding-left: 4px; +} + +.sidebar-item:link { + color: lightblue; +} + +.sidebar-item:visited { + color: purple; +} + +/* End of sidebar CSS */ + /* CSS code the the Discourse popup message */ .Discourse_button { align-content: center; - background-color : #351ded; + background-color: #351ded; color: white; padding: 10px 20px; border-radius: 50%; height: 84px; padding-top: 8px; transform: scale(0.7); - outline:none; + outline: none; } -.Discourse_button:hover{ -transform: scale(0.8); + +.Discourse_button:hover { + transform: scale(0.8); } + #Forum_Button { position: fixed; bottom: -20px; - z-index: 9999; + z-index: 9999; right: -5px; margin-bottom: 30px; margin-right: 20px; } -.Discourse_close{ + +.Discourse_close { position: absolute; top: -17px; right: 17px; transform: scale(1.4); } -.Discourse_close:hover{ + +.Discourse_close:hover { transform: scale(2); } -.Discourse_Forum{ - display: none; - position: fixed; +.Discourse_Forum { + display: none; + position: fixed; border-radius: 5px; z-index: 999; - padding: 0px; - padding-top: -5px; - background-color:#351ded; + padding: 0px; + padding-top: -5px; + background-color: #351ded; bottom: 95px; right: 20px; width: 350px; height: 280px; - font-size: 18px; - color: white; - text-align: center; + font-size: 18px; + color: white; + text-align: center; } -.Discourse_Popup_Container{ - position: absolute; - top: 50%; - left: 50%; - margin-right: -50%; - transform: translate(-50%, -50%) +.Discourse_Popup_Container { + position: absolute; + top: 50%; + left: 50%; + margin-right: -50%; + transform: translate(-50%, -50%) } -.Discourse_Popup_Content{ +.Discourse_Popup_Content { text-align: center; } @media (max-width: 480px) { -.Discourse_button { - transform: scale(0.6); -} -#Forum_Button { -bottom: -30px; -right: -20px; + .Discourse_button { + transform: scale(0.6); + } -} + #Forum_Button { + bottom: -30px; + right: -20px; - .Discourse_Forum{ - width: 100%; - height: 100%; - top:0px; - left: 0px; - z-index: 9999; - border-radius: 0px; - background-color: rgba(0,0,0,0.9); - } - .Discourse_Popup_Container{ - padding: 25px; - width: 95%; - background-color:#351ded; - } - .Discourse_close{ - transform: scale(2); - margin-top: 30px; - } - .Discourse_close:hover{ - transform: scale(3); - } + } + + .Discourse_Forum { + width: 100%; + height: 100%; + top: 0px; + left: 0px; + z-index: 9999; + border-radius: 0px; + background-color: rgba(0, 0, 0, 0.9); + } + + .Discourse_Popup_Container { + padding: 25px; + width: 95%; + background-color: #351ded; + } + + .Discourse_close { + transform: scale(2); + margin-top: 30px; + } + + .Discourse_close:hover { + transform: scale(3); + } } -.discourse_link{ +.discourse_link { -border: 2px solid white; -border-radius: 20px; -color: #fff; -padding: 0px 10px 5px 10px; -transition: 0.3s; + border: 2px solid white; + border-radius: 20px; + color: #fff; + padding: 0px 10px 5px 10px; + transition: 0.3s; } -.discourse_link:hover{ -background: rgba(0,0,0,0.3) + +.discourse_link:hover { + background: rgba(0, 0, 0, 0.3) } -.community_icon{ +.community_icon { width: 128px; - margin-bottom: 15px; + margin-bottom: 15px; margin-top: -5px; } /*CSS code for the table of contents*/ -.table_of_contents{ - color:#3eb0ef; +.table_of_contents { + color: #3eb0ef; margin-bottom: 20px; margin-top: 20px; margin-left: 0px; @@ -282,35 +369,38 @@ background: rgba(0,0,0,0.3) .in_page_link { color: black; text-align: left; - width:30%; + width: 30%; padding: 5px; display: inline-block; margin: 5px; border-right: 1px solid lightgrey; - border-top :1px solid lightgrey; - border-bottom:1px solid lightgrey; - border-left: 3px solid #3eb0ef; + border-top: 1px solid lightgrey; + border-bottom: 1px solid lightgrey; + border-left: 3px solid #3eb0ef; transition: all ease 0.5s; } -.in_page_link:hover{ +.in_page_link:hover { font-size: 17px; color: #3eb0ef; } + @media (max-width: 500px) { - .table_of_contents{ + .table_of_contents { width: 100%; } - .in_page_link{ + + .in_page_link { width: 45%; } } + /*Authors*/ -.Authors_list{ +.Authors_list { margin: 0 auto; margin-top: 0px; padding: 0px; @@ -318,19 +408,20 @@ background: rgba(0,0,0,0.3) display: flex; flex-wrap: wrap; } -.Authors_tag_item{ -margin: 5px; -padding: 5px 10px; -font-size: 17px; -cursor: pointer; -display: inline-block; -border-style: solid; -border-color: gray; -border-width: 1px; -border-radius: 50px; -transition: all ease 0.2s; -font-weight: bold; -color: black; + +.Authors_tag_item { + margin: 5px; + padding: 5px 10px; + font-size: 17px; + cursor: pointer; + display: inline-block; + border-style: solid; + border-color: gray; + border-width: 1px; + border-radius: 50px; + transition: all ease 0.2s; + font-weight: bold; + color: black; } @@ -339,19 +430,20 @@ color: black; text-decoration: none; transform: scale(1.05); } -.co-author-profile-image{ - margin-right:5px; - width:45px; - height:45px; - border-radius:100%; - object-fit:cover + +.co-author-profile-image { + margin-right: 5px; + width: 45px; + height: 45px; + border-radius: 100%; + object-fit: cover } -.social_media_header_links{ - margin:10px; - width:50px; - height:50px; - border-radius:100%; +.social_media_header_links { + margin: 10px; + width: 50px; + height: 50px; + border-radius: 100%; color: white; display: flex; justify-content: center; @@ -359,7 +451,7 @@ color: black; transition: all ease 0.2s; } -.header_social_tab{ +.header_social_tab { padding: 10px; margin: 0 auto; @@ -370,35 +462,39 @@ color: black; } @media (max-width: 480px) { - .social_media_header_links{ - margin:5px; - width:40px; - height:40px; + .social_media_header_links { + margin: 5px; + width: 40px; + height: 40px; } } + .post_card_title { - margin-top: 0; - transition: all ease 0.3s; + margin-top: 0; + transition: all ease 0.3s; } -.post_card_title:hover,.post_card_excerpt:hover{ + +.post_card_title:hover, +.post_card_excerpt:hover { color: #3eb0ef; } .post_card_excerpt { - font-family: Georgia, serif; - transition: all ease 0.3s; + font-family: Georgia, serif; + transition: all ease 0.3s; } -.post_full_title{ +.post_full_title { font-size: 4rem; color: black; margin: 10px; } + @media (max-width: 480px) { - .post_full_title{ + .post_full_title { font-size: 2.9rem; } -} +} \ No newline at end of file diff --git a/assets/js/chatbox.js b/assets/js/chatbox.js index a365260..e317873 100644 --- a/assets/js/chatbox.js +++ b/assets/js/chatbox.js @@ -1,30 +1,27 @@ +// Discourse forum popup and the live support feature goes here +var discourse_msg_active = false; +$(document).ready(function () { + $('#Discourse_button').click(function () { - // Discourse forum popup and the live support feature goes here -var discourse_msg_active=false; + if (discourse_msg_active == false) { - $(document).ready(function(){ + $('#Discourse_Forum').slideDown(300); + discourse_msg_active = true; - $('#Discourse_button').click(function(){ + } else { + $('#Discourse_Forum').slideUp(300); - if(discourse_msg_active==false){ + discourse_msg_active = false; - $('#Discourse_Forum').slideDown(300); - discourse_msg_active=true; + } - }else{ - $('#Discourse_Forum').slideUp(300); + }); + // Controls for the close button for this popup + $('#Discourse_close').click(function () { + $('#Discourse_Forum').slideUp(300); + discourse_msg_active = false; - discourse_msg_active=false; - - } - - }); - // Controls for the close button for this popup - $('#Discourse_close').click(function(){ - $('#Discourse_Forum').slideUp(300); - discourse_msg_active=false; - - }); - }) + }); +}) \ No newline at end of file diff --git a/default.hbs b/default.hbs index 255cbb5..59dc85a 100644 --- a/default.hbs +++ b/default.hbs @@ -100,14 +100,12 @@