Skip to content

Instantly share code, notes, and snippets.

@charleskirk
Created May 10, 2013 16:38
Show Gist options
  • Save charleskirk/5555615 to your computer and use it in GitHub Desktop.
Save charleskirk/5555615 to your computer and use it in GitHub Desktop.
Rails precompile error on production
@import "mixin_helpers";
@import "variables";
@mixin action-color-button($color) {
$color: darken($color, 14);
border: 1px solid $color;
@include box-shadow(0 1px 2px 0 lighten($color, 12) inset);
@include std-bg(lighten($color, 12), darken($color, 2));
&:hover {
opacity: 0.95;
@include transition(opacity 0.2s ease-in-out);
}
&:active {
background: lighten($color, 4);
}
}
//these are common options for colored action navs (things that repeat themselves for each color)
%action-color-button-common {
a {
color: #fff;
@include text-shadow-bottom(#333);
i {
color: #fff;
@include text-shadow-bottom(#333);
}
&:active {
@include box-shadow(0 0 2px #707070 inset, 0 1px 0 #fff);
}
}
}
.action-nav-normal {
&.rounded {
.action-nav-button {
margin-left: 10px;
margin-right: 10px;
a {
@include border-radius(50%);
padding: 16px;
min-width: auto;
i {
height: 40px;
line-height: 40px;
}
}
}
}
text-align: center;
//margin: 0 0 30px 0;
.action-nav-button {
//margin: 5px 10px 0 10px;
margin-bottom: 15px;
position: relative;
display: inline-block;
text-align: center;
a {
@include border-radius(4px);
@include std-bg(#fafafa, #ececec);
border: 1px solid #d5d5d5;
@include box-shadow(0 0 0 1px #fafafa inset, 0 1px 1px 0px #ddd);
padding: 10px 0;
display: block;
font-weight: bold;
white-space: nowrap;
color: #626262;
@include box-sizing(border-box);
&:hover {
@include std-bg(#f7f7f7, #f2f2f2);
}
&:active {
@include box-shadow(none);
@include std-bg(#f4f4f4, #f7f7f7);
}
> {
span {
display: block;
padding-top: 4px;
font-weight: 600;
}
i {
font-size: 32px;
color: #808080;
}
}
}
@each $pair in $buttonColors {
&.#{nth($pair, 1)} {
@extend %action-color-button-common;
a {
@include action-color-button(nth($pair, 2));
}
}
}
}
}
.action-nav-normal {
.badge, .label {
position: absolute;
top: 3px;
right: 3px;
padding: 3px 5px;
display: block;
@include box-shadow(none);
}
.triangle-button {
border-top-right-radius: 3px;
pointer-events: none;
i {
right: 4px;
top: 3px;
}
}
}
/*
*= require_self
*= require_tree
*= require bootstrap_include
*= require uniform_default
*= require base
*= require box
*= require message_box
*= require dropdowns
*= require font-awesome
*= require responsive-tables
*= require fullcalendar
*= require gritter
*= require numeric_stats
*= require form_elements
*= require tags
*= require navigation
*= require sidebar
*= require breadcrumbs
*= require triangle_button
*= require tooltips
*= require buttons
*= require action_nav
*= require stats
*= require ibutton
*= require content_progress
*= require charts
*= require select2
*= require select2_overrides
*= require ui_custom
*= require icheck_blue
*= require xcharts
*= require justgage
*= require easy_pie_chart
*= require sparkline_box
*= require chat-box
*= require dataTables
*= require accordion
*= require bootstrap_alerts
*= require pagination
*= require modal
*= require touchTouch
*= require tables
*= require scrollable
*= require news
*= require badges
*= require bootstrap-wizard
*= require error_pages
*= require bootstrap-wysihtml5
*= require validation_engine
*= require bootstrap-editable
*= require bootstrap-editable-fix
*= require responsive979
*= require responsive768
*= require responsive480
*/
group :assets do
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem 'ejs', '>= 1.0.0'
gem "compass-rails"
gem 'sass-rails', '~> 3.2.3'
gem 'bootstrap-sass', '~> 2.3.1.0'
end
gem 'twitter-bootstrap-rails'
gem 'jquery-rails'
Jvoportal::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = false
# Compress JavaScripts and CSS
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
# Generate digests for assets URLs
config.assets.digest = true
# Defaults to Rails.root.join("public/assets")
# config.assets.manifest = YOUR_PATH
# Specifies the header that your server uses for sending files
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
# See everything in the log (default is :info)
config.log_level = :error
# Prepend all log lines with the following tags
# config.log_tags = [ :subdomain, :uuid ]
# Use a different logger for distributed setups
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
# Use a different cache store in production
# config.cache_store = :mem_cache_store
# Enable serving of images, stylesheets, and JavaScripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
config.assets.precompile += ['*.js', '*.css']
# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false
# Enable threaded mode
# config.threadsafe!
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found)
config.i18n.fallbacks = true
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
# Log the query plan for queries taking more than this (works
# with SQLite, MySQL, and PostgreSQL)
# config.active_record.auto_explain_threshold_in_seconds = 0.5
end
$header-gradient-top: #fdfdfd;
$header-gradient-bottom: #eaeaea;
//every color array has the base color class name in the left, and the actual color on the right
$triangleColors: red #aa433a, green #8fae53, blue #7fb3d4, orange #CF6E20;
$buttonColors:
default $header-gradient-top,
red #c57979,
green #96c161,
blue #5ba5cb,
gray #8c97a6,
black #838383,
lightblue #6db5d5,
gold #d5a44c,
sea #5a837e,
brown #bb934f,
twitter lighten(#4099ff, 10),
facebook (lighten(#35508F, 10));
$news-colors: blue #7FB3D4, green #8CC079, cyan #81BABD, purple #AEA7CF;
$barColors: green #97af32, blue darken(#9bcff5, 10), orange #d28346, black #4c4c4c, red #c8514e;
$sideColors: green #83DA05, red #E15307, orange #EF8132;
$numeric-stats-colors: blue #6e97aa, red #ba6d6d, green #8fae53;
$badge-colors: blue #7FB3D4, gray #767676, green #8CC079, red #b35d5d, dark-red #b5473e, black #666, cyan #81BABD, purple #AEA7CF;
$primary-sidebar-width: 200px;
//top header height (above breadcrumbs)
$breadcrumbs-header-height: 60px;
$box-background: #fbfbfb;
$box-border-color: #cdcdcd;
$box-header-text-color: #636363;
$header-height: 37px;
$avatar-border-color: #328194;
$link-color: #78808a;
$link-hover-color: #5a6573;
$chart-red: #C75D5D;
$chart-blue: #6e97aa;
$chart-orange: #ff9f01;
$chart-gray: #6B787F;
$chart-lightBlue: #D4E5DE;
$chart-green: #8FAE53;
$chart-dark-green: #779148;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment