Skip to content

Instantly share code, notes, and snippets.

@pofigizm
Forked from anonymous/KwaVLy.markdown
Created January 7, 2015 20:17
Show Gist options
  • Save pofigizm/d387b4919c1ef3be17e6 to your computer and use it in GitHub Desktop.
Save pofigizm/d387b4919c1ef3be17e6 to your computer and use it in GitHub Desktop.
<html><body>
<div class="corner">
<p>Любую теорию можно согласовать с любым фактом, если принять некоторые дополнительные допущения.</p>
<footer>
<a href="">— Хантер С. Томпсон</a>
</footer>
</div>
</body></html>
html, body {
margin: 0;
padding: 0;
background-color: rgb(42,113,113);
color: #333;
font-family: 'Lora', serif;
}
.corner {
display: block;
margin: 50px auto 0;
max-width: 320px;
padding: 40px;
position: relative;
font-style: italic;
background-color: white;
}
.corner p {
font-size: 1.5em;
margin: 0 0 1.0em;
}
.corner footer {
display: block;
text-align: right;
}
.corner footer a {
text-decoration: none;
color: #333;
}
/* make corner */
.corner {
background-color: transparent;
background-image:
linear-gradient(
to right,
transparent 21px,
white 21px,
white 51%,
transparent 51%),
linear-gradient(
to bottom,
transparent 21px,
white 21px,
white 51%,
transparent 51%),
linear-gradient(
to top,
transparent 21px,
white 21px,
white 51%,
transparent 51%),
linear-gradient(
to left,
transparent 21px,
white 21px,
white 51%,
transparent 51%);
}
.corner:after, .corner>footer:after,
.corner:before, .corner>footer:before
{
content:'';
position: absolute;
width: 80px;
height: 80px;
border: 20px solid #fff;
box-sizing: border-box;
border-radius: 50%;
z-index: 1;
}
.corner:after {
bottom: -40px;
right: -40px;
clip: rect(auto, 40px, 40px, auto);
}
.corner>footer:after {
top: -40px;
right: -40px;
clip: rect(40px, 40px, auto, auto);
}
.corner:before {
bottom: -40px;
left: -40px;
clip: rect(auto, auto, 40px, 40px);
}
.corner>footer:before {
top: -40px;
left: -40px;
clip: rect(40px, auto, auto, 40px);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment