Skip to content

Commit 3a267d1

Browse files
committed
Remove unused Sass helpers, switch to mixins
1 parent e52240e commit 3a267d1

File tree

6 files changed

+34
-59
lines changed

6 files changed

+34
-59
lines changed

client/stylesheets/components/_bucket.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// *************************************
2020
2121
.bucket
22-
@extend .group
22+
+group
2323

2424
// -------------------------------------
2525
// Modifiers

client/stylesheets/components/_grid.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// -------------------------------------
2525
2626
#{$g-selector}g
27-
@extend .group
27+
+group
2828
display: block
2929
margin-left: -$g-gutter
3030

client/stylesheets/foundation/_helpers.sass

Lines changed: 25 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,29 @@
9595
user-select: none
9696
white-space: nowrap
9797

98-
// ----- Font Face ----- //
99-
// -> https://github.com/thoughtbot/bourbon/edit/master/app/assets/stylesheets/css3/_font-face.scss#
100-
//
101-
// $family - the font-family
102-
// $path - the font path
103-
// $weight - the font-weight
104-
// $style - the font-style
105-
// $asset-pipeline - use the Rails asset pipeline (boolean)
106-
107-
=font-face($family, $path, $weight: normal, $style: normal, $asset-pipeline: true)
108-
@font-face
109-
font-family: $family
110-
font-style: $style
111-
font-weight: $weight
112-
@if $asset-pipeline == true
113-
src: font-url('#{$path}.eot')
114-
src: font-url('#{$path}.eot?#iefix') format('embedded-opentype'), font-url('#{$path}.woff') format('woff'), font-url('#{$path}.ttf') format('truetype'), font-url('#{$path}.svg##{$family}') format('svg')
115-
@else
116-
src: url('#{$path}.eot')
117-
src: url('#{$path}.eot?#iefix') format('embedded-opentype'), url('#{$path}.woff') format('woff'), url('#{$path}.ttf') format('truetype'), url('#{$path}.svg##{$family}') format('svg')
98+
// ----- Clearfix ----- //
99+
100+
=group
101+
&::after
102+
clear: both
103+
content: ''
104+
display: table
105+
106+
// ----- Faux Hide ----- //
107+
// -> Remove element visibility
108+
109+
=fauxHide
110+
opacity: 0
111+
overflow: hidden
112+
visibility: hidden
113+
114+
// ----- Faux Show ----- //
115+
// -> Restore element visibility
116+
117+
=fauxShow
118+
opacity: 1
119+
overflow: visible
120+
visibility: visible
118121

119122
// ----- List Reset ----- //
120123
// -> Removes default list styles
@@ -155,36 +158,8 @@
155158
156159
// ----- Clearfix ----- //
157160
158-
.group::after
159-
clear: both
160-
content: ''
161-
display: table
162-
163-
// ----- Ellipsis ----- //
164-
165-
.ellipsis
166-
overflow: hidden
167-
text-overflow: ellipsis
168-
white-space: nowrap
169-
170-
// ----- Faux Hide ----- //
171-
172-
.fauxHide
173-
opacity: 0
174-
overflow: hidden
175-
visibility: hidden
176-
177-
// ----- Faux Hide ----- //
178-
179-
.fauxShow
180-
opacity: 1
181-
overflow: visible
182-
visibility: visible
183-
184-
// ----- List Reset ----- //
185-
186-
.lr
187-
+list-reset
161+
.group
162+
+group
188163

189164
// ----- Semantic Hide ----- //
190165

client/stylesheets/structures/_completionList.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
// *************************************
1616
1717
.completionList
18-
+list-reset()
19-
@extend .group
18+
+group
19+
+list-reset
2020

2121
// -------------------------------------
2222
// Scaffolding

client/stylesheets/structures/_preloader.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $preloader-progress-item-size: 30px
3737
// ----- Progress ----- //
3838
3939
.preloader-progress
40-
@extend .clearfix
40+
+group
4141
position: absolute
4242
top: 89px // FIXME: Magic number!
4343
width: 300px

client/stylesheets/structures/_video.sass

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// *************************************
1919
2020
.video
21-
@extend .fauxHide
21+
+fauxHide
2222
box-sizing: border-box
2323
left: 50%
2424
max-width: 960px
@@ -42,7 +42,7 @@
4242
.video,
4343
.video-close,
4444
.video-overlay
45-
@extend .fauxShow
45+
+fauxShow
4646

4747
.video
4848
transform: translate(-50%, -50%)
@@ -63,7 +63,7 @@
6363
// ----- Close ----- //
6464
6565
.video-close
66-
@extend .fauxHide
66+
+fauxHide
6767
color: $c-text-invert
6868
display: block
6969
font-size: $b-fontSize-h1
@@ -90,7 +90,7 @@
9090
// ----- Overlay ----- //
9191
9292
.video-overlay
93-
@extend .fauxHide
93+
+fauxHide
9494
background: $c-highlight
9595
bottom: 0
9696
height: 100%

0 commit comments

Comments
 (0)