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,28 +1,11 @@
|
|
1
|
-
.pagination {
|
2
|
-
///////////////////////////////////////////////////////////////////////////////////
|
1
|
+
.pagination {
|
3
2
|
$base-border-color: gainsboro !default;
|
4
3
|
$base-border-radius: 3px !default;
|
5
4
|
$base-spacing: 1.5em !default;
|
6
|
-
$
|
7
|
-
$base-link-color: $base-accent-color !default;
|
5
|
+
$action-color: #477DCA !default;
|
8
6
|
$dark-gray: #333 !default;
|
9
|
-
$large-screen:
|
7
|
+
$large-screen: 53.75em !default;
|
10
8
|
$base-font-color: $dark-gray !default;
|
11
|
-
|
12
|
-
ul {
|
13
|
-
margin: 0;
|
14
|
-
padding: 0;
|
15
|
-
}
|
16
|
-
|
17
|
-
li {
|
18
|
-
list-style: none;
|
19
|
-
}
|
20
|
-
|
21
|
-
a {
|
22
|
-
text-decoration: none;
|
23
|
-
}
|
24
|
-
//////////////////////////////////////////////////////////////////////////////////
|
25
|
-
|
26
9
|
$pagination-border-color: $base-border-color;
|
27
10
|
$pagination-border: 1px solid $pagination-border-color;
|
28
11
|
$pagination-background: lighten($pagination-border-color, 10);
|
@@ -33,15 +16,18 @@
|
|
33
16
|
|
34
17
|
ul {
|
35
18
|
display: inline;
|
19
|
+
margin: 0;
|
20
|
+
padding: 0;
|
36
21
|
text-align: center;
|
37
22
|
|
38
23
|
li {
|
39
24
|
display: inline;
|
25
|
+
list-style: none;
|
40
26
|
}
|
41
27
|
|
42
28
|
ul li {
|
43
29
|
display: none;
|
44
|
-
|
30
|
+
|
45
31
|
&:nth-child(1),
|
46
32
|
&:nth-child(2),
|
47
33
|
&:nth-child(3) {
|
@@ -54,18 +40,19 @@
|
|
54
40
|
}
|
55
41
|
|
56
42
|
li a {
|
57
|
-
@include transition (all 0.2s ease-in-out);
|
58
43
|
background: $pagination-background;
|
59
44
|
border-radius: $base-border-radius;
|
60
45
|
border: $pagination-border;
|
61
46
|
color: $pagination-color;
|
62
47
|
outline: none;
|
63
48
|
padding: ($base-spacing / 4) ($gutter / 2);
|
49
|
+
text-decoration: none;
|
50
|
+
transition: all 0.2s ease-in-out;
|
64
51
|
|
65
52
|
&:hover,
|
66
53
|
&:focus {
|
67
54
|
background: $pagination-hover-background;
|
68
|
-
color: $
|
55
|
+
color: $action-color;
|
69
56
|
}
|
70
57
|
|
71
58
|
&:active {
|
@@ -1,19 +1,12 @@
|
|
1
|
-
.progress-bar-indication {
|
2
|
-
///////////////////////////////////////////////////////////////////////////////////
|
1
|
+
.progress-bar-indication {
|
3
2
|
$base-border-color: gainsboro !default;
|
4
3
|
$base-border-radius: 3px !default;
|
5
4
|
$base-background-color: white !default;
|
6
5
|
$base-line-height: 1.5em !default;
|
7
|
-
$
|
8
|
-
|
9
|
-
p {
|
10
|
-
line-height: $base-line-height;
|
11
|
-
}
|
12
|
-
//////////////////////////////////////////////////////////////////////////////////
|
13
|
-
|
6
|
+
$action-color: #477DCA !default;
|
14
7
|
$progress-border-color: $base-border-color;
|
15
8
|
$progress-border: 1px solid $progress-border-color;
|
16
|
-
$progress-meter-border-color: $
|
9
|
+
$progress-meter-border-color: $action-color;
|
17
10
|
$progress-meter-border: 1px solid darken($progress-meter-border-color, 15%);
|
18
11
|
$progress-meter-color: $progress-meter-border-color;
|
19
12
|
$progress-background: darken($base-background-color, 5);
|
@@ -28,24 +21,24 @@
|
|
28
21
|
width: 100%;
|
29
22
|
|
30
23
|
> span.meter {
|
31
|
-
@include box-sizing(border-box);
|
32
24
|
background-color: $progress-meter-color;
|
33
25
|
background-repeat: repeat-x;
|
34
26
|
background-size: 40px 40px;
|
27
|
+
border: $progress-meter-border;
|
35
28
|
border-bottom-right-radius: 0;
|
36
29
|
border-radius: $base-border-radius /1.5;
|
37
30
|
border-top-right-radius: 0;
|
38
|
-
|
31
|
+
box-sizing: border-box;
|
39
32
|
display: block;
|
40
33
|
height: 100%;
|
41
34
|
width: 60%;
|
42
35
|
}
|
43
36
|
|
44
37
|
p {
|
45
|
-
color: $progress-color;
|
46
|
-
|
38
|
+
color: $progress-color;
|
39
|
+
line-height: $base-line-height;
|
47
40
|
margin: 0;
|
48
|
-
padding: .1em .5em;
|
41
|
+
padding: 0.1em 0.5em;
|
49
42
|
text-shadow: 0 0 1px black;
|
50
43
|
}
|
51
44
|
}
|
@@ -1,15 +1,11 @@
|
|
1
1
|
.progress-bar {
|
2
|
-
///////////////////////////////////////////////////////////////////////////////////
|
3
2
|
$base-border-color: gainsboro !default;
|
4
3
|
$base-background-color: white !default;
|
5
4
|
$base-border-radius: 3px !default;
|
6
|
-
$
|
7
|
-
$base-link-color: $base-accent-color !default;
|
8
|
-
//////////////////////////////////////////////////////////////////////////////////
|
9
|
-
|
5
|
+
$action-color: #477DCA !default;
|
10
6
|
$progress-border-color: $base-border-color;
|
11
7
|
$progress-border: 1px solid $progress-border-color;
|
12
|
-
$progress-meter-border-color: $
|
8
|
+
$progress-meter-border-color: $action-color;
|
13
9
|
$progress-meter-border: 1px solid darken($progress-meter-border-color, 15%);
|
14
10
|
$progress-meter-color: $progress-meter-border-color;
|
15
11
|
$progress-background: darken($base-background-color, 5);
|
@@ -18,27 +14,29 @@
|
|
18
14
|
|
19
15
|
background-color: $progress-background;
|
20
16
|
border: $progress-border;
|
21
|
-
box-shadow: inset 0 0 3px 0 rgba(darken($progress-background, 50%), 0.15);
|
22
17
|
border-radius: $base-border-radius;
|
18
|
+
box-shadow: inset 0 0 3px 0 rgba(darken($progress-background, 50%), 0.15);
|
23
19
|
height: $progress-height;
|
24
20
|
margin: 0 auto;
|
25
21
|
padding: 2px;
|
26
22
|
width: 100%;
|
27
23
|
|
28
24
|
> span.meter {
|
29
|
-
|
30
|
-
@include box-sizing(border-box);
|
25
|
+
animation: progress $progress-animation-duration linear infinite;
|
31
26
|
background-color: $progress-meter-color;
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
27
|
+
background-image: linear-gradient(
|
28
|
+
-45deg, rgba(#fff, 0.15) 25%,
|
29
|
+
transparent 25%,
|
30
|
+
transparent 50%,
|
31
|
+
rgba(#fff, 0.15) 50%,
|
32
|
+
rgba(#fff, 0.15) 75%,
|
33
|
+
transparent 75%
|
34
|
+
);
|
39
35
|
background-repeat: repeat-x;
|
36
|
+
background-size: 40px 40px;
|
40
37
|
border: $progress-meter-border;
|
41
38
|
border-radius: $base-border-radius / 1.5;
|
39
|
+
box-sizing: border-box;
|
42
40
|
display: block;
|
43
41
|
height: 100%;
|
44
42
|
width: 60%;
|
@@ -47,45 +45,45 @@
|
|
47
45
|
|
48
46
|
@-webkit-keyframes progress {
|
49
47
|
0% {
|
50
|
-
background-position:
|
48
|
+
background-position: 0 0;
|
51
49
|
}
|
52
50
|
100% {
|
53
|
-
background-position: 40px
|
51
|
+
background-position: 40px 0;
|
54
52
|
}
|
55
53
|
}
|
56
54
|
|
57
55
|
@-moz-keyframes progress {
|
58
56
|
0% {
|
59
|
-
background-position:
|
57
|
+
background-position: 0 0;
|
60
58
|
}
|
61
59
|
100% {
|
62
|
-
background-position: 40px
|
60
|
+
background-position: 40px 0;
|
63
61
|
}
|
64
62
|
}
|
65
63
|
|
66
64
|
@-ms-keyframes progress {
|
67
65
|
0% {
|
68
|
-
background-position:
|
66
|
+
background-position: 0 0;
|
69
67
|
}
|
70
68
|
100% {
|
71
|
-
background-position: 40px
|
69
|
+
background-position: 40px 0;
|
72
70
|
}
|
73
71
|
}
|
74
72
|
|
75
73
|
@-o-keyframes progress {
|
76
74
|
0% {
|
77
|
-
background-position:
|
75
|
+
background-position: 0 0;
|
78
76
|
}
|
79
77
|
100% {
|
80
|
-
background-position: 40px
|
78
|
+
background-position: 40px 0;
|
81
79
|
}
|
82
80
|
}
|
83
81
|
|
84
82
|
@keyframes progress {
|
85
83
|
0% {
|
86
|
-
background-position:
|
84
|
+
background-position: 0 0;
|
87
85
|
}
|
88
86
|
100% {
|
89
|
-
background-position: 40px
|
87
|
+
background-position: 40px 0;
|
90
88
|
}
|
91
89
|
}
|
@@ -5,8 +5,8 @@
|
|
5
5
|
}
|
6
6
|
|
7
7
|
.ribbon-wrapper {
|
8
|
-
$
|
9
|
-
$ribbon-background: $
|
8
|
+
$action-color: #477dca !default;
|
9
|
+
$ribbon-background: $action-color;
|
10
10
|
$ribbon-size: 85px;
|
11
11
|
|
12
12
|
@include size($ribbon-size);
|
@@ -16,18 +16,17 @@
|
|
16
16
|
top: -1px;
|
17
17
|
|
18
18
|
.ribbon {
|
19
|
-
@include transform(rotate(45deg));
|
20
19
|
background-color: $ribbon-background;
|
21
|
-
box-shadow:
|
20
|
+
box-shadow: 0 0 3px rgba(#000, 0.3);
|
22
21
|
color: #fff;
|
23
22
|
font-size: 0.8em;
|
24
|
-
font-weight: 800;
|
25
23
|
left: -5px;
|
26
24
|
line-height: 1.5em;
|
27
25
|
padding: 2px 7px;
|
28
26
|
position: relative;
|
29
27
|
text-align: center;
|
30
28
|
top: 15px;
|
29
|
+
transform: rotate(45deg);
|
31
30
|
width: 120px;
|
32
31
|
}
|
33
32
|
}
|
@@ -1,25 +1,17 @@
|
|
1
1
|
.scroll-on-page {
|
2
|
-
///////////////////////////////////////////////////////////////////////////////////
|
3
2
|
$base-line-height: 1.5em !default;
|
4
3
|
$base-spacing: 1.5em !default;
|
5
|
-
$
|
6
|
-
$base-link-color: $base-accent-color !default;
|
4
|
+
$action-color: #477DCA !default;
|
7
5
|
$dark-gray: #333 !default;
|
8
|
-
$large-screen:
|
6
|
+
$large-screen: 53.75em !default;
|
9
7
|
$base-font-color: $dark-gray !default;
|
10
|
-
|
11
|
-
|
12
|
-
color: $base-font-color;
|
13
|
-
line-height: $base-line-height;
|
14
|
-
}
|
8
|
+
|
9
|
+
display: inline-block;
|
15
10
|
|
16
11
|
a {
|
17
|
-
color: $
|
12
|
+
color: $action-color;
|
18
13
|
text-decoration: none;
|
19
14
|
}
|
20
|
-
//////////////////////////////////////////////////////////////////////////////////
|
21
|
-
|
22
|
-
display: inline-block;
|
23
15
|
|
24
16
|
aside {
|
25
17
|
@include media($large-screen) {
|
@@ -28,7 +20,7 @@
|
|
28
20
|
}
|
29
21
|
|
30
22
|
.scroll-on-page-link {
|
31
|
-
border-bottom: 1px solid transparentize($
|
23
|
+
border-bottom: 1px solid transparentize($action-color, 0.8);
|
32
24
|
display: block;
|
33
25
|
margin-right: $base-spacing;
|
34
26
|
outline: none;
|
@@ -44,8 +36,13 @@
|
|
44
36
|
margin: 0 0 0.5em 0;
|
45
37
|
}
|
46
38
|
|
39
|
+
p {
|
40
|
+
color: $base-font-color;
|
41
|
+
line-height: $base-line-height;
|
42
|
+
}
|
43
|
+
|
47
44
|
section p:last-of-type {
|
48
|
-
margin-bottom: 2em;
|
45
|
+
margin-bottom: 2em;
|
49
46
|
}
|
50
47
|
|
51
48
|
@include media($large-screen) {
|
@@ -1,10 +1,8 @@
|
|
1
|
-
form.search-bar {
|
1
|
+
form.search-bar {
|
2
2
|
///////////////////////////////////////////////////////////////////////////////////
|
3
|
+
$base-spacing: 1.5em !default;
|
3
4
|
$base-border-color: gainsboro !default;
|
4
|
-
$base-border-radius: 3px !default;
|
5
5
|
$base-line-height: 1.5em !default;
|
6
|
-
$base-accent-color: #477DCA !default;
|
7
|
-
$dark-gray: #333 !default;
|
8
6
|
//////////////////////////////////////////////////////////////////////////////////
|
9
7
|
|
10
8
|
$search-bar-border-color: $base-border-color;
|
@@ -14,27 +12,22 @@ form.search-bar {
|
|
14
12
|
position: relative;
|
15
13
|
|
16
14
|
input[type=search] {
|
17
|
-
|
18
|
-
@include box-sizing(border-box);
|
19
|
-
@include transition(border-color);
|
15
|
+
appearance: none;
|
20
16
|
background-color: white;
|
21
|
-
border-radius: $base-border-radius;
|
22
|
-
border-radius: $base-border-radius;
|
23
17
|
border: 1px solid $base-border-color;
|
18
|
+
box-sizing: border-box;
|
24
19
|
display: block;
|
25
20
|
font-size: 1em;
|
26
21
|
font-style: italic;
|
27
22
|
margin: 0;
|
28
23
|
padding: ($base-spacing / 3) ($base-spacing / 3);
|
29
24
|
position: relative;
|
25
|
+
transition: border-color;
|
30
26
|
width: 100%;
|
31
27
|
}
|
32
28
|
|
33
29
|
button[type=submit] {
|
34
|
-
@include
|
35
|
-
@include position(absolute, 0em 0em 0em null);
|
36
|
-
border-bottom-left-radius: 0;
|
37
|
-
border-top-left-radius: 0;
|
30
|
+
@include position(absolute, 0 0 0 null);
|
38
31
|
outline: none;
|
39
32
|
padding: 5px 10px;
|
40
33
|
|
@@ -1,19 +1,25 @@
|
|
1
|
-
.search-tools {
|
2
|
-
///////////////////////////////////////////////////////////////////////////////////
|
1
|
+
.search-tools {
|
3
2
|
$base-border-color: gainsboro !default;
|
4
3
|
$base-border-radius: 3px !default;
|
5
4
|
$base-line-height: 1.5em !default;
|
6
5
|
$base-spacing: 1.5em !default;
|
7
|
-
$
|
8
|
-
|
6
|
+
$action-color: #477DCA !default;
|
7
|
+
|
9
8
|
$dark-gray: #333 !default;
|
10
|
-
$large-screen:
|
9
|
+
$large-screen: 53.75em !default;
|
11
10
|
$base-font-color: $dark-gray !default;
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
$clear-button-width: 4em;
|
12
|
+
$search-tools-border-color: $base-border-color;
|
13
|
+
$search-tools-background: lighten($search-tools-border-color, 10%);
|
14
|
+
|
15
|
+
@include clearfix;
|
16
|
+
background: $search-tools-background;
|
17
|
+
border: 1px solid $search-tools-border-color;
|
18
|
+
border-radius: $base-border-radius;
|
19
|
+
display: flex;
|
20
|
+
justify-content: space-between;
|
21
|
+
padding: $gutter ($gutter / 2);
|
22
|
+
width: 100%;
|
17
23
|
|
18
24
|
li {
|
19
25
|
font-size: 0.8em;
|
@@ -26,35 +32,37 @@
|
|
26
32
|
font-weight: bold;
|
27
33
|
margin-bottom: $base-spacing / 4;
|
28
34
|
}
|
29
|
-
//////////////////////////////////////////////////////////////////////////////////
|
30
35
|
|
31
|
-
|
32
|
-
|
36
|
+
.filters {
|
37
|
+
display: flex;
|
38
|
+
flex-direction: column;
|
39
|
+
justify-content: space-between;
|
40
|
+
width: 100%;
|
33
41
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
padding: $gutter / 2;
|
42
|
+
@include media($large-screen) {
|
43
|
+
flex-direction: row;
|
44
|
+
}
|
45
|
+
}
|
39
46
|
|
40
47
|
.filter {
|
41
|
-
|
48
|
+
flex-grow: 1;
|
49
|
+
flex-shrink: 1;
|
50
|
+
margin: 0 0.2em 1em 0.2em;
|
42
51
|
|
43
52
|
@include media($large-screen) {
|
44
|
-
@include span-columns(3.5);
|
45
53
|
margin-bottom: 0;
|
46
54
|
}
|
47
55
|
|
48
56
|
> div {
|
49
|
-
@include box-sizing(border-box);
|
50
|
-
@include transition(border-color);
|
51
57
|
background-color: white;
|
52
|
-
border-radius: $base-border-radius;
|
53
58
|
border: 1px solid $base-border-color;
|
59
|
+
border-radius: $base-border-radius;
|
60
|
+
box-sizing: border-box;
|
54
61
|
font-size: 1em;
|
55
62
|
margin-bottom: $base-spacing / 2;
|
56
|
-
padding: ($base-spacing / 3) ($base-spacing / 3);
|
63
|
+
padding: ($base-spacing / 3) $clear-button-width ($base-spacing / 3) ($base-spacing / 3);
|
57
64
|
position: relative;
|
65
|
+
transition: border-color;
|
58
66
|
width: 100%;
|
59
67
|
|
60
68
|
&:focus,
|
@@ -64,23 +72,23 @@
|
|
64
72
|
|
65
73
|
label {
|
66
74
|
cursor: pointer;
|
67
|
-
font-weight: 400;
|
68
75
|
margin-bottom: 0;
|
69
76
|
}
|
70
77
|
}
|
71
78
|
|
72
|
-
|
73
|
-
margin
|
79
|
+
.filter-list {
|
80
|
+
margin: 1em 0 0;
|
81
|
+
padding: 0;
|
74
82
|
|
75
83
|
label {
|
76
84
|
display: inline;
|
77
85
|
}
|
78
86
|
}
|
79
87
|
|
80
|
-
button {
|
81
|
-
@include button(simple, lighten($search-tools-background, 10%));
|
88
|
+
button.clear {
|
82
89
|
@include position(absolute, 5px 5px auto auto);
|
83
90
|
font-size: 0.7em;
|
91
|
+
max-width: $clear-button-width;
|
84
92
|
}
|
85
93
|
|
86
94
|
.hide-options {
|
@@ -93,22 +101,13 @@
|
|
93
101
|
}
|
94
102
|
|
95
103
|
.trigger {
|
96
|
-
|
97
|
-
|
98
|
-
@include media($large-screen) {
|
99
|
-
@include span-columns(1.5);
|
100
|
-
}
|
104
|
+
margin-top: 1.5em;
|
101
105
|
|
102
106
|
button {
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
padding-top: 0.5em;
|
107
|
+
display: block;
|
108
|
+
padding: 0.5em 1em;
|
109
|
+
text-align: center;
|
107
110
|
width: 100%;
|
108
|
-
|
109
|
-
@include media($large-screen) {
|
110
|
-
margin-top: 1.55em;
|
111
|
-
}
|
112
111
|
}
|
113
112
|
}
|
114
113
|
}
|