File: __init__.py

package info (click to toggle)
django-sass-processor 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: python: 763; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
from sass_processor.types import SassNumber, SassColor

def get_width():
    return SassNumber(5)

def get_margins(top, right, bottom, left):
    return "{}px {}px {}px {}px".format(top.value, right.value, bottom.value, left.value)

def get_plain_color(r, g, b):
    return SassColor(r.value, g.value, b.value, 1)