bones-rails 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{LICENSE.txt → LICENSE.md} +1 -1
- data/app/assets/stylesheets/bones.scss +61 -59
- data/app/assets/stylesheets/bones/config.scss +67 -0
- data/app/assets/stylesheets/bones/config/__default.scss +14 -0
- data/app/assets/stylesheets/bones/config/_buttons.scss +21 -0
- data/app/assets/stylesheets/bones/config/_colors.scss +93 -0
- data/app/assets/stylesheets/bones/config/_components.scss +4 -0
- data/app/assets/stylesheets/bones/config/_forms.scss +28 -0
- data/app/assets/stylesheets/bones/config/_helpers.scss +31 -0
- data/app/assets/stylesheets/bones/config/_images.scss +23 -0
- data/app/assets/stylesheets/bones/config/_nav.scss +117 -0
- data/app/assets/stylesheets/bones/config/_tables.scss +12 -0
- data/app/assets/stylesheets/bones/config/_typography.scss +83 -0
- data/app/assets/stylesheets/bones/config/_wireframe.scss +18 -0
- data/app/assets/stylesheets/bones/styles/__default.scss +27 -0
- data/app/assets/stylesheets/bones/styles/_buttons.scss +118 -0
- data/app/assets/stylesheets/bones/styles/_components.scss +24 -0
- data/app/assets/stylesheets/bones/{partials → styles}/_forms.scss +18 -2
- data/app/assets/stylesheets/bones/styles/_images.scss +69 -0
- data/app/assets/stylesheets/bones/styles/_nav.scss +210 -0
- data/app/assets/stylesheets/bones/{partials → styles}/_tables.scss +6 -4
- data/app/assets/stylesheets/bones/styles/_typography.scss +227 -0
- data/app/assets/stylesheets/bones/styles/_wireframe.scss +57 -0
- data/app/assets/stylesheets/bones/styles/helpers/_background.scss +201 -0
- data/app/assets/stylesheets/bones/styles/helpers/_border.scss +201 -0
- data/app/assets/stylesheets/bones/styles/helpers/_color.scss +201 -0
- data/app/assets/stylesheets/bones/styles/helpers/_margin.scss +82 -0
- data/app/assets/stylesheets/bones/styles/helpers/_padding.scss +82 -0
- data/app/assets/stylesheets/bones/{helpers → styles/helpers}/_positioning.scss +4 -3
- data/app/assets/stylesheets/bones/styles/helpers/_size.scss +11 -0
- data/app/assets/stylesheets/bones/styles/plugins/_syntax_highlighting.scss +273 -0
- data/app/assets/stylesheets/bones/vendor/_normalize.scss +1 -1
- data/lib/bones/generators/install_generator.rb +29 -5
- data/lib/bones/rails/version.rb +1 -1
- metadata +32 -39
- data/app/assets/javascripts/bones.js +0 -116
- data/app/assets/stylesheets/bones/config/bones_config.scss +0 -262
- data/app/assets/stylesheets/bones/helpers/_background.scss +0 -138
- data/app/assets/stylesheets/bones/helpers/_border.scss +0 -138
- data/app/assets/stylesheets/bones/helpers/_color.scss +0 -138
- data/app/assets/stylesheets/bones/helpers/_margin.scss +0 -82
- data/app/assets/stylesheets/bones/helpers/_padding.scss +0 -82
- data/app/assets/stylesheets/bones/helpers/_size.scss +0 -34
- data/app/assets/stylesheets/bones/mixins/_buttons.scss +0 -19
- data/app/assets/stylesheets/bones/mixins/_forms.scss +0 -15
- data/app/assets/stylesheets/bones/mixins/_globals.scss +0 -15
- data/app/assets/stylesheets/bones/mixins/_grid.scss +0 -4
- data/app/assets/stylesheets/bones/mixins/_nav.scss +0 -41
- data/app/assets/stylesheets/bones/mixins/_typography.scss +0 -15
- data/app/assets/stylesheets/bones/partials/_buttons.scss +0 -86
- data/app/assets/stylesheets/bones/partials/_code.scss +0 -99
- data/app/assets/stylesheets/bones/partials/_components.scss +0 -22
- data/app/assets/stylesheets/bones/partials/_globals.scss +0 -27
- data/app/assets/stylesheets/bones/partials/_grid.scss +0 -112
- data/app/assets/stylesheets/bones/partials/_images.scss +0 -52
- data/app/assets/stylesheets/bones/partials/_nav.scss +0 -111
- data/app/assets/stylesheets/bones/partials/_typography.scss +0 -174
- data/app/assets/stylesheets/bones/variables/_buttons.scss +0 -16
- data/app/assets/stylesheets/bones/variables/_code.scss +0 -15
- data/app/assets/stylesheets/bones/variables/_colors.scss +0 -122
- data/app/assets/stylesheets/bones/variables/_forms.scss +0 -12
- data/app/assets/stylesheets/bones/variables/_globals.scss +0 -12
- data/app/assets/stylesheets/bones/variables/_grid.scss +0 -8
- data/app/assets/stylesheets/bones/variables/_helpers.scss +0 -9
- data/app/assets/stylesheets/bones/variables/_images.scss +0 -13
- data/app/assets/stylesheets/bones/variables/_nav.scss +0 -40
- data/app/assets/stylesheets/bones/variables/_tables.scss +0 -7
- data/app/assets/stylesheets/bones/variables/_typography.scss +0 -61
@@ -0,0 +1,12 @@
|
|
1
|
+
/* Standard Tables
|
2
|
+
============================ */
|
3
|
+
// default
|
4
|
+
$table-default-width: 100%;
|
5
|
+
$table-default-border: 1px solid $color-light-darker;
|
6
|
+
// headers
|
7
|
+
$table-header-background: $color-1;
|
8
|
+
$table-header-color: $color-light;
|
9
|
+
$table-header-fontWeight: 400;
|
10
|
+
// cells
|
11
|
+
$table-cell-padding: 5px 10px;
|
12
|
+
$table-cell-altBackground: $color-light; // each even row will have this background
|
@@ -0,0 +1,83 @@
|
|
1
|
+
/* Headings
|
2
|
+
============================ */
|
3
|
+
// default
|
4
|
+
$type-heading-margin: $default-margin;
|
5
|
+
$type-heading-color: $default-color;
|
6
|
+
$type-heading-textTransform: none;
|
7
|
+
$type-heading-fontWeight: 600;
|
8
|
+
// individual headings
|
9
|
+
$type-h1-fontSize: 2.75em;
|
10
|
+
$type-h2-fontSize: 2.4em;
|
11
|
+
$type-h3-fontSize: 2.05em;
|
12
|
+
$type-h4-fontSize: 1.7em;
|
13
|
+
$type-h5-fontSize: 1.35em;
|
14
|
+
$type-h6-fontSize: 1.0em;
|
15
|
+
|
16
|
+
/* Subheadings
|
17
|
+
============================ */
|
18
|
+
$type-subheading-color: $color-dark-lightest;
|
19
|
+
$type-subheading-fontWeight: 200;
|
20
|
+
$type-subheading-sizeFactor: 0.75;
|
21
|
+
|
22
|
+
/* Block-Level Elements
|
23
|
+
============================ */
|
24
|
+
// paragraph
|
25
|
+
$type-paragraph-font: $default-fontSize;
|
26
|
+
$type-paragraph-fontWeight: $default-fontWeight;
|
27
|
+
$type-paragraph-margin: $default-margin;
|
28
|
+
$type-paragraph-lineHeight: $default-lineHeight;
|
29
|
+
$type-paragraph-color: $default-color;
|
30
|
+
// blockquote
|
31
|
+
$type-blockquote-padding: 0.25em 0.75em;
|
32
|
+
$type-blockquote-margin: $default-margin;
|
33
|
+
$type-blockquote-background: $color-light;
|
34
|
+
$type-blockquote-borderLeft: 7.5px solid $color-light-dark;
|
35
|
+
$type-blockquote-fontSize: $default-fontSize;
|
36
|
+
// code block
|
37
|
+
$type-codeBlock-margin: 1.25em 0;
|
38
|
+
$type-codeBlock-padding: 1.25em 0.75em;
|
39
|
+
$type-codeBlock-fontFamily: Consolas, monospace;
|
40
|
+
$type-codeBlock-color: $default-color;
|
41
|
+
$type-codeBlock-background: $color-light;
|
42
|
+
$type-codeBlock-border: $color-light-dark;
|
43
|
+
$type-codeBlock-fontSize: 13px;
|
44
|
+
$type-codeBlock-lineHeight: 19px;
|
45
|
+
|
46
|
+
/* Inline Elements
|
47
|
+
============================ */
|
48
|
+
// links
|
49
|
+
$type-link-color: $color-1;
|
50
|
+
$type-link-color-hover: $color-1-darker;
|
51
|
+
$type-link-underline: false;
|
52
|
+
$type-link-underline-hover: false;
|
53
|
+
// code
|
54
|
+
$type-code-font-family: Consolas, monospace;
|
55
|
+
$type-code-color: $color-2;
|
56
|
+
$type-code-fontSize: 12px;
|
57
|
+
$type-code-background: $color-light;
|
58
|
+
$type-code-padding: 1px 2px;
|
59
|
+
$type-code-border: $color-light-dark;
|
60
|
+
// small
|
61
|
+
$type-small-fontFactor: 60%;
|
62
|
+
// big
|
63
|
+
$type-big-fontFactor: 140%;
|
64
|
+
// strong
|
65
|
+
$type-strong-fontWeight: 600;
|
66
|
+
|
67
|
+
/* Lists
|
68
|
+
============================ */
|
69
|
+
// unordered lists
|
70
|
+
$type-ul-marginLeft-1: -20px;
|
71
|
+
$type-ul-marginLeft-2: 0;
|
72
|
+
$type-ul-styleType: disc;
|
73
|
+
$type-ul-lineHeight: 1.5;
|
74
|
+
// ordered lists
|
75
|
+
$type-ol-marginLeft-1: $type-ul-marginLeft-1;
|
76
|
+
$type-ol-marginLeft-2: $type-ul-marginLeft-2;
|
77
|
+
$type-ol-lineHeight: $type-ul-lineHeight;
|
78
|
+
|
79
|
+
/* Horizontal Rule
|
80
|
+
============================ */
|
81
|
+
$type-hr-color: $color-light-dark;
|
82
|
+
$type-hr-height: 1px;
|
83
|
+
$type-hr-margin: $default-margin;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/* Containers
|
2
|
+
============================ */
|
3
|
+
$wireframe-container-width: 1200px; // maximum container width -- container will shrink as needed
|
4
|
+
$wireframe-container-margin: 0 auto;
|
5
|
+
$wireframe-container-padding: 20px;
|
6
|
+
|
7
|
+
/* Content
|
8
|
+
============================ */
|
9
|
+
$wireframe-content-margin: $wireframe-container-margin;
|
10
|
+
$wireframe-content-padding: $wireframe-container-padding;
|
11
|
+
|
12
|
+
/* Grid
|
13
|
+
============================ */
|
14
|
+
$wireframe-grid-numberOfCols: 12; // number of columns as base of building grid -- any number is permitted
|
15
|
+
$wireframe-column-marginLeftRight: 0.5%; // margin on each column -- must be one percentage
|
16
|
+
$wireframe-column-paddingLeftRight: 0.5%; // padding on each column -- must be one percentage
|
17
|
+
$wireframe-column-marginTopBottom: 0.5%; // top/bottom margin on each column
|
18
|
+
$wireframe-column-paddingTopBottom: 0.5%; // top/bottom padding on each column
|
@@ -0,0 +1,27 @@
|
|
1
|
+
@mixin clearfix() {
|
2
|
+
display: inline-block;
|
3
|
+
&:after {
|
4
|
+
content: ".";
|
5
|
+
display: block;
|
6
|
+
clear: both;
|
7
|
+
visibility: hidden;
|
8
|
+
line-height: 0;
|
9
|
+
height: 0;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin border($color: $color-light-dark, $weight: 1px, $style: solid) {
|
14
|
+
border: $weight $style $color;
|
15
|
+
}
|
16
|
+
|
17
|
+
* {
|
18
|
+
font-family: $default-fontFamily;
|
19
|
+
font-size: $default-fontSize;
|
20
|
+
font-weight: $default-fontWeight;
|
21
|
+
color: $default-color;
|
22
|
+
line-height: $default-lineHeight;
|
23
|
+
}
|
24
|
+
|
25
|
+
.clearfix {
|
26
|
+
@include clearfix();
|
27
|
+
}
|
@@ -0,0 +1,118 @@
|
|
1
|
+
/* Default
|
2
|
+
============================ */
|
3
|
+
@mixin button($color: $color-light, $background-color: $color-1, $hover-background-color: $color-1-dark, $active-background-color: $color-1-darker) {
|
4
|
+
color: $color;
|
5
|
+
background-color: $background-color;
|
6
|
+
display: inline-block;
|
7
|
+
border: $button-default-border;
|
8
|
+
padding: $button-default-padding;
|
9
|
+
margin: $button-default-margin;
|
10
|
+
font-size: $button-default-fontSize;
|
11
|
+
line-height: $button-default-fontSize;
|
12
|
+
&:hover {
|
13
|
+
background-color: $hover-background-color;
|
14
|
+
cursor: pointer;
|
15
|
+
}
|
16
|
+
&:active {
|
17
|
+
background-color: $active-background-color;
|
18
|
+
outline: none;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
button {
|
23
|
+
@include button($button-default-color, $button-default-background, $button-default-background-hover, $button-default-background-active);
|
24
|
+
}
|
25
|
+
|
26
|
+
a.button, .button {
|
27
|
+
@include button($button-default-color, $button-default-background, $button-default-background-hover, $button-default-background-active);
|
28
|
+
text-decoration: none;
|
29
|
+
&:hover {
|
30
|
+
text-decoration: none;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
input[type=submit], form > input[type=submit] {
|
35
|
+
@include button($button-default-color, $button-default-background, $button-default-background-hover, $button-default-background-active);
|
36
|
+
}
|
37
|
+
|
38
|
+
/* Size Factors
|
39
|
+
============================ */
|
40
|
+
button.huge, a.button.huge {
|
41
|
+
font-size: $button-sizeFactor-huge;
|
42
|
+
}
|
43
|
+
|
44
|
+
button.large, a.button.large {
|
45
|
+
font-size: $button-sizeFactor-large;
|
46
|
+
}
|
47
|
+
|
48
|
+
button.small, a.button.small {
|
49
|
+
font-size: $button-sizeFactor-small;
|
50
|
+
}
|
51
|
+
|
52
|
+
/* Colors
|
53
|
+
============================ */
|
54
|
+
button.primary, a.button.primary {
|
55
|
+
@include button($color-light, $color-1, $color-1-dark, $color-1-darker);
|
56
|
+
}
|
57
|
+
|
58
|
+
button.accent-1, a.button.accent-1 {
|
59
|
+
@include button($color-light, $color-2, $color-2-dark, $color-2-darker);
|
60
|
+
}
|
61
|
+
|
62
|
+
button.accent-2, a.button.accent-2 {
|
63
|
+
@include button($color-light, $color-3, $color-3-dark, $color-3-darker);
|
64
|
+
}
|
65
|
+
|
66
|
+
button.accent-3, a.button.accent-3 {
|
67
|
+
@include button($color-light, $color-4, $color-4-dark, $color-4-darker);
|
68
|
+
}
|
69
|
+
|
70
|
+
button.accent-4, a.button.accent-4 {
|
71
|
+
@include button($color-light, $color-5, $color-5-dark, $color-5-darker);
|
72
|
+
}
|
73
|
+
|
74
|
+
button.dark, a.button.dark {
|
75
|
+
@include button($color-light, $color-dark, $color-dark-light, $color-dark-lightest);
|
76
|
+
}
|
77
|
+
|
78
|
+
button.light, a.button.light {
|
79
|
+
@include button($color-dark, $color-light-dark, $color-light-darker, $color-light-darkest);
|
80
|
+
}
|
81
|
+
|
82
|
+
button.success, a.button.success {
|
83
|
+
@include button($color-light, $color-success, $color-success-dark, $color-success-darker);
|
84
|
+
}
|
85
|
+
|
86
|
+
button.notice, a.button.notice {
|
87
|
+
@include button($color-light, $color-warning, $color-warning-dark, $color-warning-darker);
|
88
|
+
}
|
89
|
+
|
90
|
+
button.alert, a.button.alert {
|
91
|
+
@include button($color-light, $color-danger, $color-danger-dark, $color-danger-darker);
|
92
|
+
}
|
93
|
+
|
94
|
+
/* Block-Level
|
95
|
+
============================ */
|
96
|
+
button.block, a.button.block, input[type=submit].block, form > input[type=submit].block {
|
97
|
+
@include button($button-default-color, $button-default-background, $button-default-background-hover, $button-default-background-active);
|
98
|
+
display: block;
|
99
|
+
width: 100%;
|
100
|
+
}
|
101
|
+
|
102
|
+
/* Disabled
|
103
|
+
============================ */
|
104
|
+
button, input[type=submit], form > input[type=submit] {
|
105
|
+
&:disabled {
|
106
|
+
@include button($color-dark-lightest, $color-dark-lighter, $color-dark-lighter, $color-dark-lighter);
|
107
|
+
&:hover {
|
108
|
+
cursor: default;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
a.button.disabled, .button.disabled {
|
114
|
+
@include button($color-dark-lightest, $color-dark-lighter, $color-dark-lighter, $color-dark-lighter);
|
115
|
+
&:hover {
|
116
|
+
cursor: default;
|
117
|
+
}
|
118
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/* Notifications
|
2
|
+
============================ */
|
3
|
+
@mixin notification($bg) {
|
4
|
+
width: 100%;
|
5
|
+
padding: $component-notification-padding;
|
6
|
+
margin: $component-notification-margin;
|
7
|
+
background: $bg;
|
8
|
+
color: $color-light;
|
9
|
+
}
|
10
|
+
|
11
|
+
p, div {
|
12
|
+
&.notification, &.notice, &.alert {
|
13
|
+
@include notification($color-1);
|
14
|
+
}
|
15
|
+
&.danger {
|
16
|
+
@include notification($color-danger);
|
17
|
+
}
|
18
|
+
&.warning {
|
19
|
+
@include notification($color-warning);
|
20
|
+
}
|
21
|
+
&.success {
|
22
|
+
@include notification($color-success);
|
23
|
+
}
|
24
|
+
}
|
@@ -1,3 +1,19 @@
|
|
1
|
+
@mixin form-global() {
|
2
|
+
display: block;
|
3
|
+
margin: $form-input-margin;
|
4
|
+
width: $form-input-width;
|
5
|
+
box-sizing: $form-input-boxSizing;
|
6
|
+
border: $form-input-border;
|
7
|
+
&:focus {
|
8
|
+
outline: $form-input-outline-focus;
|
9
|
+
border: $form-input-border-focus;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin form-input() {
|
14
|
+
padding: $form-input-padding;
|
15
|
+
}
|
16
|
+
|
1
17
|
form {
|
2
18
|
input[type=text] {
|
3
19
|
@include form-global();
|
@@ -42,8 +58,8 @@ form {
|
|
42
58
|
fieldset {
|
43
59
|
border: $form-fieldset-border;
|
44
60
|
legend {
|
45
|
-
font-weight: $form-
|
46
|
-
padding: $form-
|
61
|
+
font-weight: $form-legend-fontWeight;
|
62
|
+
padding: $form-legend-padding;
|
47
63
|
}
|
48
64
|
}
|
49
65
|
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
/* Sizes
|
2
|
+
============================ */
|
3
|
+
img {
|
4
|
+
margin: 0;
|
5
|
+
padding: 0;
|
6
|
+
height: auto;
|
7
|
+
&.thumb {
|
8
|
+
width: $img-thumb-width;
|
9
|
+
}
|
10
|
+
&.medium {
|
11
|
+
width: $img-medium-width;
|
12
|
+
}
|
13
|
+
&.large {
|
14
|
+
width: $img-large-width;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
/* Styles
|
19
|
+
============================ */
|
20
|
+
img {
|
21
|
+
&.frame {
|
22
|
+
border: $img-frame-width solid $img-frame-color;
|
23
|
+
outline: $img-frame-outline;
|
24
|
+
}
|
25
|
+
&.polaroid {
|
26
|
+
border: $img-polaroid-frameWidth solid $img-polaroid-frameColor;
|
27
|
+
outline: $img-polaroid-outline;
|
28
|
+
border-bottom-width: $img-polaroid-bottomHeight;
|
29
|
+
}
|
30
|
+
&.center {
|
31
|
+
display: block;
|
32
|
+
margin-right: auto;
|
33
|
+
margin-left: auto;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
div.panoramic {
|
38
|
+
width: 100%;
|
39
|
+
height: $img-panoramic-height;
|
40
|
+
overflow: hidden;
|
41
|
+
box-sizing: border-box;
|
42
|
+
position: relative;
|
43
|
+
img {
|
44
|
+
width: 100%;
|
45
|
+
position: absolute;
|
46
|
+
top: $img-panoramic-top;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
@mixin img-circle($width) {
|
51
|
+
width: $width;
|
52
|
+
height: $width;
|
53
|
+
img {
|
54
|
+
width: $width;
|
55
|
+
height: $width;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
div.circle {
|
60
|
+
border-radius: 50%;
|
61
|
+
overflow: hidden;
|
62
|
+
@include img-circle($img-thumb-width);
|
63
|
+
&.medium {
|
64
|
+
@include img-circle($img-medium-width);
|
65
|
+
}
|
66
|
+
&.large {
|
67
|
+
@include img-circle($img-large-width);
|
68
|
+
}
|
69
|
+
}
|
@@ -0,0 +1,210 @@
|
|
1
|
+
/* Mixins
|
2
|
+
============================ */
|
3
|
+
@mixin normalize-ul() {
|
4
|
+
list-style: none;
|
5
|
+
margin: 0;
|
6
|
+
padding: 0;
|
7
|
+
li {
|
8
|
+
margin: 0;
|
9
|
+
padding: 0;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin effect($bg, $color, $transition) {
|
14
|
+
background: $bg;
|
15
|
+
color: $color;
|
16
|
+
transition: $transition;
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin nav-a(
|
20
|
+
$fontSize: $nav-default-fontSize,
|
21
|
+
$margin: $mav-margin,
|
22
|
+
$padding: $nav-default-padding,
|
23
|
+
$background: $nav-default-background,
|
24
|
+
$color: $nav-default-color,
|
25
|
+
$underline: $nav-default-underline,
|
26
|
+
$transition: $nav-default-transition,
|
27
|
+
$hover-background: $nav-default-background-hover,
|
28
|
+
$hover-color: $nav-default-color-hover,
|
29
|
+
$hover-underline: $nav-default-underline-hover,
|
30
|
+
$hover-transition: $nav-default-transition-hover
|
31
|
+
) {
|
32
|
+
font-size: $fontSize;
|
33
|
+
padding: $padding;
|
34
|
+
margin: $margin;
|
35
|
+
@include effect($background, $color, $transition);
|
36
|
+
border-bottom: $underline;
|
37
|
+
&:hover {
|
38
|
+
@include effect($hover-background, $hover-color, $hover-transition);
|
39
|
+
border-bottom: $hover-underline;
|
40
|
+
span, i {
|
41
|
+
@include effect($hover-background, $hover-color, $hover-transition);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
span, i {
|
45
|
+
@include effect($background, $color, $transition)
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
/* Default Nav Menu
|
50
|
+
============================ */
|
51
|
+
nav, div.nav {
|
52
|
+
width: 100%;
|
53
|
+
background: $nav-default-background;
|
54
|
+
overflow: hidden;
|
55
|
+
ul {
|
56
|
+
@include normalize-ul();
|
57
|
+
float: left;
|
58
|
+
&.right {
|
59
|
+
float: right;
|
60
|
+
}
|
61
|
+
li {
|
62
|
+
display: inline-block;
|
63
|
+
a {
|
64
|
+
display: inline-block;
|
65
|
+
@include nav-a(
|
66
|
+
$nav-default-fontSize,
|
67
|
+
$nav-default-margin,
|
68
|
+
$nav-default-padding,
|
69
|
+
$nav-default-background,
|
70
|
+
$nav-default-color,
|
71
|
+
$nav-default-underline,
|
72
|
+
$nav-default-transition,
|
73
|
+
$nav-default-background-hover,
|
74
|
+
$nav-default-color-hover,
|
75
|
+
$nav-default-underline-hover,
|
76
|
+
$nav-default-transition-hover
|
77
|
+
);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
/* Navbar
|
84
|
+
============================ */
|
85
|
+
nav.bar, div.nav.bar {
|
86
|
+
background: $nav-bar-background;
|
87
|
+
ul {
|
88
|
+
li a {
|
89
|
+
@include nav-a(
|
90
|
+
$nav-bar-fontSize,
|
91
|
+
$nav-bar-margin,
|
92
|
+
$nav-bar-padding,
|
93
|
+
$nav-bar-background,
|
94
|
+
$nav-bar-color,
|
95
|
+
$nav-bar-underline,
|
96
|
+
$nav-bar-transition,
|
97
|
+
$nav-bar-background-hover,
|
98
|
+
$nav-bar-color-hover,
|
99
|
+
$nav-bar-underline-hover,
|
100
|
+
$nav-bar-transition-hover
|
101
|
+
);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
/* Vertical / Sidebar
|
107
|
+
============================ */
|
108
|
+
nav.vertical, div.nav.vertical {
|
109
|
+
background: $nav-vertical-background;
|
110
|
+
ul {
|
111
|
+
li {
|
112
|
+
display: block;
|
113
|
+
a {
|
114
|
+
display: block;
|
115
|
+
@include nav-a(
|
116
|
+
$nav-vertical-fontSize,
|
117
|
+
$nav-vertical-margin,
|
118
|
+
$nav-vertical-padding,
|
119
|
+
$nav-vertical-background,
|
120
|
+
$nav-vertical-color,
|
121
|
+
$nav-vertical-underline,
|
122
|
+
$nav-vertical-transition,
|
123
|
+
$nav-vertical-background-hover,
|
124
|
+
$nav-vertical-color-hover,
|
125
|
+
$nav-vertical-underline-hover,
|
126
|
+
$nav-vertical-transition-hover
|
127
|
+
);
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
/* Filters
|
134
|
+
============================ */
|
135
|
+
ul.filter {
|
136
|
+
@include normalize-ul();
|
137
|
+
li {
|
138
|
+
display: inline-block;
|
139
|
+
a {
|
140
|
+
display: inline-block;
|
141
|
+
@include nav-a(
|
142
|
+
$nav-filter-fontSize,
|
143
|
+
$nav-filter-margin,
|
144
|
+
$nav-filter-padding,
|
145
|
+
$nav-filter-background,
|
146
|
+
$nav-filter-color,
|
147
|
+
$nav-filter-underline,
|
148
|
+
$nav-filter-transition,
|
149
|
+
$nav-filter-background-hover,
|
150
|
+
$nav-filter-color-hover,
|
151
|
+
$nav-filter-underline-hover,
|
152
|
+
$nav-filter-transition-hover
|
153
|
+
);
|
154
|
+
}
|
155
|
+
&.active a {
|
156
|
+
background: $nav-filter-background-active;
|
157
|
+
color: $nav-filter-color-active;
|
158
|
+
font-weight: $nav-filter-font-weight-active;
|
159
|
+
border-bottom: $nav-filter-underline-active;
|
160
|
+
}
|
161
|
+
&.disabled a {
|
162
|
+
background: $nav-filter-background-disabled;
|
163
|
+
color: $nav-filter-color-disabled;
|
164
|
+
border-bottom: $nav-filter-underline-disabled;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
/* Breadcrumbs
|
170
|
+
============================ */
|
171
|
+
ul.breadcrumbs {
|
172
|
+
@include normalize-ul();
|
173
|
+
li {
|
174
|
+
display: inline-block;
|
175
|
+
a {
|
176
|
+
display: inline-block;
|
177
|
+
@include nav-a(
|
178
|
+
$nav-breadcrumbs-fontSize,
|
179
|
+
$nav-breadcrumbs-margin,
|
180
|
+
$nav-breadcrumbs-padding,
|
181
|
+
$nav-breadcrumbs-background,
|
182
|
+
$nav-breadcrumbs-color,
|
183
|
+
$nav-breadcrumbs-underline,
|
184
|
+
$nav-breadcrumbs-transition,
|
185
|
+
$nav-breadcrumbs-background-hover,
|
186
|
+
$nav-breadcrumbs-color-hover,
|
187
|
+
$nav-breadcrumbs-underline-hover,
|
188
|
+
$nav-breadcrumbs-transition-hover
|
189
|
+
);
|
190
|
+
}
|
191
|
+
&:after {
|
192
|
+
content: $nav-breadcrumbs-separator;
|
193
|
+
color: $color-light-darker;
|
194
|
+
}
|
195
|
+
&:last-child:after {
|
196
|
+
content: "";
|
197
|
+
}
|
198
|
+
&.active a {
|
199
|
+
background: $nav-breadcrumbs-background-active;
|
200
|
+
color: $nav-breadcrumbs-color-active;
|
201
|
+
font-weight: $nav-breadcrumbs-font-weight-active;
|
202
|
+
border-bottom: $nav-breadcrumbs-underline-active;
|
203
|
+
}
|
204
|
+
&.disabled a {
|
205
|
+
background: $nav-breadcrumbs-background-disabled;
|
206
|
+
color: $nav-breadcrumbs-color-disabled;
|
207
|
+
border-bottom: $nav-breadcrumbs-underline-disabled;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|