
In the dokuwiki standard template __background__ is the variable defining the background-color of the content. It is one of the guaranteed placeholder that every template must provide. Hence we should use it with the way it is used in the default template, so other plugins can rely on it and look consistently. Also some other base-dokuwiki styles still use it accordingly, for example the footnotes. SPR-954
205 lines
4.7 KiB
Text
Executable file
205 lines
4.7 KiB
Text
Executable file
/**
|
|
* This file provides the design styles for the page header.
|
|
*
|
|
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
|
|
*/
|
|
|
|
|
|
#dokuwiki__header {
|
|
@header-font-opacity: 1;
|
|
|
|
@media @screen_max-xs {
|
|
min-height: 120px;
|
|
}
|
|
|
|
|
|
/* + + + wiki logo + + + */
|
|
@media @screen_min-md {
|
|
.logo {
|
|
padding: 1rem 0 .3rem;
|
|
|
|
img {
|
|
height: 4.6rem;
|
|
width: auto;
|
|
border-style: solid;
|
|
border-color: transparent;
|
|
border-width: 2px 0;
|
|
}
|
|
|
|
a:hover,
|
|
a:focus,
|
|
a:active {
|
|
img {
|
|
border-width: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media @screen_max-md {
|
|
.logo {
|
|
display: table-cell;
|
|
|
|
.mobile-only {
|
|
margin: .8rem 1rem .6rem 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/* + + + + + DESKTOP - wiki title + claim + + + + + */
|
|
.main-title.desktop-only {
|
|
@media @screen_min-md {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
@media @screen_max-md {
|
|
display: block;
|
|
}
|
|
|
|
p.title {
|
|
@media @screen_max-md {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
p.claim {
|
|
@media @screen_max-md {
|
|
display: block;
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
@media @screen_max-xs {
|
|
padding-right: (@toggle-size + @headericons-margin-xxs);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/* + + + + + MOBILE - wiki title wrapper + + + + + */
|
|
.main-title:not([class*="desktop-only"]) {
|
|
@media @screen_max-md {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
@media @screen_max-xs {
|
|
padding-right: (@toggle-size + @headericons-margin-xxs);
|
|
}
|
|
}
|
|
|
|
|
|
/* + + + wiki title + + + */
|
|
p.title {
|
|
background-color: @ini_background_site;
|
|
opacity: @header-font-opacity;
|
|
color: @ini_text_webframe;
|
|
line-height: @line-height-default;
|
|
margin-bottom: .5rem;
|
|
|
|
@media @screen_min-md {
|
|
font-size: @font-size-big;
|
|
}
|
|
|
|
@media @screen_max-md {
|
|
font-size: (@font-size-default + .25);
|
|
padding-top: .5rem;
|
|
padding-left: 1rem;
|
|
}
|
|
}
|
|
|
|
|
|
/* + + + + + DESKTOP - wiki claim, logo, title wrapper + + + + + */
|
|
@media @screen_min-md {
|
|
div.claim {
|
|
display: table-cell;
|
|
height: 100%;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
|
|
/* + + + wiki claim + + + */
|
|
p.claim {
|
|
opacity: @header-font-opacity;
|
|
color: @ini_text_webframe;
|
|
font-size: @font-size-default;
|
|
margin-bottom: 0;
|
|
|
|
@media @screen_max-md {
|
|
padding-top: .5rem;
|
|
}
|
|
}
|
|
|
|
|
|
/* + + + mobile nav togglelink + + + */
|
|
.menu-togglelink {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin: @headericons-margin-xxs -(@very-small-spacing) 0 0;
|
|
|
|
a {
|
|
.fontello();
|
|
.icon-menu();
|
|
|
|
display: block;
|
|
min-height: @toggle-size;
|
|
min-width: @toggle-size;
|
|
box-sizing: border-box;
|
|
background-color: #fff;
|
|
border: 1px solid @ini_border;
|
|
border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius
|
|
color: @ini_nav_menu_color;
|
|
font-size: 1rem;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
line-height: 1;
|
|
transition: @transition color, @transition background-color, @transition border-color;
|
|
|
|
&::before {
|
|
font-size: 1.5rem;
|
|
margin: .1rem 0 0;
|
|
}
|
|
|
|
&:hover,
|
|
&:active,
|
|
&:focus {
|
|
background-color: @ini_nav_menu_hover_bg;
|
|
border-color: @ini_nav_menu_hover_color;
|
|
color: @ini_nav_menu_hover_color;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/* + + + + + with magic matcher + + + + + */
|
|
&.has-magicmatcher {
|
|
.logo {
|
|
@media @screen_min-md {
|
|
padding-top: 3rem;
|
|
}
|
|
}
|
|
|
|
.main-title.desktop-only {
|
|
@media @screen_min-md {
|
|
vertical-align: bottom;
|
|
padding-top: @height-context-bar;
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
p.title {
|
|
@media @screen_min-md {
|
|
margin-right: 16rem;
|
|
}
|
|
}
|
|
|
|
p.claim {
|
|
@media @screen_max-md {
|
|
display: block;
|
|
padding-bottom: 1rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|