Skip to content

Instantly share code, notes, and snippets.

@tobynet
Created October 19, 2015 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobynet/9ffef4b67c5a9aaa8671 to your computer and use it in GitHub Desktop.
Save tobynet/9ffef4b67c5a9aaa8671 to your computer and use it in GitHub Desktop.
Bordering.css
h1.bordering
縁取り.css
h1.invert-bordering
縁取り.css
@mixin bordering($color: white, $blur-size: 1px, $offset: 1px)
text-shadow: $color $offset 0px $blur-size, $color 0px $offset $blur-size, $color (-$offset) 0px $blur-size, $color 0px -($offset) $blur-size, $color $offset $offset $blur-size, $color (-$offset) (-$offset) $blur-size, $color (-$offset) $offset $blur-size, $color $offset (-$offset) $blur-size
.bordering
@include bordering(white, 1px, 2px)
.invert-bordering
color: white
@include bordering(#000, 2px, 3px)
//----------------------------
body
text-align: center
background: url(http://placecreature.com/Squirrel/800/600)
background-size: cover
h1
margin-top: 1em
font-size: 4em
font-family: serif
font-weight: bold
text-transform: uppercase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment