Skip to content

Commit

Permalink
[editorial] Sync with CSSWG's stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Oct 6, 2020
1 parent 5910b4a commit b7d7411
Showing 1 changed file with 18 additions and 70 deletions.
88 changes: 18 additions & 70 deletions default.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
pre.ascii-art {
display: table; /* shrinkwrap */
margin: 1em auto;
line-height: normal;
}

/* Displaying the output of text layout, particularly when
Expand All @@ -51,76 +52,6 @@
display: table;
}

/******************************************************************************/
/* Tables */
/******************************************************************************/

/* XXX: Remove these once all specs are bikeshedded or Bert's processor generates .def/.index classes */

/** Property/Descriptor Definition Tables *************************************/

table.propdef, table.propdef-extra,
table.descdef, table.definition-table {
page-break-inside: avoid;
width: 100%;
margin: 1.2em 0;
border-left: 0.5em solid #8CCBF2;
padding: 0.5em 1em;
background: #DEF;
border-spacing: 0;
}

table.propdef td, table.propdef-extra td,
table.descdef td, table.definition-table td,
table.propdef th, table.propdef-extra th,
table.descdef th, table.definition-table th {
padding: 0.5em;
vertical-align: baseline;
border-bottom: 1px solid #bbd7e9;
}
table.propdef > tbody > tr:last-child th,
table.propdef-extra > tbody > tr:last-child th,
table.descdef > tbody > tr:last-child th,
table.definition-table > tbody > tr:last-child th,
table.propdef > tbody > tr:last-child td,
table.propdef-extra > tbody > tr:last-child td,
table.descdef > tbody > tr:last-child td,
table.definition-table > tbody > tr:last-child td {
border-bottom: 0;
}

table.propdef th,
table.propdef-extra th,
table.descdef th,
table.definition-table th {
font-style: italic;
font-weight: normal;
width: 8.3em;
padding-left: 1em;
}

/* For when values are extra-complex and need formatting for readability */
table td.pre {
white-space: pre-wrap;
}

/* A footnote at the bottom of a propdef */
table.propdef td.footnote,
table.propdef-extra td.footnote,
table.descdef td.footnote,
table.definition-table td.footnote {
padding-top: 0.6em;
}
table.propdef td.footnote::before,
table.propdef-extra td.footnote::before,
table.descdef td.footnote::before,
table.definition-table td.footnote::before {
content: " ";
display: block;
height: 0.6em;
width: 4em;
border-top: thin solid;
}

/** Profile Tables ************************************************************/
/* table of required features in a CSS profile */
Expand Down Expand Up @@ -155,3 +86,20 @@
}

.toc .atrisk::before { content:none }

/** File Issue Link ***********************************************************/
/* Style for https://resources.whatwg.org/file-issue.js */

.selected-text-file-an-issue {
position: fixed;
bottom: 0;
right: 0;
background: rgba(255, 255, 255, 0.8);
font-size: smaller;
padding: 4px 10px;
z-index: 1;
text-decoration: underline;
}
@media (max-width: 767px) {
.selected-text-file-an-issue { left: 0; right: auto; text-align: left; }
}

0 comments on commit b7d7411

Please sign in to comment.