mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
There is currently no top-level selector for views that is conference-specific, so all conferences on one OSEM instance end up sharing all the same CSS. In order to allow individual conferences to have unique CSS, a class for the current conference is applied to the <body> tag, and an scss template provided with an example of conference-specific CSS.
13 lines
451 B
SCSS
13 lines
451 B
SCSS
/* Apply CSS to views of a specific conference by encapsulating the style in
|
|
* a body tag classed for the conference's short title.
|
|
* See the example here for 'osemdemo'.
|
|
* NOTE: when overriding existing CSS, it may be necessary to use !important to
|
|
* bypass CSS specificity rules.
|
|
*/
|
|
|
|
body.conference-osemdemo {
|
|
// style here only applies when working with the 'osemdemo' conference.
|
|
#header {
|
|
background-color: #b58e73 !important;
|
|
}
|
|
}
|