Created
October 6, 2015 17:56
-
-
Save arlipman/d74fe2f251de40702f0b to your computer and use it in GitHub Desktop.
Complexcss
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
| body {margin:0px;} | |
| div#container {width:100%; margin: 0 auto;box-sizing:border-box;} | |
| a.link-item {position: relative; display:block; text-decoration:none; overflow: hidden;box-sizing:border-box;padding:30px 0px;border-bottom: 1px solid #EAEAEA;} | |
| a.link-item div {overflow:hidden;box-sizing:border-box;} | |
| a.link-item span { display:block;text-align: left;box-sizing:border-box;} | |
| a.link-item div:first-child { | |
| position: relative; | |
| } | |
| span.link-image { | |
| float: left; | |
| width:40%; | |
| max-width:280px; | |
| padding-right: 12px; | |
| min-width: 252px; | |
| } | |
| span.link-image img { | |
| display: block; | |
| width: 100%; | |
| height: auto; | |
| position:relative; | |
| max-width:260px; | |
| } | |
| span.link-image:after { | |
| display:block; | |
| content:"Sponsored"; | |
| text-transform: uppercase; | |
| background: #FFF; | |
| color: #898989; | |
| height: 26px; | |
| line-height: 26px; | |
| padding: 0px 10px; | |
| font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; | |
| letter-spacing: 2px; | |
| font-size: 10px; | |
| position: absolute; | |
| left: 10px; | |
| bottom:10px; | |
| z-index: 10; | |
| } | |
| span.link-image:hover { | |
| opacity: 0.75 !important; | |
| } | |
| span.link-text { | |
| color: #333; | |
| text-decoration: none; | |
| cursor: pointer; | |
| font-family: 'Economica', sans-serif; | |
| font-size: 30px; | |
| line-height:32px; | |
| font-weight:bold; | |
| letter-spacing: -0.8px; | |
| padding-left:8px; | |
| } | |
| span.link-text:hover { | |
| color: #000000 !important; | |
| } | |
| span.link-sponsor :after { | |
| display:block; | |
| content:"Brought To You By"; | |
| float: left; | |
| position: absolute; | |
| bottom:0px; | |
| left: 260px; | |
| color: #999; | |
| font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; | |
| font-size: 10px; | |
| line-height: 15px; | |
| } | |
| @media only screen and (max-width:520px) { | |
| span.link-image { | |
| width: 100%; | |
| max-width:100%; | |
| position:relative; | |
| } | |
| span.link-image img { | |
| width: 100%; | |
| max-width:100%; | |
| height: 100%; | |
| } | |
| span.link-image:after { | |
| top: 90%; | |
| } | |
| span.link-text { | |
| padding-top:10px; | |
| padding-left: 0px; | |
| } | |
| span.link-sponsor { | |
| position:static; | |
| padding-top:10px; | |
| padding-left: 0px; | |
| } | |
| } | |
| @media only screen and (min-width:655px) { | |
| span.link-sponsor { | |
| padding-left:20px; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment