dokuwiki-template-sprintdoc.../css/template_admin.less
Michael Große 8221fa277b
Adjust less vars for compatibility
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
2017-04-24 19:52:20 +02:00

129 lines
3.2 KiB
Text

/**
* This file provides the design styles for the admin tools
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
.do-admin {
#admin__version {
font-size: @font-size-default;
}
.main-content ul {
> li {
font-size: @font-size-default;
div.li {
font-size: @font-size-default;
a {
font-size: @font-size-default;
line-height: 125%;
cursor: pointer;
}
}
}
}
div.ui-admin {
ul.admin_tasks,
ul.admin_plugins {
padding: 0;
li {
background-size: auto 1rem;
margin: 0 0 .6em 0;
a {
color: @ini_existing;
font-weight: 400;
* {
color: inherit;
}
span.icon {
width: 1.6em;
min-height: 1.6em;
margin-top: -.3rem;
margin-bottom: .3rem;
svg {
width: 26px;
height: 26px;
border: solid 1px @ini_background;
border-radius: @ini_default_border_radius;
fill: @ini_existing;
transition: @transition background-color, @transition border-color, @transition fill;
path {
fill: @ini_existing;
transition: @transition fill;
}
}
}
&:hover,
&:focus,
&:active {
span.icon {
svg {
background-color: @ini_existing;
border-color: @ini_existing;
fill: @ini_background;
path {
fill: @ini_background;
}
}
}
}
}
}
}
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* 1024px */
@media @screen_max-md {
.do-admin {
div.ui-admin {
ul.admin_tasks {
width: 50%;
padding-top: 1rem;
li {
white-space: normal;
a {
.display-flex(); // for better position with line breaks (white-space)
span.icon {
margin-top: -.3rem;
margin-bottom: .3rem;
}
}
}
}
}
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* 768px */
@media @screen_max-xs {
.do-admin {
div.ui-admin {
ul.admin_tasks {
width: auto;
padding-top: 1rem;
}
}
}
}