Responsiv meny style problem

Diskutera både frågor och goda idéer/förslag avseende mallar och design för Joomla! 3.x.
Locked
tompasworld
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Wed Jun 14, 2006 10:20 am

Responsiv meny style problem

Post by tompasworld » Sat Jun 10, 2017 9:56 am

Hej,

Jag försöker följa en guide gällande hur man stylar till en responsiv meny, men sista punkten har jag kört fast på.
Guiden finns här: http://bj.zemplate.com/protostar-respon ... ow-screens

Första delen "How to change the look of the Menu Button for narrow screens" har jag klarat av, men inte den andra "How to change the background color for the Menu button".

Det står:
You can change the background color for the Menu Button by adding a style so that it matches the color of your template. Add .navigation a.btn to the list of elements in the <head> section of your index.php

Code: Select all

.navbar-inner, .nav-list > .active > a, .nav-list > .active > a:hover, .dropdown-menu li > a:hover, .dropdown-menu .active > a, .dropdown-menu .active > a:hover, .nav-pills > .active > a, .nav-pills > .active > a:hover, .btn-primary, .navigation a.btn
{
    background: <?php echo $this->params->get('templateColor'); ?>;
}
Kan någon vara snäll och förklara vad som ska in i index.php, och vad som ska in i css-filen?

Tack på förhand,
Tompa
Last edited by toivo on Sun Jun 11, 2017 10:50 am, edited 1 time in total.
Reason: mod note: cross post removed, cross posting not allowed - see the forum rules https://forum.joomla.org/viewtopic.php?f=8&t=65

Locked

Return to “Mallar (templates) och design”