Skip to content

Instantly share code, notes, and snippets.

@codingdesigner
codingdesigner / compass_trig_circle.sass
Created May 9, 2011 17:47
using Compass trig functions to lay out elements in a circle
aside.samples
position: absolute
z-index: 3
top: -90px
right: 200px
+transform2d(scale(0.9))
+transition(all,0.5s)
$badge-total: 8
@for $i from 1 through ($badge-total + 1)
$radius: 70.875
require "rubygems"
require "chunky_png"
require "base64"
module Sass::Script::Functions
def background_noise(c, noise = 0.5, opacity = 0.08, size = 200, mono = false)
# Convert SASS numbers to Ruby classes
noise = noise.to_s.to_f if noise.is_a? Sass::Script::Number