Skip to content

Commit

Permalink
Merge pull request #160 from iam4x/feature/stroke-mixn
Browse files Browse the repository at this point in the history
Mixin for text stroke
  • Loading branch information
notslang committed Mar 24, 2014
2 parents 2c7ad09 + 22aa2b0 commit db6a2b9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/nib/text/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
@import './ellipsis'
@import './hide-text'
@import './replace-text'
@import './shadow-stroke'
2 changes: 2 additions & 0 deletions lib/nib/text/shadow-stroke.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shadow-stroke(n)
text-shadow: -1px -1px 0 n, 1px -1px 0 n, -1px 1px 0 n, 1px 1px 0 n
9 changes: 9 additions & 0 deletions test/cases/shadow-stroke.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
button {
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
button {
text-shadow: -1px -1px 0 rgba(0,0,0,0.5), 1px -1px 0 rgba(0,0,0,0.5), -1px 1px 0 rgba(0,0,0,0.5), 1px 1px 0 rgba(0,0,0,0.5);
}
button {
text-shadow: -1px -1px 0 #f00, 1px -1px 0 #f00, -1px 1px 0 #f00, 1px 1px 0 #f00;
}
10 changes: 10 additions & 0 deletions test/cases/shadow-stroke.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@import 'nib/text/shadow-stroke'

button
shadow-stroke(#000)

button
shadow-stroke(rgba(0, 0, 0, 0.5))

button
shadow-stroke(red)

0 comments on commit db6a2b9

Please sign in to comment.