Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: fix nits in doc/api_assets/style.css
1. Merge rule sets for identical selectors.

2. Delete impossible selector block: we have only stability indexes
   0, 1, and 2, so there can't be `.api_stability_3` class.
   Refs: nodejs.org/api/documentation.html#documentation_stability_index
  • Loading branch information
vsemozhetbyt committed May 8, 2018
commit 974cf6fd1aa01e8631b3a28cd135d39db5c0fd5d
23 changes: 5 additions & 18 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ h6 { font-size: 1rem }

h1, h2, h3, h4, h5, h6 {
margin: 1.5rem 0 1rem;
text-rendering: optimizeLegibility;
font-weight: 700;
position: relative;
}

pre, tt, code, .pre, span.type, a.type {
Expand Down Expand Up @@ -183,10 +186,6 @@ ol.version-picker li:last-child a {
background-color: #4EBA0F;
}

.api_stability_3 {
background-color: #0084B6;
}

.api_metadata {
font-size: .85rem;
margin-bottom: 1rem;
Expand Down Expand Up @@ -226,6 +225,8 @@ table {

th, td {
border: 1px solid #aaa;
padding: .75rem 1rem .75rem 1rem;
vertical-align: top;
}

th {
Expand Down Expand Up @@ -259,12 +260,6 @@ dd + dt.pre {
margin-top: 1.6rem;
}

h1, h2, h3, h4, h5, h6 {
text-rendering: optimizeLegibility;
font-weight: 700;
position: relative;
}

#apicontent {
padding-top: 1rem;
}
Expand Down Expand Up @@ -373,9 +368,6 @@ hr {
#toc .stability_0::after {
background-color: #d50027;
color: #fff;
}

#toc .stability_0::after {
content: "deprecated";
margin-left: .25rem;
padding: 1px 3px;
Expand Down Expand Up @@ -493,11 +485,6 @@ span > .mark:hover, span > .mark:focus, span > .mark:active {
background: none;
}

th, td {
padding: .75rem 1rem .75rem 1rem;
vertical-align: top;
}

th > *:last-child, td > *:last-child {
margin-bottom: 0;
}
Expand Down