UNPKG

jquery-gray

Version:

Make an image grayscale in all browsers.

187 lines (155 loc) 2.42 kB
* { box-sizing: border-box } body { font-family: 'Open Sans', sans-serif; text-align: center; padding: 40px 0; } h1 { color: #bbb; } h1 small { font-size: 60%; display: block; } h2 { display: none; } h3 { font-size: 14px; text-align: left; background: #aaa; margin: 20px 0 25px; padding: 8px 10px; border-radius: 4px; } h3, h3 a { color: #fff; text-decoration: none; } h3 a:hover:before { content: '#'; font-size: 20px; color: #aaa; position: absolute; margin-left: -30px; margin-top: -4px; } .container { width: 80%; max-width: 500px; margin: 0 auto; } .row:before, .row:after { content: " "; display: table; } .row:after { clear: both; } .row { *zoom: 1; } h3 + .col-half, h3 + .col-half + .col-half { position: relative; height: 120px; top: 25px; } h3 + .col-half { padding-bottom: 80px; } pre { margin-top: 20px; display: inline-block; background-color: #f3f3f3; color: #888; border: 1px solid #ddd; font-size: 12px; line-height: 20px; overflow: auto; padding: 6px 10px; border-radius: 3px; text-align: left; max-width: 90%; } code { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } *[data-label]:before { content: attr(data-label); font-size: 15px; color: #999; display: block; position: absolute; text-align: center; top: -25px; width: 100%; } .github-iframe { margin-bottom: -9px; } .tweet, .tweet > div > div { display: inline-block } .tweet { text-decoration: none; color: #fff; margin-left: 1em; } .tweet > div { border-radius: 5px; transition: 25ms ease-out; padding: 4px 8px; background-color: #55acee; border-color: #55acee; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; } .tweet > div:hover, .tweet > div:active { background-color: #2795e9; border-color: #2795e9; } .tweet > div > div { fill: #fff; stroke: none; } .tweet svg { margin-top: -4px; width: 1em; height: 1em; vertical-align: middle; } @media (min-width: 481px) { body { padding-top: 0; } h1 small { display: inline; } h2 { display: block; } h3 + .col-half, h3 + .col-half + .col-half { height: 77px; top: 0; } h3 + .col-half { padding-bottom: 0; } .container { max-width: 740px; } *[data-label]:before { content: none; } .col-half { float: left; width: 50%; } }