Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
Foundation build to bower-foundation
Browse files Browse the repository at this point in the history
  • Loading branch information
mhayes committed Aug 21, 2014
1 parent 29843af commit ea87852
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 27 deletions.
60 changes: 53 additions & 7 deletions css/foundation.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/foundation.css.map

Large diffs are not rendered by default.

101 changes: 82 additions & 19 deletions scss/foundation/components/_icon-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ $icon-bar-item-padding: 1.25rem !default;
// @mixins
//

// We use this mixin to create the base styles for our switch element.
// We use this mixin to create the base styles for our Icon bar element.
//
// $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
// $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
@mixin icon-bar-base() {

width: 100%;
Expand Down Expand Up @@ -85,7 +83,7 @@ $icon-bar-item-padding: 1.25rem !default;
text-align: left;
}

&.vertical {
&.vertical, &.small-vertical{
height: 100%;
width: auto;

Expand All @@ -95,12 +93,34 @@ $icon-bar-item-padding: 1.25rem !default;
float: none;
}
}

&.medium-vertical {
@media #{$medium-up} {
height: 100%;
width: auto;

.item {
width: auto;
margin: auto;
float: none;
}
}
}
&.large-vertical {
@media #{$large-up} {
height: 100%;
width: auto;

.item {
width: auto;
margin: auto;
float: none;
}
}
}
}

// We use this mixin to create the size styles for icon bars.
//
// $height - Height (in px) of the switch. Default: $switch-height-med.
// $font-size - Font size of text in switch. Default: $switch-font-size-med.
@mixin icon-bar-size(
$padding: $icon-bar-item-padding,
$font-size: $icon-bar-font-size,
Expand Down Expand Up @@ -131,13 +151,6 @@ $icon-bar-item-padding: 1.25rem !default;

}

// We use this mixin to add color and other fanciness to the switches.
//
// $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
// $active-color - Background color of positive side of switch. Default: $switch-positive-color.
// $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
// $radius - Radius to apply to switch. Default: false.
// $base-style - Apply base styles? Default: true.
@mixin icon-bar-style(
$bar-bg:$icon-bar-bg,
$bar-font-color:$icon-bar-font-color,
Expand Down Expand Up @@ -208,23 +221,73 @@ $icon-bar-item-padding: 1.25rem !default;

&.two-up {
.item { width: 50%; }
&.vertical .item { width: auto; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
&.three-up {
.item { width: 33.3333%; }
&.vertical .item { width: auto; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
&.four-up {
.item { width: 25%; }
&.vertical .item { width: auto; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
&.five-up {
.item { width: 20%; }
&.vertical .item { width: auto; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
&.six-up {
.item { width: 16.66667%; }
&.vertical .item { width: auto; }
&.vertical .item, &.small-vertical .item { width: auto; }
&.medium-vertical .item {
@media #{$medium-up} {
width: auto;
}
}
&.large-vertical .item {
@media #{$large-up} {
width: auto;
}
}
}
}
}

0 comments on commit ea87852

Please sign in to comment.