Skip to content

Commit

Permalink
Update susy to 2.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
imgarylai committed Jul 11, 2015
1 parent ac7f064 commit cdc20ca
Show file tree
Hide file tree
Showing 69 changed files with 376 additions and 182 deletions.
1 change: 0 additions & 1 deletion lib/ruby/compass_extensions/susy-2.1.3/VERSION

This file was deleted.

4 changes: 0 additions & 4 deletions lib/ruby/compass_extensions/susy-2.1.3/sass/_susy.scss

This file was deleted.

4 changes: 0 additions & 4 deletions lib/ruby/compass_extensions/susy-2.1.3/sass/_susyone.scss

This file was deleted.

4 changes: 0 additions & 4 deletions lib/ruby/compass_extensions/susy-2.1.3/sass/susy/_math.scss

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014, Eric M. Suzanne
Copyright (c) 2015, Eric M. Suzanne
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
1 change: 1 addition & 0 deletions lib/ruby/compass_extensions/susy-2.2.5/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.2.4
Original file line number Diff line number Diff line change
@@ -1,6 +1,54 @@
Changelog
=========

2.2.5 - May 14 2015
-------------------

- Pass grid arguments to overlay positioning mixin.


2.2.3 - Apr 28 2015
-------------------

- Work around libsass fraction bug.


2.2.2 - Jan 23 2015
-------------------

- Fix bug in npm package.


2.2.1 - Jan 14 2015
-------------------

- Release npm ``susy`` package.
- Add global ``$susy-media`` map for creating named breakpoints.
- Add internal media-query support for ``susy-breakpoint``
without requiring the Breakpoint plugin.
- ``susy-breakpoint`` mixin no longer requires ``$layout`` argument.
By default, no changes will be made to your existing layout.
- Update ``global-box-sizing`` and the legacy ``border-box-sizing``
mixins to optionally take another argument, ``$inherit``. This new
argument is a boolean value that defaults to ``false``, meaning the
behavior of these mixins will not change by default. The default
behavior sets all elements to use the specified ``box-sizing``,
which can only be changed explicitly on a per-element basis. By passing
in ``$inherit`` as ``true``, the ``box-sizing`` is set on the
``html`` element, and all other elements inherit this property. This
means that the ``box-sizing`` can be changed at the component level
and all nested elements will inherit this change. This cascading
effect can be prevented by explicitly setting ``box-sizing`` on the
exceptions within the nested context.
- Add ``su`` import at root level.
- Both ``su`` and ``susy`` work with the latest LibSass master branch (3.0.2+).
There are a few exceptions:

+ The ``susysone`` syntax
+ ``overlay`` grid output
+ The ``inherit`` option for ``global-box-sizing`` & ``border-box-sizing``


2.1.3 - Jul 16 2014
-------------------

Expand Down
4 changes: 4 additions & 0 deletions lib/ruby/compass_extensions/susy-2.2.5/sass/_su.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Su
// ==

@import 'susy/su';
4 changes: 4 additions & 0 deletions lib/ruby/compass_extensions/susy-2.2.5/sass/_susy.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Susy
// ====

@import 'susy/language/susy';
4 changes: 4 additions & 0 deletions lib/ruby/compass_extensions/susy-2.2.5/sass/_susyone.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Susy
// ====

@import 'susy/language/susyone';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Su
// ==

@import "su/maps";
@import "su/utilities";
@import "su/settings";
@import "su/validation";
@import "su/grid";
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

$susy-version: 2.1;

@import "../math";
@import "../su";
@import "../output/float";

@import "susy/settings";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $susy-overlay-grid-head-exists: false;
$_image: ();
@each $name, $layer in map-get($_output, image) {
$_direction: if($name == baseline, to bottom, to to($_flow));
$_image: append($_image, linear-gradient($_direction, $layer...), comma);
$_image: append($_image, linear-gradient($_direction, $layer), comma);
}
$_output: map-merge($_output, (image: $_image));

Expand All @@ -61,8 +61,8 @@ $susy-overlay-grid-head-exists: false;
@mixin overlay-grid (
$grid: $susy
) {
@if not $susy-overlay-grid-head-exists {
@at-root head { @include overlay-head; }
@if not($susy-overlay-grid-head-exists) {
@at-root head { @include overlay-head($grid); }
@at-root head:before { @include overlay-trigger; }
@at-root head:hover { @include overlay-trigger-hover; }
$susy-overlay-grid-head-exists: true !global;
Expand Down Expand Up @@ -104,8 +104,10 @@ $susy-overlay-grid-head-exists: false;
// [Private] Overlay Head
// ----------------------
// <head> styles to create grid overlay toggle
@mixin overlay-head {
$_toggle: debug-get(toggle);
@mixin overlay-head (
$grid: $susy
) {
$_toggle: debug-get(toggle, $grid);
$_horz: null;
$_vert: null;

Expand Down Expand Up @@ -336,18 +338,18 @@ $susy-overlay-grid-head-exists: false;
$_sym: is-symmetrical($_columns);
$_return: if($_sym, get-background-sym($grid), get-background-asym($grid));
$_return: map-merge($_return, (clip: content-box));
} @else if not $_line-height {
} @else if not($_line-height) {
@warn 'Please provide $base-line-height in order to see baseline grids.';
}

@if $_line-height {
@if $_show != show-columns {
$_color: variable-exists(grid-background-baseline-color);
$_color: if($_color, $grid-background-baseline-color, black);
$_color: if($_color, $grid-background-baseline-color, #000);

$_image: map-get($_return, image);
$_size: map-get($_return, size);
$_baseline: (baseline: ($_color 1px, rgba($_color, 0) 1px));
$_baseline: (baseline: ($_color 1px, transparent 1px));
$_baseline-size: 100% $_line-height;

$_return: map-merge($_return, (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@if susy-get(global-box-sizing) != content-box {
$output: map-merge((box-sizing: content-box), $output);
}

@include susy-inspect(bleed, $inspect);
@include output($output);
}
Expand Down Expand Up @@ -168,7 +168,7 @@
$four: if(length(map-keys($map)) == 4, true, false);
$null: if(index(map-values($map), null), true, false);

@if $four and not $null {
@if $four and not($null) {
$top: map-get($map, '#{$name}-top');
$right: map-get($map, '#{$name}-right');
$bottom: map-get($map, '#{$name}-bottom');
Expand All @@ -180,7 +180,7 @@

$new: if($all, $all, null);

@if not $new {
@if not($new) {
@if $tb and $rl {
$new: $tb $rl;
} @else if $rl {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,34 @@
// -----------------
// Set a box model globally on all elements.
// - [$box]: border-box | content-box
// - [$inherit]: true | false
@mixin global-box-sizing(
$box: susy-get(global-box-sizing)
$box: susy-get(global-box-sizing),
$inherit: false
) {
$inspect: $box;
$inspect: $box;

@if $inherit {
@at-root {
html { @include output((box-sizing: $box)); }
*, *:before, *:after { box-sizing: inherit; }
}
} @else {
*, *:before, *:after { @include output((box-sizing: $box)); }
}

@include susy-inspect(global-box-sizing, $inspect);
*, *:before, *:after { @include output((box-sizing: $box)); }
@include update-box-model($box);
}

// Border Box Sizing
// -----------------
// A legacy shortcut...
@mixin border-box-sizing {
@include global-box-sizing(border-box);
// - [$inherit]: true | false
@mixin border-box-sizing(
$inherit: false
) {
@include global-box-sizing(border-box, $inherit);
}

// Update Box Model
Expand Down
Loading

0 comments on commit cdc20ca

Please sign in to comment.