dress-css
Version:
CSS helper mobile library
366 lines (338 loc) • 5.6 kB
CSS
/*
* Title: Tinygrid css 2.0.2
* Autor: eladolo@chakstudio.com
* License: MIT
* Description: responsive grid css system build with flex
*/
/*
*grid
*/
.tg-container {
width: 95%;
margin: auto;
padding: 10px;
}
.tg-row {
display: flex;
flex-flow: row wrap;
justify-content: flex-start;
align-items: stretch;
align-content: stretch;
margin: auto;
padding: 10px;
}
/*
*grid justify
*/
.tg-justify-flex-start {
justify-content: flex-start ;
}
.tg-justify-flex-end {
justify-content: flex-end ;
}
.tg-justify-center {
justify-content: center ;
}
/*
*grid align
*/
.tg-align-flex-start {
align-items: flex-start ;
}
.tg-align-flex-end {
align-items: flex-end ;
}
.tg-align-center {
align-items: center ;
}
.tg-align-stretch {
align-items: stretch ;
}
.tg-align-baseline {
align-items: baseline ;
}
/*
*grid align-content
*/
.tg-align-content-flex-start {
align-content: flex-start ;
}
.tg-align-content-flex-end {
align-content: flex-end ;
}
.tg-align-content-center {
align-content: center ;
}
.tg-align-content-stretch {
align-content: stretch ;
}
.tg-align-content-space-between {
align-content: space-between ;
}
.tg-align-content-space-around {
align-content: space-around ;
}
/*
*grid cols 12
*/
.tg-col-12 {
width: 100%;
}
.tg-col-11 {
width: 91.63%;
}
.tg-col-10 {
width: 83.3%;
}
.tg-col-9 {
width: 74.97%;
}
.tg-col-8 {
width: 66.64%;
}
.tg-col-7 {
width: 58.31%;
}
.tg-col-6 {
width: 49.98%;
}
.tg-col-5 {
width: 41.65%;
}
.tg-col-4 {
width: 33.32%;
}
.tg-col-3 {
width: 24.99%;
}
.tg-col-2 {
width: 16.66%;
}
.tg-col-1 {
width: 8.33%;
}
/*
* lg/none prefix
*/
@media screen and (min-width: 1025px) {
.lg-hide {
display: none;
}
.lg-show {
display: initial;
}
}
/*
* md prefix
*/
@media screen and (max-width: 1024px) {
/*
*grid
*/
.tg-container {
justify-content: space-around;
}
/*
*grid justify
*/
.tg-justify-md-flex-start {
justify-content: flex-start ;
}
.tg-justify-md-flex-end {
justify-content: flex-end ;
}
.tg-justify-md-center {
justify-content: center ;
}
/*
*grid align
*/
.tg-align-md-flex-start {
align-items: flex-start ;
}
.tg-align-md-flex-end {
align-items: flex-end ;
}
.tg-align-md-center {
align-items: center ;
}
.tg-align-md-stretch {
align-items: stretch ;
}
.tg-align-md-baseline {
align-items: baseline ;
}
/*
*grid align-content
*/
.tg-align-content-md-flex-start {
align-content: flex-start ;
}
.tg-align-content-md-flex-end {
align-content: flex-end ;
}
.tg-align-content-md-center {
align-content: center ;
}
.tg-align-content-md-stretch {
align-content: stretch ;
}
.tg-align-content-md-space-between {
align-content: space-between ;
}
.tg-align-content-md-space-around {
align-content: space-around ;
}
/*
*grid cols 12
*/
.tg-col-md-12 {
width: 100%;
}
.tg-col-md-11 {
width: 91.63%;
}
.tg-col-md-10 {
width: 83.3%;
}
.tg-col-md-9 {
width: 74.97%;
}
.tg-col-md-8 {
width: 66.64%;
}
.tg-col-md-7 {
width: 58.31%;
}
.tg-col-md-6 {
width: 49.98%;
}
.tg-col-md-5 {
width: 41.65%;
}
.tg-col-md-4 {
width: 33.32%;
}
.tg-col-md-3 {
width: 24.99%;
}
.tg-col-md-2 {
width: 16.66%;
}
.tg-col-md-1 {
width: 8.33%;
}
.md-hide {
display: none;
}
.md-show {
display: initial;
}
}
/*
* sm prefix
*/
@media screen and (max-width: 500px) {
/*
*grid
*/
.tg-container {
justify-content: column;
}
/*
*grid justify
*/
.tg-justify-sm-flex-start {
justify-content: flex-start ;
}
.tg-justify-sm-flex-end {
justify-content: flex-end ;
}
.tg-justify-sm-center {
justify-content: center ;
}
/*
*grid align
*/
.tg-align-sm-flex-start {
align-items: flex-start ;
}
.tg-align-sm-flex-end {
align-items: flex-end ;
}
.tg-align-sm-center {
align-items: center ;
}
.tg-align-sm-stretch {
align-items: stretch ;
}
.tg-align-sm-baseline {
align-items: baseline ;
}
/*
*grid align-content
*/
.tg-align-content-sm-flex-start {
align-content: flex-start ;
}
.tg-align-content-sm-flex-end {
align-content: flex-end ;
}
.tg-align-content-sm-center {
align-content: center ;
}
.tg-align-content-sm-stretch {
align-content: stretch ;
}
.tg-align-content-sm-space-between {
align-content: space-between ;
}
.tg-align-content-sm-space-around {
align-content: space-around ;
}
/*
*grid cols 12
*/
.tg-col-sm-12 {
width: 100%;
}
.tg-col-sm-11 {
width: 91.63%;
}
.tg-col-sm-10 {
width: 83.3%;
}
.tg-col-sm-9 {
width: 74.97%;
}
.tg-col-sm-8 {
width: 66.64%;
}
.tg-col-sm-7 {
width: 58.31%;
}
.tg-col-sm-6 {
width: 49.98%;
}
.tg-col-sm-5 {
width: 41.65%;
}
.tg-col-sm-4 {
width: 33.32%;
}
.tg-col-sm-3 {
width: 24.99%;
}
.tg-col-sm-2 {
width: 16.66%;
}
.tg-col-sm-1 {
width: 8.33%;
}
.sm-hide {
display: none;
}
.sm-show {
display: initial;
}
}