Foren

custom.css does not inherit

Alex Kerner, geändert vor 10 Jahren.

custom.css does not inherit

New Member Beiträge: 3 Beitrittsdatum: 25.03.13 Neueste Beiträge
Hi

I want to mage changes to the classic theme.
So I have done what is often written down in the forum. I changed "_styled" to "classic", included the folder css to _diffs and created custom.css.

If i write anything simple to my custom.css like:

span {
color: red;
}

it will delete everything from the classic theme.

If i delete my custom.css i will inherit everything properly from classic theme.


so how does this come? Do I have to copy the whole css code from the classic theme? Why should I inherit then?
Bradley Wood, geändert vor 10 Jahren.

RE: custom.css does not inherit

Alex Kerner, geändert vor 10 Jahren.

RE: custom.css does not inherit

New Member Beiträge: 3 Beitrittsdatum: 25.03.13 Neueste Beiträge
Hi,

thanks so far. It worked partly yesterday. The Navigation Bar ist messed up.
And if I create a complete new theme and inherit from classic, it won't work at all. Even if i redeploy it and I switched Liferay in developer mode too. emoticon

edit: ok I am really confused right now. I changed now my theme to _styled and it looked the same. I changed it to _unstyled and now the navigation bar looks great again. So now it looks like i would inherit from classic. I even deleted chache in browser.
Bradley Wood, geändert vor 10 Jahren.

RE: custom.css does not inherit