docs: all css in one
This commit is contained in:
parent
b70c2392c1
commit
a78bfdc365
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue