docco-next
Version:
Literate programming parser
334 lines (283 loc) • 5.88 kB
CSS
/* Fonts */
/* FOnts used in this template. Link below contains all fonts from standard layouts */
/* https://fonts.google.com/selection?category=Sans+Serif,Display&selection.family=Manjari:400,700|Montserrat:300,400,400i,700,700i,800,800i|Roboto:400,400i,500,500i,700,900 */
@font-face {
font-family: 'Manjari';
src: url('public/fonts/Manjari-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Manjari Bold';
src: url('public/fonts/Manjari-Bold.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Montserrat SemiBold';
src: url('public/fonts/Montserrat-SemiBold.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'SourceCodePro';
src: url('public/fonts/SourceCodePro-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* Base */
/* Sets up some default values for the HTML elements */
body {
font-family: 'Manjari', sans-serif;
/* background: f; */
margin: 0;
color: #343434;
line-height: 1.15em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Montserrat SemiBold', sans-serif;
line-height: 1.2em;
}
h1,
h2 {
text-align: center;
margin-block-start: 1.25em;
margin-block-end: 1.05em;
}
h1 {
text-transform: uppercase;
border-top: 1px solid #343434;
line-height: 2em;
border-radius: 6px;
}
h2 {
position: relative;
color: #555555;
width: fit-content;
margin: 1.15em auto;
}
h2::after {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: -12px;
min-width: 50%;
border-bottom: 1px solid #555555;
background-color: transparent;
z-index: 1;
}
a {
color: #2f6ec1;
text-decoration: none;
border-bottom: 2px solid #b8d0f9;
}
a:hover {
cursor: pointer;
/* border-bottom: 3px solid #999999; */
border-bottom: 3px solid #b8d0f9;
}
a:visited {
color: #663399;
/* border-bottom: 3px solid #d5b8ff; */
border-bottom: 3px solid #d5b8ff;
}
b,
strong {
font-family: 'Manjari Bold';
}
/* Layout */
/* These are the actual layout rules. */
div.container {
position: relative;
width: 100vw;
background-color: #ededed;
padding: 60px 0;
background: #000000; /* fallback for old browsers */
background: -webkit-linear-gradient(
to right,
#434343,
#000000
); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(
to right,
#434343,
#000000
); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
div.main {
position: relative;
background-color: white;
padding: 12px 36px;
border-radius: 12px;
display: flex;
margin: auto;
flex-direction: column;
justify-content: center;
max-width: 800px;
}
div.main p {
line-height: 1.3em;
}
pre,
code {
line-height: 1.5em;
font-size: 0.9em;
padding: 1px 6px;
border-radius: 3px;
}
pre {
padding: 10px;
/* box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
transition: box-shadow 0.3s ease-in-out;
border: 1px solid #efefef;
}
pre:hover {
box-shadow: 0 2px 25px -5px rgba(0, 0, 0, 0.1),
0 10px 10px -5px rgba(0, 0, 0, 0.04);
transition: box-shadow 0.3s ease-in-out;
border: 1px solid #e7e7e7;
}
footer {
position: absolute;
text-align: center;
bottom: 20px;
width: 100%;
color: #ababab;
}
footer a {
color: #bcbcbc;
}
footer a:hover {
color: #b8d0f9;
}
footer a:visited {
color: #d5b8ff;
}
/* Responsive behavior rules */
@media (max-width: 700px) {
div.container {
padding-top: 5px;
}
}
/*
Taken straight from Docco highlight styles, which uses the Github code styling.
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
*/
/* pre code {
display: block; padding: 0.5em;
color: #000;
} */
pre .hljs-comment,
pre .hljs-template_comment,
pre .hljs-diff .hljs-header,
pre .hljs-javadoc {
color: #408080;
font-style: italic;
}
pre .hljs-keyword,
pre .hljs-assignment,
pre .hljs-literal,
pre .hljs-css .hljs-rule .hljs-keyword,
pre .hljs-winutils,
pre .hljs-javascript .hljs-title,
pre .hljs-lisp .hljs-title,
pre .hljs-subst {
color: #954121;
/*font-weight: bold*/
}
pre .hljs-number,
pre .hljs-hexcolor {
color: #40a070;
}
pre .hljs-string,
pre .hljs-tag .hljs-value,
pre .hljs-phpdoc,
pre .hljs-tex .hljs-formula {
color: #219161;
}
pre .hljs-title,
pre .hljs-id {
color: #19469d;
}
pre .hljs-params {
color: #00f;
}
pre .hljs-javascript .hljs-title,
pre .hljs-lisp .hljs-title,
pre .hljs-subst {
font-weight: normal;
}
pre .hljs-class .hljs-title,
pre .hljs-haskell .hljs-label,
pre .hljs-tex .hljs-command {
color: #458;
font-weight: bold;
}
pre .hljs-tag,
pre .hljs-tag .hljs-title,
pre .hljs-rules .hljs-property,
pre .hljs-django .hljs-tag .hljs-keyword {
color: #000080;
font-weight: normal;
}
pre .hljs-attribute,
pre .hljs-variable,
pre .hljs-instancevar,
pre .hljs-lisp .hljs-body {
color: #008080;
}
pre .hljs-regexp {
color: #b68;
}
pre .hljs-class {
color: #458;
font-weight: bold;
}
pre .hljs-symbol,
pre .hljs-ruby .hljs-symbol .hljs-string,
pre .hljs-ruby .hljs-symbol .hljs-keyword,
pre .hljs-ruby .hljs-symbol .hljs-keymethods,
pre .hljs-lisp .hljs-keyword,
pre .hljs-tex .hljs-special,
pre .hljs-input_number {
color: #990073;
}
pre .hljs-builtin,
pre .hljs-constructor,
pre .hljs-built_in,
pre .hljs-lisp .hljs-title {
color: #0086b3;
}
pre .hljs-preprocessor,
pre .hljs-pi,
pre .hljs-doctype,
pre .hljs-shebang,
pre .hljs-cdata {
color: #999;
font-weight: bold;
}
pre .hljs-deletion {
background: #fdd;
}
pre .hljs-addition {
background: #dfd;
}
pre .hljs-diff .hljs-change {
background: #0086b3;
}
pre .hljs-chunk {
color: #aaa;
}
pre .hljs-tex .hljs-formula {
opacity: 0.5;
}