foundation-rails 5.5.3.2 → 6.1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +2 -8
- data/Rakefile +23 -0
- data/app/views/foundation/rails/styleguide/show.html.erb +2 -5
- data/bower.json +2 -2
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/generators/foundation/install_generator.rb +6 -3
- data/lib/generators/foundation/templates/_settings.scss +546 -0
- data/lib/generators/foundation/templates/application.html.erb +0 -1
- data/lib/generators/foundation/templates/application.html.haml +0 -2
- data/lib/generators/foundation/templates/application.html.slim +0 -2
- data/lib/generators/foundation/templates/foundation_and_overrides.scss +51 -0
- data/vendor/assets/js/foundation.abide.js +418 -0
- data/vendor/assets/js/foundation.accordion.js +229 -0
- data/vendor/assets/js/foundation.accordionMenu.js +262 -0
- data/vendor/assets/js/foundation.core.js +378 -0
- data/vendor/assets/js/foundation.drilldown.js +321 -0
- data/vendor/assets/js/foundation.dropdown.js +390 -0
- data/vendor/assets/js/foundation.dropdownMenu.js +391 -0
- data/vendor/assets/js/foundation.equalizer.js +274 -0
- data/vendor/assets/js/foundation.interchange.js +184 -0
- data/vendor/assets/js/foundation.js +28 -0
- data/vendor/assets/js/foundation.magellan.js +212 -0
- data/vendor/assets/js/foundation.offcanvas.js +371 -0
- data/vendor/assets/js/foundation.orbit.js +419 -0
- data/vendor/assets/js/foundation.responsiveMenu.js +145 -0
- data/vendor/assets/js/foundation.responsiveToggle.js +106 -0
- data/vendor/assets/js/foundation.reveal.js +478 -0
- data/vendor/assets/js/foundation.slider.js +484 -0
- data/vendor/assets/js/foundation.sticky.js +436 -0
- data/vendor/assets/js/foundation.tabs.js +306 -0
- data/vendor/assets/js/foundation.toggler.js +147 -0
- data/vendor/assets/js/foundation.tooltip.js +429 -0
- data/vendor/assets/js/foundation.util.box.js +169 -0
- data/vendor/assets/js/foundation.util.keyboard.js +115 -0
- data/vendor/assets/js/foundation.util.mediaQuery.js +210 -0
- data/vendor/assets/js/foundation.util.motion.js +89 -0
- data/vendor/assets/js/foundation.util.nest.js +64 -0
- data/vendor/assets/js/foundation.util.timerAndImageLoader.js +78 -0
- data/vendor/assets/js/foundation.util.touch.js +339 -0
- data/vendor/assets/js/foundation.util.triggers.js +222 -0
- data/vendor/assets/scss/_global.scss +626 -0
- data/vendor/assets/scss/components/_accordion-menu.scss +32 -0
- data/vendor/assets/scss/components/_accordion.scss +113 -0
- data/vendor/assets/scss/components/_badge.scss +55 -0
- data/vendor/assets/scss/components/_breadcrumbs.scss +94 -0
- data/vendor/assets/scss/components/_button-group.scss +130 -0
- data/vendor/assets/scss/components/_button.scss +265 -0
- data/vendor/assets/scss/components/_callout.scss +105 -0
- data/vendor/assets/scss/components/_close-button.scss +61 -0
- data/vendor/assets/scss/components/_drilldown.scss +75 -0
- data/vendor/assets/scss/components/_dropdown-menu.scss +148 -0
- data/vendor/assets/scss/components/_dropdown.scss +64 -0
- data/vendor/assets/scss/components/_flex-video.scss +63 -0
- data/vendor/assets/scss/components/_float.scss +27 -0
- data/vendor/assets/scss/components/_label.scss +56 -0
- data/vendor/assets/scss/components/_media-object.scss +74 -0
- data/vendor/assets/scss/components/_menu.scss +209 -0
- data/vendor/assets/scss/components/_off-canvas.scss +180 -0
- data/vendor/assets/scss/components/_orbit.scss +193 -0
- data/vendor/assets/scss/components/_pagination.scss +158 -0
- data/vendor/assets/scss/components/_progress-bar.scss +83 -0
- data/vendor/assets/scss/components/_reveal.scss +156 -0
- data/vendor/assets/scss/components/_slider.scss +158 -0
- data/vendor/assets/scss/components/_sticky.scss +38 -0
- data/vendor/assets/scss/components/_switch.scss +232 -0
- data/vendor/assets/scss/components/_table.scss +213 -0
- data/vendor/assets/scss/components/_tabs.scss +170 -0
- data/vendor/assets/scss/components/_thumbnail.scss +54 -0
- data/vendor/assets/scss/components/_title-bar.scss +68 -0
- data/vendor/assets/scss/components/_tooltip.scss +100 -0
- data/vendor/assets/scss/components/_top-bar.scss +89 -0
- data/vendor/assets/scss/components/_visibility.scss +131 -0
- data/vendor/assets/scss/forms/_checkbox.scss +36 -0
- data/vendor/assets/scss/forms/_error.scss +82 -0
- data/vendor/assets/scss/forms/_fieldset.scss +53 -0
- data/vendor/assets/scss/forms/_forms.scss +32 -0
- data/vendor/assets/scss/forms/_help-text.scss +30 -0
- data/vendor/assets/scss/forms/_input-group.scss +91 -0
- data/vendor/assets/scss/forms/_label.scss +48 -0
- data/vendor/assets/scss/forms/_select.scss +63 -0
- data/vendor/assets/scss/forms/_text.scss +154 -0
- data/vendor/assets/scss/foundation.scss +91 -0
- data/vendor/assets/scss/grid/_classes.scss +153 -0
- data/vendor/assets/scss/grid/_column.scss +124 -0
- data/vendor/assets/scss/grid/_flex-grid.scss +281 -0
- data/vendor/assets/scss/grid/_grid.scss +48 -0
- data/vendor/assets/scss/grid/_gutter.scss +34 -0
- data/vendor/assets/scss/grid/_layout.scss +33 -0
- data/vendor/assets/scss/grid/_position.scss +72 -0
- data/vendor/assets/scss/grid/_row.scss +97 -0
- data/vendor/assets/scss/grid/_size.scss +24 -0
- data/vendor/assets/scss/settings/_settings.scss +547 -0
- data/vendor/assets/scss/typography/_alignment.scss +22 -0
- data/vendor/assets/scss/typography/_base.scss +439 -0
- data/vendor/assets/scss/typography/_helpers.scss +77 -0
- data/vendor/assets/scss/typography/_print.scss +73 -0
- data/vendor/assets/scss/typography/_typography.scss +28 -0
- data/vendor/assets/scss/util/_breakpoint.scss +266 -0
- data/vendor/assets/scss/util/_color.scss +41 -0
- data/vendor/assets/scss/util/_mixins.scss +223 -0
- data/vendor/assets/scss/util/_selector.scss +40 -0
- data/vendor/assets/scss/util/_unit.scss +90 -0
- data/vendor/assets/scss/util/_util.scss +15 -0
- data/vendor/assets/scss/util/_value.scss +126 -0
- metadata +97 -64
- data/update-gem.sh +0 -20
- data/vendor/assets/javascripts/foundation.js +0 -17
- data/vendor/assets/javascripts/foundation/foundation.abide.js +0 -426
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +0 -125
- data/vendor/assets/javascripts/foundation/foundation.alert.js +0 -43
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +0 -586
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +0 -468
- data/vendor/assets/javascripts/foundation/foundation.equalizer.js +0 -104
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +0 -360
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +0 -935
- data/vendor/assets/javascripts/foundation/foundation.js +0 -732
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +0 -214
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +0 -225
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +0 -476
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +0 -522
- data/vendor/assets/javascripts/foundation/foundation.slider.js +0 -296
- data/vendor/assets/javascripts/foundation/foundation.tab.js +0 -247
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +0 -348
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +0 -458
- data/vendor/assets/javascripts/vendor/modernizr.js +0 -1406
- data/vendor/assets/stylesheets/foundation.scss +0 -42
- data/vendor/assets/stylesheets/foundation/_functions.scss +0 -156
- data/vendor/assets/stylesheets/foundation/_settings.scss +0 -1489
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +0 -161
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +0 -128
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +0 -133
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +0 -208
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +0 -261
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +0 -260
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +0 -269
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +0 -51
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +0 -607
- data/vendor/assets/stylesheets/foundation/components/_global.scss +0 -566
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +0 -292
- data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +0 -460
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +0 -58
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +0 -220
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +0 -60
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +0 -106
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +0 -34
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +0 -606
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +0 -388
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +0 -163
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +0 -107
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -150
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +0 -85
- data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +0 -177
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +0 -212
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +0 -120
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +0 -203
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +0 -125
- data/vendor/assets/stylesheets/foundation/components/_switches.scss +0 -241
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +0 -135
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +0 -142
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +0 -66
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +0 -142
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +0 -745
- data/vendor/assets/stylesheets/foundation/components/_type.scss +0 -525
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +0 -425
- data/vendor/assets/stylesheets/normalize.scss +0 -424
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 184fa4cda534faaff0ed4cb7eef5eac3ec9c8c96
|
4
|
+
data.tar.gz: acfa709e896c85af7e044fc9dd518a94666070bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4635bea8262a3e46084e37ed344b43bfe70d2c3923d92c94a43f5ac03e396acc0bb5010db75f64e63fd900f450d22eb36ac017f4dd97c48189c97dd966c64dc
|
7
|
+
data.tar.gz: 5460f6676a961f4476047c23c1664d3c32777cb30f72ebb26465478cae88e2aa4f61bbf0c183d2d3293303d73b244fe21ace923c807de4dfd9ce97326122ca33
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -42,12 +42,6 @@ Append the following lines to your `app/assets/javascripts/application.js` file:
|
|
42
42
|
//= require foundation
|
43
43
|
$(document).foundation();
|
44
44
|
|
45
|
-
### Add Modernizr
|
46
|
-
|
47
|
-
Make sure that Modernizr is included in the `<head>` of your page layout:
|
48
|
-
|
49
|
-
javascript_include_tag "vendor/modernizr"
|
50
|
-
|
51
45
|
### Set Viewport Width
|
52
46
|
|
53
47
|
Add the following line to the `head` of your page layout:
|
@@ -59,7 +53,7 @@ Add the following line to the `head` of your page layout:
|
|
59
53
|
Run the generator to add foundation to the asset pipeline:
|
60
54
|
|
61
55
|
rails g foundation:install [layout_name] [options]
|
62
|
-
|
56
|
+
|
63
57
|
Options:
|
64
58
|
[--haml] # Generate HAML layout instead of erb
|
65
59
|
[--slim] # Generate Slim layout instead of erb
|
@@ -81,4 +75,4 @@ Run the generator to add foundation to the asset pipeline:
|
|
81
75
|
|
82
76
|
* [Foundation Docs](http://foundation.zurb.com/docs/)
|
83
77
|
* [Foundation Forum](http://foundation.zurb.com/forum)
|
84
|
-
* [Foundation Training](http://foundation.zurb.com/learn/training.html)
|
78
|
+
* [Foundation Training](http://foundation.zurb.com/learn/training.html)
|
data/Rakefile
CHANGED
@@ -6,3 +6,26 @@ RSpec::Core::RakeTask.new(:rspec)
|
|
6
6
|
|
7
7
|
desc 'Run the test suite'
|
8
8
|
task :default => :rspec
|
9
|
+
|
10
|
+
namespace :assets do
|
11
|
+
desc 'Update Foundation for Sites assets'
|
12
|
+
task update: :clean do
|
13
|
+
sh 'bower install'
|
14
|
+
sh 'cp -R bower_components/foundation-sites/js/* vendor/assets/js/'
|
15
|
+
sh 'cp -R bower_components/foundation-sites/scss/* vendor/assets/scss/'
|
16
|
+
|
17
|
+
manifest = Dir['vendor/assets/js/*.js'].
|
18
|
+
map { |file| "//= require #{File.basename(file, '.js')}" }.
|
19
|
+
sort.join("\n")
|
20
|
+
File.write('vendor/assets/js/foundation.js', manifest)
|
21
|
+
|
22
|
+
puts 'Now update version.rb'
|
23
|
+
end
|
24
|
+
|
25
|
+
desc 'Remove old Foundation for Sites assets'
|
26
|
+
task :clean do
|
27
|
+
sh 'rm -rf vendor'
|
28
|
+
sh 'mkdir -p vendor/assets/js/ vendor/assets/scss'
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
@@ -7,9 +7,6 @@
|
|
7
7
|
<title>Foundation | Styleguide</title>
|
8
8
|
|
9
9
|
<%= stylesheet_link_tag "foundation" %>
|
10
|
-
<% if false %>
|
11
|
-
<%= javascript_include_tag "vendor/custom.modernizr" %>
|
12
|
-
<% end %>
|
13
10
|
<%= csrf_meta_tags %>
|
14
11
|
</head>
|
15
12
|
|
@@ -124,11 +121,11 @@
|
|
124
121
|
<p>Im a cool paragraph that lives inside of an even cooler modal. Wins</p>
|
125
122
|
<a class="close-reveal-modal">×</a>
|
126
123
|
</div>
|
127
|
-
|
124
|
+
|
128
125
|
<%= javascript_include_tag "jquery" %>
|
129
126
|
<%= javascript_include_tag "foundation" %>
|
130
127
|
<script>
|
131
128
|
$(document).foundation();
|
132
129
|
</script>
|
133
130
|
</body>
|
134
|
-
</html>
|
131
|
+
</html>
|
data/bower.json
CHANGED
@@ -14,9 +14,7 @@ module Foundation
|
|
14
14
|
# gsub_file "app/assets/javascripts/application#{detect_js_format[0]}", /\/\/= require jquery\n/, ""
|
15
15
|
insert_into_file File.join(javascripts_base_dir, "application#{detect_js_format[0]}"), "#{detect_js_format[1]} require foundation\n", :after => "jquery_ujs\n"
|
16
16
|
append_to_file File.join(javascripts_base_dir, "application#{detect_js_format[0]}"), "#{detect_js_format[2]}"
|
17
|
-
|
18
|
-
create_file File.join(stylesheets_base_dir, 'foundation_and_overrides.scss'), File.read(settings_file)
|
19
|
-
append_to_file File.join(stylesheets_base_dir, 'foundation_and_overrides.scss'), "\n@import 'foundation';\n"
|
17
|
+
create_app_scss
|
20
18
|
insert_into_file File.join(stylesheets_base_dir, "application#{detect_css_format[0]}"), "\n#{detect_css_format[1]} require foundation_and_overrides\n", :after => "require_self"
|
21
19
|
end
|
22
20
|
|
@@ -47,6 +45,11 @@ module Foundation
|
|
47
45
|
end
|
48
46
|
end
|
49
47
|
|
48
|
+
def create_app_scss
|
49
|
+
template 'foundation_and_overrides.scss', File.join(stylesheets_base_dir, "foundation_and_overrides.scss")
|
50
|
+
template '_settings.scss', File.join(stylesheets_base_dir, "_settings.scss")
|
51
|
+
end
|
52
|
+
|
50
53
|
private
|
51
54
|
|
52
55
|
def file_name
|
@@ -0,0 +1,546 @@
|
|
1
|
+
// Foundation for Sites Settings
|
2
|
+
// -----------------------------
|
3
|
+
//
|
4
|
+
// Table of Contents:
|
5
|
+
//
|
6
|
+
// 1. Global
|
7
|
+
// 2. Breakpoints
|
8
|
+
// 3. The Grid
|
9
|
+
// 4. Base Typography
|
10
|
+
// 5. Typography Helpers
|
11
|
+
// 6. Abide
|
12
|
+
// 7. Accordion
|
13
|
+
// 8. Accordion Menu
|
14
|
+
// 9. Badge
|
15
|
+
// 10. Breadcrumbs
|
16
|
+
// 11. Button
|
17
|
+
// 12. Button Group
|
18
|
+
// 13. Callout
|
19
|
+
// 14. Close Button
|
20
|
+
// 15. Drilldown
|
21
|
+
// 16. Dropdown
|
22
|
+
// 17. Dropdown Menu
|
23
|
+
// 18. Flex Video
|
24
|
+
// 19. Forms
|
25
|
+
// 20. Label
|
26
|
+
// 21. Media Object
|
27
|
+
// 22. Menu
|
28
|
+
// 23. Off-canvas
|
29
|
+
// 24. Orbit
|
30
|
+
// 25. Pagination
|
31
|
+
// 26. Progress Bar
|
32
|
+
// 27. Reveal
|
33
|
+
// 28. Slider
|
34
|
+
// 29. Switch
|
35
|
+
// 30. Table
|
36
|
+
// 31. Tabs
|
37
|
+
// 32. Thumbnail
|
38
|
+
// 33. Title Bar
|
39
|
+
// 34. Tooltip
|
40
|
+
// 35. Top Bar
|
41
|
+
|
42
|
+
@import 'util/util';
|
43
|
+
|
44
|
+
// 1. Global
|
45
|
+
// ---------
|
46
|
+
|
47
|
+
$global-font-size: 100%;
|
48
|
+
$global-width: rem-calc(1200);
|
49
|
+
$global-lineheight: 1.5;
|
50
|
+
$primary-color: #2199e8;
|
51
|
+
$secondary-color: #777;
|
52
|
+
$success-color: #3adb76;
|
53
|
+
$warning-color: #ffae00;
|
54
|
+
$alert-color: #ec5840;
|
55
|
+
$light-gray: #e6e6e6;
|
56
|
+
$medium-gray: #cacaca;
|
57
|
+
$dark-gray: #8a8a8a;
|
58
|
+
$black: #0a0a0a;
|
59
|
+
$white: #fefefe;
|
60
|
+
$body-background: $white;
|
61
|
+
$body-font-color: $black;
|
62
|
+
$body-font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
|
63
|
+
$body-antialiased: true;
|
64
|
+
$global-margin: 1rem;
|
65
|
+
$global-padding: 1rem;
|
66
|
+
$global-weight-normal: normal;
|
67
|
+
$global-weight-bold: bold;
|
68
|
+
$global-radius: 0;
|
69
|
+
$global-text-direction: ltr;
|
70
|
+
|
71
|
+
// 2. Breakpoints
|
72
|
+
// --------------
|
73
|
+
|
74
|
+
$breakpoints: (
|
75
|
+
small: 0,
|
76
|
+
medium: 640px,
|
77
|
+
large: 1024px,
|
78
|
+
xlarge: 1200px,
|
79
|
+
xxlarge: 1440px,
|
80
|
+
);
|
81
|
+
$breakpoint-classes: (small medium large);
|
82
|
+
|
83
|
+
// 3. The Grid
|
84
|
+
// -----------
|
85
|
+
|
86
|
+
$grid-row-width: $global-width;
|
87
|
+
$grid-column-count: 12;
|
88
|
+
$grid-column-responsive-gutter: (
|
89
|
+
small: 20px,
|
90
|
+
medium: 30px,
|
91
|
+
);
|
92
|
+
$grid-column-align-edge: true;
|
93
|
+
$block-grid-max: 8;
|
94
|
+
|
95
|
+
// 4. Base Typography
|
96
|
+
// ------------------
|
97
|
+
|
98
|
+
$header-font-family: $body-font-family;
|
99
|
+
$header-font-weight: $global-weight-normal;
|
100
|
+
$header-font-style: normal;
|
101
|
+
$font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace;
|
102
|
+
$header-sizes: (
|
103
|
+
small: (
|
104
|
+
'h1': 24,
|
105
|
+
'h2': 20,
|
106
|
+
'h3': 19,
|
107
|
+
'h4': 18,
|
108
|
+
'h5': 17,
|
109
|
+
'h6': 16,
|
110
|
+
),
|
111
|
+
medium: (
|
112
|
+
'h1': 48,
|
113
|
+
'h2': 40,
|
114
|
+
'h3': 31,
|
115
|
+
'h4': 25,
|
116
|
+
'h5': 20,
|
117
|
+
'h6': 16,
|
118
|
+
),
|
119
|
+
);
|
120
|
+
$header-color: inherit;
|
121
|
+
$header-lineheight: 1.4;
|
122
|
+
$header-margin-bottom: 0.5rem;
|
123
|
+
$header-text-rendering: optimizeLegibility;
|
124
|
+
$small-font-size: 80%;
|
125
|
+
$header-small-font-color: $medium-gray;
|
126
|
+
$paragraph-lineheight: 1.6;
|
127
|
+
$paragraph-margin-bottom: 1rem;
|
128
|
+
$paragraph-text-rendering: optimizeLegibility;
|
129
|
+
$code-color: $black;
|
130
|
+
$code-font-family: $font-family-monospace;
|
131
|
+
$code-font-weight: $global-weight-normal;
|
132
|
+
$code-background: $light-gray;
|
133
|
+
$code-border: 1px solid $medium-gray;
|
134
|
+
$code-padding: rem-calc(2 5 1);
|
135
|
+
$anchor-color: $primary-color;
|
136
|
+
$anchor-color-hover: scale-color($anchor-color, $lightness: -14%);
|
137
|
+
$anchor-text-decoration: none;
|
138
|
+
$anchor-text-decoration-hover: none;
|
139
|
+
$hr-width: $global-width;
|
140
|
+
$hr-border: 1px solid $medium-gray;
|
141
|
+
$hr-margin: rem-calc(20) auto;
|
142
|
+
$list-lineheight: $paragraph-lineheight;
|
143
|
+
$list-margin-bottom: $paragraph-margin-bottom;
|
144
|
+
$list-style-type: disc;
|
145
|
+
$list-style-position: outside;
|
146
|
+
$list-side-margin: 1.25rem;
|
147
|
+
$list-nested-side-margin: 1.25rem;
|
148
|
+
$defnlist-margin-bottom: 1rem;
|
149
|
+
$defnlist-term-weight: $global-weight-bold;
|
150
|
+
$defnlist-term-margin-bottom: 0.3rem;
|
151
|
+
$blockquote-color: $dark-gray;
|
152
|
+
$blockquote-padding: rem-calc(9 20 0 19);
|
153
|
+
$blockquote-border: 1px solid $medium-gray;
|
154
|
+
$cite-font-size: rem-calc(13);
|
155
|
+
$cite-color: $dark-gray;
|
156
|
+
$keystroke-font: $font-family-monospace;
|
157
|
+
$keystroke-color: $black;
|
158
|
+
$keystroke-background: $light-gray;
|
159
|
+
$keystroke-padding: rem-calc(2 4 0);
|
160
|
+
$keystroke-radius: $global-radius;
|
161
|
+
$abbr-underline: 1px dotted $black;
|
162
|
+
|
163
|
+
// 5. Typography Helpers
|
164
|
+
// ---------------------
|
165
|
+
|
166
|
+
$lead-font-size: $global-font-size * 1.25;
|
167
|
+
$lead-lineheight: 1.6;
|
168
|
+
$subheader-lineheight: 1.4;
|
169
|
+
$subheader-color: $dark-gray;
|
170
|
+
$subheader-font-weight: $global-weight-normal;
|
171
|
+
$subheader-margin-top: 0.2rem;
|
172
|
+
$subheader-margin-bottom: 0.5rem;
|
173
|
+
$stat-font-size: 2.5rem;
|
174
|
+
|
175
|
+
// 6. Abide
|
176
|
+
// --------
|
177
|
+
|
178
|
+
$abide-inputs: true;
|
179
|
+
$abide-labels: true;
|
180
|
+
$input-background-invalid: $alert-color;
|
181
|
+
$form-label-color-invalid: $alert-color;
|
182
|
+
$input-error-color: $alert-color;
|
183
|
+
$input-error-font-size: rem-calc(12);
|
184
|
+
$input-error-font-weight: $global-weight-bold;
|
185
|
+
|
186
|
+
// 7. Accordion
|
187
|
+
// ------------
|
188
|
+
|
189
|
+
$accordion-background: $white;
|
190
|
+
$accordion-plusminus: true;
|
191
|
+
$accordion-item-color: foreground($accordion-background, $primary-color);
|
192
|
+
$accordion-item-background-hover: $light-gray;
|
193
|
+
$accordion-item-padding: 1.25rem 1rem;
|
194
|
+
$accordion-content-background: $white;
|
195
|
+
$accordion-content-border: 1px solid $light-gray;
|
196
|
+
$accordion-content-color: foreground($accordion-background, $primary-color);
|
197
|
+
$accordion-content-padding: 1rem;
|
198
|
+
|
199
|
+
// 8. Accordion Menu
|
200
|
+
// -----------------
|
201
|
+
|
202
|
+
$accordionmenu-arrows: true;
|
203
|
+
$accordionmenu-arrow-color: $primary-color;
|
204
|
+
|
205
|
+
// 9. Badge
|
206
|
+
// --------
|
207
|
+
|
208
|
+
$badge-background: $primary-color;
|
209
|
+
$badge-color: foreground($badge-background);
|
210
|
+
$badge-padding: 0.3em;
|
211
|
+
$badge-minwidth: 2.1em;
|
212
|
+
$badge-font-size: 0.6rem;
|
213
|
+
|
214
|
+
// 10. Breadcrumbs
|
215
|
+
// ---------------
|
216
|
+
|
217
|
+
$breadcrumbs-margin: 0 0 $global-margin 0;
|
218
|
+
$breadcrumbs-item-font-size: rem-calc(11);
|
219
|
+
$breadcrumbs-item-color: $primary-color;
|
220
|
+
$breadcrumbs-item-color-current: $black;
|
221
|
+
$breadcrumbs-item-color-disabled: $medium-gray;
|
222
|
+
$breadcrumbs-item-margin: 0.75rem;
|
223
|
+
$breadcrumbs-item-uppercase: true;
|
224
|
+
$breadcrumbs-item-slash: true;
|
225
|
+
|
226
|
+
// 11. Button
|
227
|
+
// ----------
|
228
|
+
|
229
|
+
$button-padding: 0.85em 1em;
|
230
|
+
$button-margin: 0 0 $global-margin 0;
|
231
|
+
$button-fill: solid;
|
232
|
+
$button-background: $primary-color;
|
233
|
+
$button-background-hover: scale-color($button-background, $lightness: -15%);
|
234
|
+
$button-color: #fff;
|
235
|
+
$button-color-alt: #000;
|
236
|
+
$button-radius: $global-radius;
|
237
|
+
$button-sizes: (
|
238
|
+
tiny: 0.6rem,
|
239
|
+
small: 0.75rem,
|
240
|
+
default: 0.9rem,
|
241
|
+
large: 1.25rem,
|
242
|
+
);
|
243
|
+
$button-opacity-disabled: 0.25;
|
244
|
+
|
245
|
+
// 12. Button Group
|
246
|
+
// ----------------
|
247
|
+
|
248
|
+
$buttongroup-margin: 1rem;
|
249
|
+
$buttongroup-spacing: 1px;
|
250
|
+
$buttongroup-child-selector: '.button';
|
251
|
+
$buttongroup-expand-max: 6;
|
252
|
+
|
253
|
+
// 13. Callout
|
254
|
+
// -----------
|
255
|
+
|
256
|
+
$callout-background: $white;
|
257
|
+
$callout-background-fade: 85%;
|
258
|
+
$callout-border: 1px solid rgba($black, 0.25);
|
259
|
+
$callout-margin: 0 0 1rem 0;
|
260
|
+
$callout-padding: 1rem;
|
261
|
+
$callout-font-color: $body-font-color;
|
262
|
+
$callout-font-color-alt: $body-background;
|
263
|
+
$callout-radius: $global-radius;
|
264
|
+
$callout-link-tint: 30%;
|
265
|
+
|
266
|
+
// 14. Close Button
|
267
|
+
// ----------------
|
268
|
+
|
269
|
+
$closebutton-position: right top;
|
270
|
+
$closebutton-offset-horizontal: 1rem;
|
271
|
+
$closebutton-offset-vertical: 0.5rem;
|
272
|
+
$closebutton-size: 2em;
|
273
|
+
$closebutton-lineheight: 1;
|
274
|
+
$closebutton-color: $dark-gray;
|
275
|
+
$closebutton-color-hover: $black;
|
276
|
+
|
277
|
+
// 15. Drilldown
|
278
|
+
// -------------
|
279
|
+
|
280
|
+
$drilldown-transition: transform 0.15s linear;
|
281
|
+
$drilldown-arrows: true;
|
282
|
+
$drilldown-arrow-color: $primary-color;
|
283
|
+
$drilldown-background: $white;
|
284
|
+
|
285
|
+
// 16. Dropdown
|
286
|
+
// ------------
|
287
|
+
|
288
|
+
$dropdown-padding: 1rem;
|
289
|
+
$dropdown-border: 1px solid $medium-gray;
|
290
|
+
$dropdown-font-size: 16rem;
|
291
|
+
$dropdown-width: 300px;
|
292
|
+
$dropdown-radius: $global-radius;
|
293
|
+
$dropdown-sizes: (
|
294
|
+
tiny: 100px,
|
295
|
+
small: 200px,
|
296
|
+
large: 400px,
|
297
|
+
);
|
298
|
+
|
299
|
+
// 17. Dropdown Menu
|
300
|
+
// -----------------
|
301
|
+
|
302
|
+
$dropdownmenu-arrows: true;
|
303
|
+
$dropdownmenu-arrow-color: $anchor-color;
|
304
|
+
$dropdownmenu-min-width: 200px;
|
305
|
+
$dropdownmenu-background: $white;
|
306
|
+
$dropdownmenu-border: 1px solid $medium-gray;
|
307
|
+
|
308
|
+
// 18. Flex Video
|
309
|
+
// --------------
|
310
|
+
|
311
|
+
$flexvideo-margin-bottom: rem-calc(16);
|
312
|
+
$flexvideo-ratio: 4 by 3;
|
313
|
+
$flexvideo-ratio-widescreen: 16 by 9;
|
314
|
+
|
315
|
+
// 19. Forms
|
316
|
+
// ---------
|
317
|
+
|
318
|
+
$fieldset-border: 1px solid $medium-gray;
|
319
|
+
$fieldset-padding: rem-calc(20);
|
320
|
+
$fieldset-margin: rem-calc(18 0);
|
321
|
+
$legend-padding: rem-calc(0 3);
|
322
|
+
$form-spacing: rem-calc(16);
|
323
|
+
$helptext-color: #333;
|
324
|
+
$helptext-font-size: rem-calc(13);
|
325
|
+
$helptext-font-style: italic;
|
326
|
+
$input-prefix-color: $black;
|
327
|
+
$input-prefix-background: $light-gray;
|
328
|
+
$input-prefix-border: 1px solid $medium-gray;
|
329
|
+
$input-prefix-padding: 1rem;
|
330
|
+
$form-label-color: $black;
|
331
|
+
$form-label-font-size: rem-calc(14);
|
332
|
+
$form-label-font-weight: $global-weight-normal;
|
333
|
+
$form-label-line-height: 1.8;
|
334
|
+
$select-background: $white;
|
335
|
+
$select-triangle-color: #333;
|
336
|
+
$select-radius: $global-radius;
|
337
|
+
$input-color: $black;
|
338
|
+
$input-font-family: inherit;
|
339
|
+
$input-font-size: rem-calc(16);
|
340
|
+
$input-background: $white;
|
341
|
+
$input-background-focus: $white;
|
342
|
+
$input-background-disabled: $light-gray;
|
343
|
+
$input-border: 1px solid $medium-gray;
|
344
|
+
$input-border-focus: 1px solid $dark-gray;
|
345
|
+
$input-shadow: inset 0 1px 2px rgba($black, 0.1);
|
346
|
+
$input-shadow-focus: 0 0 5px $medium-gray;
|
347
|
+
$input-cursor-disabled: default;
|
348
|
+
$input-transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
|
349
|
+
$input-number-spinners: true;
|
350
|
+
$input-radius: $global-radius;
|
351
|
+
|
352
|
+
// 20. Label
|
353
|
+
// ---------
|
354
|
+
|
355
|
+
$label-background: $primary-color;
|
356
|
+
$label-color: foreground($label-background);
|
357
|
+
$label-font-size: 0.8rem;
|
358
|
+
$label-padding: 0.33333rem 0.5rem;
|
359
|
+
$label-radius: $global-radius;
|
360
|
+
|
361
|
+
// 21. Media Object
|
362
|
+
// ----------------
|
363
|
+
|
364
|
+
$mediaobject-margin-bottom: $global-margin;
|
365
|
+
$mediaobject-section-padding: $global-padding;
|
366
|
+
$mediaobject-image-width-stacked: 100%;
|
367
|
+
|
368
|
+
// 22. Menu
|
369
|
+
// --------
|
370
|
+
|
371
|
+
$menu-margin: 0;
|
372
|
+
$menu-margin-nested: 1rem;
|
373
|
+
$menu-item-padding: 0.7rem 1rem;
|
374
|
+
$menu-icon-spacing: 0.25rem;
|
375
|
+
$menu-expand-max: 6;
|
376
|
+
|
377
|
+
// 23. Off-canvas
|
378
|
+
// --------------
|
379
|
+
|
380
|
+
$offcanvas-size: 250px;
|
381
|
+
$offcanvas-background: $light-gray;
|
382
|
+
$offcanvas-zindex: -1;
|
383
|
+
$offcanvas-transition-length: 0.5s;
|
384
|
+
$offcanvas-transition-timing: ease;
|
385
|
+
$offcanvas-fixed-reveal: true;
|
386
|
+
$offcanvas-exit-background: rgba($white, 0.25);
|
387
|
+
$maincontent-class: 'off-canvas-content';
|
388
|
+
$maincontent-shadow: 0 0 10px rgba($black, 0.5);
|
389
|
+
|
390
|
+
// 24. Orbit
|
391
|
+
// ---------
|
392
|
+
|
393
|
+
$orbit-bullet-background: $medium-gray;
|
394
|
+
$orbit-bullet-background-active: $dark-gray;
|
395
|
+
$orbit-bullet-diameter: 1.2rem;
|
396
|
+
$orbit-bullet-margin: 0.1rem;
|
397
|
+
$orbit-bullet-margin-top: 0.8rem;
|
398
|
+
$orbit-bullet-margin-bottom: 0.8rem;
|
399
|
+
$orbit-caption-background: rgba($black, 0.5);
|
400
|
+
$orbit-caption-padding: 1rem;
|
401
|
+
$orbit-control-background-hover: rgba($black, 0.5);
|
402
|
+
$orbit-control-padding: 1rem;
|
403
|
+
$orbit-control-zindex: 10;
|
404
|
+
|
405
|
+
// 25. Pagination
|
406
|
+
// --------------
|
407
|
+
|
408
|
+
$pagination-font-size: rem-calc(14);
|
409
|
+
$pagination-margin-bottom: $global-margin;
|
410
|
+
$pagination-item-color: $black;
|
411
|
+
$pagination-item-padding: rem-calc(3 10);
|
412
|
+
$pagination-item-spacing: rem-calc(1);
|
413
|
+
$pagination-radius: $global-radius;
|
414
|
+
$pagination-item-background-hover: $light-gray;
|
415
|
+
$pagination-item-background-current: $primary-color;
|
416
|
+
$pagination-item-color-current: foreground($pagination-item-background-current);
|
417
|
+
$pagination-item-color-disabled: $medium-gray;
|
418
|
+
$pagination-ellipsis-color: $black;
|
419
|
+
$pagination-mobile-items: false;
|
420
|
+
$pagination-arrows: true;
|
421
|
+
|
422
|
+
// 26. Progress Bar
|
423
|
+
// ----------------
|
424
|
+
|
425
|
+
$progress-height: 1rem;
|
426
|
+
$progress-background: $medium-gray;
|
427
|
+
$progress-margin-bottom: $global-margin;
|
428
|
+
$progress-meter-background: $primary-color;
|
429
|
+
$progress-radius: $global-radius;
|
430
|
+
|
431
|
+
// 27. Reveal
|
432
|
+
// ----------
|
433
|
+
|
434
|
+
$reveal-background: $white;
|
435
|
+
$reveal-width: 600px;
|
436
|
+
$reveal-max-width: $global-width;
|
437
|
+
$reveal-offset: rem-calc(100);
|
438
|
+
$reveal-padding: $global-padding;
|
439
|
+
$reveal-border: 1px solid $medium-gray;
|
440
|
+
$reveal-radius: $global-radius;
|
441
|
+
$reveal-zindex: 1005;
|
442
|
+
$reveal-overlay-background: rgba($black, 0.45);
|
443
|
+
|
444
|
+
// 28. Slider
|
445
|
+
// ----------
|
446
|
+
|
447
|
+
$slider-height: 0.5rem;
|
448
|
+
$slider-width-vertical: $slider-height;
|
449
|
+
$slider-background: $light-gray;
|
450
|
+
$slider-fill-background: $medium-gray;
|
451
|
+
$slider-handle-height: 1.4rem;
|
452
|
+
$slider-handle-width: 1.4rem;
|
453
|
+
$slider-handle-background: $primary-color;
|
454
|
+
$slider-opacity-disabled: 0.25;
|
455
|
+
$slider-radius: $global-radius;
|
456
|
+
$slider-transition: all 0.2s ease-in-out;
|
457
|
+
|
458
|
+
// 29. Switch
|
459
|
+
// ----------
|
460
|
+
|
461
|
+
$switch-background: $medium-gray;
|
462
|
+
$switch-background-active: $primary-color;
|
463
|
+
$switch-height: 2rem;
|
464
|
+
$switch-height-tiny: 1.5rem;
|
465
|
+
$switch-height-small: 1.75rem;
|
466
|
+
$switch-height-large: 2.5rem;
|
467
|
+
$switch-radius: $global-radius;
|
468
|
+
$switch-margin: $global-margin;
|
469
|
+
$switch-paddle-background: $white;
|
470
|
+
$switch-paddle-offset: 0.25rem;
|
471
|
+
$switch-paddle-radius: $global-radius;
|
472
|
+
$switch-paddle-transition: all 0.25s ease-out;
|
473
|
+
|
474
|
+
// 30. Table
|
475
|
+
// ---------
|
476
|
+
|
477
|
+
$table-background: $white;
|
478
|
+
$table-color-scale: 5%;
|
479
|
+
$table-border: 1px solid smart-scale($table-background, $table-color-scale);
|
480
|
+
$table-padding: rem-calc(8 10 10);
|
481
|
+
$table-hover-scale: 2%;
|
482
|
+
$table-row-hover: darken($table-background, $table-hover-scale);
|
483
|
+
$table-row-stripe-hover: darken($table-background, $table-color-scale + $table-hover-scale);
|
484
|
+
$table-striped-background: smart-scale($table-background, $table-color-scale);
|
485
|
+
$table-stripe: even;
|
486
|
+
$table-head-background: smart-scale($table-background, $table-color-scale / 2);
|
487
|
+
$table-foot-background: smart-scale($table-background, $table-color-scale);
|
488
|
+
$table-head-font-color: $body-font-color;
|
489
|
+
$show-header-for-stacked: false;
|
490
|
+
|
491
|
+
// 31. Tabs
|
492
|
+
// --------
|
493
|
+
|
494
|
+
$tab-margin: 0;
|
495
|
+
$tab-background: $white;
|
496
|
+
$tab-background-active: $light-gray;
|
497
|
+
$tab-border: $light-gray;
|
498
|
+
$tab-item-color: foreground($tab-background, $primary-color);
|
499
|
+
$tab-item-background-hover: $white;
|
500
|
+
$tab-item-padding: 1.25rem 1.5rem;
|
501
|
+
$tab-expand-max: 6;
|
502
|
+
$tab-content-background: $white;
|
503
|
+
$tab-content-border: $light-gray;
|
504
|
+
$tab-content-color: foreground($tab-background, $primary-color);
|
505
|
+
$tab-content-padding: 1rem;
|
506
|
+
|
507
|
+
// 32. Thumbnail
|
508
|
+
// -------------
|
509
|
+
|
510
|
+
$thumbnail-border: solid 4px $white;
|
511
|
+
$thumbnail-margin-bottom: $global-margin;
|
512
|
+
$thumbnail-shadow: 0 0 0 1px rgba($black, 0.2);
|
513
|
+
$thumbnail-shadow-hover: 0 0 6px 1px rgba($primary-color, 0.5);
|
514
|
+
$thumbnail-transition: box-shadow 200ms ease-out;
|
515
|
+
$thumbnail-radius: $global-radius;
|
516
|
+
|
517
|
+
// 33. Title Bar
|
518
|
+
// -------------
|
519
|
+
|
520
|
+
$titlebar-background: $black;
|
521
|
+
$titlebar-color: $white;
|
522
|
+
$titlebar-padding: 0.5rem;
|
523
|
+
$titlebar-text-font-weight: bold;
|
524
|
+
$titlebar-icon-color: $white;
|
525
|
+
$titlebar-icon-color-hover: $medium-gray;
|
526
|
+
$titlebar-icon-spacing: 0.25rem;
|
527
|
+
|
528
|
+
// 34. Tooltip
|
529
|
+
// -----------
|
530
|
+
|
531
|
+
$tooltip-background-color: $black;
|
532
|
+
$tooltip-color: $white;
|
533
|
+
$tooltip-padding: 0.75rem;
|
534
|
+
$tooltip-font-size: $small-font-size;
|
535
|
+
$tooltip-pip-width: 0.75rem;
|
536
|
+
$tooltip-pip-height: $tooltip-pip-width * 0.866;
|
537
|
+
$tooltip-pip-offset: 1.25rem;
|
538
|
+
$tooltip-radius: $global-radius;
|
539
|
+
|
540
|
+
// 35. Top Bar
|
541
|
+
// -----------
|
542
|
+
|
543
|
+
$topbar-padding: 0.5rem;
|
544
|
+
$topbar-background: $light-gray;
|
545
|
+
$topbar-link-color: $primary-color;
|
546
|
+
$topbar-input-width: 200px;
|