infographic.css
infographic.css — CSS stylesheet, 2 KB (2104 bytes)
File contents
/* ------------------------------------------------------------------------------ Masonary text over image grid */ .masonry { column-count: 3; margin: 0; padding: 0; -moz-column-gap: .5em; -webkit-column-gap: .5em; column-gap: .5em; margin-bottom: -5px } .m-item { display: inline-block; width: 100%; height: auto; position:relative; clear:none; margin-bottom: 0px; padding-bottom: 0px; border: 1px red; margin-bottom: 5px; overflow: hidden } .m-item img { width: 100%; position:relative; z-index:auto; margin-bottom: 0px; display: block; } #content-body .m-item p { font-size: 30px; font-weight: 200; letter-spacing: -.03em; line-height: .9; color: #000; text-transform: capitalize; text-shadow: none; display:block; position:relative; width:auto%; text-align:left; padding: 10px 20px 10px 10px; margin: 0px; z-index:auto; bottom: auto; background: none; } .largenum { color: #ad0000; font-size: 60px; font-weight: 700; letter-spacing: -.03em; line-height: .9; white-space: pre; } #content-body .m-item p span.smallnum { color: #ad0000; font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: .9; float: left; margin-right: 10px } @media all and (max-width: 379px) { .image-left {float: none; margin: 0;} } @media all and (max-width: 399px) { .masonry { -moz-column-count: 1; -webkit-column-count: 1; column-count: 1; } #gallery {padding: 0em 0em;} #gallery h2, #gallery h3, .discreet {padding: 20px 15px 20px 15px; margin: 0px;} } @media all and (min-width: 400px) and (max-width: 769px) { .masonry { -moz-column-count: 2; -webkit-column-count: 2; column-count: 2; } #gallery {padding: 0em .5em;} } @media all and (min-width: 770px) { .masonry { -moz-column-count: 3; -webkit-column-count: 3; column-count: 3; } }