Small css tweak for API document.

This commit is contained in:
Zhang Huangbin 2016-05-14 10:01:17 +08:00
parent 009dff383a
commit b3acef396d
1 changed files with 27 additions and 20 deletions

View File

@ -373,7 +373,6 @@ li { line-height: 26px; }
/* Style for API document */ /* Style for API document */
.api { .api {
line-height: 18px; line-height: 18px;
#background: #e7f2fa;
padding: 3px 12px 0px 0px; padding: 3px 12px 0px 0px;
margin-top: 0px; margin-top: 0px;
margin-bottom: 0px; margin-bottom: 0px;
@ -382,9 +381,24 @@ li { line-height: 26px; }
background-color: white; background-color: white;
padding: 0px 12px 0px 5px; padding: 0px 12px 0px 5px;
} }
.api > .admonition-title > code:nth-child(1) { background-color: green; }
.api > .admonition-title > code:nth-child(2) { background-color: green; } /* Table */
.api > .admonition-title > code:nth-child(3) { table { border: 1px solid black; border-collapse: collapse;}
th { padding: 5px 10px 5px 10px; }
td { padding: 5px 10px 5px 10px; }
th, td { border: 1px solid black; }
.api code.url { background-color: white; color: black; display: inline-block; }
.api code.get { background-color: #0f6ab4; }
.api code.post { background-color: #10a54a; }
.api code.put { background-color: #c5862b; padding-left: 5px; padding-right: 5px;}
.api code.delete { background-color: #a41e22; }
.api code.get, .api code.post, .api code.put, .api code.delete {
display: inline-block;
width: 60px;
text-align: center;
}
.api code.comment {
color: black; color: black;
background-color: white; background-color: white;
border: 0px; border: 0px;
@ -393,28 +407,21 @@ li { line-height: 26px; }
font-style: normal; font-style: normal;
} }
/* Table */ .api table {
th { padding: 5px 10px 5px 10px; } border: 0px;
td { padding: 5px 10px 5px 10px; }
table { border: 1px solid black; }
th, td { border: 1px solid black; }
/*
caption { font-size: 200%;}
*/
/*
.api_url, .api_method, .api_comment { float: left; }
*/
.admonition table {
border-collapse: collapse; border-collapse: collapse;
#width: 100%; /*
width: 100%;
*/
text-align: left; text-align: left;
line-height: 33px; line-height: 33px;
vertical-align: middle; vertical-align: middle;
margin-bottom: 20px; margin-bottom: 20px;
} }
.api th { padding: 0px 10px 0px 10px; }
.api td { padding: 0px 10px 0px 10px; }
.admonition table thead { .admonition table thead {
background-color: #f4f8e9; background-color: #f4f8e9;
} }