The focus on this release is to get the compass stylesheet libraries and docs as close to final for 1.0 as possible.
- Upgrade to Blueprint 1.0
- DONE Upgrade stylesheets
from django.contrib.staticfiles.storage import AppStaticStorage | |
from django.contrib.staticfiles.finders import AppDirectoriesFinder | |
class LegacyAppMediaStorage(AppStaticStorage): | |
source_dir = 'media' | |
class LegacyAppDirectoriesFinder(AppDirectoriesFinder): | |
storage_class = LegacyAppMediaStorage | |
# require 'bubble-wrap' | |
class UIImage | |
def self.imageWithColor(color) | |
if color.is_a?(String) | |
color = color.to_color | |
end | |
rect = CGRectMake(0, 0, 1, 1) |
require 'childprocess' | |
guard 'shell' do | |
watch %r{^app/(.+)\.rb$} do |m| | |
`killall rake` | |
# Why this: | |
# - spawn a child process to avoid locking Guard | |
# - make sure that the child process has stdout and stdin otherwise it crashes | |
# - bonus point: get REPL access in the simulator! |
#!/bin/bash | |
set -e | |
export APP_NAME=$1 | |
export PGHOST=$(< $HOME/predeploy.d/postgres_host) | |
export PGUSER=admin | |
if [ -f $HOME/$APP_NAME/DATABASE_URL ]; then | |
# Database URL is already set - DB must exist | |
DATABASE_URL=$(cat $HOME/$APP_NAME/DATABASE_URL) |
@mixin rgba-background($color, $opacity) { | |
background-color: $color; | |
background-color: rgba($color, $opacity); | |
background-color: transparent\9; | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{'#'+hex(round($opacity*255)) + '' + hex(red($color)) + '' + hex(green($color)) + '' + hex(blue($color))},endColorstr=#{'#'+hex(round($opacity*255)) + '' + hex(red($color)) + '' + hex(green($color)) + '' + hex(blue($color))}); | |
zoom: 1; | |
} |
from flask import request, make_response, | |
def any_response(data): | |
ALLOWED = ['http://localhost:8888'] | |
response = make_response(data) | |
origin = request.headers['Origin'] | |
if origin in ALLOWED: | |
response.headers['Access-Control-Allow-Origin'] = origin | |
return response |
$less-column-width: 68px; | |
$less-gutter-width: 24px; | |
@function column-width($columns) { | |
@return ($less-column-width * $columns) + ($less-gutter-width * ($columns - 1)); | |
} | |
@function grid-padding-px($columns) { | |
@if $columns == 10 { | |
@return 48px; |
from collections import defaultdict | |
from django.db.models.signals import * | |
class DisableSignals(object): | |
def __init__(self, disabled_signals=None): | |
self.stashed_signals = defaultdict(list) | |
self.disabled_signals = disabled_signals or [ | |
pre_init, post_init, | |
pre_save, post_save, |
@import "compass/css3/shared"; | |
@mixin keyframes($name) { | |
@-webkit-keyframes $name { | |
@content; | |
} | |
@-moz-keyframes $name { | |
@content; | |
} |