Skip to content

Instantly share code, notes, and snippets.

@alexeyten
Created April 7, 2017 13:24
Show Gist options
  • Save alexeyten/3bdad43b7d929b11a15076f7c09ddc3c to your computer and use it in GitHub Desktop.
Save alexeyten/3bdad43b7d929b11a15076f7c09ddc3c to your computer and use it in GitHub Desktop.
Привет «дизайнерам»!
/**
* Привет «дизайнерам»!
*/
html {
color: black;
background: white;
}
.opacity {
opacity: 0.5;
}
.overlay {
position: relative;
}
.overlay::before {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: hsla(0, 0%, 100%, .5);
pointer-events: none;
}
<p class="opacity">Это серый текст</p>
<p class="overlay">Это тоже серый текст</p>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"90","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment