|
/* |
|
|
|
Can be seen demonstrated: https://codepen.io/amcgregor/pen/PoZoPYv?editors=1100 |
|
|
|
Even more dramatically, using a sanitized Facebook landing page: https://codepen.io/amcgregor/full/jOWObBM |
|
|
|
*/ |
|
|
|
body { background-color: #000; color: transparent !important; font: 12px/15px "Open Sans", sans-serif; } |
|
* { color: inherit !important; font: inherit !important; } |
|
|
|
body > * { background-color: #111; } |
|
body > * > * { background-color: #222; } |
|
body > * > * > * { background-color: #333; } |
|
body > * > * > * > * { background-color: #444; } |
|
body > * > * > * > * > * { background-color: #555; } |
|
body > * > * > * > * > * > * { background-color: #666; } |
|
body > * > * > * > * > * > * > * { background-color: #777; } |
|
body > * > * > * > * > * > * > * > * { background-color: #888; } |
|
body > * > * > * > * > * > * > * > * > * { background-color: #999; } |
|
body > * > * > * > * > * > * > * > * > * > * { background-color: #aaa; } |
|
body > * > * > * > * > * > * > * > * > * > * > * { background-color: #bbb; } |
|
body > * > * > * > * > * > * > * > * > * > * > * > * { background-color: #ccc; } |
|
body > * > * > * > * > * > * > * > * > * > * > * > * > * { background-color: #ddd; } |
|
body > * > * > * > * > * > * > * > * > * > * > * > * > * > * { background-color: #eee; } |
|
body > * > * > * > * > * > * > * > * > * > * > * > * > * > * > * { background-color: #fff; } |
|
body > * > * > * > * > * > * > * > * > * > * > * > * > * > * > * > * { background-color: #f0f; } /* Out-of-gamut! */ |
|
body > * > * > * > * > * > * > * > * > * > *:after { color: black !important; } |
|
|
|
/* Block-Level Elements */ |
|
|
|
address, article, aside, blockquote, details, dialog, dd, div, dl, dt, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, li, main, nav, ol, p, pre, section, table, ul { |
|
margin: 10px 0; |
|
padding: 10px; |
|
border: 1px solid rgba(127,127,127,0.25); |
|
position: relative; |
|
} |
|
|
|
address:after, article:after, aside:after, blockquote:after, details:after, dialog:after, dd:after, div:after, dl:after, dt:after, fieldset:after, figcaption:after, figure:after, footer:after, form:after, h1:after, h2:after, h3:after, h4:after, h5:after, h6:after, header:after, hgroup:after, li:after, main:after, nav:after, ol:after, p:after, pre:after, section:after, table:after, ul:after { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
padding: 2px 5px; |
|
background-color: rgba(127,127,127,0.5); |
|
text-transform: uppercase; |
|
font: bold 6px/1.8 "Open Sans", sans-serif; |
|
} |
|
|
|
/* Ones that should have some padding applied to them... */ |
|
ul { padding-left: 2em; } |
|
|
|
address:after { content: 'address' ' #' attr(id) ' (' attr(class) ')' } |
|
article:after { content: 'article' ' #' attr(id) ' (' attr(class) ')' } |
|
aside:after { content: 'aside' ' #' attr(id) ' (' attr(class) ')' } |
|
blockquote:after { content: 'blockquote' ' #' attr(id) ' (' attr(class) ')' } |
|
details:after { content: 'details' ' #' attr(id) ' (' attr(class) ')' } |
|
dialog:after { content: 'dialog' ' #' attr(id) ' (' attr(class) ')' } |
|
dd:after { content: 'dd' ' #' attr(id) ' (' attr(class) ')' } |
|
div:after { content: 'div' ' #' attr(id) ' (' attr(class) ')' } |
|
dl:after { content: 'dl' ' #' attr(id) ' (' attr(class) ')' } |
|
dt:after { content: 'dt' ' #' attr(id) ' (' attr(class) ')' } |
|
fieldset:after { content: 'fieldset' ' #' attr(id) ' (' attr(class) ')' } |
|
figcaption:after { content: 'figcaption' ' #' attr(id) ' (' attr(class) ')' } |
|
figure:after { content: 'figure' ' #' attr(id) ' (' attr(class) ')' } |
|
footer:after { content: 'footer' ' #' attr(id) ' (' attr(class) ')' } |
|
form:after { content: 'form' ' #' attr(id) ' (' attr(class) ')' } |
|
h1:after { content: 'h1' ' #' attr(id) ' (' attr(class) ')' } |
|
h2:after { content: 'h2' ' #' attr(id) ' (' attr(class) ')' } |
|
h3:after { content: 'h3' ' #' attr(id) ' (' attr(class) ')' } |
|
h4:after { content: 'h4' ' #' attr(id) ' (' attr(class) ')' } |
|
h5:after { content: 'h5' ' #' attr(id) ' (' attr(class) ')' } |
|
h6:after { content: 'h6' ' #' attr(id) ' (' attr(class) ')' } |
|
header:after { content: 'header' ' #' attr(id) ' (' attr(class) ')' } |
|
hgroup:after { content: 'hgroup' ' #' attr(id) ' (' attr(class) ')' } |
|
li:after { content: 'li' ' #' attr(id) ' (' attr(class) ')' } |
|
main:after { content: 'main' ' #' attr(id) ' (' attr(class) ')' } |
|
nav:after { content: 'nav' ' #' attr(id) ' (' attr(class) ')' } |
|
ol:after { content: 'ol' ' #' attr(id) ' (' attr(class) ')' } |
|
p:after { content: 'p' ' #' attr(id) ' (' attr(class) ')' } |
|
pre:after { content: 'pre' ' #' attr(id) ' (' attr(class) ')' } |
|
section:after { content: 'section' ' #' attr(id) ' (' attr(class) ')' } |
|
table:after { content: 'table' ' #' attr(id) ' (' attr(class) ')' } |
|
ul:after { content: 'ul' ' #' attr(id) ' (' attr(class) ')' } |
|
|
|
/* Inline Elements |
|
a, abbr, acronym, b, bdi, bdo, big, cite, code, data, datalist, del, dfn, em, i, img, input, ins, kbd, label, mark, meter, output, picture, progress, q, ruby, s, samp, slot, small, span, strong, sub, sup, time, u, tt, var, wbr |
|
*/ |
|
|
|
a, abbr, acronym, b, bdi, bdo, big, cite, code, data, datalist, del, dfn, em, i, img, input, ins, kbd, label, mark, meter, output, picture, progress, q, ruby, s, samp, slot, small, span, strong, sub, sup, time, u, tt, var, wbr { |
|
display: inline-block; |
|
position: relative; |
|
padding: 5px; |
|
box-decoration-break: clone; |
|
} |
|
|
|
a:after, abbr:after, acronym:after, b:after, bdi:after, bdo:after, big:after, cite:after, code:after, data:after, datalist:after, del:after, dfn:after, em:after, i:after, img:after, input:after, ins:after, kbd:after, label:after, mark:after, meter:after, output:after, picture:after, progress:after, q:after, ruby:after, s:after, samp:after, slot:after, small:after, span:after, strong:after, sub:after, sup:after, time:after, u:after, tt:after, var:after, wbr:after { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
padding: 2px 5px; |
|
background-color: rgba(0,0,0,.5); |
|
text-transform: uppercase; |
|
font: bold 6px/1.8 "Open Sans", sans-serif; |
|
} |
|
|
|
a:after { content: 'a' } |
|
abbr:after { content: 'abbr' } |
|
acronym:after { content: 'acronym' } |
|
b:after { content: 'b' } |
|
bdi:after { content: 'bdi' } |
|
bdo:after { content: 'bdo' } |
|
big:after { content: 'big' } |
|
cite:after { content: 'cite' } |
|
code:after { content: 'code' } |
|
data:after { content: 'data' } |
|
datalist:after { content: 'datalist' } |
|
del:after { content: 'del' } |
|
dfn:after { content: 'dfn' } |
|
em:after { content: 'em' } |
|
i:after { content: 'i' } |
|
img:after { content: 'img' } |
|
input:after { content: 'input' } |
|
ins:after { content: 'ins' } |
|
kbd:after { content: 'kbd' } |
|
label:after { content: 'label' } |
|
mark:after { content: 'mark' } |
|
meter:after { content: 'meter' } |
|
output:after { content: 'output' } |
|
picture:after { content: 'picture' } |
|
progress:after { content: 'progress' } |
|
q:after { content: 'q' } |
|
ruby:after { content: 'ruby' } |
|
s:after { content: 's' } |
|
samp:after { content: 'samp' } |
|
slot:after { content: 'slot' } |
|
small:after { content: 'small' } |
|
span:after { content: 'span' } |
|
strong:after { content: 'strong' } |
|
sub:after { content: 'sub' } |
|
sup:after { content: 'sup' } |
|
time:after { content: 'time' } |
|
u:after { content: 'u' } |
|
tt:after { content: 'tt' } |
|
var:after { content: 'var' } |
|
wbr:after { content: 'wbr' } |
|
|
|
/* Clean Up a Bit */ |
|
|
|
:first-child { |
|
margin-top: 0 !important; |
|
margin-left: 0 !important; |
|
} |
|
|
|
:last-child { |
|
margin-bottom: 0 !important; |
|
margin-right: 0 !important; |
|
} |