public
Created — forked from LeaVerou/dabblet.css

TV screen

  • Download Gist
dabblet.css
CSS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
/**
* TV screen
*/
 
html { background: white; }
 
.tv {
position: relative;
width: 200px;
height: 150px;
margin: 100px auto 0;
background: black;
border-radius: 50% / 10%;
color: white;
font:bold 300%/3.2 sans-serif;
text-align: center;
text-indent: .1em;
}
 
.tv:before {
content: '';
display: block;
position: absolute;
top: 10%; bottom: 10%;
right: -5%; left: -5%;
z-index: -1;
background: inherit;
border-radius: 5% / 50%;
}
dabblet.html
HTML
1
<div class="tv">13.3"</div>
settings.json
JSON
1
{"view":"split-vertical","prefixfree":"1","page":"css"}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.