refills 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +3 -2
- data/.ruby-version +1 -1
- data/.scss-lint.yml +97 -24
- data/CONTRIBUTING.md +4 -3
- data/Gemfile +13 -10
- data/README.md +31 -15
- data/circle.yml +7 -0
- data/config.rb +4 -13
- data/{lib → helpers}/snippet_helpers.rb +14 -6
- data/lib/refills/version.rb +1 -1
- data/refills.gemspec +2 -2
- data/sache.json +1 -1
- data/source/_badges.html.erb +1 -1
- data/source/_cards.html.erb +1 -1
- data/source/_centered_navigation.html.erb +5 -5
- data/source/_comment.html.erb +2 -2
- data/source/_device.html.erb +0 -1
- data/source/_expander.html.erb +2 -2
- data/source/_flex_boxes.html.erb +6 -6
- data/source/_footer.html.erb +1 -1
- data/source/_footer_2.html.erb +1 -1
- data/source/_grid_items.html.erb +7 -7
- data/source/_grid_items_lines.html.erb +8 -8
- data/source/_hero.html.erb +4 -9
- data/source/_icon_bullet_points.html.erb +6 -7
- data/source/_logo_section.html.erb +8 -0
- data/source/_modal.html.erb +2 -2
- data/source/_navigation.html.erb +2 -3
- data/source/_search_bar.html.erb +1 -1
- data/source/_search_tools.html.erb +54 -52
- data/source/_side_image.html.erb +0 -1
- data/source/_sliding_panel.html.erb +13 -0
- data/source/_type_system_geometric.html.erb +4 -3
- data/source/_type_system_rounded.html.erb +3 -3
- data/source/_type_system_sans.html.erb +3 -3
- data/source/_type_system_serif.html.erb +4 -4
- data/source/_type_system_slab.html.erb +3 -3
- data/source/_type_system_traditional.html.erb +3 -3
- data/source/components.html.erb +9 -5
- data/source/images/background-image.png +0 -0
- data/source/images/cosmin_capitanu_screen.jpg +0 -0
- data/source/images/new.svg +22 -0
- data/source/images/placeholder_square.png +0 -0
- data/source/images/placeholder_wide.png +0 -0
- data/source/images/placeholder_wider.png +0 -0
- data/source/index.html.erb +10 -3
- data/source/javascripts/jquery.erToc.js +1 -6
- data/source/javascripts/refills/accordion_base.js +5 -0
- data/source/javascripts/refills/accordion_tabs.js +1 -2
- data/source/javascripts/refills/accordion_tabs_minimal.js +1 -2
- data/source/javascripts/refills/base-accordion.js +5 -0
- data/source/javascripts/refills/centered_navigation.js +27 -9
- data/source/javascripts/refills/coffeescript/accordion.coffee +3 -4
- data/source/javascripts/refills/coffeescript/accordion_base.coffee +6 -0
- data/source/javascripts/refills/coffeescript/accordion_tabs.coffee +9 -12
- data/source/javascripts/refills/coffeescript/accordion_tabs_minimal.coffee +9 -12
- data/source/javascripts/refills/coffeescript/animate.coffee +4 -7
- data/source/javascripts/refills/coffeescript/base-accordion.coffee +5 -0
- data/source/javascripts/refills/coffeescript/centered_navigation.coffee +6 -8
- data/source/javascripts/refills/coffeescript/dropdown.coffee +6 -10
- data/source/javascripts/refills/coffeescript/expander.coffee +4 -6
- data/source/javascripts/refills/coffeescript/fade_in.coffee +6 -8
- data/source/javascripts/refills/coffeescript/modal.coffee +7 -11
- data/source/javascripts/refills/coffeescript/navigation.coffee +6 -8
- data/source/javascripts/refills/coffeescript/parallax.coffee +9 -8
- data/source/javascripts/refills/coffeescript/scroll_on_page.coffee +6 -11
- data/source/javascripts/refills/coffeescript/search_tools.coffee +0 -85
- data/source/javascripts/refills/coffeescript/sliding_panel.coffee +6 -0
- data/source/javascripts/refills/coffeescript/vertical_tabs.coffee +21 -21
- data/source/javascripts/refills/dropdown.js +8 -8
- data/source/javascripts/refills/expander.js +1 -4
- data/source/javascripts/refills/modal.js +1 -1
- data/source/javascripts/refills/navigation.js +26 -7
- data/source/javascripts/refills/navigation_centered.js +13 -0
- data/source/javascripts/refills/scroll_on_page.js +8 -5
- data/source/javascripts/refills/search_tools.js +2 -2
- data/source/javascripts/refills/sliding_panel.js +6 -0
- data/source/javascripts/refills/unstyled/accordion.js +5 -0
- data/source/javascripts/refills/unstyled/accordion_tabs.js +18 -0
- data/source/javascripts/refills/unstyled/dropdown.js +12 -0
- data/source/javascripts/refills/unstyled/expander.js +8 -0
- data/source/javascripts/refills/unstyled/modal.js +17 -0
- data/source/javascripts/refills/unstyled/navigation.js +13 -0
- data/source/javascripts/refills/unstyled/navigation_centered.js +13 -0
- data/source/javascripts/refills/unstyled/scroll_on_page.js +29 -0
- data/source/javascripts/refills/unstyled/sliding_panel.js +6 -0
- data/source/javascripts/refills/unstyled/vertical_tabs.js +32 -0
- data/source/layouts/layout.erb +3 -3
- data/source/refills-hero.html.erb +6 -3
- data/source/stylesheets/_bourbon-nav.scss +14 -7
- data/source/stylesheets/_refill.scss +215 -0
- data/source/stylesheets/_refills-footer.scss +62 -0
- data/source/stylesheets/_refills-header.scss +113 -0
- data/source/stylesheets/_refills-menu.scss +91 -0
- data/source/stylesheets/_refills-nav.scss +13 -13
- data/source/stylesheets/_refills-styles.scss +8 -644
- data/source/stylesheets/_refills-variables.scss +20 -0
- data/source/stylesheets/all.css.scss +78 -0
- data/source/stylesheets/refills/_accordion-tabs-minimal.scss +9 -14
- data/source/stylesheets/refills/_accordion-tabs.scss +11 -16
- data/source/stylesheets/refills/_accordion.scss +13 -29
- data/source/stylesheets/refills/_animate.scss +9 -10
- data/source/stylesheets/refills/_badges.scss +18 -35
- data/source/stylesheets/refills/_breadcrumbs.scss +15 -19
- data/source/stylesheets/refills/_button-group.scss +6 -12
- data/source/stylesheets/refills/_cards.scss +22 -31
- data/source/stylesheets/refills/_centered-navigation.scss +16 -13
- data/source/stylesheets/refills/_comment.scss +3 -6
- data/source/stylesheets/refills/_device.scss +29 -40
- data/source/stylesheets/refills/_dropdown.scss +17 -27
- data/source/stylesheets/refills/_expander.scss +14 -21
- data/source/stylesheets/refills/_fade-in.scss +7 -11
- data/source/stylesheets/refills/_flashes.scss +21 -33
- data/source/stylesheets/refills/_flex-boxes.scss +18 -26
- data/source/stylesheets/refills/_footer-2.scss +19 -33
- data/source/stylesheets/refills/_footer.scss +15 -38
- data/source/stylesheets/refills/_grid-items-lines.scss +12 -21
- data/source/stylesheets/refills/_grid-items.scss +31 -40
- data/source/stylesheets/refills/_hero.scss +22 -55
- data/source/stylesheets/refills/_hover-tile-animation.scss +8 -17
- data/source/stylesheets/refills/_icon-bullet-points.scss +26 -35
- data/source/stylesheets/refills/_image-gradient-dynamic.scss +31 -20
- data/source/stylesheets/refills/_logo-section.scss +25 -0
- data/source/stylesheets/refills/_maps.scss +2 -2
- data/source/stylesheets/refills/_modal.scss +32 -45
- data/source/stylesheets/refills/_navigation.scss +33 -39
- data/source/stylesheets/refills/_pagination.scss +10 -23
- data/source/stylesheets/refills/_progress-bar-indication.scss +8 -15
- data/source/stylesheets/refills/_progress-bar.scss +24 -26
- data/source/stylesheets/refills/_ribbon.scss +4 -5
- data/source/stylesheets/refills/_scroll-on-page.scss +12 -15
- data/source/stylesheets/refills/_search-bar.scss +6 -13
- data/source/stylesheets/refills/_search-tools.scss +41 -42
- data/source/stylesheets/refills/_side-image.scss +8 -20
- data/source/stylesheets/refills/_sliding-panel.scss +79 -0
- data/source/stylesheets/refills/_stats.scss +2 -3
- data/source/stylesheets/refills/_switch.scss +13 -16
- data/source/stylesheets/refills/_tables-minimal.scss +12 -24
- data/source/stylesheets/refills/_tables.scss +11 -20
- data/source/stylesheets/refills/_texture-legend.scss +17 -13
- data/source/stylesheets/refills/_textures.scss +13 -9
- data/source/stylesheets/refills/_tooltip.scss +9 -16
- data/source/stylesheets/refills/_type-system-geometric.scss +14 -17
- data/source/stylesheets/refills/_type-system-rounded.scss +19 -19
- data/source/stylesheets/refills/_type-system-sans.scss +26 -26
- data/source/stylesheets/refills/_type-system-serif.scss +17 -20
- data/source/stylesheets/refills/_type-system-slab.scss +14 -17
- data/source/stylesheets/refills/_type-system-traditional.scss +18 -21
- data/source/stylesheets/refills/_vertical-tabs.scss +26 -30
- data/source/stylesheets/refills/_video.scss +1 -1
- data/source/stylesheets/refills/unstyled/_accordion-tabs.scss +36 -0
- data/source/stylesheets/refills/unstyled/_accordion.scss +17 -0
- data/source/stylesheets/refills/unstyled/_button-group.scss +30 -0
- data/source/stylesheets/refills/unstyled/_cards.scss +20 -0
- data/source/stylesheets/refills/unstyled/_comment.scss +28 -0
- data/source/stylesheets/refills/unstyled/_dropdown.scss +42 -0
- data/source/stylesheets/refills/unstyled/_expander.scss +20 -0
- data/source/stylesheets/refills/unstyled/_footer.scss +64 -0
- data/source/stylesheets/refills/unstyled/_hover-menu.scss +60 -0
- data/source/stylesheets/refills/unstyled/_modal.scss +71 -0
- data/source/stylesheets/refills/unstyled/_navigation-centered.scss +92 -0
- data/source/stylesheets/refills/unstyled/_navigation.scss +82 -0
- data/source/stylesheets/refills/unstyled/_scroll-on-page.scss +22 -0
- data/source/stylesheets/refills/unstyled/_search-bar.scss +26 -0
- data/source/stylesheets/refills/unstyled/_sliding-panel.scss +36 -0
- data/source/stylesheets/refills/unstyled/_switch.scss +50 -0
- data/source/stylesheets/refills/unstyled/_tooltip.scss +36 -0
- data/source/stylesheets/refills/unstyled/_vertical-tabs.scss +53 -0
- data/source/stylesheets/vendor/prism.css +4 -4
- data/source/svgs/_menu_icon.html.erb +6 -0
- data/source/svgs/_refills_logo.html.erb +8 -0
- data/source/type-systems.html.erb +5 -1
- data/spec/refills/import_generator_spec.rb +1 -1
- metadata +59 -19
- data/.travis.yml +0 -8
- data/source/_sliding_menu.html.erb +0 -13
- data/source/images/placeholder_logo_1.png +0 -0
- data/source/images/placeholder_logo_1_dark.png +0 -0
- data/source/images/placeholder_logo_2.png +0 -0
- data/source/images/placeholder_logo_2_dark.png +0 -0
- data/source/images/placeholder_logo_3.png +0 -0
- data/source/images/placeholder_logo_3_dark.png +0 -0
- data/source/images/placeholder_logo_4.png +0 -0
- data/source/images/placeholder_logo_4_dark.png +0 -0
- data/source/javascripts/refills/sliding_menu.js +0 -6
- data/source/stylesheets/all.scss +0 -66
- data/source/stylesheets/refills/_sliding-menu.scss +0 -86
@@ -1,39 +1,38 @@
|
|
1
1
|
.image-gradient-dynamic {
|
2
|
-
$image-gradient-color-top: red;
|
2
|
+
$image-gradient-color-top: red;
|
3
3
|
$transparency-top: 0.9;
|
4
|
-
$image-gradient-color-bottom: green;
|
4
|
+
$image-gradient-color-bottom: green;
|
5
5
|
$transparency-bottom: 0.6;
|
6
6
|
$vertical-angle: 0deg;
|
7
|
-
$image-gradient-color-left: teal;
|
7
|
+
$image-gradient-color-left: teal;
|
8
8
|
$transparency-left: 0.8;
|
9
|
-
$image-gradient-color-right: yellow;
|
9
|
+
$image-gradient-color-right: yellow;
|
10
10
|
$transparency-right: 0.8;
|
11
11
|
$horizontal-angle: 90deg;
|
12
|
-
|
12
|
+
|
13
13
|
line-height: 0;
|
14
14
|
position: relative;
|
15
15
|
width: 100%;
|
16
16
|
|
17
17
|
img {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
height: auto;
|
19
|
+
left: 0;
|
20
|
+
position: relative;
|
21
|
+
top: 0;
|
22
|
+
width: 100%;
|
23
23
|
}
|
24
24
|
|
25
25
|
.copy {
|
26
|
-
@include transform(translate(-50%, -50%));
|
27
26
|
left: 50%;
|
28
27
|
margin: auto;
|
29
28
|
position: absolute;
|
30
29
|
text-align: center;
|
31
30
|
top: 50%;
|
31
|
+
transform: translate(-50%, -50%);
|
32
32
|
z-index: 999;
|
33
33
|
|
34
34
|
p {
|
35
35
|
color: white;
|
36
|
-
font-weight: 800;
|
37
36
|
line-height: 1.5em;
|
38
37
|
padding: 1em 2em;
|
39
38
|
position: relative;
|
@@ -41,16 +40,28 @@
|
|
41
40
|
}
|
42
41
|
|
43
42
|
.overlay {
|
44
|
-
@include
|
45
|
-
|
43
|
+
@include position(absolute, 0);
|
44
|
+
background-color: transparentize(
|
45
|
+
$image-gradient-color-top,
|
46
|
+
$transparency-top
|
47
|
+
);
|
48
|
+
background-image: linear-gradient($vertical-angle,
|
49
|
+
transparentize($image-gradient-color-top, $transparency-top),
|
50
|
+
transparentize($image-gradient-color-bottom, $transparency-bottom)
|
51
|
+
);
|
46
52
|
display: block;
|
47
|
-
@include position(absolute, 0px 0px 0px 0px);
|
48
53
|
|
49
|
-
|
50
|
-
@include
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
+
&::after {
|
55
|
+
@include position(absolute, 0);
|
56
|
+
background-color: transparentize(
|
57
|
+
$image-gradient-color-left,
|
58
|
+
$transparency-right
|
59
|
+
);
|
60
|
+
background-image: linear-gradient($horizontal-angle,
|
61
|
+
transparentize($image-gradient-color-left, $transparency-left),
|
62
|
+
transparentize($image-gradient-color-right, $transparency-right)
|
63
|
+
);
|
64
|
+
content: "";
|
54
65
|
display: block;
|
55
66
|
}
|
56
67
|
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.logo-section {
|
2
|
+
display: flex;
|
3
|
+
flex-wrap: wrap;
|
4
|
+
justify-content: center;
|
5
|
+
padding: 1em;
|
6
|
+
|
7
|
+
li {
|
8
|
+
align-self: center;
|
9
|
+
list-style: none;
|
10
|
+
padding: 2em;
|
11
|
+
text-align: center;
|
12
|
+
|
13
|
+
.square-logo {
|
14
|
+
max-height: 5em;
|
15
|
+
}
|
16
|
+
|
17
|
+
.wide-logo {
|
18
|
+
max-width: 10em;
|
19
|
+
}
|
20
|
+
|
21
|
+
.wider-logo {
|
22
|
+
max-width: 15em;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
width: 100%;
|
4
4
|
}
|
5
5
|
|
6
|
-
#map_canvas img {
|
6
|
+
#map_canvas img {
|
7
7
|
max-width: none; // to prevent UI control bug
|
8
8
|
}
|
9
9
|
|
@@ -13,8 +13,8 @@
|
|
13
13
|
|
14
14
|
#map_canvas .firstHeading {
|
15
15
|
font-size: 1em;
|
16
|
-
line-height: 1em;
|
17
16
|
font-weight: bold;
|
17
|
+
line-height: 1em;
|
18
18
|
margin: 0;
|
19
19
|
}
|
20
20
|
|
@@ -1,27 +1,15 @@
|
|
1
1
|
.modal {
|
2
|
-
|
3
|
-
$base-border-color: gainsboro !default;
|
2
|
+
$base-border-color: #dcdcdc !default;
|
4
3
|
$base-border-radius: 3px !default;
|
5
|
-
$base-background-color:
|
4
|
+
$base-background-color: #fff !default;
|
6
5
|
$base-font-size: 1em !default;
|
7
6
|
$base-line-height: 1.5em !default;
|
8
|
-
$
|
7
|
+
$action-color: #477dca !default;
|
9
8
|
$dark-gray: #333 !default;
|
10
|
-
$light-gray: #
|
11
|
-
$medium-screen:
|
12
|
-
$large-screen:
|
9
|
+
$light-gray: #ddd !default;
|
10
|
+
$medium-screen: 40em !default;
|
11
|
+
$large-screen: 53.75em !default;
|
13
12
|
$base-font-color: $dark-gray !default;
|
14
|
-
|
15
|
-
h1 {
|
16
|
-
margin: 0;
|
17
|
-
}
|
18
|
-
|
19
|
-
p {
|
20
|
-
color: $base-font-color;
|
21
|
-
line-height: $base-line-height;
|
22
|
-
}
|
23
|
-
//////////////////////////////////////////////////////////////////////////////////
|
24
|
-
|
25
13
|
$modal-padding: 3em;
|
26
14
|
$modal-background: $base-background-color;
|
27
15
|
$modal-close-color: $light-gray;
|
@@ -45,17 +33,16 @@
|
|
45
33
|
}
|
46
34
|
|
47
35
|
.modal-trigger {
|
48
|
-
@include button(flat, $base-accent-color);
|
49
36
|
padding: 0.8em 1em;
|
50
37
|
}
|
51
38
|
|
52
|
-
.modal-
|
53
|
-
@include
|
54
|
-
|
55
|
-
background: rgba(0,0,0, 0.85);
|
39
|
+
.modal-fade-screen { // overlay
|
40
|
+
@include position(fixed, 0);
|
41
|
+
background-color: rgba(#000, 0.85);
|
56
42
|
opacity: 0;
|
57
43
|
padding-top: 0.6em;
|
58
44
|
text-align: left;
|
45
|
+
transition: opacity 0.25s ease;
|
59
46
|
visibility: hidden;
|
60
47
|
z-index: 99999999999;
|
61
48
|
|
@@ -64,7 +51,7 @@
|
|
64
51
|
}
|
65
52
|
|
66
53
|
.modal-bg {
|
67
|
-
@include position(absolute,
|
54
|
+
@include position(absolute, 0);
|
68
55
|
cursor: pointer;
|
69
56
|
}
|
70
57
|
}
|
@@ -75,37 +62,37 @@
|
|
75
62
|
background: $modal-background;
|
76
63
|
cursor: pointer;
|
77
64
|
|
78
|
-
|
79
|
-
|
65
|
+
&::after,
|
66
|
+
&::before {
|
80
67
|
@include position(absolute, 3px 3px 0 50%);
|
81
|
-
@include
|
82
|
-
@include size(0.15em 1.5em);
|
68
|
+
@include size(0.15em, 1.5em);
|
83
69
|
background: $modal-close-color;
|
84
|
-
content:
|
70
|
+
content: "";
|
85
71
|
display: block;
|
86
72
|
margin: -3px 0 0 -1px;
|
73
|
+
transform: rotate(45deg);
|
87
74
|
}
|
88
75
|
|
89
|
-
&:hover
|
90
|
-
&:hover
|
76
|
+
&:hover::after,
|
77
|
+
&:hover::before {
|
91
78
|
background: darken($modal-close-color, 10%);
|
92
79
|
}
|
93
80
|
|
94
|
-
|
95
|
-
|
81
|
+
&::before {
|
82
|
+
transform: rotate(-45deg);
|
96
83
|
}
|
97
84
|
}
|
98
85
|
|
99
86
|
.modal-inner {
|
100
|
-
@include transition(opacity 0.25s ease);
|
101
87
|
background: $modal-background;
|
102
88
|
border-radius: $base-border-radius;
|
103
|
-
margin-top: 0;
|
104
89
|
margin: auto;
|
90
|
+
margin-top: 0;
|
105
91
|
max-height: 95%;
|
106
92
|
overflow: auto;
|
107
93
|
padding: $modal-padding / 2;
|
108
94
|
position: relative;
|
95
|
+
transition: opacity 0.25s ease;
|
109
96
|
width: 95%;
|
110
97
|
|
111
98
|
@include media($medium-screen) {
|
@@ -120,25 +107,29 @@
|
|
120
107
|
|
121
108
|
h1 {
|
122
109
|
color: $base-font-color;
|
123
|
-
margin-bottom: 0.6em;
|
124
110
|
text-align: left;
|
125
111
|
text-transform: capitalize;
|
126
112
|
}
|
127
113
|
|
114
|
+
p {
|
115
|
+
color: $base-font-color;
|
116
|
+
line-height: $base-line-height;
|
117
|
+
}
|
118
|
+
|
128
119
|
.modal-intro {
|
129
|
-
|
120
|
+
margin-bottom: 1em;
|
130
121
|
}
|
131
122
|
|
132
123
|
.modal-content {
|
133
124
|
color: $base-font-color;
|
134
125
|
|
135
126
|
@include media($medium-screen) {
|
136
|
-
|
127
|
+
columns: 2 8em;
|
137
128
|
}
|
138
129
|
}
|
139
130
|
|
140
131
|
a.cta {
|
141
|
-
color:
|
132
|
+
color: $base-background-color;
|
142
133
|
display: inline-block;
|
143
134
|
margin-right: 0.5em;
|
144
135
|
margin-top: 1em;
|
@@ -149,12 +140,12 @@
|
|
149
140
|
}
|
150
141
|
}
|
151
142
|
|
152
|
-
.modal-state:checked + .modal-
|
143
|
+
.modal-state:checked + .modal-fade-screen {
|
153
144
|
opacity: 1;
|
154
145
|
visibility: visible;
|
155
146
|
}
|
156
147
|
|
157
|
-
.modal-state:checked + .modal-
|
148
|
+
.modal-state:checked + .modal-fade-screen .modal-inner {
|
158
149
|
top: 0.5em;
|
159
150
|
}
|
160
151
|
}
|
@@ -163,8 +154,4 @@
|
|
163
154
|
overflow: hidden;
|
164
155
|
}
|
165
156
|
|
166
|
-
.modal-closed {
|
167
|
-
overflow: auto;
|
168
|
-
}
|
169
|
-
|
170
157
|
// Based on code by Kasper Mikiewicz
|
@@ -1,22 +1,15 @@
|
|
1
1
|
header.navigation {
|
2
|
-
///////////////////////////////////////////////////////////////////////////////////
|
3
2
|
$base-border-color: gainsboro !default;
|
4
3
|
$base-border-radius: 3px !default;
|
5
|
-
$
|
4
|
+
$action-color: #477DCA !default;
|
6
5
|
$dark-gray: #333 !default;
|
7
|
-
$large-screen:
|
8
|
-
|
9
|
-
a {
|
10
|
-
text-decoration: none;
|
11
|
-
}
|
12
|
-
//////////////////////////////////////////////////////////////////////////////////
|
13
|
-
|
6
|
+
$large-screen: 53.75em !default;
|
14
7
|
$navigation-padding: 1em;
|
15
8
|
$navigation-background: $dark-gray;
|
16
9
|
$navigation-color: transparentize(white, 0.3);
|
17
10
|
$navigation-color-hover: white;
|
18
11
|
$navigation-height: 60px;
|
19
|
-
$navigation-nav-button-background: $
|
12
|
+
$navigation-nav-button-background: $action-color;
|
20
13
|
$navigation-nav-button-background-hover: lighten($navigation-background, 10%);
|
21
14
|
$navigation-nav-button-border: 1px solid lighten($navigation-nav-button-background, 20%);
|
22
15
|
$navigation-search-background: lighten($navigation-background, 5);
|
@@ -34,7 +27,6 @@ header.navigation {
|
|
34
27
|
|
35
28
|
.navigation-wrapper {
|
36
29
|
@include clearfix;
|
37
|
-
@include outer-container;
|
38
30
|
position: relative;
|
39
31
|
z-index: 9999;
|
40
32
|
}
|
@@ -57,10 +49,10 @@ header.navigation {
|
|
57
49
|
color: $navigation-color;
|
58
50
|
display: block;
|
59
51
|
float: right;
|
60
|
-
font-weight: 700;
|
61
52
|
line-height: $navigation-height;
|
62
53
|
margin: 0;
|
63
54
|
padding-right: 1em;
|
55
|
+
text-decoration: none;
|
64
56
|
text-transform: uppercase;
|
65
57
|
|
66
58
|
@include media ($horizontal-bar-mode) {
|
@@ -86,7 +78,6 @@ header.navigation {
|
|
86
78
|
}
|
87
79
|
|
88
80
|
ul.navigation-menu {
|
89
|
-
-webkit-transform-style: preserve-3d; // stop webkit flicker
|
90
81
|
clear: both;
|
91
82
|
display: none;
|
92
83
|
margin: 0 auto;
|
@@ -129,7 +120,7 @@ header.navigation {
|
|
129
120
|
a {
|
130
121
|
color: $navigation-color;
|
131
122
|
display: inline-block;
|
132
|
-
|
123
|
+
text-decoration: none;
|
133
124
|
|
134
125
|
@include media ($horizontal-bar-mode) {
|
135
126
|
padding-right: 1em;
|
@@ -152,7 +143,7 @@ header.navigation {
|
|
152
143
|
li.more.nav-link {
|
153
144
|
padding-right: 0;
|
154
145
|
|
155
|
-
@include media($
|
146
|
+
@include media($horizontal-bar-mode) {
|
156
147
|
padding-right: $navigation-submenu-padding;
|
157
148
|
}
|
158
149
|
|
@@ -168,10 +159,10 @@ header.navigation {
|
|
168
159
|
padding-right: 0.6em;
|
169
160
|
}
|
170
161
|
|
171
|
-
> a
|
162
|
+
> a::after {
|
172
163
|
@include position(absolute, auto -0.4em auto auto);
|
173
|
-
content: '\25BE';
|
174
164
|
color: $navigation-color;
|
165
|
+
content: "\25BE";
|
175
166
|
}
|
176
167
|
}
|
177
168
|
|
@@ -187,12 +178,12 @@ header.navigation {
|
|
187
178
|
padding-right: 1.6em;
|
188
179
|
position: relative;
|
189
180
|
|
190
|
-
@include media($
|
181
|
+
@include media($horizontal-bar-mode) {
|
191
182
|
margin-right: $navigation-submenu-padding;
|
192
183
|
}
|
193
184
|
|
194
|
-
|
195
|
-
content:
|
185
|
+
&::after {
|
186
|
+
content: "›";
|
196
187
|
font-size: 1.2em;
|
197
188
|
position: absolute;
|
198
189
|
right: $navigation-submenu-padding / 2;
|
@@ -220,6 +211,20 @@ header.navigation {
|
|
220
211
|
top: 1.5em;
|
221
212
|
}
|
222
213
|
|
214
|
+
.submenu.fly-out-right {
|
215
|
+
@include media($horizontal-bar-mode) {
|
216
|
+
left: $navigation-submenu-width - 0.2em;
|
217
|
+
top: 0;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
.submenu.fly-out-left {
|
222
|
+
@include media($horizontal-bar-mode) {
|
223
|
+
left: -$navigation-submenu-width + 0.2em;
|
224
|
+
top: 0;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
223
228
|
.submenu {
|
224
229
|
@include media($horizontal-bar-mode) {
|
225
230
|
left: $navigation-submenu-width - 0.2em;
|
@@ -269,26 +274,14 @@ header.navigation {
|
|
269
274
|
clear: both;
|
270
275
|
display: block;
|
271
276
|
height: $navigation-height;
|
272
|
-
padding-left: $navigation-padding / 2;
|
273
|
-
padding-right: $navigation-padding;
|
274
277
|
|
275
|
-
@include media($
|
278
|
+
@include media($horizontal-bar-mode) {
|
276
279
|
background: transparent;
|
277
280
|
clear: none;
|
278
281
|
float: right;
|
279
282
|
}
|
280
283
|
}
|
281
284
|
|
282
|
-
.sign-up {
|
283
|
-
@include button(flat, $base-accent-color);
|
284
|
-
display: inline;
|
285
|
-
float: right;
|
286
|
-
font-size: 0.8em;
|
287
|
-
margin-top: 1em;
|
288
|
-
padding: 0.75em 1em;
|
289
|
-
text-transform: uppercase;
|
290
|
-
}
|
291
|
-
|
292
285
|
// Search bar
|
293
286
|
|
294
287
|
.search-bar {
|
@@ -297,17 +290,17 @@ header.navigation {
|
|
297
290
|
$search-bar-background: lighten($search-bar-border-color, 10%);
|
298
291
|
|
299
292
|
float: left;
|
300
|
-
padding: 0.85em 0.
|
293
|
+
padding: 0.85em 0.85em 0.7em 0.6em;
|
301
294
|
width: 60%;
|
302
295
|
|
303
296
|
form {
|
304
297
|
position: relative;
|
305
298
|
|
306
299
|
input[type=search] {
|
307
|
-
@include box-sizing(border-box);
|
308
300
|
background: $navigation-search-background;
|
309
|
-
border-radius: $base-border-radius * 2;
|
310
301
|
border: $navigation-search-border;
|
302
|
+
border-radius: $base-border-radius * 2;
|
303
|
+
box-sizing: border-box;
|
311
304
|
color: $navigation-color;
|
312
305
|
font-size: 0.9em;
|
313
306
|
font-style: italic;
|
@@ -315,13 +308,14 @@ header.navigation {
|
|
315
308
|
padding: 0.5em 0.8em;
|
316
309
|
width: 100%;
|
317
310
|
|
318
|
-
@include media($
|
311
|
+
@include media($horizontal-bar-mode) {
|
319
312
|
width: 100%;
|
320
313
|
}
|
321
314
|
}
|
322
315
|
|
323
316
|
button[type=submit] {
|
324
|
-
|
317
|
+
background: $navigation-search-background;
|
318
|
+
border: 0;
|
325
319
|
bottom: 0.3em;
|
326
320
|
left: auto;
|
327
321
|
outline: none;
|
@@ -344,7 +338,7 @@ header.navigation {
|
|
344
338
|
width: 16em;
|
345
339
|
|
346
340
|
input {
|
347
|
-
|
341
|
+
box-sizing: border-box;
|
348
342
|
display: block;
|
349
343
|
}
|
350
344
|
}
|