responsive-image-grid
Version:
Image-Grid: a pure css lightweight, responsive and mobile friendly image-grid
1,075 lines • 17.5 kB
CSS
/*! normalize.css v4.2.0 | MIT License | github.com/necolas/normalize.css */
/**
* 1. Change the default font family in all browsers (opinionated).
* 2. Correct the line height in all browsers.
* 3. Prevent adjustments of font size after orientation changes in IE and iOS.
*/
html {
font-family: sans-serif;
/* 1 */
line-height: 1.15;
/* 3 */
-webkit-text-size-adjust: 100%;
/* 2 */
-ms-text-size-adjust: 100%;
/* 3 */
}
/**
* Remove the margin in all browsers (opinionated).
*/
body {
margin: 0;
}
/* HTML5 display definitions
========================================================================== */
/**
* Add the correct display in IE 9-.
* 1. Add the correct display in Edge, IE, and Firefox.
* 2. Add the correct display in IE.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
/* 1 */
display: block;
}
/**
* Add the correct display in IE 9-.
*/
audio,
canvas,
progress,
video {
display: inline-block;
}
/**
* Add the correct display in iOS 4-7.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Add the correct display in IE 10-.
* 1. Add the correct display in IE.
*/
template,
[hidden] {
display: none;
}
/* Links
========================================================================== */
/**
* 1. Remove the gray background on active links in IE 10.
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
*/
a {
background-color: transparent;
/* 1 */
-webkit-text-decoration-skip: objects;
/* 2 */
}
/**
* Remove the outline on focused links when they are also active or hovered
* in all browsers (opinionated).
*/
a:active,
a:hover {
outline-width: 0;
}
/* Text-level semantics
========================================================================== */
/**
* 1. Remove the bottom border in Firefox 39-.
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none;
/* 2 */
text-decoration: underline dotted;
/* 1 */
text-decoration: underline;
/* 2 */
}
/**
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
*/
b,
strong {
font-weight: inherit;
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* Add the correct font style in Android 4.3-.
*/
dfn {
font-style: italic;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: .67em 0;
}
/**
* Add the correct background and color in IE 9-.
*/
mark {
background-color: #ff0;
color: #000;
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -.25em;
}
sup {
top: -.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10-.
*/
img {
border-style: none;
}
/**
* Hide the overflow in IE.
*/
svg:not(:root) {
overflow: hidden;
}
/* Grouping content
========================================================================== */
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
/* 1 */
font-size: 1em;
/* 2 */
}
/**
* Add the correct margin in IE 8.
*/
figure {
margin: 1em 40px;
}
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box;
/* 1 */
height: 0;
/* 1 */
overflow: visible;
/* 2 */
}
/* Forms
========================================================================== */
/**
* 1. Change font properties to `inherit` in all browsers (opinionated).
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font: inherit;
/* 1 */
margin: 0;
/* 2 */
}
/**
* Restore the font weight unset by the previous rule.
*/
optgroup {
font-weight: bold;
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input {
/* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select {
/* 1 */
text-transform: none;
}
/**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
* controls in Android 4.
* 2. Correct the inability to style clickable types in iOS and Safari.
*/
button,
html [type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
/* 2 */
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Change the border, margin, and padding in all browsers (opinionated).
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: .35em .625em .75em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box;
/* 1 */
color: inherit;
/* 2 */
display: table;
/* 1 */
max-width: 100%;
/* 1 */
padding: 0;
/* 3 */
white-space: normal;
/* 1 */
}
/**
* Remove the default vertical scrollbar in IE.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10-.
* 2. Remove the padding in IE 10-.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
/* 1 */
padding: 0;
/* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield;
/* 1 */
outline-offset: -2px;
/* 2 */
}
/**
* Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
*/
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Correct the text style of placeholders in Chrome, Edge, and Safari.
*/
::-webkit-input-placeholder {
color: inherit;
opacity: .54;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button;
/* 1 */
font: inherit;
/* 2 */
}
*,
*::before,
*::after {
box-sizing: inherit;
}
html {
box-sizing: border-box;
font-size: 10px;
line-height: 1.42857143;
-webkit-tap-highlight-color: transparent;
}
body {
font-size: 1.4rem;
overflow-x: hidden;
}
[disabled],
.disabled {
cursor: default;
opacity: .75;
pointer-events: none;
}
.img-responsive {
display: block;
height: auto;
max-width: 100%;
}
.video-responsive {
height: 0;
overflow: hidden;
padding-bottom: 56.25%;
/* Default 16:9, you can calculate this value by dividing 9 by 16 */
padding-top: 3rem;
position: relative;
}
.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
.video-responsive video {
height: auto;
max-width: 100%;
width: 100%;
}
.video-responsive-4-3 {
padding-bottom: 75%;
/* 4:3 */
}
.container {
margin-left: auto;
margin-right: auto;
padding-left: 0rem;
padding-right: 0rem;
width: 100%;
}
@media screen and (min-width: 960px) {
.grid-960 {
width: 96rem;
}
}
@media screen and (min-width: 480px) {
.grid-480 {
width: 48rem;
}
}
.img-pad {
padding: 1rem;
}
.digital .img-pad-half {
padding-top: .6rem;
}
.digital .img-pad-third {
padding-top: .5rem;
}
.digital .img-pad-fourth {
padding-top: .45rem;
}
.digital .img-pad-sixth {
padding-top: .25rem;
}
.digital .img-pad-eigth {
padding-top: .125rem;
}
.analog .img-pad-half,
.sqare .img-pad-half {
padding-top: .5rem;
}
.analog .img-pad-third,
.sqare .img-pad-third {
padding-top: .333334rem;
}
.analog .img-pad-fourth,
.sqare .img-pad-fourth {
padding-top: .25rem;
}
.analog .img-pad-sixth,
.sqare .img-pad-sixth {
padding-top: .15151515rem;
}
.analog .img-pad-eigth,
.sqare .img-pad-eigth {
padding-top: .125rem;
}
.columns {
display: flex;
display: -ms-flexbox;
margin-left: 0rem;
margin-right: 0rem;
overflow: auto;
}
.columns.col-gapless {
margin-left: 0;
margin-right: 0;
}
.columns.col-gapless .column {
padding-left: 0;
padding-right: 0;
}
.columns.col-multiline {
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.column {
-ms-flex: 1;
flex: 1;
float: left;
padding: 0rem;
}
.column.col-12,
.column.col-11,
.column.col-10,
.column.col-9,
.column.col-8,
.column.col-7,
.column.col-6,
.column.col-5,
.column.col-4,
.column.col-3,
.column.col-2,
.column.col-1 {
-ms-flex: none;
flex: none;
}
.col-12 {
width: 100%;
}
.col-11 {
width: 91.66666667%;
}
.col-10 {
width: 83.33333333%;
}
.col-9 {
width: 75%;
}
.col-8 {
width: 66.66666667%;
}
.col-7 {
width: 58.33333333%;
}
.col-6 {
width: 50%;
}
.col-5 {
width: 41.66666667%;
}
.col-4 {
width: 33.33333333%;
}
.col-3 {
width: 25%;
}
.col-2 {
width: 16.66666667%;
}
.col-1 {
width: 8.33333333%;
}
@media screen and (min-width: 481px) {
.col-xs-12,
.col-xs-11,
.col-xs-10,
.col-xs-9,
.col-xs-8,
.col-xs-7,
.col-xs-6,
.col-xs-5,
.col-xs-4,
.col-xs-3,
.col-xs-2,
.col-xs-1 {
-ms-flex: none;
flex: none;
}
.col-xs-12 {
width: 100%;
}
.col-xs-11 {
width: 91.66%;
}
.col-xs-10 {
width: 83.33%;
}
.col-xs-9 {
width: 75%;
}
.col-xs-8 {
width: 66.66%;
}
.col-xs-7 {
width: 58.33%;
}
.col-xs-6 {
width: 50%;
}
.col-xs-5 {
width: 41.66%;
}
.col-xs-4 {
width: 33.33%;
}
.col-xs-3 {
width: 25%;
}
.col-xs-2 {
width: 16.66%;
}
.col-xs-1 {
width: 8.33%;
}
}
@media screen and (min-width: 601px) {
.col-sm-12,
.col-sm-11,
.col-sm-10,
.col-sm-9,
.col-sm-8,
.col-sm-7,
.col-sm-6,
.col-sm-5,
.col-sm-4,
.col-sm-3,
.col-sm-2,
.col-sm-1 {
-ms-flex: none;
flex: none;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
.col-sm-10 {
width: 83.33333333%;
}
.col-sm-9 {
width: 75%;
}
.col-sm-8 {
width: 66.66666667%;
}
.col-sm-7 {
width: 58.33333333%;
}
.col-sm-6 {
width: 50%;
}
.col-sm-5 {
width: 41.66666667%;
}
.col-sm-4 {
width: 33.33333333%;
}
.col-sm-3 {
width: 25%;
}
.col-sm-2 {
width: 16.66666667%;
}
.col-sm-1 {
width: 8.33333333%;
}
}
@media screen and (min-width: 841px) {
.col-md-12,
.col-md-11,
.col-md-10,
.col-md-9,
.col-md-8,
.col-md-7,
.col-md-6,
.col-md-5,
.col-md-4,
.col-md-3,
.col-md-2,
.col-md-1 {
-ms-flex: none;
flex: none;
}
.col-md-12 {
width: 100%;
}
.col-md-11 {
width: 91.66666667%;
}
.col-md-10 {
width: 83.33333333%;
}
.col-md-9 {
width: 75%;
}
.col-md-8 {
width: 66.66666667%;
}
.col-md-7 {
width: 58.33333333%;
}
.col-md-6 {
width: 50%;
}
.col-md-5 {
width: 41.66666667%;
}
.col-md-4 {
width: 33.33333333%;
}
.col-md-3 {
width: 25%;
}
.col-md-2 {
width: 16.66666667%;
}
.col-md-1 {
width: 8.33333333%;
}
}
@media screen and (min-width: 961px) {
.col-lg-12,
.col-lg-11,
.col-lg-10,
.col-lg-9,
.col-lg-8,
.col-lg-7,
.col-lg-6,
.col-lg-5,
.col-lg-4,
.col-lg-3,
.col-lg-2,
.col-lg-1 {
-ms-flex: none;
flex: none;
}
.col-lg-12 {
width: 100%;
}
.col-lg-11 {
width: 91.66666667%;
}
.col-lg-10 {
width: 83.33333333%;
}
.col-lg-9 {
width: 75%;
}
.col-lg-8 {
width: 66.66666667%;
}
.col-lg-7 {
width: 58.33333333%;
}
.col-lg-6 {
width: 50%;
}
.col-lg-5 {
width: 41.66666667%;
}
.col-lg-4 {
width: 33.33333333%;
}
.col-lg-3 {
width: 25%;
}
.col-lg-2 {
width: 16.66666667%;
}
.col-lg-1 {
width: 8.33333333%;
}
}
@media screen and (min-width: 1281px) {
.col-xl-12,
.col-xl-11,
.col-xl-10,
.col-xl-9,
.col-xl-8,
.col-xl-7,
.col-xl-6,
.col-xl-5,
.col-xl-4,
.col-xl-3,
.col-xl-2,
.col-xl-1 {
-ms-flex: none;
flex: none;
}
.col-xl-12 {
width: 100%;
}
.col-xl-11 {
width: 91.66666667%;
}
.col-xl-10 {
width: 83.33333333%;
}
.col-xl-9 {
width: 75%;
}
.col-xl-8 {
width: 66.66666667%;
}
.col-xl-7 {
width: 58.33333333%;
}
.col-xl-6 {
width: 50%;
}
.col-xl-5 {
width: 41.66666667%;
}
.col-xl-4 {
width: 33.33333333%;
}
.col-xl-3 {
width: 25%;
}
.col-xl-2 {
width: 16.66666667%;
}
.col-xl-1 {
width: 8.33333333%;
}
}
@media screen and (min-width: 841px) {
.form-horizontal {
padding: 1rem;
}
.form-horizontal .form-group {
display: flex;
display: -ms-flexbox;
}
.form-horizontal .form-label {
margin-bottom: 0;
padding: .8rem .4rem;
}
.form-horizontal .form-checkbox,
.form-horizontal .form-radio {
margin: .5rem 0;
}
}
@media screen and (max-width: 480px) {
.columns {
display: block;
}
.columns .column {
width: 100%;
}
}
@media screen and (max-width: 480px) {
.hide-xs {
display: none ;
}
}
@media screen and (max-width: 600px) {
.hide-sm {
display: none ;
}
}
@media screen and (max-width: 840px) {
.hide-md {
display: none ;
}
}
@media screen and (max-width: 960px) {
.hide-lg {
display: none ;
}
}
@media screen and (max-width: 1280px) {
.hide-xl {
display: none ;
}
}
.empty {
border-radius: .3rem;
padding: 0rem;
text-align: center;
}
.empty .empty-title {
font-size: 1.8rem;
margin: 1.5rem 0 .5rem 0;
}
.empty .empty-action {
margin-top: 1.5rem;
}
.clearfix::after,
.container::after {
clear: both;
content: "";
display: table;
}
.float-left {
float: left ;
}
.float-right {
float: right ;
}
.rel {
position: relative;
}
.abs {
position: absolute;
}
.fixed {
position: fixed;
}
.centered {
display: block;
float: none;
margin-left: auto;
margin-right: auto;
}
.mt-10 {
margin-top: 1rem;
}
.mr-10 {
margin-right: 1rem;
}
.mb-10 {
margin-bottom: 1rem;
}
.ml-10 {
margin-left: 1rem;
}
.mt-5 {
margin-top: .5rem;
}
.mr-5 {
margin-right: .5rem;
}
.mb-5 {
margin-bottom: .5rem;
}
.ml-5 {
margin-left: .5rem;
}
.pt-10 {
padding-top: 1rem;
}
.pr-10 {
padding-right: 1rem;
}
.pb-10 {
padding-bottom: 1rem;
}
.pl-10 {
padding-left: 1rem;
}
.pt-5 {
padding-top: .5rem;
}
.pr-5 {
padding-right: .5rem;
}
.pb-5 {
padding-bottom: .5rem;
}
.pl-5 {
padding-left: .5rem;
}
.block {
display: block;
}
.inline {
display: inline;
}
.inline-block {
display: inline-block;
}
.flex {
display: flex;
display: -ms-flexbox;
}
.inline-flex {
display: inline-flex;
display: -ms-inline-flexbox;
}
.hide {
display: none ;
}
.visible {
visibility: visible;
}
.invisible {
visibility: hidden;
}
.text-hide {
background: transparent;
border: 0;
color: transparent;
font: 0/0 a;
text-shadow: none;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-center {
text-align: center;
}
.text-justify {
text-align: justify;
}
.text-lowercase {
text-transform: lowercase;
}
.text-uppercase {
text-transform: uppercase;
}
.text-capitalize {
text-transform: capitalize;
}
.text-normal {
font-weight: normal;
}
.text-bold {
font-weight: bold;
}
.text-italic {
font-style: italic;
}
.text-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.text-clip {
overflow: hidden;
text-overflow: clip;
white-space: nowrap;
}
.text-break {
-webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
word-break: break-word;
word-wrap: break-word;
}
.hand {
cursor: pointer;
}
.shadow {
box-shadow: 0 .1rem .4rem rgba(0, 0, 0, .3);
}
.light-shadow {
box-shadow: 0 .1rem .2rem rgba(0, 0, 0, .15);
}
.rounded {
border-radius: .3rem;
}
.circle {
border-radius: 50%;
}
.divider {
display: block;
margin: .5rem;
}
.loading {
color: transparent ;
min-height: 1.6rem;
pointer-events: none;
position: relative;
}
.loading::after {
animation: loading 500ms infinite linear;
border-radius: .8rem;
border-right-color: transparent;
border-top-color: transparent;
content: "";
display: block;
height: 1.6rem;
left: 50%;
margin-left: -.8rem;
margin-top: -.8rem;
position: absolute;
top: 50%;
width: 1.6rem;
}