1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 10:18:21 +01:00
antd-web-apps/doc/assets/style.css

407 lines
7.4 KiB
CSS
Raw Normal View History

2020-09-22 17:58:37 +02:00
html,
body {
2020-06-22 22:14:52 +02:00
margin: 0;
padding: 0;
font-family: "Ubuntu";
2020-06-26 16:51:07 +02:00
font-size: 14px;
2020-06-22 22:14:52 +02:00
line-height: 1.5;
width: 100%;
height: 100%;
overflow: hidden;
}
2020-09-22 17:58:37 +02:00
#top {
2020-06-22 22:14:52 +02:00
background-color: #2c2c2c;
color: white;
font-weight: bold;
display: block;
text-align: center;
height: 30px;
}
2020-09-22 17:58:37 +02:00
#bottom {
2020-06-22 22:14:52 +02:00
position: fixed;
bottom: 0;
height: 20px;
text-align: center;
2020-09-22 17:58:37 +02:00
color: #878887;
2020-06-22 22:14:52 +02:00
background-color: white;
2020-06-26 16:51:07 +02:00
font-size: 13px;
2020-06-22 22:14:52 +02:00
width: 100%;
2020-09-22 17:58:37 +02:00
padding: 5px;
2020-06-22 22:14:52 +02:00
border-top: 1px solid #878887;
2021-02-07 12:36:52 +01:00
z-index: 22;
2020-06-22 22:14:52 +02:00
}
2020-09-22 17:58:37 +02:00
#cover {
2021-02-07 12:36:52 +01:00
height: calc(100% - 50px);
2020-06-24 19:00:41 +02:00
overflow-x: hidden;
2020-06-22 22:14:52 +02:00
overflow-y: auto;
}
2020-09-22 17:58:37 +02:00
#navbar {
margin: 0 auto;
2021-02-07 11:51:27 +01:00
/* max-width: 80%; */
2020-06-22 22:14:52 +02:00
display: flex;
2020-09-22 17:58:37 +02:00
justify-content: flex-end;
2020-06-22 22:14:52 +02:00
flex-direction: row;
}
2020-09-22 17:58:37 +02:00
#book {
margin: 0 auto;
2021-02-07 11:51:27 +01:00
/* max-width: 80%; */
2020-06-22 22:14:52 +02:00
max-height: 100%;
display: block;
2020-09-22 17:58:37 +02:00
justify-content: flex-end;
2020-06-22 22:14:52 +02:00
flex-direction: row;
text-align: justify;
height: 100%;
}
2021-02-07 13:23:46 +01:00
div.doc-toc-menu {
2020-06-22 22:14:52 +02:00
text-align: left;
2020-09-22 17:58:37 +02:00
padding-top: 3px;
2020-06-22 22:14:52 +02:00
}
2021-02-07 13:23:46 +01:00
div.doc-toc-menu a {
text-decoration: none;
color: #c9c9c9;
}
div.doc-toc-legend::before
{
content: "\f0c9";
color: #2c2c2c;
width: 20px;
height: 25px;
margin-right: 3px;
font-family: "FontAwesome";
font-size: 18px;
}
div.doc-toc-menu a::before {
/* padding-top:13px; */
content: "\f02d";
color: #c9c9c9;
width: 20px;
height: 25px;
font-family: "FontAwesome";
font-size: 18px;
}
div.doc-name{
font-weight: bold;
}
2020-06-22 22:14:52 +02:00
div.doc-name a {
text-decoration: none;
color: #c9c9c9;
}
2020-09-22 17:58:37 +02:00
a.x-link,
a.x-link:hover {
2020-06-24 19:19:20 +02:00
text-decoration: none;
2021-02-07 13:23:46 +01:00
color: #2c2c2c;
font-weight: bold;
/* padding-left: 15px; */
2020-06-24 19:19:20 +02:00
padding-top: 7px;
}
2020-09-22 17:58:37 +02:00
a.x-link::before {
2020-06-24 19:19:20 +02:00
content: "\f08e";
2021-02-07 13:23:46 +01:00
color: #2c2c2c;
2020-09-22 17:58:37 +02:00
width: 20px;
2020-06-24 19:19:20 +02:00
height: 25px;
font-family: "FontAwesome";
font-size: 15px;
}
2020-09-22 17:58:37 +02:00
div.doc-name a::before {
2020-06-22 22:14:52 +02:00
/* padding-top:13px; */
content: "\f015";
2021-02-07 13:23:46 +01:00
color: #2c2c2c;
2020-09-22 17:58:37 +02:00
width: 20px;
2020-06-22 22:14:52 +02:00
height: 25px;
font-family: "FontAwesome";
font-size: 18px;
}
2020-09-22 17:58:37 +02:00
input.search-box {
2020-06-22 22:14:52 +02:00
outline: none;
border: 0;
2020-09-22 17:58:37 +02:00
flex: 1;
padding: 0;
margin: 0;
2020-06-24 19:19:20 +02:00
margin-left: 10px;
2020-06-22 22:14:52 +02:00
/* padding-top:13px; */
height: 25px;
background-color: transparent;
border-bottom: 1px solid #878887;
font-size: 15px;
font-family: "Ubuntu";
line-height: 0.5;
color: #878887;
}
2020-09-22 17:58:37 +02:00
div.search-icon:before {
2020-06-22 22:14:52 +02:00
/* padding-top:13px; */
content: "\f002";
2020-09-22 17:58:37 +02:00
color: #878887;
2020-06-22 22:14:52 +02:00
display: block;
2020-09-22 17:58:37 +02:00
width: 20px;
2020-06-22 22:14:52 +02:00
height: 25px;
font-family: "FontAwesome";
font-size: 18px;
border-bottom: 1px solid #878887;
}
div.search-icon {
width: 35px;
}
div.doc-toc {
2021-02-07 13:44:15 +01:00
max-width: 70%;
2021-02-19 19:37:26 +01:00
padding-right: 0;
2020-06-22 22:14:52 +02:00
background-color: #e3e3e3;
color: #2c2c2c;
overflow: auto;
position: fixed;
top: 30px;
2021-02-07 12:36:52 +01:00
bottom: 30px;
2020-06-22 22:14:52 +02:00
border-right: 1px solid #c9c9c9;
2021-02-19 19:37:26 +01:00
border-left: 1px solid #c9c9c9;
2021-02-07 12:36:52 +01:00
padding-top: 0;
padding-bottom: 10px;
2021-02-19 19:37:26 +01:00
box-shadow: 0px 6px 3px -1px rgba(0,0,0,0.65);
2021-02-07 11:35:26 +01:00
z-index: 20;
}
2021-02-19 19:37:26 +01:00
a.toc-active {
2021-02-07 12:36:52 +01:00
border: 1px solid #c9c9c9;
2021-02-19 19:37:26 +01:00
border-bottom: 0;
2021-02-07 12:36:52 +01:00
background-color: #e3e3e3;
outline: none;
2021-02-19 19:37:26 +01:00
display: block;
padding-left: 5px;
padding-right: 5px;
color: #2c2c2c !important;
}
a.toc-active::before{
color: #2c2c2c !important;
2021-02-07 12:36:52 +01:00
}
2021-02-07 13:23:46 +01:00
div.doc-toc-header{
2021-02-07 12:36:52 +01:00
display: block;
padding: 0px;
margin: 0px;
2021-02-07 13:23:46 +01:00
padding-left: 10px;
padding: 3px;
/* height: 24px; */
2021-02-07 12:36:52 +01:00
border-bottom: 1px solid #c9c9c9;
font-weight: bold;
2020-06-22 22:14:52 +02:00
}
2021-02-07 11:35:26 +01:00
2020-06-22 22:14:52 +02:00
div.doc-toc a {
text-decoration: none;
color: #2c2c2c;
}
#toc {
margin: 0;
list-style-type: none;
padding: 0;
padding-left: 10px;
2021-02-19 19:37:26 +01:00
padding-right: 10px;
2020-06-22 22:14:52 +02:00
}
div.doc-toc ul.nested {
list-style-type: none;
}
2020-06-24 19:00:41 +02:00
div.doc-toc li.selected > a {
font-weight: bold;
}
2020-06-22 22:14:52 +02:00
div.doc-toc .caret {
cursor: pointer;
user-select: none; /* Prevent text selection */
}
div.doc-toc .caret::before {
content: "\f147";
color: #2c2c2c;
display: inline-block;
font-family: "FontAwesome";
margin-right: 5px;
}
div.doc-toc .nested {
display: none;
}
div.doc-toc .caret-down::before {
content: "\f196";
color: #2c2c2c;
display: inline-block;
font-family: "FontAwesome";
margin-right: 5px;
}
2020-09-22 17:58:37 +02:00
div.doc-toc .active {
2020-06-22 22:14:52 +02:00
display: block;
padding-left: 20px;
}
2020-06-24 19:00:41 +02:00
div.doc-toc a.highlight {
color: #333f67;
}
2020-06-22 22:14:52 +02:00
div.doc-content {
display: block;
2021-02-07 13:25:18 +01:00
width: 100%;
2020-06-22 22:14:52 +02:00
float: right;
2020-06-24 19:00:41 +02:00
padding-left: 10px;
}
div.pagenav {
display: flex;
2020-09-22 17:58:37 +02:00
justify-content: flex-end;
2020-06-24 19:00:41 +02:00
flex-direction: row;
width: 100%;
2020-06-22 22:14:52 +02:00
}
2020-09-22 17:58:37 +02:00
div.pagenav a.go_next,
div.pagenav a.go_prev {
2020-06-24 19:00:41 +02:00
display: block;
flex: 1;
text-decoration: none;
color: #333f67;
/* font-weight: bold; */
border: 1px solid #dadddd;
background-color: #eef1f1;
padding-top: 3px;
padding-bottom: 3px;
margin-bottom: 10px;
}
2020-09-22 17:58:37 +02:00
div.pagenav a.go_next:hover,
div.pagenav a.go_prev:hover {
2020-06-24 19:00:41 +02:00
background-color: #e6e8e8;
}
2020-09-22 17:58:37 +02:00
div.pagenav a.go_next {
2020-06-24 19:00:41 +02:00
padding-right: 5px;
text-align: center;
}
div.pagenav a.go_prev {
border-right: 0;
padding-left: 5px;
text-align: center;
}
div.pagenav a.go_prev::before {
content: "\f137";
color: #333f67;
display: inline-block;
font-family: "FontAwesome";
}
div.pagenav a.go_next::after {
content: "\f138";
color: #333f67;
display: inline-block;
font-family: "FontAwesome";
}
div.md-content {
padding-left: 15px;
}
div.md-content p.result-header a {
color: #333f67;
font-weight: bold;
}
div.md-content p.result-header {
padding: 0;
margin: 0;
margin-top: 10px;
font-size: 15;
}
div.md-content p.result-content {
padding: 3px;
margin: 0;
margin-left: 20px;
border-bottom: 1px solid #dadddd;
margin-bottom: 5px;
}
div.md-content p.result-content span.pattern {
background-color: chocolate;
color: white;
padding-left: 3px;
padding-right: 3px;
border-radius: 2px;
}
2020-09-22 17:58:37 +02:00
div.md-content p.result-header a::before {
2020-06-24 19:00:41 +02:00
content: "\f002";
color: #333f67;
display: inline-block;
font-family: "FontAwesome";
}
2020-06-22 22:14:52 +02:00
/* for block of code */
/* #container .blogentry .hljs-ln td.hljs-ln-code {
padding-left: 10px;
} */
2020-09-15 16:54:50 +02:00
#renderer img {
2020-09-22 17:58:37 +02:00
max-width: 100%;
2020-09-15 16:54:50 +02:00
display: block;
margin-left: auto;
margin-right: auto;
}
2020-06-24 19:00:41 +02:00
a {
color: #333f67;
text-decoration: none;
}
2020-09-22 17:58:37 +02:00
a:hover {
2020-06-24 19:00:41 +02:00
text-decoration: underline;
}
form.search-form {
display: contents;
2020-06-26 16:35:23 +02:00
}
td.hljs-ln-numbers {
2020-09-22 17:58:37 +02:00
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2020-06-26 16:35:23 +02:00
2020-09-22 17:58:37 +02:00
text-align: center;
color: #ccc;
vertical-align: top;
2020-06-26 16:35:23 +02:00
font-size: 13;
2020-09-22 17:58:37 +02:00
/* your custom style here */
2020-06-26 16:35:23 +02:00
}
/* for block of code */
2020-06-26 16:37:27 +02:00
.hljs-ln td.hljs-ln-code {
2020-09-22 17:58:37 +02:00
padding-left: 10px;
}
2020-09-22 17:58:37 +02:00
model-viewer {
/*border: 1px solid #333f67;*/
width: 100%;
height: 350px;
2020-09-22 17:58:37 +02:00
}
.commentsec {
padding: 15px;
display: block;
}
.commentsec .comment-header {
text-align: center;
border-top: 1px dashed #3170b2;
color: #3170b2;
margin: 0;
padding-top: 10px;
padding-bottom: 0px;
}
2020-12-09 11:22:51 +01:00
h1, h2, h3, h4, h5 {
text-align: left;
}
div.doc-toc ul li {
text-align: left;
}
table.hljs-ln tr, table.hljs-ln td {
background-color: transparent !important;
border:0 !important;
}
table.hljs-ln td {
padding: 3px 3px !important;
2020-12-10 09:19:40 +01:00
}
table.hljs-ln {
margin: 0 !important;
}
2020-12-11 16:53:36 +01:00
.markdown-body pre {
padding: 10px !important;
margin-bottom: 0 !important;
}