UNPKG

@yalamber/react-fb-image-grid

Version:

A beautifully featured image grid library for React which represents the images just like the facebook grid images with the count for extra as well

100 lines (84 loc) 1.59 kB
/* Images Component CSS */ .grid-container { text-align: center; margin: auto; width: 100%; padding: 10px; } .grid-container .container { padding-left: 0; padding-right: 0; width: 100% !important; } .grid-container .container * { margin: 0; padding: 0; cursor: pointer; } .grid-container .col-md-4 { width: 33.33333333%; } .grid-container .border { border: 2px solid white; border-radius: 6px; } .grid-container .background { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; } .grid-container .height-one { width: 100%; padding-top: 100%; } .grid-container .height-two { width: 50%; padding-top: 50%; } .grid-container .height-three { width: 33.3333%; padding-top: 33.3333%; } .grid-container .cover { background-color: #222; opacity: 0.5; position: absolute; right: 0; top: 0; left: 0; bottom: 0; border-radius: 6px; } .grid-container .cover-text { right: 0; left: 0; bottom: 0; color: white; font-size: 7%; position: absolute; top: 50%; -webkit-transform: translate(0%, -50%); -ms-transform: translate(0%, -50%); transform: translate(0%, -50%); text-align: center; } .grid-container .cover-text > p { margin: 0; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .grid-container .slide { height: 0; bottom: 100%; overflow: hidden; font-size: 3%; } .grid-container .border:hover .slide { bottom: 0; height: auto; } .grid-container .border:hover .animate-text { top: 62%; }