Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Setting up SASS
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Jul 15, 2014
1 parent f243127 commit 24aa043
Show file tree
Hide file tree
Showing 95 changed files with 10,144 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions blue-var.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
$nav2_txtColor: ;
$nav2_txtHover: ;
$nav2_bg: ;
$nav2_bgHover: ;
$nav2_arrowColor: ;
$nav2_arrowHover: ;
*/
12 changes: 12 additions & 0 deletions blue-var.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Blue



/*
$nav2_txtColor: ;
$nav2_txtHover: ;
$nav2_bg: ;
$nav2_bgHover: ;
$nav2_arrowColor: ;
$nav2_arrowHover: ;
*/
Empty file added blue.css
Empty file.
11 changes: 11 additions & 0 deletions blue.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Blue

$header_border: #273a60;

$title_bg: #0b1d42;

$title_parent: #fff;
$title_parentHover: pink;

$title_txt: #fff;
$title_txtHover: pink;
21 changes: 21 additions & 0 deletions color.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#uc-header {
border-bottom-color:$header_border;
}

#masthead {
background-color:$title_bg;

#uc-site-parent a {
color:$title_parent;
&:hover {
color:$title_parentHover;
}
}
#uc-site-title a {
color:$title_txt;

&:hover {
color:$title_txtHover;
}
}
}
41 changes: 41 additions & 0 deletions config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Require any additional compass plugins here.

# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "stylesheets"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
#output_style = :compressed

# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed

# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true

# To disable debugging comments that display the original location of your selectors. Uncomment:
# line_comments = false


# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass


#
# Compass Workaround. Wordpress needs a style.css in the top directory.
#
# This Ruby script is only used locally to move the file every time a new one gets created.

# From: http://css-tricks.com/compass-compiling-and-wordpress-themes/

require 'fileutils'
on_stylesheet_saved do |file|
if File.exists?(file) && File.basename(file) == "style.css"
puts "Moving: #{file}"
FileUtils.mv(file, File.dirname(file) + "/../" + File.basename(file))
end
end
109 changes: 109 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?php
/*
*
* SHERMAN
*
*/


// Remove the Header Image Feature

function sherman_remove_theme_features() {
remove_theme_support( 'custom-header' );
}
add_action( 'init', 'sherman_remove_theme_features' );



// Add Options for Sherman-specific Color options.

function sherman_titlebar_register( $wp_customize ){

$wp_customize->add_setting( 'titlebarColor', //Give it a SERIALIZED name (so all theme settings can live under one db record)
array(
'default' => 'lightgrey', //Default setting/value to save
'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'?
'capability' => 'edit_theme_options', //Optional. Special permissions for accessing this setting.
'transport' => 'refresh'
)
);
$wp_customize->add_control('titlebarColor', array(
'type' => 'radio',
'label' => 'Titlebar Color',
'section' => 'colors',
'choices' => array(
'blue'=>'Blue',
'red'=>'Red',
'black' => 'Black',
'darkgrey' => 'Dark Grey',
'lightgrey' => 'Light Grey',
'white' => 'White'
)
)
);
$wp_customize->add_setting( 'navColor', //Give it a SERIALIZED name (so all theme settings can live under one db record)
array(
'default' => 'lightgrey', //Default setting/value to save
'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'?
'capability' => 'edit_theme_options', //Optional. Special permissions for accessing this setting.
'transport' => 'refresh'
)
);
$wp_customize->add_control('navColor', array(
'type' => 'radio',
'label' => 'Navigation Color',
'section' => 'colors',
'choices' => array(
'blue'=>'Blue',
'red'=>'Red',
'black' => 'Black',
'darkgrey' => 'Dark Grey',
'lightgrey' => 'Light Grey',
'white' => 'White'
)
)
);
$wp_customize->add_setting( 'contentColor', //Give it a SERIALIZED name (so all theme settings can live under one db record)
array(
'default' => 'standard', //Default setting/value to save
'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'?
'capability' => 'edit_theme_options', //Optional. Special permissions for accessing this setting.
'transport' => 'refresh'
)
);
$wp_customize->add_control('contentColor', array(
'type' => 'radio',
'label' => 'Text Colors',
'section' => 'colors',
'choices' => array(
'standard'=>'Standard',
'reverse'=>'Reverse'
)
)
);
$wp_customize->add_setting( 'footColor', //Give it a SERIALIZED name (so all theme settings can live under one db record)
array(
'default' => 'lightgrey', //Default setting/value to save
'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'?
'capability' => 'edit_theme_options', //Optional. Special permissions for accessing this setting.
'transport' => 'refresh'
)
);
$wp_customize->add_control('footColor', array(
'type' => 'radio',
'label' => 'Footer Color',
'section' => 'colors',
'choices' => array(
'blue'=>'Blue',
'red'=>'Red',
'black' => 'Black',
'darkgrey' => 'Dark Grey',
'lightgrey' => 'Light Grey',
'white' => 'White'
)
)
);
}
add_action( 'customize_register', 'sherman_titlebar_register' , 34);

?>
Loading

0 comments on commit 24aa043

Please sign in to comment.