Permalink
Browse files

Improve customizer settings

  • Loading branch information...
RCowles committed May 9, 2015
1 parent f396cb8 commit b846a47d7db71899d266dc1552af3184b8307945
Showing with 110 additions and 76 deletions.
  1. +71 −35 README.html
  2. +15 −11 README.md
  3. +4 −2 inc/customizer.php
  4. +2 −2 js/customizer.js
  5. +1 −0 js/min/customizer-ck.js
  6. +5 −1 readme.txt
  7. +0 −17 rtl.css
  8. +5 −2 sass/_navigation.scss
  9. +1 −1 sass/_vars.scss
  10. +2 −2 sass/style.scss
  11. +4 −3 style.css
View
@@ -1,14 +1,22 @@
<p>=== Just Write ===
Contributors: ryancowles
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<h3 id="justwrite">Just Write</h3>
<p>Contributors: ryancowles
Tags: green, gray, white, light, one-column, left-sidebar, responsive-layout, custom-background, custom-colors, custom-menu, editor-style, sticky-post, theme-options, threaded-comments, clean, minimal
Tested up to: 4.2
Tested up to: 4.2.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html</p>
License URI: http://www.gnu.org/licenses/gpl&#8211;2.0.html</p>
<p>Just Write is based on Underscores http://underscores.me/, &copy; 2012-2014 Automattic, Inc.</p>
<p>Just Write is based on Underscores http://underscores.me/, (C) 2012&#8211;2014 Automattic, Inc.</p>
<p>== Description ==
Just Write is geared towards writers and bloggers who want the focus of their site to be on their written content. It includes a primary menu, and a sidebar that can be toggled.</p>
<h2 id="description">Description</h2>
<p>Just Write is geared towards writers and bloggers who want the focus of their site to be on their written content. It includes a primary menu, and a sidebar that can be toggled.</p>
<ul>
<li>Responsive layout.</li>
@@ -17,54 +25,82 @@
<li>Custom colors.</li>
</ul>
<h2 id="installation">Installation</h2>
<ol>
<li>In your admin panel, go to Appearance &gt; Themes and click the Add New button.</li>
<li>Click Upload and Choose File, then select the theme&#8217;s .zip file. Click Install Now.</li>
<li>Click Activate to use your new theme right away.</li>
</ol>
<p>== Installation ==
1. In your admin panel, go to Appearance > Themes and click the Add New button.
2. Click Upload and Choose File, then select the theme&rsquo;s .zip file. Click Install Now.
3. Click Activate to use your new theme right away.</p>
<h2 id="license">License</h2>
<p>== License ==
This theme is based on Underscores, &copy; 2012-2014 Automattic, Inc.
<p>This theme is based on Underscores, (C) 2012&#8211;2014 Automattic, Inc.
- Source: http://underscores.me/
- License: GNU GPL, Version 2 (or later)
- License URI: http://www.gnu.org/licenses/gpl-2.0.html</p>
- License URI: http://www.gnu.org/licenses/gpl&#8211;2.0.html</p>
<p>customizer.js, Copyright 2012-2014 Automattic, Inc.
<p>customizer.js, Copyright 2012&#8211;2014 Automattic, Inc.
- Source: /js/customizer.js
- License: GNU GPL, Version 2 (or later)
- License URI: http://www.gnu.org/licenses/gpl-2.0.html</p>
- License URI: http://www.gnu.org/licenses/gpl&#8211;2.0.html</p>
<p>navigation.js, Copyright 2012-2014 Automattic, Inc.
<p>navigation.js, Copyright 2012&#8211;2014 Automattic, Inc.
- Source: /js/navigation.js
- License: GNU GPL, Version 2 (or later)
- License URI: http://www.gnu.org/licenses/gpl-2.0.html</p>
- License URI: http://www.gnu.org/licenses/gpl&#8211;2.0.html</p>
<p>skip-link-focus.js, Copyright 2012-2014 Automattic, Inc.
<p>skip-link-focus.js, Copyright 2012&#8211;2014 Automattic, Inc.
- Source: /js/skip-link-focus-fix.js
- License: GNU GPL, Version 2 (or later)
- License URI: http://www.gnu.org/licenses/gpl-2.0.html</p>
- License URI: http://www.gnu.org/licenses/gpl&#8211;2.0.html</p>
<p>just-write-sidebar.js, Copyright 2014 Ryan Cowles
- Source: /js/just-write-sidebar.js
- License: GNU GPL, Version 2 (or later)
- License URI: http://www.gnu.org/licenses/gpl-2.0.html</p>
- License URI: http://www.gnu.org/licenses/gpl&#8211;2.0.html</p>
<h2 id="changelog">Changelog</h2>
<h1 id="1.1-may9th2015">1.1 - May 9th, 2015</h1>
<ul>
<li>Custom colors: Add sanitize callback</li>
<li>Custom colors: Remove customizer flickering</li>
</ul>
<h1 id="0.1.4-april29th2015">0.1.4 - April 29th, 2015</h1>
<ul>
<li>Add color options to Theme Customizer</li>
<li>Improve mobile menu styling</li>
</ul>
<p>== Changelog ==</p>
<h1 id="0.1.3-february162015">0.1.3 - February 16, 2015</h1>
<p>= 0.1.4 - April 29th, 2015=
* Add color options to Theme Customizer
* Improve mobile menu styling</p>
<ul>
<li>Center align cite tags (https://themes.trac.wordpress.org/ticket/21093#comment:28)</li>
</ul>
<h1 id="0.1.2-december222014">0.1.2 - December 22, 2014</h1>
<p>= 0.1.3 - February 16, 2015=
* Center align cite tags (https://themes.trac.wordpress.org/ticket/21093#comment:28)</p>
<ul>
<li>Add support for Jetpack&#8217;s Site Logo</li>
<li>Minor CSS error fixed (https://themes.trac.wordpress.org/ticket/21093#comment:10)</li>
</ul>
<p>= 0.1.2 - December 22, 2014 =
* Add support for Jetpack&rsquo;s Site Logo
* Minor CSS error fixed (https://themes.trac.wordpress.org/ticket/21093#comment:10)</p>
<h1 id="0.1.1-october52014">0.1.1 - October 5, 2014</h1>
<p>= 0.1.1 - October 5, 2014 =
* Issues fixed for theme review (https://themes.trac.wordpress.org/ticket/20197#comment:2)
* Google fonts enqueued properly</p>
<ul>
<li>Issues fixed for theme review (https://themes.trac.wordpress.org/ticket/20197#comment:2)</li>
<li>Google fonts enqueued properly</li>
</ul>
<h1 id="0.1-august122014">0.1 - August 12, 2014</h1>
<ul>
<li>Initial release.</li>
</ul>
<p>= 0.1 - August 12, 2014 =
* Initial release.</p>
</body>
</html>
View
@@ -1,26 +1,26 @@
=== Just Write ===
### Just Write ###
Contributors: ryancowles
Tags: green, gray, white, light, one-column, left-sidebar, responsive-layout, custom-background, custom-colors, custom-menu, editor-style, sticky-post, theme-options, threaded-comments, clean, minimal
Tested up to: 4.2
Tested up to: 4.2.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Just Write is based on Underscores http://underscores.me/, (C) 2012-2014 Automattic, Inc.
== Description ==
## Description ##
Just Write is geared towards writers and bloggers who want the focus of their site to be on their written content. It includes a primary menu, and a sidebar that can be toggled.
* Responsive layout.
* Slide-out sidebar.
* Minimalist design.
* Custom colors.
== Installation ==
## Installation ##
1. In your admin panel, go to Appearance > Themes and click the Add New button.
2. Click Upload and Choose File, then select the theme's .zip file. Click Install Now.
3. Click Activate to use your new theme right away.
== License ==
## License ##
This theme is based on Underscores, (C) 2012-2014 Automattic, Inc.
- Source: http://underscores.me/
- License: GNU GPL, Version 2 (or later)
@@ -46,22 +46,26 @@ just-write-sidebar.js, Copyright 2014 Ryan Cowles
- License: GNU GPL, Version 2 (or later)
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
== Changelog ==
## Changelog ##
= 0.1.4 - April 29th, 2015=
# 1.1 - May 9th, 2015#
* Custom colors: Add sanitize callback
* Custom colors: Remove customizer flickering
# 0.1.4 - April 29th, 2015#
* Add color options to Theme Customizer
* Improve mobile menu styling
= 0.1.3 - February 16, 2015=
# 0.1.3 - February 16, 2015#
* Center align cite tags (https://themes.trac.wordpress.org/ticket/21093#comment:28)
= 0.1.2 - December 22, 2014 =
# 0.1.2 - December 22, 2014 #
* Add support for Jetpack's Site Logo
* Minor CSS error fixed (https://themes.trac.wordpress.org/ticket/21093#comment:10)
= 0.1.1 - October 5, 2014 =
# 0.1.1 - October 5, 2014 #
* Issues fixed for theme review (https://themes.trac.wordpress.org/ticket/20197#comment:2)
* Google fonts enqueued properly
= 0.1 - August 12, 2014 =
# 0.1 - August 12, 2014 #
* Initial release.
View
@@ -74,8 +74,10 @@ function just_write_customize_preview_js() {
function just_write_customizer_css() {
?>
<style type="text/css">
a.sidebar-toggle, #secondary { background-color: <?php echo get_theme_mod( 'just_write_sidebar_color' ); ?>; }
#page a, #page a:active, #page a:visited { color: <?php echo get_theme_mod( 'just_write_link_color' ); ?>; }
a.sidebar-toggle.open, #secondary { background-color: <?php echo get_theme_mod( 'just_write_sidebar_color' ); ?>; }
#page a, #page a:active, #page a:visited, .sticky .entry-title:after { color: <?php echo get_theme_mod( 'just_write_link_color' ); ?>; }
.entry-content a { border-bottom: 1px solid <?php echo get_theme_mod( 'just_write_link_color' ); ?>; }
.bypostauthor { border-left: 4px solid <?php echo get_theme_mod( 'just_write_link_color' ); ?>; }
</style>
<?php
}
View
@@ -36,13 +36,13 @@
// Sidebar background color.
wp.customize( 'just_write_sidebar_color', function( value ) {
value.bind( function( to ) {
$( 'a.sidebar-toggle, #secondary' ).css( 'background-color', to );
$( 'a.sidebar-toggle.open, #secondary' ).css( 'background-color', to );
} );
} );
// Link color.
wp.customize( 'just_write_link_color', function( value ) {
value.bind( function( to ) {
$( '#page a, #page a:visited, #page a:active' ).css( 'color', to );
$( '#page a, #page a:visited, #page a:active, .sticky .entry-title:after' ).css( 'color', to );
} );
} );
} )( jQuery );
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
=== Just Write ===
Contributors: ryancowles
Tags: green, gray, white, light, one-column, left-sidebar, responsive-layout, custom-background, custom-colors, custom-menu, editor-style, sticky-post, theme-options, threaded-comments, clean, minimal
Tested up to: 4.2
Tested up to: 4.2.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -48,6 +48,10 @@ just-write-sidebar.js, Copyright 2014 Ryan Cowles
== Changelog ==
= 1.1 - May 9th, 2015=
* Custom colors: Add sanitize callback
* Custom colors: Remove customizer flickering
= 0.1.4 - April 29th, 2015=
* Add color options to Theme Customizer
* Improve mobile menu styling
View
17 rtl.css
@@ -1,17 +0,0 @@
/*
Theme Name: Just Write
Adding support for language written in a Right To Left (RTL) direction is easy -
it's just a matter of overwriting all the horizontal positioning attributes
of your CSS stylesheet in a separate stylesheet file named rtl.css.
http://codex.wordpress.org/Right_to_Left_Language_Support
*/
/*
body {
direction: rtl;
unicode-bidi: embed;
}
*/
View
@@ -149,11 +149,14 @@ a {
7.3 Sidebar toggle
--------------------------------------------------------------*/
a.sidebar-toggle {
background: $color__secondary-background;
color: $color__content-back;
cursor: pointer;
font: normal 28px/1 'dashicons';
&.open {
background: $color__secondary-background;
}
&:hover {
color: darken($color__content-back, 10%);
}
@@ -185,4 +188,4 @@ a.close {
.admin-bar & {
margin-top: 28px;
}
}
}
View
@@ -58,4 +58,4 @@ https://github.com/sass/sass/issues/659
-webkit-font-smoothing: antialiased;
font: normal $size/1 'dashicons';
vertical-align: top;
}
}
View
@@ -4,7 +4,7 @@ Theme URI: http://justwrite.ryanscowles.com
Author: Ryan Cowles
Author URI: http://ryanscowles.com
Description: Just Write is a simple theme, geared towards writers and bloggers who want the focus of their site to be on their written content. It includes a primary menu, and a sidebar that can be toggled.
Version: 0.1.4
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: just-write
@@ -14,7 +14,7 @@ Tags: green, gray, white, light, one-column, left-sidebar, responsive-layout, cu
GitHub Theme URI: https://github.com/RCowles/just-write/
GitHub Branch: master
Just Write WordPress theme, Copyright (C) 2014 Ryan Cowles
Just Write WordPress theme, Copyright (C) 2014-2015 Ryan Cowles
Just Write WordPress theme is licensed under the GPL.
This theme, like WordPress, is licensed under the GPL.
View
@@ -5,7 +5,7 @@ Theme URI: http://justwrite.ryanscowles.com
Author: Ryan Cowles
Author URI: http://ryanscowles.com
Description: Just Write is a simple theme, geared towards writers and bloggers who want the focus of their site to be on their written content. It includes a primary menu, and a sidebar that can be toggled.
Version: 0.1.4
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: just-write
@@ -15,7 +15,7 @@ Tags: green, gray, white, light, one-column, left-sidebar, responsive-layout, cu
GitHub Theme URI: https://github.com/RCowles/just-write/
GitHub Branch: master
Just Write WordPress theme, Copyright (C) 2014 Ryan Cowles
Just Write WordPress theme, Copyright (C) 2014-2015 Ryan Cowles
Just Write WordPress theme is licensed under the GPL.
This theme, like WordPress, is licensed under the GPL.
@@ -696,10 +696,11 @@ a {
7.3 Sidebar toggle
--------------------------------------------------------------*/
a.sidebar-toggle {
background: #006060;
color: #fff;
cursor: pointer;
font: normal 28px/1 'dashicons'; }
a.sidebar-toggle.open {
background: #006060; }
a.sidebar-toggle:hover {
color: #e6e6e6; }
a.sidebar-toggle .dashicons {

0 comments on commit b846a47

Please sign in to comment.