<?php if($this->modules('topbar')) : ?>
<div id="fixedTopbar">
<jdoc:include type="modules" name="topbar" />
</div>
<?php endif; ?>
#fixedTopbar {
background-color: #444444;
height: 40px;
line-height: 40px;
overflow: hidden;
position: fixed;
width: 100%;
z-index: 10000;
}
#fixedTopbar li {
display: inline;
margin: 0 10px;
line-height: 40px;
}
#fixedTopbar li a {
color: #ffffff;
}
#gkPage {
padding-top: 40px;
}
#fixedTopbar {
overflow: visible;
}
Annonaria wrote:Teitbite Hello, I'm still trying to finish my topbar and saw that the one you use on the site is that of the template Gamenews, but I also want to enter the same positions.
If I'm not mistaken you've implemented a single location called topbar, and if I try to publish more than one module in that position I do not put them next to each other but one below the other ... So if you do not ask too much I'd use the same positions and put the same modules (except where there is a menu I would put the buttons of social networks - as the third picture).
If you need you still have access akl open my site.
.(moduel_layer_name) { float: right; }
<?php if($this->modules('topbar')) : ?>
<div id="fixedTopbar">
<div class="gkWrap">
<jdoc:include type="modules" name="topbar" />
</div>
</div>
<?php endif; ?>
.(moduel_layer_name) { float: right; }
teitbite wrote:Small modification to tobbar code to fill Your additional request to keep it's content in a templates width:
- Code: Select all
<?php if($this->modules('topbar')) : ?>
<div id="fixedTopbar">
<div class="gkWrap">
<jdoc:include type="modules" name="topbar" />
</div>
</div>
<?php endif; ?>
Annonaria wrote:
This codice se volessi utilizzarlo per il modulo di login di JFusion diventa:
Annonaria wrote:
.(Jfusion login module) { float: right; }
teitbite wrote:
Next I've checked if override.css file was allowed to use in template parameters (it was, but if someone wants to copy this it's an important to have it ON) and added this code to put topbar in place and style to look fine.
- Code: Select all
#fixedTopbar {
background-color: #444444;
height: 40px;
line-height: 40px;
overflow: hidden;
position: fixed;
width: 100%;
z-index: 10000;
}
#fixedTopbar li {
display: inline;
margin: 0 10px;
line-height: 40px;
}
#fixedTopbar li a {
color: #ffffff;
}
#gkPage {
padding-top: 40px;
}
Of course this is just a beginning. For any new module a new style will be reguired.
background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000));
Annonaria wrote:.(moduel_layer_name) { float: right; }
This codice se volessi utilizzarlo per il modulo di login di JFusion diventa:
.(Jfusion login module) { float: right; }
I copied the name in the list of installed modules. It's ok?
Annonaria wrote:teitbite wrote:Small modification to tobbar code to fill Your additional request to keep it's content in a templates width:
- Code: Select all
<?php if($this->modules('topbar')) : ?>
<div id="fixedTopbar">
<div class="gkWrap">
<jdoc:include type="modules" name="topbar" />
</div>
</div>
<?php endif; ?>
Of course, this code is copied to the file override.css
Annonaria wrote:teitbite wrote:
Next I've checked if override.css file was allowed to use in template parameters (it was, but if someone wants to copy this it's an important to have it ON) and added this code to put topbar in place and style to look fine.
- Code: Select all
#fixedTopbar {
background-color: #444444;
height: 40px;
line-height: 40px;
overflow: hidden;
position: fixed;
width: 100%;
z-index: 10000;
}
#fixedTopbar li {
display: inline;
margin: 0 10px;
line-height: 40px;
}
#fixedTopbar li a {
color: #ffffff;
}
#gkPage {
padding-top: 40px;
}
Of course this is just a beginning. For any new module a new style will be reguired.
Ok I just changed the background color of the topbar, and I would add a line at the bottom, surely you will know how to do, can you help?
#fixedTopbar {
border-bottom: 1px solid #dddddd;
background-image: linear-gradient(bottom, #36A103 31%, #51C21D 66%, #72E938 83%);
background-image: -o-linear-gradient(bottom, #36A103 31%, #51C21D 66%, #72E938 83%);
background-image: -moz-linear-gradient(bottom, #36A103 31%, #51C21D 66%, #72E938 83%);
background-image: -webkit-linear-gradient(bottom, #36A103 31%, #51C21D 66%, #72E938 83%);
background-image: -ms-linear-gradient(bottom, #36A103 31%, #51C21D 66%, #72E938 83%);
}