Sentora Support Forums

Full Version: Forum anchors and logo with small screens
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
@[TGates] i hope you don't get annoyed by my forum suggestions as i have two new ones.. Tongue


  • The anchors need an offset because the forum has an fixed navbar. 

Does this when using anchor links:
[Image: VFivnSDm.jpg]

Needs to do this:
[Image: bQtbZBem.jpg]


  • When the navbar collapses the Sentora logo stays big.

Does this:
[Image: 0kMmzzgm.jpg]

needs to be:
[Image: AIiyT4Wm.jpg]



I have copied a page of the forum and have a fix for both, but of course there can be things changed when i copied them.
So i am not 100% sure it will work without tweaking..

Add also to bottom off http://forums.sentora.org/cache/themes/t...custom.css

Code:
/* fixes offset off anchors for screens with full navbar */ :target:before {  content:"";  display:block;  height:78px;  margin:-78px 0 0; } @media (max-width: 767px) { /* fixes offset off anchors for screens collapsed navbar */ :target:before {  content:"";  display:block;  height:50px;  margin:-50px 0 0; } /* fixes logo size with collapsed navbar */ .navbar-brand img{ transform: scale(0.7, 0.7); -ms-transform: scale(0.7, 0.7); -webkit-transform: scale(0.7, 0.7);  margin-top: -22px; } }
added it, image resizes but anchor doesn't change Wink
(04-13-2015, 03:08 AM)TGates Wrote: [ -> ]added it, image resizes but anchor doesn't change Wink

here it works after reloading the CSS file in chrome and IE.
Try CTRL+F5.. Tongue
I use FF, But it does seem to be a bit better. I also notice I have to fix the menu for smaller screens..
Now i see that in IE (11) when you open a new tab with a anchor it does not work but if you use the anchor link (that #2 thingy) on the page itself it works.  Undecided
In chrome it works normally.... IE SUCKS! Angry
Tem uma falha na minha hospedagem ..., tento adicionar o dominio : importarrelogios.blog.br e me aparece esta mensagem:
You cannot add a Sub-Domain here. Please use the Subdomain manager to add Sub-Domains.

O que fazer?
Confused please start a new topic when asking questions. And your topic has nothing to do with this post.