Let orbitbar's thin line to be fixed on the top of window when orbitbar is hidden.

This commit is contained in:
BOHUNG 2020-02-01 11:26:26 +08:00
parent 9992eb3cd1
commit 00d1af4260
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@
</div>
</div>
<% if(current_site.is_hidden_orbit_bar && !current_site.orbit_bar_background_color.blank? rescue false) %>
<div class="orbitbar-line" style="background-color:<%=current_site.orbit_bar_background_color%>;height: 0.3em;"></div>
<div class="orbitbar-line" style="background-color:<%=current_site.orbit_bar_background_color%>;height: 0.3em;position: fixed;z-index: 1000;width: 100%;"></div>
<% end %>
<style>
@media (max-width: 538px) {#orbit-bar ul.orbit-bar-search-sign-language > li + li{width:33.3333%;}}

View File

@ -287,7 +287,7 @@
</div>
</div>
<% if(current_site.is_hidden_orbit_bar && !current_site.orbit_bar_background_color.blank? rescue false) %>
<div class="orbitbar-line" style="background-color:<%=current_site.orbit_bar_background_color%>;height: 0.3em;"></div>
<div class="orbitbar-line" style="background-color:<%=current_site.orbit_bar_background_color%>;height: 0.3em;position: fixed;z-index: 1000;width: 100%;"></div>
<% end %>
<script type="text/javascript">
$("#open-orbit-login").on("change",function(){