docs: all css in one
This commit is contained in:
parent
e7de200ed0
commit
837a006f0b
4 changed files with 16 additions and 478 deletions
|
|
@ -1,11 +1,15 @@
|
|||
$primary-color: rgb(75, 143, 210);
|
||||
@import "node_modules/spectre.css/src/spectre";
|
||||
|
||||
@import "admonition";
|
||||
@import "codehilite";
|
||||
@import "discourse";
|
||||
|
||||
|
||||
body {
|
||||
color: #333;
|
||||
font-family: Helvetica,Arial,sans-serif;
|
||||
font-size: 15px;
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
background-color: #fff;
|
||||
overflow-y: scroll;
|
||||
|
|
@ -13,100 +17,6 @@ body {
|
|||
}
|
||||
|
||||
|
||||
|
||||
.wrap {
|
||||
max-width: 1110px;
|
||||
}
|
||||
@media (max-width: 570px){
|
||||
.wrap, .full-width {
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.wrap {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
padding: 0 8px;
|
||||
}
|
||||
.d-header>.wrap {
|
||||
width: calc(100% - 16px);
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
.d-header {
|
||||
left: 0;
|
||||
height: 4em;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.d-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
background-color: #3c4c68;
|
||||
box-shadow: 0 2px 4px -1px rgba(0,0,0,0.25);
|
||||
}
|
||||
|
||||
.d-header>.wrap .contents {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wrap .contents {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.d-header .title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.d-header .title img {
|
||||
height: 2.57em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
.d-header .header-buttons-panel {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
margin-left: auto;
|
||||
align-items: center;
|
||||
}
|
||||
.d-header .header-buttons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 0.2em;
|
||||
}
|
||||
|
||||
.d-header .header-buttons a {
|
||||
padding: 6px 10px;
|
||||
color: #fff;
|
||||
font-size: 1.1487em;
|
||||
}
|
||||
|
||||
.d-header .header-buttons a {
|
||||
opacity: 0.5;
|
||||
transition: opacity .25s;
|
||||
text-decoration: none;
|
||||
}
|
||||
.d-header .header-buttons a:hover {
|
||||
opacity: 0.75;
|
||||
}
|
||||
.d-header .header-buttons a.active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#jumbotron {
|
||||
text-align: center;
|
||||
position: relative;
|
||||
|
|
@ -143,11 +53,11 @@ body {
|
|||
padding-top: 5.8572em;
|
||||
padding-bottom: 4em;
|
||||
display: flex;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.col-left {
|
||||
width:240px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.col-left > ul {
|
||||
top: 5.8572em;
|
||||
|
|
@ -156,6 +66,7 @@ body {
|
|||
overflow-y: auto;
|
||||
bottom: 0;
|
||||
padding-left: 2px;
|
||||
margin: 0;
|
||||
}
|
||||
.col-left > ul ul {
|
||||
line-height: 1
|
||||
|
|
@ -164,22 +75,18 @@ body {
|
|||
flex: 1
|
||||
}
|
||||
|
||||
#main img {
|
||||
max-width: 100%;
|
||||
border-radius: 3px;
|
||||
/* box-shadow: 0 2px 8px 0 rgba(0,0,0,0.5); */
|
||||
}
|
||||
|
||||
.codehilite {
|
||||
background-color: #fafafa;
|
||||
color: #37474f;
|
||||
line-height: 1em;
|
||||
max-width: 100%
|
||||
}
|
||||
|
||||
.codehilite pre {
|
||||
padding: 12px;
|
||||
white-space: pre;
|
||||
font-feature-settings: "kern";
|
||||
font-family: $mono-font-family;
|
||||
/* font-family: "Roboto Mono","Courier New",Courier,monospace; */
|
||||
direction: ltr;
|
||||
line-height: 1.1;
|
||||
|
|
@ -222,7 +129,9 @@ code, tt {
|
|||
border: 1px solid #eaeaea;
|
||||
border-radius: 3px;
|
||||
background-color: #f8f8f8;
|
||||
color: #333333; }
|
||||
color: #333333;
|
||||
font-family: $mono-font-family;
|
||||
}
|
||||
|
||||
|
||||
code {
|
||||
|
|
@ -234,6 +143,10 @@ table code {
|
|||
white-space: nowrap;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
table .thead2 {
|
||||
background: #ddd!important;
|
||||
color: #666;
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
<title>{% if page.title and not page.is_homepage %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
|
||||
|
||||
<link rel="stylesheet" href="{{ "/extensions/admonition.css"|url }}">
|
||||
<link rel="stylesheet" href="{{ "/extensions/codehilite.css"|url }}">
|
||||
<link rel="stylesheet" href="{{ "/styles.css"|url }}">
|
||||
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css">
|
||||
|
|
|
|||
|
|
@ -1,57 +0,0 @@
|
|||
div.admonition {
|
||||
font-size: 0.9em;
|
||||
border: 1px solid #cccccc;
|
||||
background-color: #fafafa;
|
||||
padding: 0;
|
||||
border-radius: 3px;
|
||||
margin: 0 0 1.2rem;
|
||||
}
|
||||
|
||||
div.admonition p {
|
||||
margin: 0.5em 1em 0.5em 1em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.admonition li p {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
div.admonition pre, div.warning pre {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div.admonition p.admonition-title {
|
||||
margin: 0;
|
||||
padding: 0.5em;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
background-color: #165e83;
|
||||
}
|
||||
|
||||
div.danger { border: 1px solid #b7282e;}
|
||||
div.error { border: 1px solid #b7282e;}
|
||||
div.warning { border: 1px solid #f19072;}
|
||||
div.caution { border: 1px solid #f19072;}
|
||||
div.attention { border: 1px solid #f19072;}
|
||||
div.important { border: 1px solid #f8b862;}
|
||||
div.note { border: 1px solid #f8b862;}
|
||||
div.hint { border: 1px solid #7ebea5;}
|
||||
div.tip { border: 1px solid #7ebea5;}
|
||||
|
||||
div.danger p.admonition-title, div.error p.admonition-title {
|
||||
background-color: #b7282e;
|
||||
}
|
||||
|
||||
div.caution p.admonition-title,
|
||||
div.warning p.admonition-title,
|
||||
div.attention p.admonition-title {
|
||||
background-color: #f19072;
|
||||
}
|
||||
|
||||
div.note p.admonition-title, div.important p.admonition-title {
|
||||
background-color: #f8b862;
|
||||
}
|
||||
|
||||
div.hint p.admonition-title, div.tip p.admonition-title {
|
||||
background-color: #7ebea5;
|
||||
}
|
||||
|
|
@ -1,316 +0,0 @@
|
|||
/* https://raw.githubusercontent.com/simonsmith/syntax.css */
|
||||
|
||||
.codehilite {
|
||||
background: #ffffff;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.codehilite .c {
|
||||
color: #999988;
|
||||
font-style: italic
|
||||
}
|
||||
|
||||
/* Comment */
|
||||
.codehilite .err {
|
||||
color: #a61717;
|
||||
background-color: #e3d2d2
|
||||
}
|
||||
|
||||
/* Error */
|
||||
.codehilite .k {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Keyword */
|
||||
.codehilite .o {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Operator */
|
||||
.codehilite .cm {
|
||||
color: #999988;
|
||||
font-style: italic
|
||||
}
|
||||
|
||||
/* Comment.Multiline */
|
||||
.codehilite .cp {
|
||||
color: #999999;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Comment.Preproc */
|
||||
.codehilite .c1 {
|
||||
color: #999988;
|
||||
font-style: italic
|
||||
}
|
||||
|
||||
/* Comment.Single */
|
||||
.codehilite .cs {
|
||||
color: #999999;
|
||||
font-weight: bold;
|
||||
font-style: italic
|
||||
}
|
||||
|
||||
/* Comment.Special */
|
||||
.codehilite .gd {
|
||||
color: #000000;
|
||||
background-color: #ffdddd
|
||||
}
|
||||
|
||||
/* Generic.Deleted */
|
||||
.codehilite .gd .x {
|
||||
color: #000000;
|
||||
background-color: #ffaaaa
|
||||
}
|
||||
|
||||
/* Generic.Deleted.Specific */
|
||||
.codehilite .ge {
|
||||
font-style: italic
|
||||
}
|
||||
|
||||
/* Generic.Emph */
|
||||
.codehilite .gr {
|
||||
color: #aa0000
|
||||
}
|
||||
|
||||
/* Generic.Error */
|
||||
.codehilite .gh {
|
||||
color: #999999
|
||||
}
|
||||
|
||||
/* Generic.Heading */
|
||||
.codehilite .gi {
|
||||
color: #000000;
|
||||
background-color: #ddffdd
|
||||
}
|
||||
|
||||
/* Generic.Inserted */
|
||||
.codehilite .gi .x {
|
||||
color: #000000;
|
||||
background-color: #aaffaa
|
||||
}
|
||||
|
||||
/* Generic.Inserted.Specific */
|
||||
.codehilite .go {
|
||||
color: #888888
|
||||
}
|
||||
|
||||
/* Generic.Output */
|
||||
.codehilite .gp {
|
||||
color: #555555
|
||||
}
|
||||
|
||||
/* Generic.Prompt */
|
||||
.codehilite .gs {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Generic.Strong */
|
||||
.codehilite .gu {
|
||||
color: #aaaaaa
|
||||
}
|
||||
|
||||
/* Generic.Subheading */
|
||||
.codehilite .gt {
|
||||
color: #aa0000
|
||||
}
|
||||
|
||||
/* Generic.Traceback */
|
||||
.codehilite .kc {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Keyword.Constant */
|
||||
.codehilite .kd {
|
||||
font-weight: bold;
|
||||
|
||||
}
|
||||
|
||||
/* Keyword.Declaration */
|
||||
.codehilite .kp {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Keyword.Pseudo */
|
||||
.codehilite .kr {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Keyword.Reserved */
|
||||
.codehilite .kt {
|
||||
color: #445588;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Keyword.Type */
|
||||
.codehilite .m {
|
||||
color: #009999
|
||||
}
|
||||
|
||||
/* Literal.Number */
|
||||
.codehilite .s {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String */
|
||||
.codehilite .na {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Attribute */
|
||||
.codehilite .nb {
|
||||
color: #0086B3
|
||||
}
|
||||
|
||||
/* Name.Builtin */
|
||||
.codehilite .nc {
|
||||
color: #445588;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Name.Class */
|
||||
.codehilite .no {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Constant */
|
||||
.codehilite .ni {
|
||||
color: #800080
|
||||
}
|
||||
|
||||
/* Name.Entity */
|
||||
.codehilite .ne {
|
||||
color: #990000;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Name.Exception */
|
||||
.codehilite .nf {
|
||||
color: #990000;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Name.Function */
|
||||
.codehilite .nn {
|
||||
color: #555555
|
||||
}
|
||||
|
||||
/* Name.Namespace */
|
||||
.codehilite .nt {
|
||||
color: #000080
|
||||
}
|
||||
|
||||
/* Name.Tag */
|
||||
.codehilite .nv {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Variable */
|
||||
.codehilite .ow {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Operator.Word */
|
||||
.codehilite .w {
|
||||
color: #bbbbbb
|
||||
}
|
||||
|
||||
/* Text.Whitespace */
|
||||
.codehilite .mf {
|
||||
color: #009999
|
||||
}
|
||||
|
||||
/* Literal.Number.Float */
|
||||
.codehilite .mh {
|
||||
color: #009999
|
||||
}
|
||||
|
||||
/* Literal.Number.Hex */
|
||||
.codehilite .mi {
|
||||
color: #009999
|
||||
}
|
||||
|
||||
/* Literal.Number.Integer */
|
||||
.codehilite .mo {
|
||||
color: #009999
|
||||
}
|
||||
|
||||
/* Literal.Number.Oct */
|
||||
.codehilite .sb {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Backtick */
|
||||
.codehilite .sc {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Char */
|
||||
.codehilite .sd {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Doc */
|
||||
.codehilite .s2 {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Double */
|
||||
.codehilite .se {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Escape */
|
||||
.codehilite .sh {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Heredoc */
|
||||
.codehilite .si {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Interpol */
|
||||
.codehilite .sx {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Other */
|
||||
.codehilite .sr {
|
||||
color: #009926
|
||||
}
|
||||
|
||||
/* Literal.String.Regex */
|
||||
.codehilite .s1 {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Single */
|
||||
.codehilite .ss {
|
||||
color: #990073
|
||||
}
|
||||
|
||||
/* Literal.String.Symbol */
|
||||
.codehilite .bp {
|
||||
color: #999999
|
||||
}
|
||||
|
||||
/* Name.Builtin.Pseudo */
|
||||
.codehilite .vc {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Variable.Class */
|
||||
.codehilite .vg {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Variable.Global */
|
||||
.codehilite .vi {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Variable.Instance */
|
||||
.codehilite .il {
|
||||
color: #009999
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue