Created
May 31, 2013 15:38
-
-
Save gcyrillus/5685845 to your computer and use it in GitHub Desktop.
rgba color, used as filter
This file contains hidden or 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
/* rgba color, used as filter */ | |
html { | |
background:green; | |
background-image :repeating-linear-gradient(0deg,turquoise 0,transparent, transparent 20px); | |
height:100%; | |
width:100%; | |
color:rgba(255,255,255,0.5); | |
display:table; | |
} | |
body { | |
min-height:100%; | |
display:table-cell; | |
vertical-align:middle; | |
text-shadow:1px 1px 1px blue; | |
font-size:20px; | |
font-family:cursive; | |
background-color:rgba(100,10,0,0.3); | |
background-image: | |
linear-gradient( 45deg,transparent 48% , rgba(150,100,0,0.5) 48% ,rgba(150,100,0,0.5) 52% , transparent 52%), | |
url(http://lorempixel.com/500/500/food/4), | |
linear-gradient(-45deg,transparent 48% , rgba(150,100,0,0.5) 48% ,rgba(150,100,0,0.5) 52% , transparent 52%) | |
; | |
background-size: | |
100%, | |
auto, | |
100% | |
; | |
background-position: | |
center, | |
center, | |
center | |
; | |
background-repeat: | |
no-repeat, | |
no-repeat, | |
no-repeat | |
; | |
} | |
p { | |
width:488px; | |
height:488px; | |
margin:auto; | |
padding:5px; | |
border:solid 30px; | |
border-radius:5px; | |
box-shadow: | |
0 0 0 1px #333, | |
0 0 5px gold, | |
inset 2px 2px 20px black | |
; | |
} | |
p:first-letter { | |
font-size:7.5em; | |
color:rgba(255,255,255,0.3); | |
float:left; | |
text-shadow: | |
2px 2px rgba(50,100,250,0.8), | |
370px 370px 0px rgba(50,100,250,0.3), | |
000px 370px 0px rgba(50,100,250,0.3), | |
370px 000px 0px rgba(50,100,250,0.3), | |
190px 190px 0px rgba(50,100,250,0.5) | |
; | |
font-weight:bold; | |
padding:0 1px; | |
vertical-align:top; | |
line-height:0.8em; | |
} | |
p:hover:before {content:'X';} |
This file contains hidden or 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
<p>Opacity habitant morbi tristique senectus et netus et malesuada fames ac | |
turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor | |
sit amet, ante. Donec eu libero sit amet quam egestas semper. | |
Aenean ultricies mi vitae est. Mauris placerat eleifend leo. | |
Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, | |
condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, | |
elit eget tincidunt condimentum, eros ipsum rutrum orci, | |
sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. | |
Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, | |
eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, | |
accumsan porttitor, facilisis luctus, metus</p> |
This file contains hidden or 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
// alert('Hello world!'); |
This file contains hidden or 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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment