dokuwiki-template-sprintdoc.../css/area_nav-metabox.less

400 lines
9.7 KiB
Text
Executable file

/**
* This file provides the design styles for the metatabbox
*/
#spr__meta-box {
.display-flex();
.flex-direction();
.justify-content(flex-end);
clear: none;
display: block;
position: relative;
float: right;
box-sizing: border-box;
max-width: 40%;
padding-bottom: 0.5rem;
height: 4rem !important;
color: var(--color-foreground);
// >= 1024
@media @screen_min-md {
height: @page-header_height;
border: 0 none;
}
// < 1024
@media @screen_max-md {
position: relative;
top: .2rem;
right: auto;
float: none;
max-width: 100%;
min-height: @page-header_height;
height: auto;
border: 0 none;
}
&.sticky {
position: fixed;
top: 0;
ul.meta-tabs > li > a {
border-top-color: var(--color-background);
border-bottom-color: var(--color-shade-4);
border-radius: 0 0 @ini_default_border_radius @ini_default_border_radius;
}
.meta-content .tab-pane.active {
max-height: 80vh;
overflow: auto;
}
}
+ .msg-area + a {
clear: right;
margin-top: 20px;
}
.tab-container {
display: table;
@media @screen_max-md {
display: block;
width: 100%;
}
}
.box-content {
position: relative;
height: 0;
overflow-y: visible;
}
/* + + + + + tab controls + + + + + */
ul.meta-tabs {
list-style: none;
line-height: 160%;
margin: 0;
padding: 0;
@media @screen_min-md {
white-space: nowrap;
text-align: right;
}
&::before,
&::after {
content: '';
clear: both;
display: table;
box-sizing: border-box;
}
> li:first-child {
> a {
margin-left: 0;
}
}
> li {
position: relative;
display: inline-block;
vertical-align: bottom;
margin: 0;
@media @screen_min-md {
margin-left: .3rem;
}
@media @screen_max-md {
margin-right: .4rem;
margin-bottom: .2rem;
}
> a {
cursor: pointer;
position: relative;
display: block;
font-size: @font-size-small;
transition: var(--transition-glow);
background-color: var(--color-shade-1);
border: solid 0.1em transparent;
border-radius: 0.5rem;
color: var(--color-foreground);
padding: .25em;
margin-left: 0;
@media @screen_max-md {
top: 0;
margin-top: .2rem;
}
* {
cursor: pointer;
color: inherit;
font-size: inherit;
}
.prefix {
position: relative;
color: inherit;
font-size: @font-size-small;
}
&:hover,
&:focus,
&:active {
text-decoration: none;
background-color: transparent;
border-color: var(--color-glow-secondary);
color: var(--color-glow-secondary);
filter: var(--filter-glow-secondary);
}
}
&.active {
> a {
cursor: default;
}
}
}
}
/* + + + + + toggle content + + + + + */
.meta-content {
margin-top: -1px;
@media @screen_max-md {
clear: both;
margin-top: 2px;
}
.tab-pane {
position: absolute;
top: 0;
right: 0;
display: none;
width: 100%;
background-color: var(--color-shade-1);
border: solid .1em transparent;
border-radius: 0.5rem;
@media @screen_min-xs {
min-width: 20em;
}
@media @screen_min-md {
margin-top: 0.5rem;
}
&.active {
display: block;
}
a {
color: var(--color-foreground);
}
> div {
font-size: @font-size-small;
padding: .8rem .5rem .5rem;
* {
font-size: inherit;
}
p {
padding-left: 1em;
}
ul {
list-style: none;
padding-left: 0;
}
li {
list-style-image: none; // overwrite universally styles
margin-left: 0;
padding-left: 1em;
}
}
&#spr__tab-tags {
> div {
ul {
li {
padding-left: 0;
}
}
}
}
#dw__toc {
width: auto;
float: none;
margin: 0;
padding: .6rem .5rem .5rem .8rem;
background-color: transparent;
color: var(--color-foreground);
border: solid .1em var(--color-shade-4);
border-radius: 0.5rem;
h3 {
display: none;
}
> div {
padding: 0;
}
> div ul.toc {
font-size: @font-size-small;
padding-left: .5em;
a {
font-size: @font-size-small;
display: inline-block;
padding-left: 10px;
position: relative;
}
div.li {
position: relative;
padding: .15em 0;
&::before {
content: '';
position: absolute;
top: .6em;
left: 0;
display: inline-block;
width: 4px;
height: 4px;
overflow: hidden;
background-color: var(--color-shade-4);
}
}
}
> div > ul.toc {
padding: 0;
}
}
}
}
/* + + + + + tab issues + + + + + */
#spr__tab-issues {
ul.mmissuelist {
padding-left: 0;
margin-top: 1rem;
li {
&.noissue {
font-size: @font-size-small;
list-style-type: none;
margin-left: 0;
.li {
font-size: @font-size-small;
margin-left: .5rem;
}
}
a {
display: inline-block;
}
}
img {
vertical-align: bottom;
margin-right: .3rem;
}
.mm__status {
padding-left: .3rem;
padding-right: .3rem;
}
form {
vertical-align: text-top;
}
}
}
/* + + + + + tab issues + + + + + */
/* see plugins/magic-matcher.less */
#spr__tab-issues {
ul.mmissuelist {
padding-left: 0;
margin-top: .5rem;
margin-bottom: .6rem;
li {
list-style-type: none;
margin-top: .3rem;
margin-left: .5rem;
&.noissue {
list-style-type: none;
margin-left: 0;
}
}
a {
display: inline-block;
font-size: @font-size-small;
* {
font-size: inherit;
}
}
img {
vertical-align: bottom;
margin-right: .3rem;
}
.mm__status {
display: inline-block;
text-decoration: none;
padding-left: .3rem;
padding-right: .3rem;
}
form {
vertical-align: text-top;
button {
background: @ini_button_background;
border-color: @ini_button_background;
color: @ini_button_color;
font-size: @font-size-small;
padding: .2em .3em;
&[name="removeIssue"] {
min-width: 20px;
font-size: .94rem;
font-weight: bold;
line-height: 95%;
text-align: center;
padding: 0 .1rem .1rem;
margin-left: .5rem;
}
&:hover,
&:focus,
&:active {
background: @ini_button_color;
color: @ini_button_background;
}
}
}
}
}
}