Created
February 12, 2013 10:03
-
-
Save aurelkurtula/4761321 to your computer and use it in GitHub Desktop.
Random CSS snippets from css-tricks css page
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
/* Random CSS snippets from css-tricks css page */ | |
@media screen | |
{ | |
*,*:after,*:before{ | |
-webkit-box-sizing:border-box; | |
-moz-box-sizing:border-box; | |
box-sizing:border-box; | |
} | |
} | |
[data-icon]:before{ | |
content:attr(data-icon); | |
text-transform:none; | |
margin-right:3px; | |
position:relative; | |
top:3px; | |
font:400 !important 30px/0 'Entypo'; | |
} | |
body | |
{ color:#333; | |
font:16px/1.4 'Whitney SSm A','Whitney SSm B',"ff-meta-web-pro",sans-serif; } | |
button,html input[type="button"],input[type="reset"],input[type="submit"] | |
{ -webkit-appearance:button; | |
cursor:pointer; } | |
button[disabled],input[disabled] | |
{ cursor:default; } | |
input[type="checkbox"],input[type="radio"] | |
{ padding:0; } | |
input[type="search"] | |
{ -webkit-appearance:textfield; } | |
input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration | |
{ -webkit-appearance:none; } | |
button::-moz-focus-inner,input::-moz-focus-inner | |
{ border:0; | |
padding:0; } | |
input[type='search'],input[type='url'],input[type='email'],input[type='text'],input[type='password'],textarea | |
{ border:0; | |
border-radius:0; | |
box-shadow:0; | |
border-top:6px solid #eee; | |
border-left:6px solid #ccc; | |
font-family:'Whitney SSm A','Whitney SSm B',"ff-meta-web-pro",sans-serif; | |
padding:6px 0 6px 6px; | |
outline:0; | |
word-break:normal; | |
-webkit-appearance:none; } | |
figure figcaption | |
{ margin-top:10px; | |
font-style:italic; | |
color:#444; } | |
figure img | |
{ display:block; | |
margin:0 auto; } | |
img | |
{ max-width:100%; | |
height:auto !important; } | |
.module-lodge | |
{ padding-top:35px !important; | |
background:url(images/lodge-widget-bg.jpg); | |
-webkit-background-size:cover; | |
-moz-background-size:cover; | |
-o-background-size:cover; | |
background-size:cover; } | |
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
<!-- content to be placed inside <body>…</body> --> |
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
// alert('Hello world!'); |
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
{"view":"separate","fontsize":"120","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment