diff --git a/.gitpod.yml b/.gitpod.yml deleted file mode 100644 index 05737a3..0000000 --- a/.gitpod.yml +++ /dev/null @@ -1,10 +0,0 @@ -# This configuration file was automatically generated by Gitpod. -# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) -# and commit this file to your remote git repository to share the goodness with others. - -# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart - -tasks: - - init: bundle install - - diff --git a/app/assets/stylesheets/application.css.erb b/app/assets/stylesheets/application.css.erb index 7e80878..a5a9f90 100644 --- a/app/assets/stylesheets/application.css.erb +++ b/app/assets/stylesheets/application.css.erb @@ -68,7 +68,36 @@ body { width: 100%; margin-bottom:4rem!important; } +/*go to top button css */ +#back-to-top { + position: fixed; + bottom: 20px; + right: 20px; + background-color: #333; + color: #fff; + border-radius: 50%; + width: 40px; + height: 40px; + text-decoration : none; + text-align: center; + line-height: 40px; + cursor: pointer; + opacity: 0; + transition: opacity 0.5s; +} + +#back-to-top.show { + opacity: 1; +} +#back-to-top:hover { + background-color: #555; +} + +#back-to-top:before { + content: "\f077"; + font-family: "FontAwesome"; +} @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap'); @@ -191,10 +220,16 @@ body { .chapter-inactive { background-image: radial-gradient(circle, rgba(255,102,102,0.1), rgba(255,102,102,0.6)); } +.chapter-active .chapter-status { + background-color: #2ecc71; + color: white; .chapter-active .chapter-status { background-color: #2ecc71; color: white; } +.chapter-inactive .chapter-status { + background-color: #e74c3c; + color: white; .chapter-inactive .chapter-status { background-color: #e74c3c; color: white; @@ -248,6 +283,8 @@ body { + + /* Autocomplete JS */ .autocomplete-suggestions { border: 1px solid #999; background: #FFF; cursor: default; overflow: auto; -webkit-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); -moz-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); } .autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; } diff --git a/app/views/chapters/index.html.erb b/app/views/chapters/index.html.erb index f36b1b5..eb5a949 100644 --- a/app/views/chapters/index.html.erb +++ b/app/views/chapters/index.html.erb @@ -77,4 +77,4 @@ })(); <%= render partial: 'chapters/chapter_map_loader', - locals: { chapter_address: @chapter_address, map_area_id: 'chapter-map' } %> + locals: { chapter_address: @chapter_address, map_area_id: 'chapter-map' } %> \ No newline at end of file diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 08be835..bcc4b59 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -1,14 +1,20 @@