2020-10-11 15:18:25 +02:00
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
//
|
|
|
|
// settings
|
|
|
|
//
|
2020-10-11 15:18:25 +02:00
|
|
|
|
2020-10-11 22:18:44 +02:00
|
|
|
$ngtb_height: 32px; // ngtb == nom_globaltopbar
|
2020-10-11 15:18:25 +02:00
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
//
|
2020-10-11 22:18:44 +02:00
|
|
|
// nom_globaltopbar
|
2020-10-11 18:33:06 +02:00
|
|
|
//
|
2020-10-11 15:18:25 +02:00
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
@media screen {
|
2020-10-11 22:02:13 +02:00
|
|
|
.nom_globaltopbar {
|
2020-10-11 18:33:06 +02:00
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
background: $blog_body-bg;
|
|
|
|
border-bottom: 3px $nom-blue solid;
|
2020-10-11 15:18:25 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
display: flex;
|
|
|
|
font-family: Arial, Helvetica, sans-serif;
|
2020-10-11 18:33:06 +02:00
|
|
|
font-size: 14px;
|
2020-10-11 15:18:25 +02:00
|
|
|
left: 0;
|
2020-10-11 22:02:13 +02:00
|
|
|
letter-spacing: 0; // WordPress twentytwenty theme sets letter-spacing to -0.27px and DokuWiki does not.
|
2020-10-11 15:18:25 +02:00
|
|
|
line-height: 1.5;
|
|
|
|
margin: 0;
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
2020-10-11 18:33:06 +02:00
|
|
|
text-align: left;
|
2020-10-11 15:18:25 +02:00
|
|
|
vertical-align: middle;
|
|
|
|
white-space: nowrap;
|
2020-10-11 18:33:06 +02:00
|
|
|
width: 100%;
|
|
|
|
z-index: 9999;
|
2020-10-19 21:29:24 +02:00
|
|
|
@if $type == blog {
|
|
|
|
position: absolute;
|
|
|
|
top: -$ngtb_height;
|
|
|
|
} @else if $type == wiki {
|
2020-10-19 09:34:36 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
} @else {
|
|
|
|
order: -1;
|
2020-10-19 20:07:28 +02:00
|
|
|
position: relative;
|
2020-10-19 09:34:36 +02:00
|
|
|
}
|
2020-10-11 15:18:25 +02:00
|
|
|
ul {
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
margin: 0;
|
2020-10-19 10:08:12 +02:00
|
|
|
padding: 0;
|
2020-10-11 15:18:25 +02:00
|
|
|
li {
|
|
|
|
display: flex;
|
|
|
|
margin: 0;
|
|
|
|
a {
|
2020-10-11 18:33:06 +02:00
|
|
|
color: $grey-light;
|
2020-10-11 15:18:25 +02:00
|
|
|
font-size: 14px;
|
|
|
|
font-weight: normal;
|
2020-10-19 10:51:31 +02:00
|
|
|
padding: 4px 6px;
|
2020-10-11 15:18:25 +02:00
|
|
|
text-decoration: none;
|
2020-10-11 22:18:44 +02:00
|
|
|
transition: background .2s,color .2s;
|
2020-10-11 15:18:25 +02:00
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
2020-10-11 18:33:06 +02:00
|
|
|
background: $nom-blue;
|
2020-10-11 22:18:44 +02:00
|
|
|
color: rgb(255, 255, 255);
|
2020-10-11 15:18:25 +02:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2020-10-19 10:51:31 +02:00
|
|
|
span.separator {
|
2020-10-23 22:08:33 +02:00
|
|
|
color: $grey;
|
|
|
|
padding: 4px 6px;
|
|
|
|
&::before {
|
|
|
|
content: '·';
|
|
|
|
}
|
2020-10-19 10:51:31 +02:00
|
|
|
}
|
2020-10-11 15:18:25 +02:00
|
|
|
}
|
2020-10-11 22:02:13 +02:00
|
|
|
&.nom_globaltopbar-inner.right {
|
2020-10-11 15:18:25 +02:00
|
|
|
justify-content: flex-end;
|
2020-10-19 10:51:31 +02:00
|
|
|
margin-left: 20px;
|
2020-10-11 15:18:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
@media print {
|
2020-10-11 15:18:25 +02:00
|
|
|
body {
|
2020-10-11 18:33:06 +02:00
|
|
|
#dokuwiki__site {
|
|
|
|
.site {
|
2020-10-11 22:02:13 +02:00
|
|
|
.nom_globaltopbar {
|
2020-10-11 18:33:06 +02:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-10-11 15:18:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
2020-10-11 18:33:06 +02:00
|
|
|
// globaltopbar blog
|
2020-10-11 15:18:25 +02:00
|
|
|
//
|
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
@if $type == blog {
|
2020-10-11 15:18:25 +02:00
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
body {
|
2020-10-19 20:07:28 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-10-19 21:29:24 +02:00
|
|
|
top: 32px;
|
2020-10-11 18:33:06 +02:00
|
|
|
header {
|
|
|
|
.search-modal {
|
2020-10-11 22:18:44 +02:00
|
|
|
top: $ngtb_height; // Suchleiste nach unten versetzen, damit sie unter der Topbar angezeigt werden
|
2020-10-11 18:33:06 +02:00
|
|
|
}
|
2020-10-11 15:18:25 +02:00
|
|
|
}
|
2020-10-11 18:33:06 +02:00
|
|
|
.menu-modal {
|
2020-10-11 22:18:44 +02:00
|
|
|
top: $ngtb_height; // Menu oben nach unten versetzen, damit sie unter der Topbar angezeigt werden
|
2020-10-11 15:18:25 +02:00
|
|
|
}
|
2020-10-11 18:33:06 +02:00
|
|
|
}
|
2020-10-11 15:18:25 +02:00
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
}
|
2020-10-11 15:18:25 +02:00
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
//
|
|
|
|
// globaltopbar wiki
|
|
|
|
//
|
2020-10-11 15:18:25 +02:00
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
@if $type == wiki {
|
2020-10-11 15:18:25 +02:00
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
body {
|
2020-10-11 22:18:44 +02:00
|
|
|
margin-top: $ngtb_height; // DokuWiki nach unten verschieben, damit globaltopbar sichtbar wird
|
2020-10-11 18:33:06 +02:00
|
|
|
overflow-x: hidden;
|
|
|
|
#dokuwiki__site {
|
|
|
|
.site {
|
|
|
|
#dokuwiki__header {
|
|
|
|
.group {
|
|
|
|
.tools {
|
|
|
|
#dokuwiki__usertools {
|
2020-10-11 22:18:44 +02:00
|
|
|
top: 15px + $ngtb_height; // 'em' and 'px' are incompatible units
|
2020-10-11 18:33:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-10-11 22:02:13 +02:00
|
|
|
.nom_globaltopbar {
|
2020-10-11 18:33:06 +02:00
|
|
|
top: 0;
|
|
|
|
ul {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-10-11 15:18:25 +02:00
|
|
|
}
|
2020-10-11 18:33:06 +02:00
|
|
|
}
|
2020-10-11 15:18:25 +02:00
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
@media only screen and (min-width: 601px) {
|
|
|
|
body {
|
|
|
|
#dokuwiki__site {
|
|
|
|
.site {
|
|
|
|
#dokuwiki__header {
|
|
|
|
padding-top: 3em;
|
|
|
|
.group {
|
|
|
|
.tools {
|
|
|
|
#dokuwiki__usertools {
|
2020-10-11 22:18:44 +02:00
|
|
|
top: 12px + $ngtb_height; // 'em' and 'px' are incompatible units
|
2020-10-11 18:33:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-10-11 15:18:25 +02:00
|
|
|
}
|
2020-10-11 18:33:06 +02:00
|
|
|
}
|
2020-10-11 15:18:25 +02:00
|
|
|
|
2020-10-11 18:33:06 +02:00
|
|
|
@media only screen and (max-width: 600px) {
|
2020-10-11 15:18:25 +02:00
|
|
|
body {
|
2020-10-11 18:33:06 +02:00
|
|
|
padding-top: 0;
|
2020-10-11 15:18:25 +02:00
|
|
|
}
|
2020-10-11 18:33:06 +02:00
|
|
|
}
|
2020-10-11 15:18:25 +02:00
|
|
|
|
|
|
|
}
|