modularis 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/demo/test/config.rb +26 -0
- data/lib/modularis/generators/install_generator.rb +1 -1
- data/lib/modularis/version.rb +1 -1
- data/templates/project/config.rb +32 -9
- metadata +3 -40
- data/scss/compagecss/components/_alert-boxes.scss +0 -106
- data/scss/compagecss/components/_block-grid.scss +0 -70
- data/scss/compagecss/components/_breadcrumbs.scss +0 -124
- data/scss/compagecss/components/_button-groups.scss +0 -88
- data/scss/compagecss/components/_buttons.scss +0 -226
- data/scss/compagecss/components/_clearing.scss +0 -217
- data/scss/compagecss/components/_custom-forms.scss +0 -246
- data/scss/compagecss/components/_dropdown-buttons.scss +0 -114
- data/scss/compagecss/components/_dropdown.scss +0 -149
- data/scss/compagecss/components/_flex-video.scss +0 -45
- data/scss/compagecss/components/_flexbox-grid.scss +0 -225
- data/scss/compagecss/components/_flip.scss +0 -105
- data/scss/compagecss/components/_forms.scss +0 -361
- data/scss/compagecss/components/_global.scss +0 -289
- data/scss/compagecss/components/_grid.scss +0 -184
- data/scss/compagecss/components/_inline-lists.scss +0 -52
- data/scss/compagecss/components/_joyride.scss +0 -210
- data/scss/compagecss/components/_keystrokes.scss +0 -56
- data/scss/compagecss/components/_labels.scss +0 -84
- data/scss/compagecss/components/_magellan.scss +0 -21
- data/scss/compagecss/components/_off-canvas.scss +0 -86
- data/scss/compagecss/components/_orbit.scss +0 -209
- data/scss/compagecss/components/_pagination.scss +0 -99
- data/scss/compagecss/components/_panels.scss +0 -76
- data/scss/compagecss/components/_pricing-tables.scss +0 -130
- data/scss/compagecss/components/_progress-bars.scss +0 -70
- data/scss/compagecss/components/_reveal.scss +0 -131
- data/scss/compagecss/components/_section.scss +0 -303
- data/scss/compagecss/components/_side-nav.scss +0 -68
- data/scss/compagecss/components/_split-buttons.scss +0 -166
- data/scss/compagecss/components/_sub-nav.scss +0 -67
- data/scss/compagecss/components/_switch.scss +0 -249
- data/scss/compagecss/components/_tables.scss +0 -80
- data/scss/compagecss/components/_thumbs.scss +0 -47
- data/scss/compagecss/components/_tooltips.scss +0 -113
- data/scss/compagecss/components/_top-bar.scss +0 -462
- data/scss/compagecss/components/_type.scss +0 -422
- data/scss/compagecss/components/_visibility.scss +0 -320
- /data/scss/compagecss/{_variables.scss → _settings.scss} +0 -0
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGRiNzc0YWVhODc1ZmQyOTZmNTA5MDExZTAxYzY2N2EzMjYzN2EzYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGU4ZjcwZjFkNTBjYjQwYjU4MjhiYjUxNjIwNTRiNzBlNzA2NDQ0ZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzVkOGNjMjY2OTk5ZTg3M2RkOGNlZjQwNzVmNDdkMzE0NmRmMzEyMmI3OWMw
|
10
|
+
MDQyN2ExMjllNGQzMDg2YTRjMDA5OGRkZjlkMWVkODZlNmMxNTc3OTY5MTA5
|
11
|
+
NDQ4M2ZmYjkzZTYwNTZkNDllMTU0ZmE3ZGRmOGM0MDRkOTVjNmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmJlYzFkY2JiYWUyOWFjYmNjZjQyN2I0ZDRkYjFkY2RlNDU5YWI5MjdjZGQw
|
14
|
+
Y2VkNTMxZTU0ZmY1NTYyNjIxYzEwZTE3YzUxY2QwODFlOGU4ZGFmZWM2Nzg1
|
15
|
+
YTFiYzkxOGE3NjA3OGViMWNmMzdkNDE3OGFjMTRhNTllNGE5Mjg=
|
data/demo/test/config.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'modularis'
|
2
|
+
# Require any additional compass plugins here.
|
3
|
+
|
4
|
+
|
5
|
+
# Set this to the root of your project when deployed:
|
6
|
+
http_path = "/"
|
7
|
+
css_dir = "stylesheets"
|
8
|
+
sass_dir = "sass"
|
9
|
+
images_dir = "images"
|
10
|
+
javascripts_dir = "javascripts"
|
11
|
+
|
12
|
+
# You can select your preferred output style here (can be overridden via the command line):
|
13
|
+
# output_style = :expanded or :nested or :compact or :compressed
|
14
|
+
|
15
|
+
# To enable relative paths to assets via compass helper functions. Uncomment:
|
16
|
+
# relative_assets = true
|
17
|
+
|
18
|
+
# To disable debugging comments that display the original location of your selectors. Uncomment:
|
19
|
+
# line_comments = false
|
20
|
+
|
21
|
+
|
22
|
+
# If you prefer the indented syntax, you might want to regenerate this
|
23
|
+
# project again passing --syntax sass, or you can uncomment this:
|
24
|
+
# preferred_syntax = :sass
|
25
|
+
# and then run:
|
26
|
+
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
|
@@ -14,7 +14,7 @@ module Modularis
|
|
14
14
|
# gsub_file "app/assets/javascripts/application#{detect_js_format[0]}", /\/\/= require jquery\n/, ""
|
15
15
|
insert_into_file "app/assets/javascripts/application#{detect_js_format[0]}", "#{detect_js_format[1]} require modularis\n", :after => "jquery_ujs\n"
|
16
16
|
append_to_file "app/assets/javascripts/application#{detect_js_format[0]}", "\n$(function(){ $(document).modularis(); });\n"
|
17
|
-
settings_file = File.join(File.dirname(__FILE__),"..","..","..","scss","modularis","
|
17
|
+
settings_file = File.join(File.dirname(__FILE__),"..","..","..","scss","modularis","_settings.scss")
|
18
18
|
create_file "app/assets/stylesheets/modularis_and_overrides.scss", File.read(settings_file)
|
19
19
|
append_to_file "app/assets/stylesheets/modularis_and_overrides.scss", "\n@import 'modularis';\n"
|
20
20
|
insert_into_file "app/assets/stylesheets/application#{detect_css_format[0]}", "#{detect_css_format[1]} require modularis_and_overrides\n", :after => "require_self\n"
|
data/lib/modularis/version.rb
CHANGED
data/templates/project/config.rb
CHANGED
@@ -1,26 +1,49 @@
|
|
1
|
-
require 'themepile-modularis'
|
2
1
|
# Require any additional compass plugins here.
|
3
2
|
|
4
|
-
|
5
3
|
# Set this to the root of your project when deployed:
|
6
4
|
http_path = "/"
|
7
|
-
css_dir = "
|
8
|
-
sass_dir = "
|
5
|
+
css_dir = "css"
|
6
|
+
sass_dir = "scss"
|
9
7
|
images_dir = "images"
|
10
|
-
javascripts_dir = "
|
8
|
+
javascripts_dir = "js"
|
11
9
|
|
12
10
|
# You can select your preferred output style here (can be overridden via the command line):
|
13
11
|
# output_style = :expanded or :nested or :compact or :compressed
|
14
|
-
|
12
|
+
output_style = :expanded
|
15
13
|
# To enable relative paths to assets via compass helper functions. Uncomment:
|
16
|
-
|
14
|
+
relative_assets = true
|
17
15
|
|
18
16
|
# To disable debugging comments that display the original location of your selectors. Uncomment:
|
19
|
-
|
17
|
+
line_comments = false
|
20
18
|
|
21
19
|
|
22
20
|
# If you prefer the indented syntax, you might want to regenerate this
|
23
21
|
# project again passing --syntax sass, or you can uncomment this:
|
24
22
|
# preferred_syntax = :sass
|
25
23
|
# and then run:
|
26
|
-
# sass-convert -R --from scss --to sass
|
24
|
+
# sass-convert -R --from scss --to sass scss scss && rm -rf sass && mv scss sass
|
25
|
+
|
26
|
+
# Make a copy of sprites with a name that has no uniqueness of the hash.
|
27
|
+
on_sprite_saved do |filename|
|
28
|
+
if File.exists?(filename)
|
29
|
+
FileUtils.cp filename, filename.gsub(%r{-s[a-z0-9]{10}\.png$}, '.png')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
# Replace in stylesheets generated references to sprites
|
34
|
+
# by their counterparts without the hash uniqueness.
|
35
|
+
on_stylesheet_saved do |filename|
|
36
|
+
if File.exists?(filename)
|
37
|
+
css = File.read filename
|
38
|
+
File.open(filename, 'w+') do |f|
|
39
|
+
f << css.gsub(%r{-s[a-z0-9]{10}\.png}, '.png')
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def decimal(value)
|
45
|
+
unless value.is_a?(Sass::Script::Number) && value.unit_str == "%"
|
46
|
+
raise ArgumentError.new("#{value.inspect} is not a percent")
|
47
|
+
end
|
48
|
+
Sass::Script::Number.new(value.value / 100.0)
|
49
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modularis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ThemePile
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- LICENSE
|
56
56
|
- README.md
|
57
57
|
- Rakefile
|
58
|
+
- demo/test/config.rb
|
58
59
|
- js/modularis/index.js
|
59
60
|
- js/vendor/custom.modernizr.js
|
60
61
|
- js/vendor/jquery.js
|
@@ -69,45 +70,7 @@ files:
|
|
69
70
|
- lib/modularis/version.rb
|
70
71
|
- modularis.gemspec
|
71
72
|
- package.json
|
72
|
-
- scss/compagecss/
|
73
|
-
- scss/compagecss/components/_alert-boxes.scss
|
74
|
-
- scss/compagecss/components/_block-grid.scss
|
75
|
-
- scss/compagecss/components/_breadcrumbs.scss
|
76
|
-
- scss/compagecss/components/_button-groups.scss
|
77
|
-
- scss/compagecss/components/_buttons.scss
|
78
|
-
- scss/compagecss/components/_clearing.scss
|
79
|
-
- scss/compagecss/components/_custom-forms.scss
|
80
|
-
- scss/compagecss/components/_dropdown-buttons.scss
|
81
|
-
- scss/compagecss/components/_dropdown.scss
|
82
|
-
- scss/compagecss/components/_flex-video.scss
|
83
|
-
- scss/compagecss/components/_flexbox-grid.scss
|
84
|
-
- scss/compagecss/components/_flip.scss
|
85
|
-
- scss/compagecss/components/_forms.scss
|
86
|
-
- scss/compagecss/components/_global.scss
|
87
|
-
- scss/compagecss/components/_grid.scss
|
88
|
-
- scss/compagecss/components/_inline-lists.scss
|
89
|
-
- scss/compagecss/components/_joyride.scss
|
90
|
-
- scss/compagecss/components/_keystrokes.scss
|
91
|
-
- scss/compagecss/components/_labels.scss
|
92
|
-
- scss/compagecss/components/_magellan.scss
|
93
|
-
- scss/compagecss/components/_off-canvas.scss
|
94
|
-
- scss/compagecss/components/_orbit.scss
|
95
|
-
- scss/compagecss/components/_pagination.scss
|
96
|
-
- scss/compagecss/components/_panels.scss
|
97
|
-
- scss/compagecss/components/_pricing-tables.scss
|
98
|
-
- scss/compagecss/components/_progress-bars.scss
|
99
|
-
- scss/compagecss/components/_reveal.scss
|
100
|
-
- scss/compagecss/components/_section.scss
|
101
|
-
- scss/compagecss/components/_side-nav.scss
|
102
|
-
- scss/compagecss/components/_split-buttons.scss
|
103
|
-
- scss/compagecss/components/_sub-nav.scss
|
104
|
-
- scss/compagecss/components/_switch.scss
|
105
|
-
- scss/compagecss/components/_tables.scss
|
106
|
-
- scss/compagecss/components/_thumbs.scss
|
107
|
-
- scss/compagecss/components/_tooltips.scss
|
108
|
-
- scss/compagecss/components/_top-bar.scss
|
109
|
-
- scss/compagecss/components/_type.scss
|
110
|
-
- scss/compagecss/components/_visibility.scss
|
73
|
+
- scss/compagecss/_settings.scss
|
111
74
|
- scss/modularis.scss
|
112
75
|
- scss/normalize.scss
|
113
76
|
- templates/project/.gitignore
|
@@ -1,106 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Alert Variables
|
3
|
-
//
|
4
|
-
|
5
|
-
// We use this to control alert padding.
|
6
|
-
$alert-padding-top: emCalc(11px) !default;
|
7
|
-
$alert-padding-default-float: $alert-padding-top !default;
|
8
|
-
$alert-padding-opposite-direction: $alert-padding-top + emCalc(10px) !default;
|
9
|
-
$alert-padding-bottom: $alert-padding-top + emCalc(1px) !default;
|
10
|
-
|
11
|
-
// We use these to control text style.
|
12
|
-
$alert-font-weight: bold !default;
|
13
|
-
$alert-font-size: emCalc(14px) !default;
|
14
|
-
$alert-font-color: #fff !default;
|
15
|
-
$alert-font-color-alt: darken($secondary-color, 60%) !default;
|
16
|
-
|
17
|
-
// We use this for close hover effect.
|
18
|
-
$alert-function-factor: 10% !default;
|
19
|
-
|
20
|
-
// We use these to control border styles.
|
21
|
-
$alert-border-style: solid !default;
|
22
|
-
$alert-border-width: 1px !default;
|
23
|
-
$alert-border-color: darken($primary-color, $alert-function-factor) !default;
|
24
|
-
$alert-bottom-margin: emCalc(20px) !default;
|
25
|
-
|
26
|
-
// We use these to style the close buttons
|
27
|
-
$alert-close-color: #333 !default;
|
28
|
-
$alert-close-position: emCalc(5px) !default;
|
29
|
-
$alert-close-font-size: emCalc(22px) !default;
|
30
|
-
$alert-close-opacity: 0.3 !default;
|
31
|
-
$alert-close-opacity-hover: 0.5 !default;
|
32
|
-
$alert-close-padding: 5px 4px 4px !default;
|
33
|
-
|
34
|
-
// We use this to control border radius
|
35
|
-
$alert-radius: $global-radius !default;
|
36
|
-
|
37
|
-
//
|
38
|
-
// Alert Mixins
|
39
|
-
//
|
40
|
-
|
41
|
-
// We use this mixin to create a default alert base.
|
42
|
-
@mixin alert-base {
|
43
|
-
border-style: $alert-border-style;
|
44
|
-
border-width: $alert-border-width;
|
45
|
-
display: block;
|
46
|
-
font-weight: $alert-font-weight;
|
47
|
-
margin-bottom: $alert-bottom-margin;
|
48
|
-
position: relative;
|
49
|
-
padding: $alert-padding-top $alert-padding-opposite-direction $alert-padding-bottom $alert-padding-default-float;
|
50
|
-
font-size: $alert-font-size;
|
51
|
-
}
|
52
|
-
|
53
|
-
// We use this mixin to add alert styles
|
54
|
-
@mixin alert-style($bg:$primary-color) {
|
55
|
-
|
56
|
-
// This find the lightness percentage of the background color.
|
57
|
-
$bg-lightness: lightness($bg);
|
58
|
-
|
59
|
-
// We control which background color and border come through.
|
60
|
-
background-color: $bg;
|
61
|
-
border-color: darken($bg, $alert-function-factor);
|
62
|
-
|
63
|
-
// We control the text color for you based on the background color.
|
64
|
-
@if $bg-lightness > 70% { color: $alert-font-color-alt; }
|
65
|
-
@else { color: $alert-font-color; }
|
66
|
-
|
67
|
-
}
|
68
|
-
|
69
|
-
// We use this to create the close button.
|
70
|
-
@mixin alert-close {
|
71
|
-
font-size: $alert-close-font-size;
|
72
|
-
padding: $alert-close-padding;
|
73
|
-
line-height: 0;
|
74
|
-
position: absolute;
|
75
|
-
top: $alert-close-position + emCalc(2px);
|
76
|
-
#{$opposite-direction}: $alert-close-position;
|
77
|
-
color: $alert-close-color;
|
78
|
-
opacity: $alert-close-opacity;
|
79
|
-
&:hover,
|
80
|
-
&:focus { opacity: $alert-close-opacity-hover; }
|
81
|
-
}
|
82
|
-
|
83
|
-
// We use this to quickly create alerts with a single mixin.
|
84
|
-
@mixin alert($bg:$primary-color, $radius:false) {
|
85
|
-
@include alert-base;
|
86
|
-
@include alert-style($bg);
|
87
|
-
@include radius($radius);
|
88
|
-
}
|
89
|
-
|
90
|
-
@if $include-html-alert-classes != false {
|
91
|
-
|
92
|
-
/* Modularis Alerts */
|
93
|
-
.alert-box {
|
94
|
-
@include alert;
|
95
|
-
|
96
|
-
.close { @include alert-close; }
|
97
|
-
|
98
|
-
&.radius { @include radius($alert-radius); }
|
99
|
-
&.round { @include radius($global-rounded); }
|
100
|
-
|
101
|
-
&.success { @include alert-style($success-color); }
|
102
|
-
&.alert { @include alert-style($alert-color); }
|
103
|
-
&.secondary { @include alert-style($secondary-color); }
|
104
|
-
}
|
105
|
-
|
106
|
-
}
|
@@ -1,70 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Block Grid Variables
|
3
|
-
//
|
4
|
-
|
5
|
-
// We use this to control the maximum number of block grid elements per row
|
6
|
-
$block-grid-elements: 12 !default;
|
7
|
-
$block-grid-default-spacing: 10px !default;
|
8
|
-
|
9
|
-
// Enables media queries for block-grid classes. Set to false if writing semantic HTML.
|
10
|
-
$block-grid-media-queries: true !default;
|
11
|
-
|
12
|
-
//
|
13
|
-
// Block Grid Mixins
|
14
|
-
//
|
15
|
-
|
16
|
-
// We use this mixin to create different block-grids. You can apply per-row and spacing options.
|
17
|
-
// Setting $base-style to false will ommit default styles.
|
18
|
-
@mixin block-grid($per-row:false, $spacing:$block-grid-default-spacing, $base-style:true) {
|
19
|
-
|
20
|
-
@if $base-style {
|
21
|
-
display: block;
|
22
|
-
padding: 0;
|
23
|
-
margin: 0 (-$spacing);
|
24
|
-
@include clearfix;
|
25
|
-
|
26
|
-
&>li {
|
27
|
-
display: inline;
|
28
|
-
height: auto;
|
29
|
-
float: $default-float;
|
30
|
-
padding: 0 $spacing $spacing;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
@if $per-row {
|
35
|
-
&>li {
|
36
|
-
width: 100%/$per-row;
|
37
|
-
padding: 0 $spacing $spacing;
|
38
|
-
|
39
|
-
&:nth-of-type(n) { clear: none; }
|
40
|
-
&:nth-of-type(#{$per-row}n+1) { clear: both; }
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
}
|
45
|
-
|
46
|
-
@if $block-grid-media-queries {
|
47
|
-
/* Modularis Block Grids for below small breakpoint */
|
48
|
-
@media only screen {
|
49
|
-
[class*="block-grid-"] { @include block-grid; }
|
50
|
-
|
51
|
-
@for $i from 1 through $block-grid-elements {
|
52
|
-
.small-block-grid-#{($i)} {
|
53
|
-
@include block-grid($i,$block-grid-default-spacing,false);
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
/* Modularis Block Grids for above small breakpoint */
|
59
|
-
@media #{$small} {
|
60
|
-
/* Remove small grid clearing */
|
61
|
-
@for $i from 1 through $block-grid-elements {
|
62
|
-
.small-block-grid-#{($i)} > li:nth-of-type(#{$i}n+1) { clear: none; }
|
63
|
-
}
|
64
|
-
@for $i from 1 through $block-grid-elements {
|
65
|
-
.large-block-grid-#{($i)} {
|
66
|
-
@include block-grid($i,$block-grid-default-spacing,false);
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
}
|
@@ -1,124 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Breadcrumb Variables
|
3
|
-
//
|
4
|
-
|
5
|
-
// We use this to set the background color for the breadcrumb container.
|
6
|
-
$crumb-bg: lighten($secondary-color, 5%) !default;
|
7
|
-
|
8
|
-
// We use these to set the padding around the breadcrumbs.
|
9
|
-
$crumb-padding: emCalc(9px) emCalc(14px) emCalc(9px) !default;
|
10
|
-
$crumb-side-padding: emCalc(12px) !default;
|
11
|
-
|
12
|
-
// We use these to control border styles.
|
13
|
-
$crumb-function-factor: 10% !default;
|
14
|
-
$crumb-border-size: 1px !default;
|
15
|
-
$crumb-border-style: solid !default;
|
16
|
-
$crumb-border-color: darken($crumb-bg, $crumb-function-factor) !default;
|
17
|
-
$crumb-radius: $global-radius !default;
|
18
|
-
|
19
|
-
// We use these to set various text styles for breadcrumbs.
|
20
|
-
$crumb-font-size: emCalc(11px) !default;
|
21
|
-
$crumb-font-color: $primary-color !default;
|
22
|
-
$crumb-font-color-current: #333 !default;
|
23
|
-
$crumb-font-color-unavailable: #999 !default;
|
24
|
-
$crumb-font-transform: uppercase !default;
|
25
|
-
$crumb-link-decor: underline !default;
|
26
|
-
|
27
|
-
// We use these to control the slash between breadcrumbs
|
28
|
-
$crumb-slash-color: #aaa !default;
|
29
|
-
$crumb-slash: "/" !default;
|
30
|
-
|
31
|
-
//
|
32
|
-
// Breakcrumb Mixins
|
33
|
-
//
|
34
|
-
|
35
|
-
// We use this mixin to create a container around our breadcrumbs
|
36
|
-
@mixin crumb-container {
|
37
|
-
display: block;
|
38
|
-
padding: $crumb-padding;
|
39
|
-
overflow: hidden;
|
40
|
-
margin-#{$default-float}: 0;
|
41
|
-
list-style: none;
|
42
|
-
border-style: $crumb-border-style;
|
43
|
-
border-width: $crumb-border-size;
|
44
|
-
|
45
|
-
// We control which background color and border come through.
|
46
|
-
background-color: $crumb-bg;
|
47
|
-
border-color: $crumb-border-color;
|
48
|
-
}
|
49
|
-
|
50
|
-
// We use this mixin to create breadcrumb styles from list items.
|
51
|
-
@mixin crumbs {
|
52
|
-
|
53
|
-
// A normal state will make the links look and act like clickable breadcrumbs.
|
54
|
-
margin: 0;
|
55
|
-
float: $default-float;
|
56
|
-
font-size: $crumb-font-size;
|
57
|
-
text-transform: $crumb-font-transform;
|
58
|
-
color: $crumb-font-color;
|
59
|
-
|
60
|
-
&:hover a, &:focus a { text-decoration: $crumb-link-decor; }
|
61
|
-
|
62
|
-
a,
|
63
|
-
span {
|
64
|
-
text-transform: $crumb-font-transform;
|
65
|
-
color: $crumb-font-color;
|
66
|
-
}
|
67
|
-
|
68
|
-
// Current is for the link of the current page
|
69
|
-
&.current {
|
70
|
-
cursor: default;
|
71
|
-
color: $crumb-font-color-current;
|
72
|
-
a {
|
73
|
-
cursor: default;
|
74
|
-
color: $crumb-font-color-current;
|
75
|
-
}
|
76
|
-
|
77
|
-
&:hover, &:hover a,
|
78
|
-
&:focus, &:focus a { text-decoration: none; }
|
79
|
-
}
|
80
|
-
|
81
|
-
// Unavailable removed color and link styles so it looks inactive.
|
82
|
-
&.unavailable {
|
83
|
-
color: $crumb-font-color-unavailable;
|
84
|
-
a { color: $crumb-font-color-unavailable; }
|
85
|
-
|
86
|
-
&:hover,
|
87
|
-
&:hover a,
|
88
|
-
&:focus,
|
89
|
-
a:focus {
|
90
|
-
text-decoration: none;
|
91
|
-
color: $crumb-font-color-unavailable;
|
92
|
-
cursor: default;
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
&:before {
|
97
|
-
content: "#{$crumb-slash}";
|
98
|
-
color: $crumb-slash-color;
|
99
|
-
margin: 0 $crumb-side-padding;
|
100
|
-
position: relative;
|
101
|
-
top: 1px;
|
102
|
-
}
|
103
|
-
|
104
|
-
&:first-child:before {
|
105
|
-
content: " ";
|
106
|
-
margin: 0;
|
107
|
-
}
|
108
|
-
|
109
|
-
}
|
110
|
-
|
111
|
-
|
112
|
-
@if $include-html-nav-classes != false {
|
113
|
-
|
114
|
-
/* Breadcrumbs */
|
115
|
-
.breadcrumbs {
|
116
|
-
@include crumb-container;
|
117
|
-
@include radius($crumb-radius);
|
118
|
-
|
119
|
-
&>* {
|
120
|
-
@include crumbs;
|
121
|
-
}
|
122
|
-
}
|
123
|
-
|
124
|
-
}
|
@@ -1,88 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Button Group Variables
|
3
|
-
//
|
4
|
-
|
5
|
-
// Sets the margin for the right side by default, and the left margin if right-to-left direction is used
|
6
|
-
$button-bar-margin-opposite: emCalc(10px) !default;
|
7
|
-
|
8
|
-
//
|
9
|
-
// Button Group Mixins
|
10
|
-
//
|
11
|
-
|
12
|
-
// We use this to add styles for a button group container
|
13
|
-
@mixin button-group-container($styles:true, $float:false) {
|
14
|
-
@if $styles {
|
15
|
-
list-style: none;
|
16
|
-
margin: 0;
|
17
|
-
@include clearfix();
|
18
|
-
}
|
19
|
-
@if $float {
|
20
|
-
float: #{$default-float};
|
21
|
-
margin-#{$opposite-direction}: $button-bar-margin-opposite;
|
22
|
-
& div { overflow: hidden; }
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
// We use this to control styles for button groups
|
27
|
-
@mixin button-group-style($radius:false, $even:false, $float:$default-float) {
|
28
|
-
|
29
|
-
// We use this to control the flow, or remove those styles completely.
|
30
|
-
@if $float {
|
31
|
-
margin: 0 0 0 -1px;
|
32
|
-
float: $float;
|
33
|
-
// Make sure the first child doesn't get the negative margin.
|
34
|
-
&:first-child { margin-#{$default-float}: 0; }
|
35
|
-
}
|
36
|
-
|
37
|
-
// We use these to control left and right radius on first/last buttons in the group.
|
38
|
-
@if $radius == true {
|
39
|
-
&:first-child,
|
40
|
-
&:first-child > a,
|
41
|
-
&:first-child > button,
|
42
|
-
&:first-child > .button { @include side-radius($default-float, $button-radius); }
|
43
|
-
&:last-child,
|
44
|
-
&:last-child > a,
|
45
|
-
&:last-child > button,
|
46
|
-
&:last-child > .button { @include side-radius($opposite-direction, $button-radius); }
|
47
|
-
}
|
48
|
-
@else if $radius {
|
49
|
-
&:first-child,
|
50
|
-
&:first-child > a,
|
51
|
-
&:first-child > button,
|
52
|
-
&:first-child > .button { @include side-radius($default-float, $radius); }
|
53
|
-
&:last-child,
|
54
|
-
&:last-child > a,
|
55
|
-
&:last-child > button,
|
56
|
-
&:last-child > .button { @include side-radius($opposite-direction, $radius); }
|
57
|
-
}
|
58
|
-
|
59
|
-
// We use this to make the buttons even width across their container
|
60
|
-
@if $even {
|
61
|
-
width: percentage((100/$even) / 100);
|
62
|
-
button, .button { width: 100%; }
|
63
|
-
}
|
64
|
-
|
65
|
-
}
|
66
|
-
|
67
|
-
// Only include these CSS classes if $include-html-classes: true
|
68
|
-
@if $include-html-button-classes != false {
|
69
|
-
|
70
|
-
/* Button Groups */
|
71
|
-
.button-group { @include button-group-container;
|
72
|
-
|
73
|
-
&> * { @include button-group-style(); }
|
74
|
-
|
75
|
-
&.radius > * { @include button-group-style($radius:$button-radius, $float:null); }
|
76
|
-
&.round > * { @include button-group-style($radius:$button-round, $float:null); }
|
77
|
-
|
78
|
-
@for $i from 2 through 8 {
|
79
|
-
&.even#{-$i} li { @include button-group-style($even:$i, $float:null); }
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
.button-bar {
|
84
|
-
@include clearfix;
|
85
|
-
.button-group { @include button-group-container($styles:false,$float:true); }
|
86
|
-
}
|
87
|
-
|
88
|
-
}
|