Docs X theme

This commit is contained in:
Diego Najar 2018-02-18 20:30:46 +01:00
parent 4698207431
commit 27455f29e0
4 changed files with 51 additions and 8 deletions

View File

@ -10,6 +10,15 @@ a {
color: #005ec3;
}
/* Navbar */
.navbar-nav-svg {
display: inline-block;
width: 20px;
height: 20px;
vertical-align: text-top;
color: rgba(255,255,255,.5);
}
/* Toc */
#toc {
float: right;
@ -17,6 +26,7 @@ a {
margin: 0 0 0.5em 0.5em;
padding: 1em;
background-color: #f5f5f5;
display: none;
}
#toc ul {
@ -106,7 +116,37 @@ code {
font-size: 14px !important;
}
table {
empty-cells: show;
border: 1px solid #cbcbcb;
width: 100%;
font-size: 0.9em;
}
thead {
background-color: #e0e0e0;
color: #000;
text-align: left;
vertical-align: bottom;
}
tr {
display: table-row;
vertical-align: inherit;
border-color: inherit;
}
th, td {
padding: 0.5em 1em;
}
/* Footer */
footer {
border-top: 1px solid #ccc;
padding: 10px;
margin: 10px 0;
font-size: 0.8em;
}
/* Sidebar */
.sidebar {

View File

@ -36,9 +36,7 @@
</div>
<footer>
<p class="pull-left">
© Prometheus Authors 2018
</p>
<p class="m-0 text-right text-black text-uppercase"><?php echo $site->footer(); ?><span class="ml-3 text-warning">Powered by <a target="_blank" class="text-warning" href="https://www.bludit.com">Bludit</a></span></p>
</footer>
</div>
@ -57,12 +55,17 @@
<!-- TOC generator -->
<script>
$(document).ready(function() {
var enableToc = false;
if ($('#page-content > h2').length > 1) {
$('#page-content > h2').each(function() {
$('#toc-content').append('<li><a href="' + $(this).attr('id') + '">' + $(this).text() + '</a></li>');
if ($(this).attr('id')) {
enableToc = true;
$('#toc-content').append('<li><a href="#' + $(this).attr('id') + '">' + $(this).text() + '</a></li>');
}
});
} else {
$('#toc').hide();
}
if (enableToc) {
$('#toc').show();
}
});
</script>

View File

@ -21,7 +21,7 @@
<?php echo Theme::css('css/highlight.github.min.css'); ?>
<!-- Google Fonts -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<!-- Load Bludit Plugins: Site head -->
<?php Theme::plugins('siteHead'); ?>

View File

@ -1,4 +1,4 @@
<nav class="navbar navbar-static-top bg-dark">
<nav class="navbar navbar-expand-md navbar-dark bg-dark text-uppercase">
<div class="container">
<a class="navbar-brand" href="<?php echo $site->url() ?>">
<span class="text-white"><?php echo $site->title() ?></span>