A Pen by Captain Anonymous on CodePen.
Created
January 7, 2015 20:16
-
-
Save anonymous/36c00d22fa589f3f225c to your computer and use it in GitHub Desktop.
KwaVLy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><body> | |
<div class="corner"> | |
<p>Любую теорию можно согласовать с любым фактом, если принять некоторые дополнительные допущения.</p> | |
<footer> | |
<a href="">— Хантер С. Томпсон</a> | |
</footer> | |
</div> | |
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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