Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Alex Kerner
custom.css does not inherit
4. April 2013 06:43
Antwort

Alex Kerner

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 25. März 2013

Neue 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?
Anonym
RE: custom.css does not inherit
4. April 2013 07:30
Antwort

Anonym

modify main.css file in your _diffs/css folder to include another css file.

then add your overwriting css in that file
Alex Kerner
RE: custom.css does not inherit
5. April 2013 02:11
Antwort

Alex Kerner

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 25. März 2013

Neue 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.
Anonym
RE: custom.css does not inherit
5. April 2013 08:52
Antwort

Anonym

I would recommend inheriting from _styled or ../sample-styled-minimal-theme from the liferay-plugins-sdk
Then you will have to copy over the custom.css file from sample-styled-minimal-theme then make your changes.