wordpress-starter 0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +1 -0
- data/LICENSE +20 -0
- data/README.md +34 -0
- data/lib/wordpress-starter.rb +29 -0
- data/stylesheets/_wordpress.scss +9 -0
- data/stylesheets/wordpress/_base.scss +74 -0
- data/stylesheets/wordpress/_defaults.scss +28 -0
- data/stylesheets/wordpress/_layout.scss +56 -0
- data/stylesheets/wordpress/_mixins.scss +57 -0
- data/stylesheets/wordpress/_page.scss +364 -0
- data/stylesheets/wordpress/_responsive.scss +231 -0
- data/stylesheets/wordpress/_theme.scss +83 -0
- data/stylesheets/wordpress/_typography.scss +135 -0
- data/stylesheets/wordpress/_utils.scss +64 -0
- data/templates/project/ie.scss +1 -0
- data/templates/project/manifest.rb +21 -0
- data/templates/project/print.css +4 -0
- data/templates/project/print.scss +104 -0
- data/templates/project/readme.txt +1 -0
- data/templates/project/screen.scss +1 -0
- data/templates/project/style.css +13 -0
- data/templates/starter/404.php +24 -0
- data/templates/starter/admin/README.txt +25 -0
- data/templates/starter/admin/assets/css/admin-style.css +838 -0
- data/templates/starter/admin/assets/css/colorpicker.css +177 -0
- data/templates/starter/admin/assets/images/1col.png +0 -0
- data/templates/starter/admin/assets/images/2-col-portfolio.png +0 -0
- data/templates/starter/admin/assets/images/2cl.png +0 -0
- data/templates/starter/admin/assets/images/2cr.png +0 -0
- data/templates/starter/admin/assets/images/3-col-portfolio.png +0 -0
- data/templates/starter/admin/assets/images/3cm.png +0 -0
- data/templates/starter/admin/assets/images/3cr.png +0 -0
- data/templates/starter/admin/assets/images/4-col-portfolio.png +0 -0
- data/templates/starter/admin/assets/images/accept.png +0 -0
- data/templates/starter/admin/assets/images/button_check.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/blank.gif +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_background.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_hex.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_b.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_h.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_s.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_indic.gif +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_overlay.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_b.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_g.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_r.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_select.gif +0 -0
- data/templates/starter/admin/assets/images/colorpicker/colorpicker_submit.png +0 -0
- data/templates/starter/admin/assets/images/colorpicker/select.png +0 -0
- data/templates/starter/admin/assets/images/dropdown-arrow.png +0 -0
- data/templates/starter/admin/assets/images/favicon.ico +0 -0
- data/templates/starter/admin/assets/images/icon-add.png +0 -0
- data/templates/starter/admin/assets/images/icon-backup.png +0 -0
- data/templates/starter/admin/assets/images/icon-delete.png +0 -0
- data/templates/starter/admin/assets/images/icon-docs.png +0 -0
- data/templates/starter/admin/assets/images/icon-edit.png +0 -0
- data/templates/starter/admin/assets/images/icon-home.png +0 -0
- data/templates/starter/admin/assets/images/icon-info.png +0 -0
- data/templates/starter/admin/assets/images/icon-notice.png +0 -0
- data/templates/starter/admin/assets/images/icon-paint.png +0 -0
- data/templates/starter/admin/assets/images/icon-settings.png +0 -0
- data/templates/starter/admin/assets/images/icon-slider.png +0 -0
- data/templates/starter/admin/assets/images/icon-warn.png +0 -0
- data/templates/starter/admin/assets/images/icon_option.png +0 -0
- data/templates/starter/admin/assets/images/loading-bottom.gif +0 -0
- data/templates/starter/admin/assets/images/select.png +0 -0
- data/templates/starter/admin/assets/images/sign_warning.png +0 -0
- data/templates/starter/admin/assets/images/stop.png +0 -0
- data/templates/starter/admin/assets/images/toggle_tabs.png +0 -0
- data/templates/starter/admin/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/starter/admin/assets/images/warning.png +0 -0
- data/templates/starter/admin/assets/images/wrench.png +0 -0
- data/templates/starter/admin/assets/images/wrench16.png +0 -0
- data/templates/starter/admin/assets/js/ajaxupload.js +606 -0
- data/templates/starter/admin/assets/js/colorpicker.js +455 -0
- data/templates/starter/admin/assets/js/cookie.js +1 -0
- data/templates/starter/admin/assets/js/jquery.maskedinput-1.2.2.js +252 -0
- data/templates/starter/admin/assets/js/jquery.tipsy.js +241 -0
- data/templates/starter/admin/assets/js/of-medialibrary-uploader.js +168 -0
- data/templates/starter/admin/assets/js/smof.js +623 -0
- data/templates/starter/admin/classes/class.options-machine.php +627 -0
- data/templates/starter/admin/front-end/options.php +77 -0
- data/templates/starter/admin/functions/functions.admin.php +76 -0
- data/templates/starter/admin/functions/functions.interface.php +232 -0
- data/templates/starter/admin/functions/functions.load.php +14 -0
- data/templates/starter/admin/functions/functions.mediauploader.php +194 -0
- data/templates/starter/admin/functions/functions.options.php +507 -0
- data/templates/starter/admin/functions/functions.php +0 -0
- data/templates/starter/admin/index.php +86 -0
- data/templates/starter/admin/layouts/default.css +0 -0
- data/templates/starter/admin/layouts/placebo.css +0 -0
- data/templates/starter/app.js +97 -0
- data/templates/starter/archive.php +57 -0
- data/templates/starter/category.php +40 -0
- data/templates/starter/comments.php +65 -0
- data/templates/starter/content-aside.php +26 -0
- data/templates/starter/content-image.php +29 -0
- data/templates/starter/content-link.php +27 -0
- data/templates/starter/content-none.php +21 -0
- data/templates/starter/content-page.php +24 -0
- data/templates/starter/content-quote.php +26 -0
- data/templates/starter/content-status.php +33 -0
- data/templates/starter/content.php +67 -0
- data/templates/starter/editor-style.scss +359 -0
- data/templates/starter/footer.php +29 -0
- data/templates/starter/functions.php +1211 -0
- data/templates/starter/header.php +63 -0
- data/templates/starter/ie.scss +1 -0
- data/templates/starter/images/bg/bg0.png +0 -0
- data/templates/starter/images/bg/bg1.png +0 -0
- data/templates/starter/images/bg/bg10.png +0 -0
- data/templates/starter/images/bg/bg11.png +0 -0
- data/templates/starter/images/bg/bg2.png +0 -0
- data/templates/starter/images/bg/bg3.png +0 -0
- data/templates/starter/images/bg/bg4.png +0 -0
- data/templates/starter/images/bg/bg5.png +0 -0
- data/templates/starter/images/bg/bg6.jpg +0 -0
- data/templates/starter/images/bg/bg7.jpg +0 -0
- data/templates/starter/images/bg/bg8.png +0 -0
- data/templates/starter/images/bg/bg9.png +0 -0
- data/templates/starter/index.php +19 -0
- data/templates/starter/loop.php +30 -0
- data/templates/starter/manifest.rb +149 -0
- data/templates/starter/moderninzr.min.js +4 -0
- data/templates/starter/options.php +407 -0
- data/templates/starter/page.php +29 -0
- data/templates/starter/print.scss +104 -0
- data/templates/starter/readme.txt +1 -0
- data/templates/starter/screen.scss +1 -0
- data/templates/starter/search.php +31 -0
- data/templates/starter/search.png +0 -0
- data/templates/starter/searchform.php +14 -0
- data/templates/starter/sidebar.php +15 -0
- data/templates/starter/single.php +31 -0
- data/templates/starter/style.css +13 -0
- data/templates/starter/tag.php +41 -0
- metadata +230 -0
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
data/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2012 Alex Sancho
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
WordPress Starter
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
This Compass extension provides support for creating WordPress Themes using Sass.
|
|
5
|
+
|
|
6
|
+
Installing
|
|
7
|
+
==========
|
|
8
|
+
|
|
9
|
+
sudo gem install wordpress-starter-0.1.gem
|
|
10
|
+
|
|
11
|
+
To install a theme into your existing compass project, add the following to your compass configuration file:
|
|
12
|
+
|
|
13
|
+
require 'wordpress-starter'
|
|
14
|
+
|
|
15
|
+
OR, just run this command:
|
|
16
|
+
|
|
17
|
+
compass -r wordpress-starter -f wordpress -s compressed /path/to/installation
|
|
18
|
+
|
|
19
|
+
What this does is call `compass`, requires the wordpress-starter extension, uses the framework wordpress, sets the Sass output to be compressed and finally ends with you setting the theme name.
|
|
20
|
+
|
|
21
|
+
Note on Patches/Pull Requests
|
|
22
|
+
==============================
|
|
23
|
+
|
|
24
|
+
1. Fork it
|
|
25
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
26
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
27
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
28
|
+
5. Create new Pull Request
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
Copyright
|
|
32
|
+
===========
|
|
33
|
+
|
|
34
|
+
Copyright (c) 2012 Alex Sancho. See LICENSE for details.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# All gems that are required for this extension to work should go here.
|
|
2
|
+
# These are the requires you would normally put in your config.rb file
|
|
3
|
+
# By default, you should always included Compass. Do not include your
|
|
4
|
+
# extension.
|
|
5
|
+
require 'compass'
|
|
6
|
+
require "susy"
|
|
7
|
+
|
|
8
|
+
# This tells Compass what your Compass extension is called, and where to find
|
|
9
|
+
# its files
|
|
10
|
+
extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
|
11
|
+
Compass::Frameworks.register('wordpress', :path => extension_path)
|
|
12
|
+
|
|
13
|
+
# Version and date of version for your Compass extension.
|
|
14
|
+
# Letters, numbers, and underscores only
|
|
15
|
+
# Version is a number. If a version contains alphas, it will be created as
|
|
16
|
+
# a prerelease version
|
|
17
|
+
# Date is in the form of YYYY-MM-DD
|
|
18
|
+
module WordpressStarter
|
|
19
|
+
VERSION = "0.1"
|
|
20
|
+
DATE = "2012-12-06"
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# This is where any custom SassScript should be placed. The functions will be
|
|
24
|
+
# available on require of your extension without the need for users to import
|
|
25
|
+
# any partials. Uncomment below.
|
|
26
|
+
|
|
27
|
+
# module Sass::Script::Functions
|
|
28
|
+
#
|
|
29
|
+
# end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@import "wordpress/base";
|
|
2
|
+
@import "wordpress/mixins";
|
|
3
|
+
@import "wordpress/typography";
|
|
4
|
+
@import "wordpress/layout";
|
|
5
|
+
@import "wordpress/theme";
|
|
6
|
+
@import "wordpress/page";
|
|
7
|
+
@import "wordpress/responsive";
|
|
8
|
+
@import "wordpress/defaults";
|
|
9
|
+
@import "wordpress/utils";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@import "compass";
|
|
2
|
+
@import "susy";
|
|
3
|
+
|
|
4
|
+
@include global-reset;
|
|
5
|
+
@include reset-html5;
|
|
6
|
+
|
|
7
|
+
// border-box-sizing()
|
|
8
|
+
@include border-box-sizing;
|
|
9
|
+
|
|
10
|
+
// Settings --------------------------------------------------------------
|
|
11
|
+
$responsive-embeds-default-ratio : 1 !default;
|
|
12
|
+
|
|
13
|
+
$tagsHeight : 26px;
|
|
14
|
+
$tagsDefaultColor : #eb6b22;
|
|
15
|
+
|
|
16
|
+
// Susy & Compass use HTML hacks to support IE 6 and 7. You can turn that off:
|
|
17
|
+
$legacy-support-for-ie6 : false;
|
|
18
|
+
// $legacy-support-for-ie7 : true;
|
|
19
|
+
|
|
20
|
+
$experimental-support-for-opera : false;
|
|
21
|
+
$experimental-support-for-khtml : false;
|
|
22
|
+
|
|
23
|
+
// Grid -------------------------------------------------------------------
|
|
24
|
+
$total-columns : 7; // a 7-column grid
|
|
25
|
+
$column-width : 60px; // each column is 4em wide
|
|
26
|
+
$gutter-width : 20px; // 1em gutters between columns
|
|
27
|
+
$grid-padding : 10px; // grid-padding equal to gutters
|
|
28
|
+
$break : 12; // a 12-column grid
|
|
29
|
+
|
|
30
|
+
// Typography -------------------------------------------------------------
|
|
31
|
+
$sans-serif : "Helvetica Neue", Helvetica, sans-serif;
|
|
32
|
+
$serif : Georgia, Times, "Times New Roman", serif;
|
|
33
|
+
$monospace : "Menlo", "Bitstream Vera Sans", Monaco, "Andale Mono", "Lucida Console", monospace;
|
|
34
|
+
|
|
35
|
+
// Vertical Ryhthm --------------------------------------------------------
|
|
36
|
+
$base-font-size : 16px; // Font-size of your body copy.
|
|
37
|
+
$base-line-height : 12px; // Setting the base-line-height half.
|
|
38
|
+
$relative-font-sizing : true; // Set to false if you want to use absolute pixels in sizing your typography.
|
|
39
|
+
|
|
40
|
+
$fs-h1 : 40px;
|
|
41
|
+
$fs-h2 : 35px;
|
|
42
|
+
$fs-h3 : 32px;
|
|
43
|
+
$fs-h4 : 28px;
|
|
44
|
+
$fs-h5 : 24px;
|
|
45
|
+
$fs-h6 : 12px;
|
|
46
|
+
|
|
47
|
+
// Colors ------------------------------------------------------------------
|
|
48
|
+
$white : #fff;
|
|
49
|
+
$black : #252525;
|
|
50
|
+
|
|
51
|
+
$brand-color : #3b5998;
|
|
52
|
+
$action-color : #67a54b;
|
|
53
|
+
$function-color : #f2f2f2;
|
|
54
|
+
$alert-color : #b22727;
|
|
55
|
+
|
|
56
|
+
$brand-color-light : lighten( $brand-color, 10% );
|
|
57
|
+
$brand-color-lighter : lighten( $brand-color, 20% );
|
|
58
|
+
$brand-color-dark : darken( $brand-color, 15% );
|
|
59
|
+
$brand-color-darker : darken( $brand-color, 25% );
|
|
60
|
+
|
|
61
|
+
$action-color-light : lighten( $action-color, 10% );
|
|
62
|
+
$action-color-lighter : lighten( $action-color, 20% );
|
|
63
|
+
$action-color-dark : darken( $action-color, 15% );
|
|
64
|
+
$action-color-darker : darken( $action-color, 25% );
|
|
65
|
+
|
|
66
|
+
$function-color-light : lighten( $function-color, 10% );
|
|
67
|
+
$function-color-lighter : lighten( $function-color, 20% );
|
|
68
|
+
$function-color-dark : darken( $function-color, 15% );
|
|
69
|
+
$function-color-darker : darken( $function-color, 25% );
|
|
70
|
+
|
|
71
|
+
$alert-color-light : lighten( $alert-color, 10% );
|
|
72
|
+
$alert-color-lighter : lighten( $alert-color, 20% );
|
|
73
|
+
$alert-color-dark : darken( $alert-color, 15% );
|
|
74
|
+
$alert-color-darker : darken( $alert-color, 25% );
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// base classes
|
|
2
|
+
.alignnone {
|
|
3
|
+
margin: 1em 1em 1em 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.aligncenter, div.aligncenter {
|
|
7
|
+
display: block;
|
|
8
|
+
margin: .5em auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.alignright {
|
|
12
|
+
float: right;
|
|
13
|
+
margin: 0 0 1em 1em;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.alignleft {
|
|
17
|
+
float: left;
|
|
18
|
+
margin: 0 1em 1em 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.aligncenter {
|
|
22
|
+
display: block;
|
|
23
|
+
margin: 1em auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.round-corners {
|
|
27
|
+
@include border-radius(3px);
|
|
28
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
div.page {
|
|
2
|
+
// page acts as a container for our grid.
|
|
3
|
+
@include container($total-columns, $break);
|
|
4
|
+
.header {
|
|
5
|
+
padding-top: 50px;
|
|
6
|
+
}
|
|
7
|
+
.main, .secondary {
|
|
8
|
+
padding: 0 gutter();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@include at-breakpoint($break) {
|
|
13
|
+
div.page {
|
|
14
|
+
.header { @include prefix(2,$break); }
|
|
15
|
+
|
|
16
|
+
// nav spans 2 columns of total 12.
|
|
17
|
+
.nav-menu { @include span-columns(2,$break); }
|
|
18
|
+
|
|
19
|
+
.content {
|
|
20
|
+
$main-columns: 10;
|
|
21
|
+
// content spans the final (omega) 10 columns of 12.
|
|
22
|
+
@include span-columns($main-columns omega, $break);
|
|
23
|
+
|
|
24
|
+
// main content spans 7 of those 10 columns.
|
|
25
|
+
.main {
|
|
26
|
+
@include span-columns(7,$main-columns);
|
|
27
|
+
article, .archive-title, .navigation, .comments-area {
|
|
28
|
+
width: columns(7,7) - gutter();
|
|
29
|
+
margin-left: gutter();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.main, .secondary {
|
|
33
|
+
padding: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// secondary content spans the final 3 (omega) of 10 columns.
|
|
37
|
+
.secondary {
|
|
38
|
+
@include span-columns(3 omega, $main-columns);
|
|
39
|
+
.widgets {
|
|
40
|
+
width: columns(3,3) - gutter();
|
|
41
|
+
margin-right: gutter();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.footer {
|
|
49
|
+
clear: both;
|
|
50
|
+
margin: $grid-padding 0 - $grid-padding;
|
|
51
|
+
padding: $grid-padding;
|
|
52
|
+
@include at-breakpoint($break) {
|
|
53
|
+
margin: 0;
|
|
54
|
+
@include pad(2,3,$break);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// $ratio : any valid ratio like 16/9, 4/3...
|
|
2
|
+
@mixin responsive-embed($ratio: $responsive-embeds-default-ratio) {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
height: 100%/$ratio;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
iframe,
|
|
8
|
+
object,
|
|
9
|
+
embed {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@function inverse-side($side) {
|
|
19
|
+
@if $side == top { @return bottom; }
|
|
20
|
+
@else if $side == bottom { @return top; }
|
|
21
|
+
@else if $side == left { @return right; }
|
|
22
|
+
@else if $side == right { @return left; }
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin linear-gradient($gradientLine, $colorStops...) {
|
|
26
|
+
background-image: -webkit-linear-gradient($gradientLine, $colorStops);
|
|
27
|
+
background-image: -moz-linear-gradient($gradientLine, $colorStops);
|
|
28
|
+
@if length($gradientLine) == 2 {
|
|
29
|
+
background-image: linear-gradient(to #{inverse-side(nth($gradientLine, 1))} #{inverse-side(nth($gradientLine, 2))}, $colorStops);
|
|
30
|
+
} @else {
|
|
31
|
+
background-image: linear-gradient(to #{inverse-side($gradientLine)}, $colorStops);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin button($color: #fff, $bg-color: #50A7E7, $font-size: 12px, $radius: 15px, $float: right) {
|
|
36
|
+
@include linear-gradient(top, $bg-color, darken($bg-color, 25%));
|
|
37
|
+
border: 1px solid darken($bg-color, 15%);
|
|
38
|
+
color: $color;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
float: $float;
|
|
41
|
+
@include adjust-font-size-to($font-size);
|
|
42
|
+
@include leader(2);
|
|
43
|
+
@include trailer;
|
|
44
|
+
padding: 4px 15px;
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
text-shadow: 0 1px 0 darken($color, 50%);
|
|
47
|
+
@include box-shadow(0 1px 1px darken($bg-color, 10%) inset, 0 0 1px darken($bg-color, 5%));
|
|
48
|
+
@include border-radius($radius);
|
|
49
|
+
&:hover {
|
|
50
|
+
@include linear-gradient(top, darken($bg-color, 25%), $bg-color);
|
|
51
|
+
@include box-shadow(0 1px 1px darken($bg-color, 20%) inset, 0 0 1px darken($bg-color, 10%));
|
|
52
|
+
}
|
|
53
|
+
&:active {
|
|
54
|
+
@include box-shadow(0 0 10px darken($bg-color, 30%) inset);
|
|
55
|
+
text-shadow: 0 -1px 0 darken($color, 90%);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
div.page {
|
|
2
|
+
.search {
|
|
3
|
+
position: relative;
|
|
4
|
+
margin: 0 auto;
|
|
5
|
+
width: columns(3,3) - gutter();
|
|
6
|
+
input[type=search] {
|
|
7
|
+
height: 26px;
|
|
8
|
+
width: 100%;
|
|
9
|
+
padding: 0 12px 0 25px;
|
|
10
|
+
background: white url(../images/search.png) 8px 6px no-repeat;
|
|
11
|
+
color: #555;
|
|
12
|
+
border: 1px solid;
|
|
13
|
+
border-color: #a8acbc #babdcc #c0c3d2;
|
|
14
|
+
border-radius: 13px;
|
|
15
|
+
-webkit-appearance: textfield;
|
|
16
|
+
@include box-shadow(inset 0 1px #e5e7ed, 0 1px #fcfcfc);
|
|
17
|
+
&:focus {
|
|
18
|
+
outline: 0;
|
|
19
|
+
border-color: #66b1ee;
|
|
20
|
+
@include box-shadow(0 0 2px rgba(85, 168, 236, .9));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.main {
|
|
25
|
+
article.hentry {
|
|
26
|
+
@extend .clearfix;
|
|
27
|
+
@include padding-leader(2);
|
|
28
|
+
@include padding-trailer(1);
|
|
29
|
+
@include trailing-border(1px, lines-for-font-size(17px));
|
|
30
|
+
border-color: rgba(shade($function-color-light, 15%), .4);
|
|
31
|
+
&.single .entry-content {
|
|
32
|
+
border-bottom: none;
|
|
33
|
+
}
|
|
34
|
+
&.format-aside .entry-meta, &.format-quote .entry-meta {
|
|
35
|
+
margin-top: 0;
|
|
36
|
+
}
|
|
37
|
+
.featured-post {
|
|
38
|
+
@include adjust-font-size-to(24px);
|
|
39
|
+
@include trailing-border(2px, 1);
|
|
40
|
+
@include rhythm(1, 0, 1, 0);
|
|
41
|
+
border-color: rgba(shade($function-color-light, 15%), .4);
|
|
42
|
+
}
|
|
43
|
+
&.sticky {}
|
|
44
|
+
header {
|
|
45
|
+
.wp-post-image {
|
|
46
|
+
max-width: columns(7,7) - gutter();
|
|
47
|
+
height: auto;
|
|
48
|
+
float: left;
|
|
49
|
+
@include rhythm-borders(1px, 1/2);
|
|
50
|
+
@include trailer;
|
|
51
|
+
margin-right: gutter();
|
|
52
|
+
border-color: $function-color;
|
|
53
|
+
background: $white;
|
|
54
|
+
}
|
|
55
|
+
.entry-title {
|
|
56
|
+
a {
|
|
57
|
+
color: $brand-color-dark;
|
|
58
|
+
&:hover {
|
|
59
|
+
color: $brand-color-light;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
#{headings(1, 6)} {
|
|
65
|
+
color: $function-color-darker;
|
|
66
|
+
}
|
|
67
|
+
&.format-status {
|
|
68
|
+
.entry-header {
|
|
69
|
+
@extend .clearfix;
|
|
70
|
+
img {
|
|
71
|
+
float: left;
|
|
72
|
+
@include rhythm-borders(1px, 1/4);
|
|
73
|
+
@include trailer;
|
|
74
|
+
margin-right: gutter();
|
|
75
|
+
border-color: $function-color;
|
|
76
|
+
background: $white;
|
|
77
|
+
}
|
|
78
|
+
header {
|
|
79
|
+
float: left;
|
|
80
|
+
h1 {
|
|
81
|
+
@include adjust-font-size-to(32px);
|
|
82
|
+
}
|
|
83
|
+
h2 {
|
|
84
|
+
@include adjust-font-size-to(22px);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.entry-meta {
|
|
90
|
+
@include adjust-font-size-to(14px);
|
|
91
|
+
@include leader(3);
|
|
92
|
+
@include trailer(2);
|
|
93
|
+
.edit-link {
|
|
94
|
+
color: $brand-color-darker;
|
|
95
|
+
text-decoration: none;
|
|
96
|
+
&:hover {
|
|
97
|
+
background: none;
|
|
98
|
+
color: desaturate(darken($brand-color, 50), 15);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
.author-info {
|
|
102
|
+
@include adjust-font-size-to(14px);
|
|
103
|
+
@include leader(3);
|
|
104
|
+
padding: $grid-padding;
|
|
105
|
+
background: $function-color;
|
|
106
|
+
color: $brand-color-darker;
|
|
107
|
+
@include border-radius(3px);
|
|
108
|
+
@include box-shadow(darken($function-color, 5), 1px, 1px, 1px);
|
|
109
|
+
.author-avatar {
|
|
110
|
+
float: left;
|
|
111
|
+
width: columns(1,7);
|
|
112
|
+
img {
|
|
113
|
+
padding: 3px;
|
|
114
|
+
background: $white;
|
|
115
|
+
border: 1px solid $function-color;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
.author-description {
|
|
119
|
+
float: right;
|
|
120
|
+
width: columns(6,7);
|
|
121
|
+
}
|
|
122
|
+
@include background-clip(padding-box);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.more-link {
|
|
127
|
+
@extend .heading-font;
|
|
128
|
+
@include adjust-font-size-to(13px);
|
|
129
|
+
&:hover {
|
|
130
|
+
text-decoration: underline;
|
|
131
|
+
}
|
|
132
|
+
&:after {
|
|
133
|
+
content: "\FFEB";
|
|
134
|
+
padding-left: 5px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
.navigation {
|
|
138
|
+
@extend .clearfix;
|
|
139
|
+
@extend .heading-font;
|
|
140
|
+
.section-heading {
|
|
141
|
+
@include adjust-font-size-to(15px);
|
|
142
|
+
@include rhythm(0, 0, 1, 0);
|
|
143
|
+
}
|
|
144
|
+
.nav-next, .nav-previous {
|
|
145
|
+
a {
|
|
146
|
+
@include adjust-font-size-to(18px);
|
|
147
|
+
color: $function-color-darker;
|
|
148
|
+
text-decoration: none;
|
|
149
|
+
&:hover {
|
|
150
|
+
color: $brand-color-dark;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
.nav-next {
|
|
155
|
+
display: inline-block;
|
|
156
|
+
float: right;
|
|
157
|
+
a:after {
|
|
158
|
+
content: "\FFEB";
|
|
159
|
+
padding-left: 5px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
.nav-previous {
|
|
163
|
+
display: inline-block;
|
|
164
|
+
float: left;
|
|
165
|
+
a:before {
|
|
166
|
+
content: "\FFE9";
|
|
167
|
+
padding-right: 5px;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
.page-numbers {
|
|
172
|
+
@extend .navigation;
|
|
173
|
+
@include rhythm(1,0,1,0);
|
|
174
|
+
li {
|
|
175
|
+
list-style-type: none;
|
|
176
|
+
float: left;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
.page-links {
|
|
180
|
+
@extend .navigation;
|
|
181
|
+
}
|
|
182
|
+
.comments-area {
|
|
183
|
+
@include leader;
|
|
184
|
+
border-color: $function-color-dark;
|
|
185
|
+
.comments-title {
|
|
186
|
+
@include trailer;
|
|
187
|
+
}
|
|
188
|
+
ol.commentlist {
|
|
189
|
+
list-style: none;
|
|
190
|
+
@include trailer(2);
|
|
191
|
+
text-indent: 0;
|
|
192
|
+
@include leading-border(1px, lines-for-font-size(18px), $base-font-size, dashed);
|
|
193
|
+
padding-top: 0;
|
|
194
|
+
li {
|
|
195
|
+
&.alt!, &.bypostauthor!, &.byuser!, &.comment-author-admin! {}
|
|
196
|
+
&.comment {
|
|
197
|
+
@extend .clearfix;
|
|
198
|
+
@include trailing-border(1px, lines-for-font-size(18px), $base-font-size, dashed);
|
|
199
|
+
border-color: $function-color-dark;
|
|
200
|
+
padding: $grid-padding;
|
|
201
|
+
.vcard {
|
|
202
|
+
@extend .sans-font;
|
|
203
|
+
@include adjust-font-size-to(14px);
|
|
204
|
+
color: $function-color-dark;
|
|
205
|
+
font-weight: 400;
|
|
206
|
+
a {
|
|
207
|
+
color: $function-color-dark;
|
|
208
|
+
}
|
|
209
|
+
cite.fn {
|
|
210
|
+
font-style: italic;
|
|
211
|
+
a.url! {}
|
|
212
|
+
}
|
|
213
|
+
img {
|
|
214
|
+
float: right;
|
|
215
|
+
@include rhythm-borders(1px, 1/3);
|
|
216
|
+
margin-left: gutter();
|
|
217
|
+
border-color: $function-color;
|
|
218
|
+
background: $white;
|
|
219
|
+
&.avatar {}
|
|
220
|
+
&.avatar-32!, &.photo! {}
|
|
221
|
+
}
|
|
222
|
+
span.says! {}
|
|
223
|
+
}
|
|
224
|
+
p {
|
|
225
|
+
@include adjust-font-size-to(16px);
|
|
226
|
+
@include rhythm(0, 0, 1, 0);
|
|
227
|
+
}
|
|
228
|
+
ul {
|
|
229
|
+
@include adjust-font-size-to(16px);
|
|
230
|
+
@include rhythm(0, 0, 1, 0);
|
|
231
|
+
list-style: square;
|
|
232
|
+
}
|
|
233
|
+
.reply {
|
|
234
|
+
@include adjust-font-size-to(11px);
|
|
235
|
+
.comment-edit-link {
|
|
236
|
+
font-weight: 600;
|
|
237
|
+
color: $alert-color-dark;
|
|
238
|
+
a {
|
|
239
|
+
font-weight: 600;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
.children {
|
|
244
|
+
list-style: none;
|
|
245
|
+
@include leader;
|
|
246
|
+
text-indent: 0;
|
|
247
|
+
li {
|
|
248
|
+
&.alt!, &.bypostauthor!, &.byuser!, &.comment!, &.comment-author-admin! {}
|
|
249
|
+
&.depth-2, &.depth-3, &.depth-4, &.depth-5 {
|
|
250
|
+
@include apply-side-rhythm-border(left, 2px, .25);
|
|
251
|
+
@include trailer;
|
|
252
|
+
border-bottom: none;
|
|
253
|
+
}
|
|
254
|
+
&.depth-2 {
|
|
255
|
+
border-color: $function-color;
|
|
256
|
+
}
|
|
257
|
+
&.depth-3 {
|
|
258
|
+
border-color: $function-color-dark;
|
|
259
|
+
}
|
|
260
|
+
&.depth-4 {
|
|
261
|
+
border-color: $function-color-darker;
|
|
262
|
+
}
|
|
263
|
+
&.depth-5!, &.odd! {}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
&.even {
|
|
268
|
+
background: shade($function-color-light, 1%);
|
|
269
|
+
}
|
|
270
|
+
&.odd {
|
|
271
|
+
background: shade($function-color-light, 2%);
|
|
272
|
+
}
|
|
273
|
+
&.parent {
|
|
274
|
+
border-left: 1px solid $function-color-dark;
|
|
275
|
+
}
|
|
276
|
+
&.thread-alt!, &.thread-even!, &.thread-odd! {}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
form#commentform {
|
|
281
|
+
label {
|
|
282
|
+
width: 120px;
|
|
283
|
+
display: inline-block;
|
|
284
|
+
.required {
|
|
285
|
+
color: $alert-color;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
textarea, input[type=text], , input[type=email], input[type=password] {
|
|
289
|
+
padding: 4px 6px;
|
|
290
|
+
width: 350px;
|
|
291
|
+
color: #555;
|
|
292
|
+
border: 1px solid;
|
|
293
|
+
border-color: #a8acbc #babdcc #c0c3d2;
|
|
294
|
+
float: right;
|
|
295
|
+
&:focus {
|
|
296
|
+
border-color: $alert-color;
|
|
297
|
+
background: $function-color;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
textarea {
|
|
301
|
+
height: 46px;
|
|
302
|
+
clear: both;
|
|
303
|
+
}
|
|
304
|
+
.form-allowed-tags {
|
|
305
|
+
display: none;
|
|
306
|
+
}
|
|
307
|
+
input[type=submit] {
|
|
308
|
+
@include button($function-color-light, $action-color-lighter);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
p.subscribe-to-comments, .comment-rss {
|
|
313
|
+
height: 32px;
|
|
314
|
+
text-indent: 42px;
|
|
315
|
+
padding: 5px 0 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
p.subscribe-to-comments {
|
|
319
|
+
input {
|
|
320
|
+
margin: 5px 3px 3px !important;
|
|
321
|
+
border: 0;
|
|
322
|
+
outline: 0;
|
|
323
|
+
}
|
|
324
|
+
label {
|
|
325
|
+
top: -2px;
|
|
326
|
+
color: #666;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
.secondary {
|
|
331
|
+
.widgets {
|
|
332
|
+
@include padding-leader(2);
|
|
333
|
+
@include padding-trailer(2);
|
|
334
|
+
.wp-tag-cloud {
|
|
335
|
+
@extend .clearfix;
|
|
336
|
+
li {
|
|
337
|
+
position: relative;
|
|
338
|
+
float: left;
|
|
339
|
+
margin: 0 12px 8px 0;
|
|
340
|
+
}
|
|
341
|
+
a {
|
|
342
|
+
display: block;
|
|
343
|
+
height: $tagsHeight;
|
|
344
|
+
line-height: $tagsHeight - 3px;
|
|
345
|
+
padding: 0 9px 0 8px;
|
|
346
|
+
font-size: 12px;
|
|
347
|
+
color: #555;
|
|
348
|
+
text-decoration: none;
|
|
349
|
+
text-shadow: 0 1px white;
|
|
350
|
+
background: #fafafa;
|
|
351
|
+
border-width: 1px;
|
|
352
|
+
border-style: solid;
|
|
353
|
+
border-color: #dadada #d2d2d2 #c5c5c5;
|
|
354
|
+
@extend .round-corners;
|
|
355
|
+
@include linear-gradient(top, #fcfcfc, #f0f0f0);
|
|
356
|
+
@include box-shadow(inset 0 0 0 1px rgba(white, .7), 0 1px 2px rgba(black, .05));
|
|
357
|
+
&:hover {
|
|
358
|
+
@include box-shadow(inset 0 0 0 1px rgba(white, .15), 1px 1px 2px rgba(black, .2));
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|