dokuwiki-template-fafo/css/area_content.less

138 lines
2.7 KiB
Text
Executable file

/**
* This file provides the design styles for the page content.
*/
.content .row {
> .col-xs-12 {
box-shadow: @box-shadow;
#dokuwiki__content {
position: relative;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
height: @page-header_height;
box-sizing: border-box;
width: 100%;
background-color: @ini_background_page_header;
border-bottom: 1px solid @ini_border_light;
}
.page-content {
padding-top: @page-header_height;
.msg-area + * {
clear: both;
padding-top: 1em; // as h1
}
}
}
}
}
.main-content > .level2,
.main-content > .level1,
.main-content > .level3,
.main-content > .level4,
.main-content > .level5,
.main-content > .level6 {
> p,
> ul > li .li {
a {
font-size: inherit;
}
}
}
.level1,
.level2,
.level3,
.level4,
.level5,
.level6 {
line-height: @line-height-default;
div, p, th, td, textarea,
h1, h2, h3, h4, h5, h6,
dl, dt, dd, ol, ul, li {
line-height: @line-height-default;
}
}
/* Code copy functionality styles */
.code-wrapper {
position: relative;
display: inline-block;
width: 100%;
&.has-copy-btn {
.code,
pre {
padding-right: 3rem; // Make room for copy button
}
}
}
.code-copy-btn {
position: absolute;
top: 1.5rem;
right: 0.5rem;
padding: 0.25rem 0.5rem;
background-color: @ini_background;
border: 1px solid @ini_border;
border-radius: @fix_border-radius;
cursor: pointer;
opacity: 0.7;
transition: opacity @transition, background-color @transition;
color: @ini_text;
line-height: 1;
&:hover {
opacity: 1;
background-color: @ini_background_alt;
}
&:active {
transform: translateY(1px);
}
svg {
display: block;
width: 16px;
height: 16px;
}
&.copy-success {
background-color: #d4edda;
border-color: #c3e6cb;
color: #155724;
}
&.copy-error {
background-color: #f8d7da;
border-color: #f5c6cb;
color: #721c24;
}
}
/* Ensure code blocks have proper positioning context */
.code,
pre.code,
pre > code {
position: relative;
}
/* Mobile adjustments */
@media @screen_max-xs {
.code-copy-btn {
padding: 0.2rem 0.4rem;
svg {
width: 14px;
height: 14px;
}
}
}