wordpress-starter 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -1
- data/README.md +12 -0
- data/lib/wordpress-starter.rb +2 -1
- data/templates/bootstrap/404.php +24 -0
- data/templates/bootstrap/admin/README.txt +25 -0
- data/templates/bootstrap/admin/assets/css/admin-style.css +838 -0
- data/templates/bootstrap/admin/assets/css/colorpicker.css +177 -0
- data/templates/bootstrap/admin/assets/images/1col.png +0 -0
- data/templates/bootstrap/admin/assets/images/2-col-portfolio.png +0 -0
- data/templates/bootstrap/admin/assets/images/2cl.png +0 -0
- data/templates/bootstrap/admin/assets/images/2cr.png +0 -0
- data/templates/bootstrap/admin/assets/images/3-col-portfolio.png +0 -0
- data/templates/bootstrap/admin/assets/images/3cm.png +0 -0
- data/templates/bootstrap/admin/assets/images/3cr.png +0 -0
- data/templates/bootstrap/admin/assets/images/4-col-portfolio.png +0 -0
- data/templates/bootstrap/admin/assets/images/accept.png +0 -0
- data/templates/bootstrap/admin/assets/images/button_check.png +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/blank.gif +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_background.png +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_hex.png +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_hsb_b.png +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_hsb_h.png +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_hsb_s.png +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_indic.gif +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_overlay.png +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_rgb_b.png +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_rgb_g.png +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_rgb_r.png +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_select.gif +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/colorpicker_submit.png +0 -0
- data/templates/bootstrap/admin/assets/images/colorpicker/select.png +0 -0
- data/templates/bootstrap/admin/assets/images/dropdown-arrow.png +0 -0
- data/templates/bootstrap/admin/assets/images/favicon.ico +0 -0
- data/templates/bootstrap/admin/assets/images/icon-add.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon-backup.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon-delete.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon-docs.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon-edit.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon-home.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon-info.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon-notice.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon-paint.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon-settings.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon-slider.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon-warn.png +0 -0
- data/templates/bootstrap/admin/assets/images/icon_option.png +0 -0
- data/templates/bootstrap/admin/assets/images/loading-bottom.gif +0 -0
- data/templates/bootstrap/admin/assets/images/select.png +0 -0
- data/templates/bootstrap/admin/assets/images/sign_warning.png +0 -0
- data/templates/bootstrap/admin/assets/images/stop.png +0 -0
- data/templates/bootstrap/admin/assets/images/toggle_tabs.png +0 -0
- data/templates/bootstrap/admin/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/bootstrap/admin/assets/images/warning.png +0 -0
- data/templates/bootstrap/admin/assets/images/wrench.png +0 -0
- data/templates/bootstrap/admin/assets/images/wrench16.png +0 -0
- data/templates/bootstrap/admin/assets/js/ajaxupload.js +606 -0
- data/templates/bootstrap/admin/assets/js/colorpicker.js +455 -0
- data/templates/bootstrap/admin/assets/js/cookie.js +1 -0
- data/templates/bootstrap/admin/assets/js/jquery.maskedinput-1.2.2.js +252 -0
- data/templates/bootstrap/admin/assets/js/jquery.tipsy.js +241 -0
- data/templates/bootstrap/admin/assets/js/of-medialibrary-uploader.js +168 -0
- data/templates/bootstrap/admin/assets/js/smof.js +623 -0
- data/templates/bootstrap/admin/classes/class.options-machine.php +627 -0
- data/templates/bootstrap/admin/front-end/options.php +77 -0
- data/templates/bootstrap/admin/functions/functions.admin.php +76 -0
- data/templates/bootstrap/admin/functions/functions.interface.php +232 -0
- data/templates/bootstrap/admin/functions/functions.load.php +14 -0
- data/templates/bootstrap/admin/functions/functions.mediauploader.php +194 -0
- data/templates/bootstrap/admin/functions/functions.options.php +508 -0
- data/templates/bootstrap/admin/functions/functions.php +0 -0
- data/templates/bootstrap/admin/index.php +87 -0
- data/templates/bootstrap/admin/layouts/default.css +0 -0
- data/templates/bootstrap/admin/layouts/placebo.css +0 -0
- data/templates/bootstrap/archive.php +57 -0
- data/templates/bootstrap/category.php +40 -0
- data/templates/bootstrap/comments.php +65 -0
- data/templates/bootstrap/content-aside.php +26 -0
- data/templates/bootstrap/content-image.php +29 -0
- data/templates/bootstrap/content-link.php +27 -0
- data/templates/bootstrap/content-none.php +21 -0
- data/templates/bootstrap/content-page.php +24 -0
- data/templates/bootstrap/content-quote.php +26 -0
- data/templates/bootstrap/content-status.php +33 -0
- data/templates/bootstrap/content.php +67 -0
- data/templates/bootstrap/editor-style.scss +72 -0
- data/templates/bootstrap/footer.php +29 -0
- data/templates/bootstrap/functions.php +1528 -0
- data/templates/bootstrap/header.php +74 -0
- data/templates/bootstrap/ie.scss +1 -0
- data/templates/bootstrap/images/bg/bg0.png +0 -0
- data/templates/bootstrap/images/bg/bg1.png +0 -0
- data/templates/bootstrap/images/bg/bg10.png +0 -0
- data/templates/bootstrap/images/bg/bg11.png +0 -0
- data/templates/bootstrap/images/bg/bg2.png +0 -0
- data/templates/bootstrap/images/bg/bg3.png +0 -0
- data/templates/bootstrap/images/bg/bg4.png +0 -0
- data/templates/bootstrap/images/bg/bg5.png +0 -0
- data/templates/bootstrap/images/bg/bg6.jpg +0 -0
- data/templates/bootstrap/images/bg/bg7.jpg +0 -0
- data/templates/bootstrap/images/bg/bg8.png +0 -0
- data/templates/bootstrap/images/bg/bg9.png +0 -0
- data/templates/bootstrap/images/glyphicons-halflings-white.png +0 -0
- data/templates/bootstrap/images/glyphicons-halflings.png +0 -0
- data/templates/bootstrap/index.php +19 -0
- data/templates/bootstrap/javascripts/app.js +6 -0
- data/templates/bootstrap/javascripts/bootstrap.js +2159 -0
- data/templates/bootstrap/javascripts/bootstrap.min.js +6 -0
- data/templates/{project/javascripts/moderninzr.min.js → bootstrap/javascripts/modernizr.min.js} +0 -0
- data/templates/bootstrap/languages/readme.txt +6 -0
- data/templates/bootstrap/license.txt +281 -0
- data/templates/bootstrap/loop.php +30 -0
- data/templates/bootstrap/manifest.rb +156 -0
- data/templates/bootstrap/options.php +42 -0
- data/templates/bootstrap/page.php +29 -0
- data/templates/bootstrap/print.scss +104 -0
- data/templates/bootstrap/readme.txt +6 -0
- data/templates/bootstrap/sass/_app.scss +10 -0
- data/templates/bootstrap/sass/_settings.scss +301 -0
- data/templates/bootstrap/screen.scss +1 -0
- data/templates/bootstrap/screenshot.png +0 -0
- data/templates/bootstrap/search.php +31 -0
- data/templates/bootstrap/searchform.php +31 -0
- data/templates/bootstrap/sidebar.php +15 -0
- data/templates/bootstrap/single.php +31 -0
- data/templates/bootstrap/style.css +18 -0
- data/templates/bootstrap/tag.php +41 -0
- data/templates/foundation/functions.php +8 -9
- data/templates/foundation/sass/_app.scss +2 -0
- data/templates/project/functions.php +1 -1
- data/templates/project/javascripts/app.js +2 -5
- data/templates/project/javascripts/modernizr.min.js +4 -0
- data/templates/project/manifest.rb +1 -1
- metadata +141 -2
@@ -0,0 +1,42 @@
|
|
1
|
+
<?php
|
2
|
+
function of_options() {
|
3
|
+
// Set the Options Array
|
4
|
+
global $of_options;
|
5
|
+
$of_options = array();
|
6
|
+
|
7
|
+
$of_options[] = array(
|
8
|
+
'name' => __( 'Theme settings', 'bootstrap' ),
|
9
|
+
'type' => 'heading',
|
10
|
+
);
|
11
|
+
|
12
|
+
$of_options[] = array(
|
13
|
+
'name' => 'Hello there!',
|
14
|
+
'desc' => '',
|
15
|
+
'id' => 'introduction',
|
16
|
+
'std' => '<h3 style="margin: 0 0 10px;">'.__( 'Welcome to the WordPress Starter Theme.', 'bootstrap' ).'</h3> This is a demo of the SMOF options framework, edit the options.php file inside the theme folder to setup your own, you can learn about the SMOF at <a href="//aquagraphite.com/2011/11/smof-documentation/" target="_blank">aquagraphite</a>.',
|
17
|
+
'icon' => true,
|
18
|
+
'type' => 'info',
|
19
|
+
);
|
20
|
+
|
21
|
+
// Backup Options
|
22
|
+
$of_options[] = array(
|
23
|
+
'name' => 'Backup Options',
|
24
|
+
'type' => 'heading',
|
25
|
+
);
|
26
|
+
|
27
|
+
$of_options[] = array(
|
28
|
+
'name' => 'Backup and Restore Options',
|
29
|
+
'id' => 'of_backup',
|
30
|
+
'std' => '',
|
31
|
+
'type' => 'backup',
|
32
|
+
'desc' => 'You can use the two buttons below to backup your current options, and then restore it back at a later time. This is useful if you want to experiment on the options but would like to keep the old settings in case you need it back.',
|
33
|
+
);
|
34
|
+
|
35
|
+
$of_options[] = array(
|
36
|
+
'name' => 'Transfer Theme Options Data',
|
37
|
+
'id' => 'of_transfer',
|
38
|
+
'std' => '',
|
39
|
+
'type' => 'transfer',
|
40
|
+
'desc' => 'You can tranfer the saved options data between different installs by copying the text inside the text box. To import data from another install, replace the data in the text box with the one from another install and click "Import Options".',
|
41
|
+
);
|
42
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<?php
|
2
|
+
/**
|
3
|
+
* The template for displaying all pages.
|
4
|
+
*
|
5
|
+
* This is the template that displays all pages by default.
|
6
|
+
* Please note that this is the WordPress construct of pages
|
7
|
+
* and that other 'pages' on your WordPress site will use a
|
8
|
+
* different template.
|
9
|
+
*
|
10
|
+
* @category Theme
|
11
|
+
* @package [bootstrap]
|
12
|
+
* @author [Your Name]
|
13
|
+
* @copyright 2012 [Your Name]
|
14
|
+
*/
|
15
|
+
|
16
|
+
get_header( get_post_format() );
|
17
|
+
|
18
|
+
while ( have_posts() ):
|
19
|
+
the_post();
|
20
|
+
|
21
|
+
/* If you want to overload this in a child theme then include a file
|
22
|
+
* called content-single.php and that will be used instead.
|
23
|
+
*/
|
24
|
+
get_template_part( 'content', 'page' );
|
25
|
+
|
26
|
+
comments_template( '', true );
|
27
|
+
endwhile;
|
28
|
+
|
29
|
+
get_footer( get_post_format() );
|
@@ -0,0 +1,104 @@
|
|
1
|
+
@media print {
|
2
|
+
/* All your print styles go here */
|
3
|
+
/* Smashing winery
|
4
|
+
Example site for article at Smashing Magazine
|
5
|
+
by Christian Krammer, ck@css3files.com
|
6
|
+
|
7
|
+
Print style */
|
8
|
+
/* Reset quotes */
|
9
|
+
q {
|
10
|
+
quotes: none;
|
11
|
+
&:before, &:after {
|
12
|
+
content: "";
|
13
|
+
}
|
14
|
+
}
|
15
|
+
/* Hide everything unneeded */
|
16
|
+
header {
|
17
|
+
h1, nav {
|
18
|
+
display: none;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
footer, img {
|
22
|
+
display: none;
|
23
|
+
}
|
24
|
+
/* font sizes */
|
25
|
+
body {
|
26
|
+
font: 12pt Georgia, "Times New Roman", Times, serif;
|
27
|
+
line-height: 1.3;
|
28
|
+
color: #000;
|
29
|
+
}
|
30
|
+
h1 {
|
31
|
+
font-size: 24pt;
|
32
|
+
}
|
33
|
+
h2 {
|
34
|
+
font-size: 14pt;
|
35
|
+
margin-top: 25px;
|
36
|
+
}
|
37
|
+
aside h2 {
|
38
|
+
font-size: 18pt;
|
39
|
+
}
|
40
|
+
/* Show printer-frindly logo. */
|
41
|
+
header .print {
|
42
|
+
display: block;
|
43
|
+
}
|
44
|
+
/* If you like things a little bit easier and more semantic you can alternatively just leave the h1 of the header visible, switch off the margin and make it bigger than the rest of the headlines */
|
45
|
+
/*header nav, footer, img {display: none}
|
46
|
+
|
47
|
+
header h1 {
|
48
|
+
margin: 0;
|
49
|
+
font-size: 30pt;
|
50
|
+
}*/
|
51
|
+
/* Some browsers like to show a border around images. Switch it off */
|
52
|
+
img {
|
53
|
+
border: 0;
|
54
|
+
}
|
55
|
+
/* Mover the header a little bit awy from the content */
|
56
|
+
header {
|
57
|
+
margin-bottom: 40px;
|
58
|
+
&:after {
|
59
|
+
display: block;
|
60
|
+
content: "www.smashing-winery.com";
|
61
|
+
}
|
62
|
+
}
|
63
|
+
/* Display the URL of the site so that the user knows where the printout came from */
|
64
|
+
/* Additionally/optionally a little message could be displayed */
|
65
|
+
/*header:before {
|
66
|
+
display: block;
|
67
|
+
content: "Thank your for printing our content at www.smashing-winery.com. Please check back soon for new offers about delicious wine from our winery.";
|
68
|
+
margin-bottom: 10px;
|
69
|
+
border: 1px solid #bbb;
|
70
|
+
padding: 3px 5px;
|
71
|
+
font-style: italic;
|
72
|
+
}*/
|
73
|
+
/* Separate blockquotes a little bit from the rest */
|
74
|
+
blockquote {
|
75
|
+
font-size: 13pt;
|
76
|
+
font-style: italic;
|
77
|
+
}
|
78
|
+
/* By default links are blue. For optimal legibility change them to black */
|
79
|
+
p a {
|
80
|
+
color: #000;
|
81
|
+
&:after {
|
82
|
+
content: " (http://www.smashing-winery.com/" attr(href) ")";
|
83
|
+
font-size: 80%;
|
84
|
+
word-wrap: break-word;
|
85
|
+
}
|
86
|
+
&[href^="http://"]:after, &[href^="https://"]:after {
|
87
|
+
content: " (" attr(href) ")";
|
88
|
+
}
|
89
|
+
}
|
90
|
+
/* Show the URL after each link, whereby internal links are preceeded by the site's URL */
|
91
|
+
/* External links don't get this treatment */
|
92
|
+
/* Append the source of the citation */
|
93
|
+
q:after {
|
94
|
+
content: " (" attr(cite) ")";
|
95
|
+
}
|
96
|
+
/* The Sidebar is placed under the content automatically. To distinguish it from the rest a border and a gap is set before */
|
97
|
+
aside {
|
98
|
+
border-top: 1px solid #bbb;
|
99
|
+
margin-top: 30px;
|
100
|
+
display: block;
|
101
|
+
/*page-break-before: always; */
|
102
|
+
/* Moves the sidebar to new page */
|
103
|
+
}
|
104
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
// You custom settings file to override Bootstrap defaults
|
2
|
+
@import "settings";
|
3
|
+
|
4
|
+
// I gather this file is a starting point for the project.
|
5
|
+
@import "bootstrap";
|
6
|
+
|
7
|
+
// Include responsive Bootstrap styles
|
8
|
+
// @import "bootstrap-responsive";
|
9
|
+
|
10
|
+
@import "wordpress/defaults";
|
@@ -0,0 +1,301 @@
|
|
1
|
+
//
|
2
|
+
// Variables
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Global values
|
7
|
+
// --------------------------------------------------
|
8
|
+
|
9
|
+
|
10
|
+
// Grays
|
11
|
+
// -------------------------
|
12
|
+
$black: #000 !default;
|
13
|
+
$grayDarker: #222 !default;
|
14
|
+
$grayDark: #333 !default;
|
15
|
+
$gray: #555 !default;
|
16
|
+
$grayLight: #999 !default;
|
17
|
+
$grayLighter: #eee !default;
|
18
|
+
$white: #fff !default;
|
19
|
+
|
20
|
+
|
21
|
+
// Accent colors
|
22
|
+
// -------------------------
|
23
|
+
$blue: #049cdb !default;
|
24
|
+
$blueDark: #0064cd !default;
|
25
|
+
$green: #46a546 !default;
|
26
|
+
$red: #9d261d !default;
|
27
|
+
$yellow: #ffc40d !default;
|
28
|
+
$orange: #f89406 !default;
|
29
|
+
$pink: #c3325f !default;
|
30
|
+
$purple: #7a43b6 !default;
|
31
|
+
|
32
|
+
|
33
|
+
// Scaffolding
|
34
|
+
// -------------------------
|
35
|
+
$bodyBackground: $white !default;
|
36
|
+
$textColor: $grayDark !default;
|
37
|
+
|
38
|
+
|
39
|
+
// Links
|
40
|
+
// -------------------------
|
41
|
+
$linkColor: #08c !default;
|
42
|
+
$linkColorHover: darken($linkColor, 15%) !default;
|
43
|
+
|
44
|
+
|
45
|
+
// Typography
|
46
|
+
// -------------------------
|
47
|
+
$sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
|
48
|
+
$serifFontFamily: Georgia, "Times New Roman", Times, serif !default;
|
49
|
+
$monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace !default;
|
50
|
+
|
51
|
+
$baseFontSize: 14px !default;
|
52
|
+
$baseFontFamily: $sansFontFamily !default;
|
53
|
+
$baseLineHeight: 20px !default;
|
54
|
+
$altFontFamily: $serifFontFamily !default;
|
55
|
+
|
56
|
+
$headingsFontFamily: inherit !default; // empty to use BS default, $baseFontFamily
|
57
|
+
$headingsFontWeight: bold !default; // instead of browser default, bold
|
58
|
+
$headingsColor: inherit !default; // empty to use BS default, $textColor
|
59
|
+
|
60
|
+
|
61
|
+
// Component sizing
|
62
|
+
// -------------------------
|
63
|
+
// Based on 14px font-size and 20px line-height
|
64
|
+
|
65
|
+
$fontSizeLarge: $baseFontSize * 1.25; // ~18px
|
66
|
+
$fontSizeSmall: $baseFontSize * 0.85; // ~12px
|
67
|
+
$fontSizeMini: $baseFontSize * 0.75; // ~11px
|
68
|
+
|
69
|
+
$paddingLarge: 11px 19px; // 44px
|
70
|
+
$paddingSmall: 2px 10px; // 26px
|
71
|
+
$paddingMini: 1px 6px; // 24px
|
72
|
+
|
73
|
+
$baseBorderRadius: 4px;
|
74
|
+
$borderRadiusLarge: 6px;
|
75
|
+
$borderRadiusSmall: 3px;
|
76
|
+
|
77
|
+
|
78
|
+
// Tables
|
79
|
+
// -------------------------
|
80
|
+
$tableBackground: transparent !default; // overall background-color
|
81
|
+
$tableBackgroundAccent: #f9f9f9 !default; // for striping
|
82
|
+
$tableBackgroundHover: #f5f5f5 !default; // for hover
|
83
|
+
$tableBorder: #ddd !default; // table and cell border
|
84
|
+
|
85
|
+
// Buttons
|
86
|
+
// -------------------------
|
87
|
+
$btnBackground: $white !default;
|
88
|
+
$btnBackgroundHighlight: darken($white, 10%) !default;
|
89
|
+
$btnBorder: #bbb !default;
|
90
|
+
|
91
|
+
$btnPrimaryBackground: $linkColor !default;
|
92
|
+
$btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 20%) !default;
|
93
|
+
|
94
|
+
$btnInfoBackground: #5bc0de !default;
|
95
|
+
$btnInfoBackgroundHighlight: #2f96b4 !default;
|
96
|
+
|
97
|
+
$btnSuccessBackground: #62c462 !default;
|
98
|
+
$btnSuccessBackgroundHighlight: #51a351 !default;
|
99
|
+
|
100
|
+
$btnWarningBackground: lighten($orange, 15%) !default;
|
101
|
+
$btnWarningBackgroundHighlight: $orange !default;
|
102
|
+
|
103
|
+
$btnDangerBackground: #ee5f5b !default;
|
104
|
+
$btnDangerBackgroundHighlight: #bd362f !default;
|
105
|
+
|
106
|
+
$btnInverseBackground: #444 !default;
|
107
|
+
$btnInverseBackgroundHighlight: $grayDarker !default;
|
108
|
+
|
109
|
+
|
110
|
+
// Forms
|
111
|
+
// -------------------------
|
112
|
+
$inputBackground: $white !default;
|
113
|
+
$inputBorder: #ccc !default;
|
114
|
+
$inputBorderRadius: $baseBorderRadius !default;
|
115
|
+
$inputDisabledBackground: $grayLighter !default;
|
116
|
+
$formActionsBackground: #f5f5f5 !default;
|
117
|
+
$inputHeight: $baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
|
118
|
+
|
119
|
+
|
120
|
+
// Dropdowns
|
121
|
+
// -------------------------
|
122
|
+
$dropdownBackground: $white !default;
|
123
|
+
$dropdownBorder: rgba(0,0,0,.2) !default;
|
124
|
+
$dropdownDividerTop: #e5e5e5 !default;
|
125
|
+
$dropdownDividerBottom: $white !default;
|
126
|
+
|
127
|
+
$dropdownLinkColor: $grayDark !default;
|
128
|
+
$dropdownLinkColorHover: $white !default;
|
129
|
+
$dropdownLinkColorActive: $dropdownLinkColor !default;
|
130
|
+
|
131
|
+
$dropdownLinkBackgroundActive: $linkColor !default;
|
132
|
+
$dropdownLinkBackgroundHover: $dropdownLinkBackgroundActive !default;
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
// COMPONENT VARIABLES
|
137
|
+
// --------------------------------------------------
|
138
|
+
|
139
|
+
|
140
|
+
// Z-index master list
|
141
|
+
// -------------------------
|
142
|
+
// Used for a bird's eye view of components dependent on the z-axis
|
143
|
+
// Try to avoid customizing these :)
|
144
|
+
$zindexDropdown: 1000 !default;
|
145
|
+
$zindexPopover: 1010 !default;
|
146
|
+
$zindexTooltip: 1030 !default;
|
147
|
+
$zindexFixedNavbar: 1030 !default;
|
148
|
+
$zindexModalBackdrop: 1040 !default;
|
149
|
+
$zindexModal: 1050 !default;
|
150
|
+
|
151
|
+
|
152
|
+
// Sprite icons path
|
153
|
+
// -------------------------
|
154
|
+
$iconSpritePath: "../images/glyphicons-halflings.png" !default;
|
155
|
+
$iconWhiteSpritePath: "../images/glyphicons-halflings-white.png" !default;
|
156
|
+
|
157
|
+
|
158
|
+
// Input placeholder text color
|
159
|
+
// -------------------------
|
160
|
+
$placeholderText: $grayLight !default;
|
161
|
+
|
162
|
+
|
163
|
+
// Hr border color
|
164
|
+
// -------------------------
|
165
|
+
$hrBorder: $grayLighter !default;
|
166
|
+
|
167
|
+
|
168
|
+
// Horizontal forms & lists
|
169
|
+
// -------------------------
|
170
|
+
$horizontalComponentOffset: 180px;
|
171
|
+
|
172
|
+
|
173
|
+
// Wells
|
174
|
+
// -------------------------
|
175
|
+
$wellBackground: #f5f5f5 !default;
|
176
|
+
|
177
|
+
|
178
|
+
// Navbar
|
179
|
+
// -------------------------
|
180
|
+
$navbarCollapseWidth: 979px !default;
|
181
|
+
$navbarCollapseDesktopWidth: $navbarCollapseWidth + 1;
|
182
|
+
|
183
|
+
$navbarHeight: 40px !default;
|
184
|
+
$navbarBackgroundHighlight: #ffffff !default;
|
185
|
+
$navbarBackground: darken($navbarBackgroundHighlight, 5%) !default;
|
186
|
+
$navbarBorder: darken($navbarBackground, 12%) !default;
|
187
|
+
|
188
|
+
$navbarText: #777 !default;
|
189
|
+
$navbarLinkColor: #777 !default;
|
190
|
+
$navbarLinkColorHover: $grayDark !default;
|
191
|
+
$navbarLinkColorActive: $gray !default;
|
192
|
+
$navbarLinkBackgroundHover: transparent !default;
|
193
|
+
$navbarLinkBackgroundActive: darken($navbarBackground, 5%) !default;
|
194
|
+
|
195
|
+
$navbarBrandColor: $navbarLinkColor !default;
|
196
|
+
|
197
|
+
// Inverted navbar
|
198
|
+
$navbarInverseBackground: #111111 !default;
|
199
|
+
$navbarInverseBackgroundHighlight: #222222 !default;
|
200
|
+
$navbarInverseBorder: #252525 !default;
|
201
|
+
|
202
|
+
$navbarInverseText: $grayLight !default;
|
203
|
+
$navbarInverseLinkColor: $grayLight !default;
|
204
|
+
$navbarInverseLinkColorHover: $white !default;
|
205
|
+
$navbarInverseLinkColorActive: $navbarInverseLinkColorHover !default;
|
206
|
+
$navbarInverseLinkBackgroundHover: transparent !default;
|
207
|
+
$navbarInverseLinkBackgroundActive: $navbarInverseBackground !default;
|
208
|
+
|
209
|
+
$navbarInverseSearchBackground: lighten($navbarInverseBackground, 25%) !default;
|
210
|
+
$navbarInverseSearchBackgroundFocus: $white !default;
|
211
|
+
$navbarInverseSearchBorder: $navbarInverseBackground !default;
|
212
|
+
$navbarInverseSearchPlaceholderColor: #ccc !default;
|
213
|
+
|
214
|
+
$navbarInverseBrandColor: $navbarInverseLinkColor !default;
|
215
|
+
|
216
|
+
|
217
|
+
// Pagination
|
218
|
+
// -------------------------
|
219
|
+
$paginationBackground: #fff !default;
|
220
|
+
$paginationBorder: #ddd !default;
|
221
|
+
$paginationActiveBackground: #f5f5f5 !default;
|
222
|
+
|
223
|
+
|
224
|
+
// Hero unit
|
225
|
+
// -------------------------
|
226
|
+
$heroUnitBackground: $grayLighter !default;
|
227
|
+
$heroUnitHeadingColor: inherit !default;
|
228
|
+
$heroUnitLeadColor: inherit !default;
|
229
|
+
|
230
|
+
|
231
|
+
// Form states and alerts
|
232
|
+
// -------------------------
|
233
|
+
$warningText: #c09853 !default;
|
234
|
+
$warningBackground: #fcf8e3 !default;
|
235
|
+
$warningBorder: darken(adjust-hue($warningBackground, -10), 3%) !default;
|
236
|
+
|
237
|
+
$errorText: #b94a48 !default;
|
238
|
+
$errorBackground: #f2dede !default;
|
239
|
+
$errorBorder: darken(adjust-hue($errorBackground, -10), 3%) !default;
|
240
|
+
|
241
|
+
$successText: #468847 !default;
|
242
|
+
$successBackground: #dff0d8 !default;
|
243
|
+
$successBorder: darken(adjust-hue($successBackground, -10), 5%) !default;
|
244
|
+
|
245
|
+
$infoText: #3a87ad !default;
|
246
|
+
$infoBackground: #d9edf7 !default;
|
247
|
+
$infoBorder: darken(adjust-hue($infoBackground, -10), 7%) !default;
|
248
|
+
|
249
|
+
|
250
|
+
// Tooltips and popovers
|
251
|
+
// -------------------------
|
252
|
+
$tooltipColor: #fff !default;
|
253
|
+
$tooltipBackground: #000 !default;
|
254
|
+
$tooltipArrowWidth: 5px !default;
|
255
|
+
$tooltipArrowColor: $tooltipBackground !default;
|
256
|
+
|
257
|
+
$popoverBackground: #fff !default;
|
258
|
+
$popoverArrowWidth: 10px !default;
|
259
|
+
$popoverArrowColor: #fff !default;
|
260
|
+
$popoverTitleBackground: darken($popoverBackground, 3%) !default;
|
261
|
+
|
262
|
+
// Special enhancement for popovers
|
263
|
+
$popoverArrowOuterWidth: $popoverArrowWidth + 1 !default;
|
264
|
+
$popoverArrowOuterColor: rgba(0,0,0,.25) !default;
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
// GRID
|
269
|
+
// --------------------------------------------------
|
270
|
+
|
271
|
+
|
272
|
+
// Default 940px grid
|
273
|
+
// -------------------------
|
274
|
+
$gridColumns: 12 !default;
|
275
|
+
$gridColumnWidth: 60px !default;
|
276
|
+
$gridGutterWidth: 20px !default;
|
277
|
+
$gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1)) !default;
|
278
|
+
|
279
|
+
// 1200px min
|
280
|
+
$gridColumnWidth1200: 70px !default;
|
281
|
+
$gridGutterWidth1200: 30px !default;
|
282
|
+
$gridRowWidth1200: ($gridColumns * $gridColumnWidth1200) + ($gridGutterWidth1200 * ($gridColumns - 1)) !default;
|
283
|
+
|
284
|
+
// 768px-979px
|
285
|
+
$gridColumnWidth768: 42px !default;
|
286
|
+
$gridGutterWidth768: 20px !default;
|
287
|
+
$gridRowWidth768: ($gridColumns * $gridColumnWidth768) + ($gridGutterWidth768 * ($gridColumns - 1)) !default;
|
288
|
+
|
289
|
+
|
290
|
+
// Fluid grid
|
291
|
+
// -------------------------
|
292
|
+
$fluidGridColumnWidth: percentage($gridColumnWidth/$gridRowWidth) !default;
|
293
|
+
$fluidGridGutterWidth: percentage($gridGutterWidth/$gridRowWidth) !default;
|
294
|
+
|
295
|
+
// 1200px min
|
296
|
+
$fluidGridColumnWidth1200: percentage($gridColumnWidth1200/$gridRowWidth1200) !default;
|
297
|
+
$fluidGridGutterWidth1200: percentage($gridGutterWidth1200/$gridRowWidth1200) !default;
|
298
|
+
|
299
|
+
// 768px-979px
|
300
|
+
$fluidGridColumnWidth768: percentage($gridColumnWidth768/$gridRowWidth768) !default;
|
301
|
+
$fluidGridGutterWidth768: percentage($gridGutterWidth768/$gridRowWidth768) !default;
|