-
-
Save lamsmallari/72f7e68e2bea46830c1f to your computer and use it in GitHub Desktop.
Custom CSS Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ========== grid layout ========== */ | |
.full-container { | |
width: 100%; | |
} | |
.fixed-container { | |
margin: 0 auto; | |
padding: 0 15px; | |
} | |
.column-container { | |
font-size: 0; | |
} | |
.column { | |
display: inline-block; | |
vertical-align: top; | |
padding: 0 15px; | |
font-size: 14px; | |
} | |
.column-no-padding { | |
display: inline-block; | |
vertical-align: top; | |
padding: 0; | |
font-size: 14px; | |
} | |
.xs-full { | |
width: 100%; | |
} | |
.xs-one-half { | |
width: 50%; | |
} | |
.xs-one-third { | |
width: 33.33333333%; | |
} | |
.xs-one-fourth { | |
width: 25%; | |
} | |
.xs-two-third { | |
width: 66.66666667%; | |
} | |
.xs-three-fourth { | |
width: 75%; | |
} | |
.xs-one-fifth { | |
width: 20%; | |
} | |
.xs-two-fifth { | |
width: 40%; | |
} | |
/* 544px in width */ | |
@media screen and (min-width: 34em) { | |
.fixed-container { | |
max-width: 34rem; | |
} | |
.sm-full { | |
width: 100%; | |
} | |
.sm-one-half { | |
width: 50%; | |
} | |
.sm-one-third { | |
width: 33.33333333%; | |
} | |
.sm-one-fourth { | |
width: 25%; | |
} | |
.sm-two-third { | |
width: 66.66666667%; | |
} | |
.sm-three-fourth { | |
width: 75%; | |
} | |
.sm-one-fifth { | |
width: 20%; | |
} | |
.sm-two-fifth { | |
width: 40%; | |
} | |
} | |
/* 768px in width */ | |
@media screen and (min-width: 48em) { | |
.fixed-container { | |
max-width: 45rem; | |
} | |
.md-full { | |
width: 100%; | |
} | |
.md-one-half { | |
width: 50%; | |
} | |
.md-one-third { | |
width: 33.33333333%; | |
} | |
.md-one-fourth { | |
width: 25%; | |
} | |
.md-two-third { | |
width: 66.66666667%; | |
} | |
.md-three-fourth { | |
width: 75%; | |
} | |
.md-one-fifth { | |
width: 20%; | |
} | |
.md-two-fifth { | |
width: 40%; | |
} | |
} | |
/* 992px in width */ | |
@media screen and (min-width: 62em) { | |
.fixed-container { | |
max-width: 60rem; | |
} | |
.lg-full { | |
width: 100%; | |
} | |
.lg-one-half { | |
width: 50%; | |
} | |
.lg-one-third { | |
width: 33.33333333%; | |
} | |
.lg-one-fourth { | |
width: 25%; | |
} | |
.lg-two-third { | |
width: 66.66666667%; | |
} | |
.lg-three-fourth { | |
width: 75%; | |
} | |
.lg-one-fifth { | |
width: 20%; | |
} | |
.lg-two-fifth { | |
width: 40%; | |
} | |
} | |
/* 1200px in width */ | |
@media screen and (min-width: 75em) { | |
.fixed-container { | |
max-width: 72.25rem; | |
} | |
.xl-full { | |
width: 100%; | |
} | |
.xl-one-half { | |
width: 50%; | |
} | |
.xl-one-third { | |
width: 33.33333333%; | |
} | |
.xl-one-fourth { | |
width: 25%; | |
} | |
.xl-two-third { | |
width: 66.66666667%; | |
} | |
.xl-three-fourth { | |
width: 75%; | |
} | |
.xl-one-fifth { | |
width: 20%; | |
} | |
.xl-two-fifth { | |
width: 40%; | |
} | |
} | |
/* ========== text alignment ========== */ | |
.text-left { | |
text-align: left; | |
} | |
.text-right { | |
text-align: right; | |
} | |
.text-center { | |
text-align: center; | |
} | |
.valign-top { | |
vertical-align: top; | |
} | |
.valign-middle { | |
vertical-align: middle; | |
} | |
.valign-bottom { | |
vertical-align: bottom; | |
} | |
/* 544px in width */ | |
@media screen and (min-width: 34em) { | |
.sm-text-left { | |
text-align: left; | |
} | |
.sm-text-right { | |
text-align: right; | |
} | |
.sm-text-center { | |
text-align: center; | |
} | |
.sm-valign-top { | |
vertical-align: top; | |
} | |
.sm-valign-middle { | |
vertical-align: middle; | |
} | |
.sm-valign-bottom { | |
vertical-align: bottom; | |
} | |
} | |
/* 768px in width */ | |
@media screen and (min-width: 48em) { | |
.md-text-left { | |
text-align: left; | |
} | |
.md-text-right { | |
text-align: right; | |
} | |
.md-text-center { | |
text-align: center; | |
} | |
.md-valign-top { | |
vertical-align: top; | |
} | |
.md-valign-middle { | |
vertical-align: middle; | |
} | |
.md-valign-bottom { | |
vertical-align: bottom; | |
} | |
} | |
/* 992px in width */ | |
@media screen and (min-width: 62em) { | |
.lg-text-left { | |
text-align: left; | |
} | |
.lg-text-right { | |
text-align: right; | |
} | |
.lg-text-center { | |
text-align: center; | |
} | |
.lg-valign-top { | |
vertical-align: top; | |
} | |
.lg-valign-middle { | |
vertical-align: middle; | |
} | |
.lg-valign-bottom { | |
vertical-align: bottom; | |
} | |
} | |
/* 1200px in width */ | |
@media screen and (min-width: 75em) { | |
.xl-text-left { | |
text-align: left; | |
} | |
.xl-text-right { | |
text-align: right; | |
} | |
.xl-text-center { | |
text-align: center; | |
} | |
.xl-valign-top { | |
vertical-align: top; | |
} | |
.xl-valign-middle { | |
vertical-align: middle; | |
} | |
.xl-valign-bottom { | |
vertical-align: bottom; | |
} | |
} | |
/* ========== typography ========== */ | |
.text-uppercase { | |
text-transform: uppercase; | |
} | |
.text-capitalize { | |
text-transform: capitalize; | |
} | |
.text-lowercase { | |
text-transform: lowercase; | |
} | |
/* 544px in width */ | |
@media screen and (min-width: 34em) { | |
.sm-text-uppercase { | |
text-transform: uppercase; | |
} | |
.sm-text-capitalize { | |
text-transform: capitalize; | |
} | |
.sm-text-lowercase { | |
text-transform: lowercase; | |
} | |
} | |
/* 768px in width */ | |
@media screen and (min-width: 48em) { | |
.md-text-uppercase { | |
text-transform: uppercase; | |
} | |
.md-text-capitalize { | |
text-transform: capitalize; | |
} | |
.md-text-lowercase { | |
text-transform: lowercase; | |
} | |
} | |
/* 992px in width */ | |
@media screen and (min-width: 62em) { | |
.lg-text-uppercase { | |
text-transform: uppercase; | |
} | |
.lg-text-capitalize { | |
text-transform: capitalize; | |
} | |
.lg-text-lowercase { | |
text-transform: lowercase; | |
} | |
} | |
/* 1200px in width */ | |
@media screen and (min-width: 75em) { | |
.xl-text-uppercase { | |
text-transform: uppercase; | |
} | |
.xl-text-capitalize { | |
text-transform: capitalize; | |
} | |
.xl-text-lowercase { | |
text-transform: lowercase; | |
} | |
} | |
/* ========== clearing floated elements ========== */ | |
.clearfix:before, .clearfix:after { | |
clear: both; | |
content: ""; | |
display: block; | |
} | |
/* ========== positioning elements ========== */ | |
.p-relative { | |
position: relative; | |
} | |
.p-absolute { | |
position: absolute; | |
} | |
.p-fixed { | |
position: fixed; | |
} | |
.f-left { | |
float: left; | |
} | |
.f-right { | |
float: right; | |
} | |
.f-none { | |
float: none; | |
} | |
/* 544px in width */ | |
@media screen and (min-width: 34em) { | |
.sm-p-relative { | |
position: relative; | |
} | |
.sm-p-absolute { | |
position: absolute; | |
} | |
.sm-p-fixed { | |
position: fixed; | |
} | |
.sm-f-left { | |
float: left; | |
} | |
.sm-f-right { | |
float: right; | |
} | |
.sm-f-none { | |
float: none; | |
} | |
} | |
/* 768px in width */ | |
@media screen and (min-width: 48em) { | |
.md-p-relative { | |
position: relative; | |
} | |
.md-p-absolute { | |
position: absolute; | |
} | |
.md-p-fixed { | |
position: fixed; | |
} | |
.md-f-left { | |
float: left; | |
} | |
.md-f-right { | |
float: right; | |
} | |
.md-f-none { | |
float: none; | |
} | |
} | |
/* 992px in width */ | |
@media screen and (min-width: 62em) { | |
.lg-p-relative { | |
position: relative; | |
} | |
.lg-p-absolute { | |
position: absolute; | |
} | |
.lg-p-fixed { | |
position: fixed; | |
} | |
.lg-f-left { | |
float: left; | |
} | |
.lg-f-right { | |
float: right; | |
} | |
.lg-f-none { | |
float: none; | |
} | |
} | |
/* 1200px in width */ | |
@media screen and (min-width: 75em) { | |
.xl-p-relative { | |
position: relative; | |
} | |
.xl-p-absolute { | |
position: absolute; | |
} | |
.xl-p-fixed { | |
position: fixed; | |
} | |
.xl-f-left { | |
float: left; | |
} | |
.xl-f-right { | |
float: right; | |
} | |
.xl-f-none { | |
float: none; | |
} | |
} | |
/* ========== clearing margin and padding ========== */ | |
.npl { | |
padding-left: 0; | |
} | |
.npt { | |
padding-top: 0; | |
} | |
.npr { | |
padding-right: 0; | |
} | |
.npb { | |
padding-bottom: 0; | |
} | |
.nmt { | |
margin-top: 0; | |
} | |
.nmr { | |
margin-right: 0; | |
} | |
.nmb { | |
margin-bottom: 0; | |
} | |
.nml { | |
margin-left: 0; | |
} | |
/* 544px in width */ | |
@media screen and (min-width: 34em) { | |
.sm-npl { | |
padding-left: 0; | |
} | |
.sm-npt { | |
padding-top: 0; | |
} | |
.sm-npr { | |
padding-right: 0; | |
} | |
.sm-npb { | |
padding-bottom: 0; | |
} | |
.sm-nmt { | |
margin-top: 0; | |
} | |
.sm-nmr { | |
margin-right: 0; | |
} | |
.sm-nmb { | |
margin-bottom: 0; | |
} | |
.sm-nml { | |
margin-left: 0; | |
} | |
} | |
/* 768px in width */ | |
@media screen and (min-width: 48em) { | |
.md-npl { | |
padding-left: 0; | |
} | |
.md-npt { | |
padding-top: 0; | |
} | |
.md-npr { | |
padding-right: 0; | |
} | |
.md-npb { | |
padding-bottom: 0; | |
} | |
.md-nmt { | |
margin-top: 0; | |
} | |
.md-nmr { | |
margin-right: 0; | |
} | |
.md-nmb { | |
margin-bottom: 0; | |
} | |
.md-nml { | |
margin-left: 0; | |
} | |
} | |
/* 992px in width */ | |
@media screen and (min-width: 62em) { | |
.lg-npl { | |
padding-left: 0; | |
} | |
.lg-npt { | |
padding-top: 0; | |
} | |
.lg-npr { | |
padding-right: 0; | |
} | |
.lg-npb { | |
padding-bottom: 0; | |
} | |
.lg-nmt { | |
margin-top: 0; | |
} | |
.lg-nmr { | |
margin-right: 0; | |
} | |
.lg-nmb { | |
margin-bottom: 0; | |
} | |
.lg-nml { | |
margin-left: 0; | |
} | |
} | |
/* 1200px in width */ | |
@media screen and (min-width: 75em) { | |
.xl-npl { | |
padding-left: 0; | |
} | |
.xl-npt { | |
padding-top: 0; | |
} | |
.xl-npr { | |
padding-right: 0; | |
} | |
.xl-npb { | |
padding-bottom: 0; | |
} | |
.xl-nmt { | |
margin-top: 0; | |
} | |
.xl-nmr { | |
margin-right: 0; | |
} | |
.xl-nmb { | |
margin-bottom: 0; | |
} | |
.xl-nml { | |
margin-left: 0; | |
} | |
} | |
/* ========== table layout ========== */ | |
table { | |
border-collapse: collapse; | |
} | |
th, td { | |
padding: 0; | |
} | |
.table { | |
width: 100%; | |
max-width: 100%; | |
} | |
/* ========== unordered and order list ========== */ | |
.list-unstyled { | |
padding: 0; | |
list-style: none; | |
} | |
/* ========== default html tags ========== */ | |
* { | |
margin: 0; | |
padding: 0; | |
outline: none; | |
border: 0; | |
box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
-o-box-sizing: border-box; | |
} | |
html { | |
overflow-y: scroll; | |
} | |
a { | |
text-decoration: none; | |
} | |
strong, bold { | |
font-weight: 700; | |
} | |
em, i { | |
font-style: italic; | |
} | |
img { | |
max-width: 100%; | |
height: auto; | |
border: 0; | |
} | |
/* 544px in width */ | |
@media screen and (min-width: 34em) { | |
} | |
/* 768px in width */ | |
@media screen and (min-width: 48em) { | |
} | |
/* 992px in width */ | |
@media screen and (min-width: 62em) { | |
} | |
/* 1200px in width */ | |
@media screen and (min-width: 75em) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment