1
1
Fork 0
This repository has been archived on 2022-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
natenom-websites/scss/import/nom_globaltopbar.scss

153 lines
3 KiB
SCSS
Raw Normal View History

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;
position: absolute;
2020-10-11 18:33:06 +02:00
text-align: left;
2020-10-11 22:18:44 +02:00
top: -$ngtb_height;
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-11 15:18:25 +02:00
ul {
display: flex;
flex: 1;
margin: 0;
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-11 22:02:13 +02:00
padding: 4px 13px;
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-11 22:02:13 +02:00
&.nom_globaltopbar-inner.right {
2020-10-11 15:18:25 +02:00
justify-content: flex-end;
}
}
}
}
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-11 22:18:44 +02:00
top: $ngtb_height; // WordPress nach unten verschieben, damit globaltopbar sichtbar wird
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
}