Skip to content

Instantly share code, notes, and snippets.

@addisonhall
Last active August 29, 2015 14:04
Show Gist options
  • Save addisonhall/a5bd91813f9a9329e447 to your computer and use it in GitHub Desktop.
Save addisonhall/a5bd91813f9a9329e447 to your computer and use it in GitHub Desktop.
Some basic CSS helper classes for common formatting issues
a .fa-square {
color: #fff;
}
a .fa-twitter-square {
color: #00aced;
}
a .fa-facebook-square {
color: #3b5998;
}
a .fa-youtube-square {
color: #bb0000;
}
a .fa-google-plus-square {
color: #dd4b39;
}
a .fa-linkedin-square {
color: #007bb6;
}
a .fa-pinterest-square {
color: #cb2027;
}
a .fa-vimeo-square {
color: #aad450;
}
a .fa-instagram {
color: #517fa4;
}
.no-gutter {
padding-left: 0;
padding-right: 0;
}
.no-gutter-left {
padding-left: 0;
}
.no-gutter-right {
padding-right: 0;
}
@media (min-width: 640px) {
.columns-2 {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-webkit-column-gap: 24px;
-moz-column-gap: 24px;
column-gap: 24px;
}
}
.reverse-hdr,
.reverse-link,
.reverse-block,
.reverse-block h1,
.reverse-block h2,
.reverse-block h3,
.reverse-block h4,
.reverse-block h5,
.reverse-block .h1,
.reverse-block .h2,
.reverse-block .h3,
.reverse-block .h4,
.reverse-block .h5,
.reverse-block a,
.reverse-link:focus,
.reverse-link:hover,
.reverse-block a:focus,
.reverse-block a:hover {
color: #fff !important;
}
.ghost {
opacity: .6;
}
a.ghost:focus,
a.ghost:hover,
a:focus .ghost,
a:hover .ghost {
opacity: 1;
text-decoration: none;
}
.no-margin {
margin: 0;
}
.no-margin-top {
margin-top: 0;
}
.no-margin-btm {
margin-bottom: 0;
}
.append-btm {
margin-bottom: 24px;
}
.append-btm-sm {
margin-bottom: 12px;
}
.append-btm-lg {
margin-bottom: 48px;
}
.append-btm-xl {
margin-bottom: 72px;
}
.prepend-top {
margin-top: 24px;
}
.prepend-top-sm {
margin-top: 12px;
}
.prepend-top-lg {
margin-top: 48px;
}
.prepend-top-xl {
margin-top: 72px;
}
.clear-row {
clear: both;
height: 1px;
visibility: hidden;
}
.img-inset-left,
.img-inset-right {
margin: 12px 0;
text-align: center;
}
@media (min-width: 440px) {
.img-inset-right {
float: right;
margin: 3px 0 6px 14px;
text-align: left;
}
.img-inset-left {
float: left;
margin: 3px 18px 6px 0;
text-align: left;
}
}
.smaller {
font-size: 90%;
line-height: 1.4;
}
.bigger {
font-size: 135%;
}
.caps {
letter-spacing: 1px;
text-transform: uppercase;
}
.regular {
font-weight: normal;
}
.bold {
font-weight: bold;
}
.normal-case {
letter-spacing: 0;
text-transform: none;
}
.inset-sm {
padding: 8px 12px;
}
.inset {
padding: 18px 24px;
}
.inset-lg {
padding: 30px 36px;
}
.inset-left {
padding-left: 24px;
}
.inset-left-sm {
padding-left: 12px;
}
.inset-left-lg {
padding-left: 36px;
}
.inset-right {
padding-right: 24px;
}
.inset-right-sm {
padding-right: 12px;
}
.inset-right-lg {
padding-right: 36px;
}
.inset-top {
padding-top: 24px;
}
.inset-top-sm {
padding-top: 12px;
}
.inset-top-lg {
padding-top: 36px;
}
.inset-btm {
padding-bottom: 24px;
}
.inset-btm-sm {
padding-bottom: 12px;
}
.inset-btm-lg {
padding-bottom: 36px;
}
@media (min-width: 992px) {
.pos-rel {
position: relative;
}
.pos,
.pos-btm-left,
.pos-btm-right {
position: absolute;
}
.pos-btm-left {
bottom: 0;
left: 15px;
}
.pos-btm-right {
bottom: 0;
right: 15px;
}
.inset-lg .pos-btm-left {
bottom: 30px;
left: 36px;
}
.inset-lg .pos-btm-right {
bottom: 30px;
right: 36px;
}
}
.carousel-fade .carousel-inner .item {
opacity: 0;
-webkit-transition: opacity 0.8s;
-o-transition: opacity 0.8s;
transition: opacity 0.8s;
}
.carousel-fade .carousel-inner .active {
opacity: 1;
}
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
left: 0;
opacity: 0;
z-index: 1;
}
.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
opacity: 1;
}
@media all and (transform-3d), (-webkit-transform-3d) {
.carousel-fade .carousel-inner > .item.next,
.carousel-fade .carousel-inner > .item.active.right {
opacity: 0;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.carousel-fade .carousel-inner > .item.prev,
.carousel-fade .carousel-inner > .item.active.left {
opacity: 0;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.carousel-fade .carousel-inner > .item.next.left,
.carousel-fade .carousel-inner > .item.prev.right,
.carousel-fade .carousel-inner > .item.active {
opacity: 1;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment