flexbox.css

CSS stylesheet icon same-height-rows.css — CSS stylesheet, 1 KB (1020 bytes)

File contents

* {box-sizing: border-box;} 

.grid {
    display: flex;
    flex-wrap: wrap;
}

.grid-item {
    display: flex; 
    width: 100%;
    border: 0px solid #ccc;
    margin: 0px;
}

.grid img {
    width: 100%;
}

/* adjusting default h2 and p margins */
#content-body h2 {margin-top: 0px} 
#content-body p {margin-bottom: .5em;}

.grid-content {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    padding-right: 1.5em;
    padding-left: 1.5em;
    width: 100%;
}

.grid h2 {
    margin-top: 2em;
    margin-bottom: 0em;
    font-family: 'Open Sans', sans-serif;
}

.grid-content p {
    flex: 1 0 auto;
    margin-top: .4em;
    font-family: 'Open Sans', sans-serif;
}

@media all and (min-width: 0em) {
  .grid-item {margin-right: 0px; padding-right: 0em;}
}

@media all and (min-width: 40em) {
  .grid-item {width: 50%; margin-right: 0px}
}

@media all and (min-width: 60em) {
  .grid-item {width: 33.333%; margin-right: 0px}
}