mirror of
https://github.com/dpnmw/community-landing.git
synced 2026-03-18 09:27:16 +00:00
Ui improvements and bug fixes
This commit is contained in:
@@ -222,6 +222,7 @@ module CommunityLanding
|
||||
["#cl-about", safe_hex(:about_bg_dark), safe_hex(:about_bg_light)],
|
||||
["#cl-participation", safe_hex(:participation_bg_dark), safe_hex(:participation_bg_light)],
|
||||
["#cl-topics", safe_hex(:topics_bg_dark), safe_hex(:topics_bg_light)],
|
||||
["#cl-splits", safe_hex(:splits_bg_dark), safe_hex(:splits_bg_light)],
|
||||
["#cl-app-cta", safe_hex(:app_cta_bg_dark), safe_hex(:app_cta_bg_light)],
|
||||
["#cl-footer", safe_hex(:footer_bg_dark), safe_hex(:footer_bg_light)],
|
||||
]
|
||||
@@ -237,6 +238,11 @@ module CommunityLanding
|
||||
end
|
||||
end
|
||||
|
||||
faq_mh = (@s.faq_mobile_max_height rescue 0).to_i
|
||||
if faq_mh > 0
|
||||
css << "@media (max-width: 767px) { .cl-faq { max-height: #{faq_mh}px; overflow-y: auto; } }\n"
|
||||
end
|
||||
|
||||
css.present? ? "<style>\n#{css}</style>\n" : ""
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user