Skip to content

Instantly share code, notes, and snippets.

@samuelecarpene
Created October 7, 2016 11:10
Show Gist options
  • Select an option

  • Save samuelecarpene/3c0b864c1a2a60b36c4911c640b4f5dc to your computer and use it in GitHub Desktop.

Select an option

Save samuelecarpene/3c0b864c1a2a60b36c4911c640b4f5dc to your computer and use it in GitHub Desktop.
Scss Utils
.col-xs-15,
.col-sm-15,
.col-md-15,
.col-lg-15 {
position: relative;
min-height: 1px;
padding-right: 10px;
padding-left: 10px;
}
.col-xs-15 {
width: 20%;
float: left;
}
.col-sm-15 {
@media (min-width: $screen-sm-min) {
width: 20%;
float: left;
}
}
.col-md-15 {
@media (min-width: $screen-md-min) {
width: 20%;
float: left;
}
}
.col-lg-15 {
@media (min-width: $screen-lg-min) {
width: 20%;
float: left;
}
}
.col-xs-45,
.col-sm-45,
.col-md-45,
.col-lg-45 {
position: relative;
min-height: 1px;
padding-right: 10px;
padding-left: 10px;
}
.col-xs-45 {
width: 80%;
float: left;
}
.col-sm-45 {
@media (min-width: $screen-sm-min) {
width: 80%;
float: left;
}
}
.col-sm-45 {
@media (min-width: $screen-md-min) {
width: 80%;
float: left;
}
}
.col-lg-45 {
@media (min-width: $screen-lg-min) {
width: 80%;
float: left;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment