mirror of
https://github.com/boostorg/website.git
synced 2026-01-19 04:42:17 +00:00
Move asciidoctor header css into main css file
This commit is contained in:
@@ -23,10 +23,6 @@ class BoostFilterBasic extends BoostFilter
|
||||
echo '<link rel="icon" href="/favicon.ico" type="image/ico"'.$tag_end;
|
||||
echo '<link rel="stylesheet" type="text/css" href="/style-v2/section-basic.css"'.$tag_end;
|
||||
if ($is_asciidoctor) {
|
||||
echo '<style>';
|
||||
echo '#boost-common-heading-doc { position: static; }';
|
||||
echo '#boost-common-heading-doc-spacer { display: none; }';
|
||||
echo '</style>';
|
||||
echo str_replace('class="', 'class="boost-asciidoctor ', $match[0][0]);
|
||||
} else {
|
||||
echo $match[0][0];
|
||||
|
||||
@@ -14,9 +14,16 @@
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
body.boost-asciidoctor {
|
||||
position: static;
|
||||
}
|
||||
|
||||
#boost-common-heading-doc-spacer {
|
||||
height: 100px;
|
||||
}
|
||||
body.boost-asciidoctor #boost-common-heading-doc-spacer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#boost-common-heading-doc,
|
||||
#heading {
|
||||
@@ -134,4 +141,4 @@ a.boost-common-header-inner:hover {
|
||||
overflow: hidden;
|
||||
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user