Skip to content

Commit

Permalink
refactor(Mixins): Overhaul of all unused and redundant mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
furzeface committed Jan 19, 2015
1 parent 90187e0 commit 5021d26
Show file tree
Hide file tree
Showing 17 changed files with 259 additions and 708 deletions.
24 changes: 0 additions & 24 deletions src/assets/styles/less/_mixins/mixins-backgrounds.less
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
// Background clipping
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
.background-clip(@clip) {
-webkit-background-clip: @clip;
-moz-background-clip: @clip;
background-clip: @clip;
}

// Background sizing
.background-size(@size){
-webkit-background-size: @size;
-moz-background-size: @size;
-o-background-size: @size;
background-size: @size;
}

// Background sizing
.background-size(@size1, @size2){
-webkit-background-size: @size1 @size2;
-moz-background-size: @size1 @size2;
-o-background-size: @size1 @size2;
background-size: @size1 @size2;
}

// RGBA Backgrounds
.rgba-bg(@colour, @alpha){
@alphaColour: hsla(hue(@colour), saturation(@colour), lightness(@colour), @alpha);
Expand Down
25 changes: 0 additions & 25 deletions src/assets/styles/less/_mixins/mixins-columns.less

This file was deleted.

16 changes: 8 additions & 8 deletions src/assets/styles/less/_mixins/mixins-fluid.less
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
// calculates a "fluid" (percentage) width (Ethan Marcotte: target / context = result method)
// calculates a "fluid" (percentage) width (Ethan Marcotte: target / context = result method: http://alistapart.com/article/fluidgrids)
.fluid-width(@target, @context) {
width: 100%*(@target/@context);
// ie correct formular to prevent
// IE7 correction
*width: (100%*(@target/@context))-@grid-correction;
}

.fluid-margin-right(@target, @context) {
margin-right: 100%*(@target/@context);
// ie correct formular to prevent
// IE7 correction
*margin-right: (100%*(@target/@context))-@grid-correction;
}

.fluid-margin-left(@target, @context) {
margin-left: 100%*(@target/@context);
// ie correct formular to prevent
// IE7 correction
*margin-left: (100%*(@target/@context))-@grid-correction;
}

.fluid-padding-right(@target, @context) {
padding-right: 100%*(@target/@context);
// ie correct formular to prevent
// IE7 correction
*padding-right: (100%*(@target/@context))-@grid-correction;
}

.fluid-padding-left(@target, @context) {
padding-left: 100%*(@target/@context);
// ie correct formular to prevent
// IE7 correction
*padding-left: (100%*(@target/@context))-@grid-correction;
}

.fluid-right(@target, @context) {
right: 100%*(@target/@context);
// ie correct formular to prevent
// IE7 correction
*right: (100%*(@target/@context))-@grid-correction;
}

.fluid-left(@target, @context) {
left: 100%*(@target/@context);
// ie correct formular to prevent
// IE7 correction
*left: (100%*(@target/@context))-@grid-correction;
}
11 changes: 0 additions & 11 deletions src/assets/styles/less/_mixins/mixins-misc.less

This file was deleted.

211 changes: 0 additions & 211 deletions src/assets/styles/less/_mixins/mixins-pxtorem.less

This file was deleted.

Loading

0 comments on commit 5021d26

Please sign in to comment.