Essential theme: custom highlight menu

Essential theme: custom highlight menu

de Animal the muppet -
Número de respuestas: 43
HI all (and Mary! Sonrisa)


We'd like a a colour change on hover over in the Custom menu items / custommenuitems menu at the top of the page. Is the only way to do this turn on the theme designer option? We didn't want to slow our site down by turning this option on. I thought there might be some code we could throw in the settings page. See the  image attached and how the highlight is grey


Thanks all!

Adjunto MDL_22398.screenshot.png
Promedio de valoraciones: -
En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Mary Evans -
Imagen de Core developers Imagen de Documentation writers Imagen de Peer reviewers Imagen de Plugin developers Imagen de Testers

Hi,

What version of Moodle are you using Louis? The theme you have looks like Standard theme. It certainly is NOT the Essential theme.

I am guessing you are using Moodle 2.5 and the Standard theme. You may well have a copy of Essential theme on your Moodle server, but you certainly have not selected it as your default theme.

Ummm...how do we sort this one out?

Is your Moodle site public? Can you give us a link to it?

This way I might be able to help fix the menu.

Cheers

Mary

En respuesta a Mary Evans

Re: Essential theme: custom highlight menu

de Animal the muppet -

Hi,

Thanks for the replies! I am using the essential theme but the image was just illustrate my point (I should of just taken a screenshot) I see you all have keen eyes though spotting the theme! Sonrisa

We're running moodle 2.8 with the Essential theme. I'm not able to post a link but I thought there might be something I'm missing in customising the menu hover over aprobar 

En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Mary Evans -
Imagen de Core developers Imagen de Documentation writers Imagen de Peer reviewers Imagen de Plugin developers Imagen de Testers

OK...that's easy...here is the CSS that adds it in Bootstrapbase.

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-submenu:hover > a,
.dropdown-submenu:focus > a {
    background-color: #00699e;
    background-image: linear-gradient(to bottom, #0070a8, #005f8f);
    background-repeat: repeat-x;
    color: #fff;
    text-decoration: none;
 }

If you want a solid colour use this:

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-submenu:hover > a,
.dropdown-submenu:focus > a {
    background-color: #00699e;
    background-image: none;
    color: #fff;
 }

If you want a gradient background use this:

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-submenu:hover > a,
.dropdown-submenu:focus > a {
    background-color: #00699e;
    background-image: linear-gradient(to bottom, #0070a8, #005f8f);
    background-repeat: repeat-x;
    color: #fff;
 }

just adjust the HEX colour codes to suit your site colours.

Cheers

Mary

En respuesta a Mary Evans

Re: Essential theme: custom highlight menu

de Animal the muppet -

Thanks again Mary!

The code looks great. In feel silly, but where does it go? I tried in the custom CSS box in the essential theme settings. 

Do I have to add this in another location in style sheet somewhere?

En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Mary Evans -
Imagen de Core developers Imagen de Documentation writers Imagen de Peer reviewers Imagen de Plugin developers Imagen de Testers

Sorry, I assumed you would have known where to add the CSS. Yes in the Essential CSS section of the General settings page.

If it is not working the either you have copied it wrongly, or it is not picking it up because of some other problem.

Just out of curiosity can you post the exact CSS you are using? Just so I can check it is right. It is so easy to miss off a dot 

Cheers

Mary

En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Just H -

Try purging the cache.

En respuesta a Just H

Re: Essential theme: custom highlight menu

de Animal the muppet -

I have purged the cache (site admin>Development>Purge all caches)

Attached is a screenshot of my code (it was a copy and paste)

Adjunto css.png
En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Animal the muppet -

no joy yet :s

Adjunto nojoy.png
En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Mary Evans -
Imagen de Core developers Imagen de Documentation writers Imagen de Peer reviewers Imagen de Plugin developers Imagen de Testers

You have an error in the CSS you used.

the very top line is not connected to the actual code below it which adds the changes you need.

the line that is the odd one out is actually a CSS rule rathre than a class name so delete it. Unless it is a previous rule in which case you need to close it off with curly bracket...

background-repeat: no-repeat; 
}

You only need this for the hover colours.

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-submenu:hover > a,
.dropdown-submenu:focus > a {
    background-color: #00699e;
    background-image: linear-gradient(to bottom, #0070a8, #005f8f);
    background-repeat: repeat-x;
    color: #fff;
 }

cheers

Mary

En respuesta a Mary Evans

Re: Essential theme: custom highlight menu

de Animal the muppet -

Thanks for spotting that Guiño I did try it with just the hover code alone but this is still a thorn in my side and not working triste

Any advice where to go now?

Thanks very much Sí

Adjunto why.jpg
En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Mary Evans -
Imagen de Core developers Imagen de Documentation writers Imagen de Peer reviewers Imagen de Plugin developers Imagen de Testers

Is your Moodle site public?

If it is can you send me a message and give me the web address so I can take a look?

Thanks

Mary

En respuesta a Mary Evans

Re: Essential theme: custom highlight menu

de Animal the muppet -

Thanks for the PM and code checking eyes Mary! 

Check out this video at 1.10 

The colour hover overs are there in the essential theme which is odd mezclado


En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Mary Evans -
Imagen de Core developers Imagen de Documentation writers Imagen de Peer reviewers Imagen de Plugin developers Imagen de Testers

That was the original Essential which I like very much. The one that has evolved looks more or less the same but it is complex as it uses other methods of compiling css and the config.php is way too codified for me...I like the simple life. LOL

Just so that I am not going down the wrong rabbit hole...have you added any more CSS other than the section you  posted a screen-shot of?

The CSS I found while looking at your Moodle site points to possibly a setting that has not been activated and so is using default colour, that is why the background is white when hovering.

In the Essential settings there should be some settings where you can select hover colours. Have you set any of these yet? If not then this is perhaps why you don't see any changes in the menu.

Cheers

Mary

En respuesta a Mary Evans

Re: Essential theme: custom highlight menu

de Animal the muppet -

Ah, simple life. Cassette in the walk-man and the occasional pager message Sonrisa

The only  hover reference I found is in essential>colour (screenshot attached). The red highlighting works on text but not the header menu

Adjunto 1.jpg
En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Gareth J Barnard -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers

V2.8.1.5 will probably fix this.  Essential has come a long way since the start and now has less CSS to deal with.

En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Animal the muppet -

Thanks for the answer and special thanks to Mary! Sonrisa

Right, off to find more technical battles! fresco

En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Animal the muppet -

nooo! muerto

V2.8.1.5 didn't fix it afraid. Any ideas where to go on this one Gareth? 

En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Gareth J Barnard -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers
En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Gareth J Barnard -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers

Works for me with alternate colours:


Adjunto 2015-06-18 12_53_10-Moodle 28.jpg
En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Gareth J Barnard -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers

And changing the defaults....

Adjunto 2015-06-18 12_56_04-Moo28_ Administration_ Appearance_ Themes_ Essential_ Colour.jpg
En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Mary Evans -
Imagen de Core developers Imagen de Documentation writers Imagen de Peer reviewers Imagen de Plugin developers Imagen de Testers

If you choose to not use any of the alternative colours, I found there are some colours that seem not to have been altered that stay the default colours. Was that intentional?  Looks odd when your new default is largly 'red' and then have to restyle the css to change the default colour turquoise to red using #page-header h1#title { color: #c10f00;}

Some other things don't seem to colour well either like the breadcrumb button which is white on white and has a strange hover color that only colours one half of the background.

I am using version: 2015060200

Has that been super-seeded?

Mary

En respuesta a Mary Evans

Re: Essential theme: custom highlight menu

de Gareth J Barnard -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers

Not superseded, just updated, latest from: https://moodle.org/plugins/pluginversion.php?id=8802.  White on white breadcrumb button was fixed.

But admittedly, I'm still going though cleaning and fixing the CSS.  Already spent too much time on it this month.

En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Gareth J Barnard -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers

The header text colour has its own setting 'headertextcolor' on the 'Header' settings page.  Does this theme have too many options?

En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Animal the muppet -

Just tested alternative colours and hover over works. Can't get hover colours otherwise so I guess this is a bug?


Thanks for spending your time buried in code Gareth. I love the theme! Sí

En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Gareth J Barnard -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers

Screen shot evidence please.

En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Animal the muppet -

Crazy colours

Adjunto proof.jpg
En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Mary Evans -
Imagen de Core developers Imagen de Documentation writers Imagen de Peer reviewers Imagen de Plugin developers Imagen de Testers

Hi Lou,

There are some little things related to the Alternative colours which could do with tweaking. However I got the hover working last night and had the three alternative colours switched off, so it is NOT a bug. What it might be is the colours that you have put in the boxes might be causing the problem.  Can I ask what you have put for the theme colour in the first box of Essential Colour settings?

Cheers

Mary

En respuesta a Mary Evans

Re: Essential theme: custom highlight menu

de Animal the muppet -

I think it could my own error with the colours. I did play and changed all the colours but I couldn't get it to work before. 

Here is a screenshot of my colours page.

Adjunto colours1.jpg
En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Animal the muppet -
we have our theme_essential | themecolor (first option in the colour setting) set to white and the hoverover doesn't work

If we change it to another colour, the hover works but we don't want to change the colour from white as it impacts the rest of the theme.

En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Gareth J Barnard -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers
En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Gareth J Barnard -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers

Now broken the message menu triste - ggrrr, this **** theme!

En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Gareth J Barnard -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers

Possibly finally sorted in https://github.com/gjb2048/moodle-theme_essential/commit/ab70a8d3969c01186059d3ad4bbfd72edda277a5 - will be in next release being V2.8.1.6.

Care to donate to support continued development please?

En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Animal the muppet -

Whoop! Great, thanks! Looking forward to test it out fresco

I'd be happy to donate out of my own pocket! Unless there is any other pot, looks like this is the one? https://moodle.org/donations/ Sonrisa

En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Gareth J Barnard -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers

Thanks Lou, please look in the theme Readme file for donation details.  That is the Moodle HQ one.

En respuesta a Gareth J Barnard

Re: Essential theme: custom highlight menu

de Animal the muppet -

Just an update - found the bug and fix!


If you set  theme_essential | themecolor to white, you don't get the hover over

Setting the colour to anything else works! Sonrisa

En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Animal the muppet -

Seems like white is an issue. See pic

Adjunto Untitled.jpg
En respuesta a Animal the muppet

Re: Essential theme: custom highlight menu

de Mary Evans -
Imagen de Core developers Imagen de Documentation writers Imagen de Peer reviewers Imagen de Plugin developers Imagen de Testers

Have you tried leaving that colour out altogether? Just leave the space for the setting empty?

En respuesta a Mary Evans

Re: Essential theme: custom highlight menu

de Animal the muppet -

Leaving it blank defaults to the essential blue colour #30add1

Maybe it's a bugaroonie?