stop14-themesystem-legacy 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scaffolding/default/_00_main_configuration.yml +1 -0
- package/scaffolding/drupal/_00_main_configuration.yml +1 -0
- package/scaffolding/drupal/source/sass/20_layout/_section_title.sass +2 -2
- package/scaffolding/drupal/source/sass/20_layout/_sidebar_left.sass +1 -5
- package/source/img/svg/icons/metadata-active.svg +13 -0
- package/source/img/svg/icons/metadata-default.svg +6 -0
- package/source/img/svg/icons/metadata-neutral.svg +13 -0
- package/source/img/svg/icons/metadata-reversed.svg +13 -0
- package/source/sass/a_components/10_colours_and_patterns/00_core/11_functions/_set_colour.sass +1 -1
- package/source/sass/a_components/10_colours_and_patterns/00_core/_01_configuration_colour_and_patterns.sass +11 -0
- package/source/sass/a_components/10_colours_and_patterns/common_patterns/_patterns.sass +4 -4
- package/source/sass/a_components/30_typography/00_core/12_mixins/_link_underline.sass +7 -2
- package/source/sass/a_components/30_typography/body_text_anchor_1/_body_text_anchor.sass +3 -3
- package/source/sass/a_components/30_typography/standardized_text_collection/_anchor.sass +1 -8
- package/source/sass/a_components/40_ui/ui_element_base_v002/13_definitions/_form_elements.sass +1 -18
- package/source/sass/a_components/40_ui/ui_element_base_v002/_form_ui.sass +19 -2
- package/source/sass/a_components/40_ui/ui_element_base_v002/_standardized_icons/_icon_mixins.sass +21 -2
- package/source/sass/a_components/40_ui/ui_element_base_v002/_standardized_icons/_icons.sass +21 -8
- package/source/sass/a_components/40_ui/ui_element_base_v002/supporting_images/svg/icons/metadata-active.svg +13 -0
- package/source/sass/a_components/40_ui/ui_element_base_v002/supporting_images/svg/icons/metadata-default.svg +6 -0
- package/source/sass/a_components/40_ui/ui_element_base_v002/supporting_images/svg/icons/metadata-neutral.svg +13 -0
- package/source/sass/a_components/40_ui/ui_element_base_v002/supporting_images/svg/icons/metadata-reversed.svg +13 -0
- package/source/sass/a_components/60_site_elements/drupal_general_support/_component_views_bef_search_field.sass +106 -0
- package/source/sass/a_components/60_site_elements/slide_viewer/templates/_slide_viewer_template_3.sass +1 -1
- package/source/sass/a_components/60_site_elements/slide_viewer/templates/_slide_viewer_template_4.sass +1 -1
package/package.json
CHANGED
|
@@ -9,13 +9,13 @@ $title_area_spacing_factor: 0
|
|
|
9
9
|
#splash + #title
|
|
10
10
|
margin-top: rv($mobile_edge_padding_factor) * 2
|
|
11
11
|
|
|
12
|
-
+bp($
|
|
12
|
+
+bp($desktop)
|
|
13
13
|
margin-top: rv($edge_padding_factor) * 2
|
|
14
14
|
|
|
15
15
|
#title
|
|
16
16
|
padding: 0 rv($mobile_edge_padding_factor)
|
|
17
17
|
|
|
18
|
-
+bp($
|
|
18
|
+
+bp($desktop)
|
|
19
19
|
padding: 0 rv($edge_padding_factor)
|
|
20
20
|
|
|
21
21
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 30">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1 {
|
|
6
|
+
fill: #f4b17a;
|
|
7
|
+
}
|
|
8
|
+
</style>
|
|
9
|
+
</defs>
|
|
10
|
+
<path class="cls-1" d="M17.58,14.37c-.2-.19-.52-.17-.71.04l-3.88,4.3v-8.7c0-.28-.22-.5-.5-.5s-.5.22-.5.5v8.7l-3.88-4.3c-.19-.21-.5-.22-.71-.04-.21.19-.22.5-.04.71l4.75,5.26s0,0,0,0c.04.04.08.07.12.09.01,0,.02.02.04.03.06.03.13.04.2.04s.14-.02.2-.04c.01,0,.02-.02.04-.03.05-.03.09-.05.12-.09,0,0,0,0,0,0l4.75-5.26c.19-.21.17-.52-.04-.71Z"/>
|
|
11
|
+
<path class="cls-1" d="M2.83,26.09v-8.09c0-1.45-.42-2.52-1.55-3.01,1.14-.48,1.55-1.56,1.55-3.01V3.9c0-1.66,1.11-2.87,2.39-2.87h2.14V0h-2.14C3.52,0,1.8,1.55,1.8,3.9v8.09c0,1.28-.59,2.49-1.8,2.49v1.04c1.21,0,1.8,1.21,1.8,2.49v8.09c0,2.35,1.73,3.91,3.42,3.91h2.14v-1.04h-2.14c-1.28,0-2.39-1.24-2.39-2.87Z"/>
|
|
12
|
+
<path class="cls-1" d="M23.2,11.99V3.9c0-2.35-1.73-3.9-3.42-3.9h-2.14v1.04h2.14c1.28,0,2.39,1.21,2.39,2.87v8.09c0,1.45.42,2.52,1.56,3.01-1.14.48-1.56,1.55-1.56,3.01v8.09c0,1.63-1.11,2.87-2.39,2.87h-2.14v1.04h2.14c1.69,0,3.42-1.55,3.42-3.91v-8.09c0-1.28.59-2.49,1.8-2.49v-1.04c-1.21,0-1.8-1.21-1.8-2.49Z"/>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 30">
|
|
3
|
+
<path d="M17.58,14.37c-.2-.19-.52-.17-.71.04l-3.88,4.3v-8.7c0-.28-.22-.5-.5-.5s-.5.22-.5.5v8.7l-3.88-4.3c-.19-.21-.5-.22-.71-.04-.21.19-.22.5-.04.71l4.75,5.26s0,0,0,0c.04.04.08.07.12.09.01,0,.02.02.04.03.06.03.13.04.2.04s.14-.02.2-.04c.01,0,.02-.02.04-.03.05-.03.09-.05.12-.09,0,0,0,0,0,0l4.75-5.26c.19-.21.17-.52-.04-.71Z"/>
|
|
4
|
+
<path d="M2.83,26.09v-8.09c0-1.45-.42-2.52-1.55-3.01,1.14-.48,1.55-1.56,1.55-3.01V3.9c0-1.66,1.11-2.87,2.39-2.87h2.14V0h-2.14C3.52,0,1.8,1.55,1.8,3.9v8.09c0,1.28-.59,2.49-1.8,2.49v1.04c1.21,0,1.8,1.21,1.8,2.49v8.09c0,2.35,1.73,3.91,3.42,3.91h2.14v-1.04h-2.14c-1.28,0-2.39-1.24-2.39-2.87Z"/>
|
|
5
|
+
<path d="M23.2,11.99V3.9c0-2.35-1.73-3.9-3.42-3.9h-2.14v1.04h2.14c1.28,0,2.39,1.21,2.39,2.87v8.09c0,1.45.42,2.52,1.56,3.01-1.14.48-1.56,1.55-1.56,3.01v8.09c0,1.63-1.11,2.87-2.39,2.87h-2.14v1.04h2.14c1.69,0,3.42-1.55,3.42-3.91v-8.09c0-1.28.59-2.49,1.8-2.49v-1.04c-1.21,0-1.8-1.21-1.8-2.49Z"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 30">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1 {
|
|
6
|
+
fill: #80858c;
|
|
7
|
+
}
|
|
8
|
+
</style>
|
|
9
|
+
</defs>
|
|
10
|
+
<path class="cls-1" d="M17.58,14.37c-.2-.19-.52-.17-.71.04l-3.88,4.3v-8.7c0-.28-.22-.5-.5-.5s-.5.22-.5.5v8.7l-3.88-4.3c-.19-.21-.5-.22-.71-.04-.21.19-.22.5-.04.71l4.75,5.26s0,0,0,0c.04.04.08.07.12.09.01,0,.02.02.04.03.06.03.13.04.2.04s.14-.02.2-.04c.01,0,.02-.02.04-.03.05-.03.09-.05.12-.09,0,0,0,0,0,0l4.75-5.26c.19-.21.17-.52-.04-.71Z"/>
|
|
11
|
+
<path class="cls-1" d="M2.83,26.09v-8.09c0-1.45-.42-2.52-1.55-3.01,1.14-.48,1.55-1.56,1.55-3.01V3.9c0-1.66,1.11-2.87,2.39-2.87h2.14V0h-2.14C3.52,0,1.8,1.55,1.8,3.9v8.09c0,1.28-.59,2.49-1.8,2.49v1.04c1.21,0,1.8,1.21,1.8,2.49v8.09c0,2.35,1.73,3.91,3.42,3.91h2.14v-1.04h-2.14c-1.28,0-2.39-1.24-2.39-2.87Z"/>
|
|
12
|
+
<path class="cls-1" d="M23.2,11.99V3.9c0-2.35-1.73-3.9-3.42-3.9h-2.14v1.04h2.14c1.28,0,2.39,1.21,2.39,2.87v8.09c0,1.45.42,2.52,1.56,3.01-1.14.48-1.56,1.55-1.56,3.01v8.09c0,1.63-1.11,2.87-2.39,2.87h-2.14v1.04h2.14c1.69,0,3.42-1.55,3.42-3.91v-8.09c0-1.28.59-2.49,1.8-2.49v-1.04c-1.21,0-1.8-1.21-1.8-2.49Z"/>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 30">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1 {
|
|
6
|
+
fill: #fff;
|
|
7
|
+
}
|
|
8
|
+
</style>
|
|
9
|
+
</defs>
|
|
10
|
+
<path class="cls-1" d="M17.58,14.37c-.2-.19-.52-.17-.71.04l-3.88,4.3v-8.7c0-.28-.22-.5-.5-.5s-.5.22-.5.5v8.7l-3.88-4.3c-.19-.21-.5-.22-.71-.04-.21.19-.22.5-.04.71l4.75,5.26s0,0,0,0c.04.04.08.07.12.09.01,0,.02.02.04.03.06.03.13.04.2.04s.14-.02.2-.04c.01,0,.02-.02.04-.03.05-.03.09-.05.12-.09,0,0,0,0,0,0l4.75-5.26c.19-.21.17-.52-.04-.71Z"/>
|
|
11
|
+
<path class="cls-1" d="M2.83,26.09v-8.09c0-1.45-.42-2.52-1.55-3.01,1.14-.48,1.55-1.56,1.55-3.01V3.9c0-1.66,1.11-2.87,2.39-2.87h2.14V0h-2.14C3.52,0,1.8,1.55,1.8,3.9v8.09c0,1.28-.59,2.49-1.8,2.49v1.04c1.21,0,1.8,1.21,1.8,2.49v8.09c0,2.35,1.73,3.91,3.42,3.91h2.14v-1.04h-2.14c-1.28,0-2.39-1.24-2.39-2.87Z"/>
|
|
12
|
+
<path class="cls-1" d="M23.2,11.99V3.9c0-2.35-1.73-3.9-3.42-3.9h-2.14v1.04h2.14c1.28,0,2.39,1.21,2.39,2.87v8.09c0,1.45.42,2.52,1.56,3.01-1.14.48-1.56,1.55-1.56,3.01v8.09c0,1.63-1.11,2.87-2.39,2.87h-2.14v1.04h2.14c1.69,0,3.42-1.55,3.42-3.91v-8.09c0-1.28.59-2.49,1.8-2.49v-1.04c-1.21,0-1.8-1.21-1.8-2.49Z"/>
|
|
13
|
+
</svg>
|
package/source/sass/a_components/10_colours_and_patterns/00_core/11_functions/_set_colour.sass
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@function set-colour($colour: 1,$intensity: 100, $mixer: white)
|
|
11
11
|
@if is-int($intensity)
|
|
12
12
|
// Variable interpolation e.g. $clr#{$colour}) doesn’t work in SASS functions. Use a map instead.
|
|
13
|
-
$colourmaps: (1: $clr1, 2: $clr2, 3: $clr3, 4: $clr4, 5: $clr5, 6: $clr6, 7: $clr7, 8: $clr8, 9: $clr9)
|
|
13
|
+
$colourmaps: (1: $clr1, 2: $clr2, 3: $clr3, 4: $clr4, 5: $clr5, 6: $clr6, 7: $clr7, 8: $clr8, 9: $clr9, 10: $clr10, 11: $clr11, 12: $clr12, 13: $clr13, 14: $clr14, 15: $clr15, 16: $clr16, 17: $clr17, 18: $clr18, 19: $clr19, 20: $clr20)
|
|
14
14
|
@return mix(map-get($colourmaps,$colour),$mixer,$intensity * 1%)
|
|
15
15
|
@else
|
|
16
16
|
@return mix(set-colour-legacy($colour),$mixer,$intensity * 1%)
|
|
@@ -16,6 +16,17 @@ $clr6: #000000
|
|
|
16
16
|
$clr7: #000000
|
|
17
17
|
$clr8: #000000
|
|
18
18
|
$clr9: #000000
|
|
19
|
+
$clr10: #000000
|
|
20
|
+
$clr11: #000000
|
|
21
|
+
$clr12: #000000
|
|
22
|
+
$clr13: #000000
|
|
23
|
+
$clr14: #000000
|
|
24
|
+
$clr15: #000000
|
|
25
|
+
$clr16: #000000
|
|
26
|
+
$clr17: #000000
|
|
27
|
+
$clr18: #000000
|
|
28
|
+
$clr19: #000000
|
|
29
|
+
$clr20: #000000
|
|
19
30
|
|
|
20
31
|
// Define alternative blackpoint, whitepoint and neutrals.
|
|
21
32
|
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
|
|
25
25
|
// legacy alias
|
|
26
26
|
|
|
27
|
-
=overlay-dark($
|
|
27
|
+
=overlay-dark($colour: $black, $stop: 66%, $angle: 180deg)
|
|
28
28
|
+gradient-overlay-dark($angle,$stop,$colour)
|
|
29
29
|
|
|
30
|
-
=gradient-overlay-slide($
|
|
30
|
+
=gradient-overlay-slide($colour: $true_black, $stop: 40%, $angle: 0deg)
|
|
31
31
|
+gradient-overlay-dark
|
|
32
32
|
|
|
33
33
|
&:before
|
|
34
|
-
background: linear-gradient($angle, rgba($colour,1) 0%, rgba($colour,0.9) rv($mobile_edge_padding_factor) * 4, transparent
|
|
34
|
+
background: linear-gradient($angle, rgba($colour,1) 0%, rgba($colour,0.9) rv($mobile_edge_padding_factor) * 4, transparent $stop) // fudge second gradient stop to clear caption. See 60_site_elements/content/_slide.sass
|
|
35
35
|
|
|
36
36
|
+bp($tablet)
|
|
37
|
-
background: linear-gradient($angle, rgba($colour,1) 0%, rgba($colour,0.9) rv($edge_padding_factor) * 4, transparent
|
|
37
|
+
background: linear-gradient($angle, rgba($colour,1) 0%, rgba($colour,0.9) rv($edge_padding_factor) * 4, transparent $stop) // fudge second gradient stop to clear caption. See 60_site_elements/content/_slide.sass
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
=image-overlay($image_url:'../img/jpg/folder/some-image.jpg', $opacity: 0.4)
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file _link_underline.sass
|
|
2
|
+
* @file _link_underline.sass
|
|
3
3
|
* @category 30_typography
|
|
4
4
|
* @component 00_Core
|
|
5
5
|
* @description Adds an underline. Allows themes to override with by redefining it, e.g. to add a text-underline to border-bottom approach */
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
=link-underline()
|
|
8
|
+
text-decoration: none
|
|
8
9
|
border-bottom: 1px solid $link_colour
|
|
10
|
+
|
|
11
|
+
=link-underline-active
|
|
12
|
+
text-decoration: none
|
|
13
|
+
border-bottom: 1px solid $link_colour_active
|
package/source/sass/a_components/40_ui/ui_element_base_v002/13_definitions/_form_elements.sass
CHANGED
|
@@ -101,24 +101,6 @@
|
|
|
101
101
|
&:hover
|
|
102
102
|
color: $clr4
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
%button-reset
|
|
106
|
-
@extend %button-base
|
|
107
|
-
border: none
|
|
108
|
-
background-color: neutral(60)
|
|
109
|
-
text-decoration: underline
|
|
110
|
-
display: inline-flex
|
|
111
|
-
flex-direction: row
|
|
112
|
-
align-items: center
|
|
113
|
-
justify-content: center
|
|
114
|
-
|
|
115
|
-
&:hover
|
|
116
|
-
background-color: $black
|
|
117
|
-
|
|
118
|
-
&:active
|
|
119
|
-
background-color: neutral(80)
|
|
120
|
-
|
|
121
|
-
|
|
122
104
|
%button-text
|
|
123
105
|
background-color: $black
|
|
124
106
|
text-decoration: underline
|
|
@@ -171,6 +153,7 @@
|
|
|
171
153
|
min-width: $btn_compactwidth
|
|
172
154
|
text-decoration: none
|
|
173
155
|
justify-content: flex-start
|
|
156
|
+
+background-icon-left('reset')
|
|
174
157
|
|
|
175
158
|
&:hover
|
|
176
159
|
color: $btn_reset_hover_color
|
|
@@ -41,13 +41,25 @@ input[type='email'],
|
|
|
41
41
|
textarea#edit-message
|
|
42
42
|
@extend %input-text
|
|
43
43
|
|
|
44
|
-
input
|
|
44
|
+
// Important. Icons do NOT apply to input elements automatically because
|
|
45
|
+
// they are not containers and can’t have :before and :after pseudo-elements.
|
|
46
|
+
// In most contexts you should apply icons to the an input container.
|
|
47
|
+
// Alternatively you can use the work-in-progress +input-button-icon() mixins
|
|
48
|
+
// to see if you can achieve the desired results.
|
|
49
|
+
|
|
50
|
+
input[type="search"]
|
|
51
|
+
button[type="search"]
|
|
45
52
|
@extend %button-search
|
|
46
53
|
|
|
47
54
|
input[type="submit"],
|
|
48
|
-
button[type="submit"]
|
|
55
|
+
button[type="submit"]
|
|
49
56
|
@extend %button-submit
|
|
50
57
|
|
|
58
|
+
input[type="reset"],
|
|
59
|
+
button[type="reset"]
|
|
60
|
+
@extend %button-reset
|
|
61
|
+
|
|
62
|
+
|
|
51
63
|
input[type="search"]::-webkit-search-cancel-button
|
|
52
64
|
-webkit-appearance: none
|
|
53
65
|
display: inline-block
|
|
@@ -73,6 +85,11 @@ input[type="checkbox"]
|
|
|
73
85
|
float: left
|
|
74
86
|
margin: 0
|
|
75
87
|
|
|
88
|
+
&:checked
|
|
89
|
+
+icon('checkmark')
|
|
90
|
+
background-size: 80%
|
|
91
|
+
background-position: center
|
|
92
|
+
|
|
76
93
|
&:hover
|
|
77
94
|
border-color: $ui_hover_border_color
|
|
78
95
|
|
package/source/sass/a_components/40_ui/ui_element_base_v002/_standardized_icons/_icon_mixins.sass
CHANGED
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
+background-icon-right($icon_name,$btn_icon_size,'default','default')
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
// Simplified Aliases
|
|
77
76
|
|
|
78
77
|
=icon($icon_name, $size: $btn_icon_size, $initial_state: 'default', $active_state: 'active')
|
|
79
78
|
height: $size
|
|
@@ -82,7 +81,7 @@
|
|
|
82
81
|
background-position: center
|
|
83
82
|
|
|
84
83
|
&.active, &:hover
|
|
85
|
-
+background-icon-base($icon_name
|
|
84
|
+
+background-icon-base($icon_name,$size,$initial_state,$active_state)
|
|
86
85
|
|
|
87
86
|
=icon-with-label($icon_name, $size: $btn_icon_size, $initial_state: 'default', $active_state: 'active', $position: 'left')
|
|
88
87
|
@extend %icon-label
|
|
@@ -98,3 +97,23 @@
|
|
|
98
97
|
=icon-with-label-right($icon_name, $size: $btn_icon_size, $initial_state: 'default', $active_state: 'active', $position: 'left')
|
|
99
98
|
@extend %icon-label
|
|
100
99
|
+background-icon-right($icon_name,$size,$initial_state,$active_state)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
// Input buttons can’t have pseudo-elements, so the background icon must be directly applied.
|
|
103
|
+
// Experimental. Positioning the icon still needs thinking through to work in all situations
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
=input-button-icon($icon_name, $size: $btn_icon_size, $btn_padding: $ui_padding, $initial_state: 'default', $active_state: 'active', $position: 'left')
|
|
107
|
+
+background-icon-base($icon_name,$size,$initial_state,$active_state)
|
|
108
|
+
|
|
109
|
+
@if $position == 'left'
|
|
110
|
+
background-position: left calc(#{$btn_padding} - #{$size * 2} ) center
|
|
111
|
+
@else
|
|
112
|
+
background-position: left calc(#{$btn_padding} + #{$size * 2} ) center
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
=input-button-icon-left($icon_name, $size: $btn_icon_size, $btn_padding: $ui_padding, $initial_state: 'default', $active_state: 'active')
|
|
116
|
+
+input-button-icon($icon_name,$size,$btn_padding,$initial_state,$active_state,'left')
|
|
117
|
+
|
|
118
|
+
=input-button-icon-right($icon_name, $size: $btn_icon_size, $btn_padding: $ui_padding, $initial_state: 'default', $active_state: 'active')
|
|
119
|
+
+input-button-icon($icon_name,$size,$btn_padding,$initial_state,$active_state,'right')
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
@usage Add the “icon” class to a button or container to apply standardized
|
|
6
6
|
label styles. Add one of the following to apply a specific icon as per the
|
|
7
7
|
$icons list below:
|
|
8
|
-
.icon-[iconname] --
|
|
8
|
+
.icon-[iconname] -- No positioning, must have container with definite height and width
|
|
9
|
+
.icon-right-[iconname] -- Positions icon to the right
|
|
9
10
|
.icon-left-[iconname] -- Positions icon to the left
|
|
10
11
|
.icon-reversed-[iconname] -- Uses reversed icon as default state
|
|
11
12
|
.icon-neutral-[iconname] -- Uses neutral icon as default state
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
* Standardized states are "default","active","neutral","reversed"
|
|
23
24
|
*/
|
|
24
25
|
|
|
25
|
-
$icons: ('accordion-expand','accordion-horizontal','arrow','arrow-left','checkmark','close','copy','download','export','external-link','filter','full-screen','grid','hamburger-menu','home','link','list','location','locked','logout','minus','open-access','ordchid-id','orchid-id','plus','reset','search','sort','unlocked','upload','user-access','user','visible')
|
|
26
|
+
$icons: ('accordion-expand','accordion-horizontal','arrow','arrow-left','checkmark','close','copy','download','export','external-link','filter','full-screen','grid','hamburger-menu','home','link','list','location','locked','logout','minus','metadata','open-access','ordchid-id','orchid-id','plus','reset','search','sort','unlocked','upload','user-access','user','visible')
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
%icon-label // Redefined from 30_typography/_definitions for portability. @todo: add definition to core.
|
|
@@ -60,17 +61,29 @@ button.icon
|
|
|
60
61
|
text-transform: uppercase
|
|
61
62
|
@extend %icon
|
|
62
63
|
|
|
63
|
-
// Set standardized classes.
|
|
64
|
+
// Set standardized classes.
|
|
64
65
|
@each $name in $icons
|
|
65
66
|
.icon-#{$name}
|
|
66
|
-
+background-icon-
|
|
67
|
+
+background-icon-base($name,'contain','default','active')
|
|
68
|
+
&:after,&.active
|
|
69
|
+
+background-icon-active($name,'contain','default','active')
|
|
67
70
|
.icon-reversed-#{$name}
|
|
68
|
-
+background-icon-
|
|
71
|
+
+background-icon-base($name,'contain','reversed','active')
|
|
72
|
+
&:after,&.active
|
|
73
|
+
+background-icon-active($name,'contain','reversed','active')
|
|
69
74
|
.icon-neutral-#{$name}
|
|
70
|
-
+background-icon-
|
|
75
|
+
+background-icon-base($name,'contain','neutral','default')
|
|
76
|
+
&:after,&.active
|
|
77
|
+
+background-icon-active($name,'contain','neutral','active')
|
|
71
78
|
.icon-right#{$name}
|
|
72
|
-
+background-icon-
|
|
79
|
+
+background-icon-right($name,$btn_icon_size,'default','active')
|
|
73
80
|
.icon-right-reversed-#{$name}
|
|
74
|
-
+background-icon-
|
|
81
|
+
+background-icon-right($name,$btn_icon_size,'reversed','active')
|
|
75
82
|
.icon-right-neutral-#{$name}
|
|
83
|
+
+background-icon-right($name,$btn_icon_size,'neutral','default')
|
|
84
|
+
.icon-left-#{$name}
|
|
85
|
+
+background-icon-left($name,$btn_icon_size,'default','active')
|
|
86
|
+
.icon-left-reversed-#{$name}
|
|
87
|
+
+background-icon-left($name,$btn_icon_size,'reversed','active')
|
|
88
|
+
.icon-left-neutral-#{$name}
|
|
76
89
|
+background-icon-left($name,$btn_icon_size,'neutral','default')
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 30">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1 {
|
|
6
|
+
fill: #f4b17a;
|
|
7
|
+
}
|
|
8
|
+
</style>
|
|
9
|
+
</defs>
|
|
10
|
+
<path class="cls-1" d="M17.58,14.37c-.2-.19-.52-.17-.71.04l-3.88,4.3v-8.7c0-.28-.22-.5-.5-.5s-.5.22-.5.5v8.7l-3.88-4.3c-.19-.21-.5-.22-.71-.04-.21.19-.22.5-.04.71l4.75,5.26s0,0,0,0c.04.04.08.07.12.09.01,0,.02.02.04.03.06.03.13.04.2.04s.14-.02.2-.04c.01,0,.02-.02.04-.03.05-.03.09-.05.12-.09,0,0,0,0,0,0l4.75-5.26c.19-.21.17-.52-.04-.71Z"/>
|
|
11
|
+
<path class="cls-1" d="M2.83,26.09v-8.09c0-1.45-.42-2.52-1.55-3.01,1.14-.48,1.55-1.56,1.55-3.01V3.9c0-1.66,1.11-2.87,2.39-2.87h2.14V0h-2.14C3.52,0,1.8,1.55,1.8,3.9v8.09c0,1.28-.59,2.49-1.8,2.49v1.04c1.21,0,1.8,1.21,1.8,2.49v8.09c0,2.35,1.73,3.91,3.42,3.91h2.14v-1.04h-2.14c-1.28,0-2.39-1.24-2.39-2.87Z"/>
|
|
12
|
+
<path class="cls-1" d="M23.2,11.99V3.9c0-2.35-1.73-3.9-3.42-3.9h-2.14v1.04h2.14c1.28,0,2.39,1.21,2.39,2.87v8.09c0,1.45.42,2.52,1.56,3.01-1.14.48-1.56,1.55-1.56,3.01v8.09c0,1.63-1.11,2.87-2.39,2.87h-2.14v1.04h2.14c1.69,0,3.42-1.55,3.42-3.91v-8.09c0-1.28.59-2.49,1.8-2.49v-1.04c-1.21,0-1.8-1.21-1.8-2.49Z"/>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 30">
|
|
3
|
+
<path d="M17.58,14.37c-.2-.19-.52-.17-.71.04l-3.88,4.3v-8.7c0-.28-.22-.5-.5-.5s-.5.22-.5.5v8.7l-3.88-4.3c-.19-.21-.5-.22-.71-.04-.21.19-.22.5-.04.71l4.75,5.26s0,0,0,0c.04.04.08.07.12.09.01,0,.02.02.04.03.06.03.13.04.2.04s.14-.02.2-.04c.01,0,.02-.02.04-.03.05-.03.09-.05.12-.09,0,0,0,0,0,0l4.75-5.26c.19-.21.17-.52-.04-.71Z"/>
|
|
4
|
+
<path d="M2.83,26.09v-8.09c0-1.45-.42-2.52-1.55-3.01,1.14-.48,1.55-1.56,1.55-3.01V3.9c0-1.66,1.11-2.87,2.39-2.87h2.14V0h-2.14C3.52,0,1.8,1.55,1.8,3.9v8.09c0,1.28-.59,2.49-1.8,2.49v1.04c1.21,0,1.8,1.21,1.8,2.49v8.09c0,2.35,1.73,3.91,3.42,3.91h2.14v-1.04h-2.14c-1.28,0-2.39-1.24-2.39-2.87Z"/>
|
|
5
|
+
<path d="M23.2,11.99V3.9c0-2.35-1.73-3.9-3.42-3.9h-2.14v1.04h2.14c1.28,0,2.39,1.21,2.39,2.87v8.09c0,1.45.42,2.52,1.56,3.01-1.14.48-1.56,1.55-1.56,3.01v8.09c0,1.63-1.11,2.87-2.39,2.87h-2.14v1.04h2.14c1.69,0,3.42-1.55,3.42-3.91v-8.09c0-1.28.59-2.49,1.8-2.49v-1.04c-1.21,0-1.8-1.21-1.8-2.49Z"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 30">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1 {
|
|
6
|
+
fill: #80858c;
|
|
7
|
+
}
|
|
8
|
+
</style>
|
|
9
|
+
</defs>
|
|
10
|
+
<path class="cls-1" d="M17.58,14.37c-.2-.19-.52-.17-.71.04l-3.88,4.3v-8.7c0-.28-.22-.5-.5-.5s-.5.22-.5.5v8.7l-3.88-4.3c-.19-.21-.5-.22-.71-.04-.21.19-.22.5-.04.71l4.75,5.26s0,0,0,0c.04.04.08.07.12.09.01,0,.02.02.04.03.06.03.13.04.2.04s.14-.02.2-.04c.01,0,.02-.02.04-.03.05-.03.09-.05.12-.09,0,0,0,0,0,0l4.75-5.26c.19-.21.17-.52-.04-.71Z"/>
|
|
11
|
+
<path class="cls-1" d="M2.83,26.09v-8.09c0-1.45-.42-2.52-1.55-3.01,1.14-.48,1.55-1.56,1.55-3.01V3.9c0-1.66,1.11-2.87,2.39-2.87h2.14V0h-2.14C3.52,0,1.8,1.55,1.8,3.9v8.09c0,1.28-.59,2.49-1.8,2.49v1.04c1.21,0,1.8,1.21,1.8,2.49v8.09c0,2.35,1.73,3.91,3.42,3.91h2.14v-1.04h-2.14c-1.28,0-2.39-1.24-2.39-2.87Z"/>
|
|
12
|
+
<path class="cls-1" d="M23.2,11.99V3.9c0-2.35-1.73-3.9-3.42-3.9h-2.14v1.04h2.14c1.28,0,2.39,1.21,2.39,2.87v8.09c0,1.45.42,2.52,1.56,3.01-1.14.48-1.56,1.55-1.56,3.01v8.09c0,1.63-1.11,2.87-2.39,2.87h-2.14v1.04h2.14c1.69,0,3.42-1.55,3.42-3.91v-8.09c0-1.28.59-2.49,1.8-2.49v-1.04c-1.21,0-1.8-1.21-1.8-2.49Z"/>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 30">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1 {
|
|
6
|
+
fill: #fff;
|
|
7
|
+
}
|
|
8
|
+
</style>
|
|
9
|
+
</defs>
|
|
10
|
+
<path class="cls-1" d="M17.58,14.37c-.2-.19-.52-.17-.71.04l-3.88,4.3v-8.7c0-.28-.22-.5-.5-.5s-.5.22-.5.5v8.7l-3.88-4.3c-.19-.21-.5-.22-.71-.04-.21.19-.22.5-.04.71l4.75,5.26s0,0,0,0c.04.04.08.07.12.09.01,0,.02.02.04.03.06.03.13.04.2.04s.14-.02.2-.04c.01,0,.02-.02.04-.03.05-.03.09-.05.12-.09,0,0,0,0,0,0l4.75-5.26c.19-.21.17-.52-.04-.71Z"/>
|
|
11
|
+
<path class="cls-1" d="M2.83,26.09v-8.09c0-1.45-.42-2.52-1.55-3.01,1.14-.48,1.55-1.56,1.55-3.01V3.9c0-1.66,1.11-2.87,2.39-2.87h2.14V0h-2.14C3.52,0,1.8,1.55,1.8,3.9v8.09c0,1.28-.59,2.49-1.8,2.49v1.04c1.21,0,1.8,1.21,1.8,2.49v8.09c0,2.35,1.73,3.91,3.42,3.91h2.14v-1.04h-2.14c-1.28,0-2.39-1.24-2.39-2.87Z"/>
|
|
12
|
+
<path class="cls-1" d="M23.2,11.99V3.9c0-2.35-1.73-3.9-3.42-3.9h-2.14v1.04h2.14c1.28,0,2.39,1.21,2.39,2.87v8.09c0,1.45.42,2.52,1.56,3.01-1.14.48-1.56,1.55-1.56,3.01v8.09c0,1.63-1.11,2.87-2.39,2.87h-2.14v1.04h2.14c1.69,0,3.42-1.55,3.42-3.91v-8.09c0-1.28.59-2.49,1.8-2.49v-1.04c-1.21,0-1.8-1.21-1.8-2.49Z"/>
|
|
13
|
+
</svg>
|
|
@@ -59,9 +59,115 @@
|
|
|
59
59
|
|
|
60
60
|
&[type="submit"].form-submit
|
|
61
61
|
@extend %button-search
|
|
62
|
+
+input-button-icon-right('search')
|
|
62
63
|
|
|
63
64
|
&[type="submit"][name="reset"].form-submit
|
|
64
65
|
@extend %button-search-clear
|
|
66
|
+
+input-button-icon-right('reset')
|
|
67
|
+
|
|
68
|
+
// Add ons in various contexts
|
|
69
|
+
|
|
70
|
+
// Hides everything but the search field and remove the search border
|
|
71
|
+
// Used for high-impact search displays
|
|
72
|
+
|
|
73
|
+
=bef-exposed-form-search-ghost($search_input_selector: '.form-item-search-api-fulltext')
|
|
74
|
+
.form-item:not(#{$search_input_selector})
|
|
75
|
+
display: none
|
|
76
|
+
|
|
77
|
+
#{$search_input_selector}
|
|
78
|
+
width: auto
|
|
79
|
+
flex-grow: 1
|
|
80
|
+
|
|
81
|
+
input
|
|
82
|
+
max-width: unset
|
|
83
|
+
border: 0 !important
|
|
84
|
+
|
|
85
|
+
// Hides the search bar. Used when the search input is rendered elsewhere, often by placing the BEF block twice.
|
|
86
|
+
|
|
87
|
+
=bef-exposed-form-hide-search($search_input_selector: '.form-item-search-api-fulltext')
|
|
88
|
+
|
|
89
|
+
#{$search_input_selector}
|
|
90
|
+
display: none
|
|
91
|
+
|
|
92
|
+
=bef-exposed-form-compact-right
|
|
93
|
+
form
|
|
94
|
+
justify-content: flex-end
|
|
95
|
+
|
|
96
|
+
.form-item
|
|
97
|
+
+bp($desktop)
|
|
98
|
+
width: auto
|
|
99
|
+
|
|
100
|
+
input, select
|
|
101
|
+
max-width: 250px
|
|
102
|
+
|
|
103
|
+
.form-actions
|
|
104
|
+
margin-left: 0
|
|
105
|
+
/**
|
|
106
|
+
* @file _views_exposed_forms.sass
|
|
107
|
+
* @category 40_ui
|
|
108
|
+
* @theme LOCAL
|
|
109
|
+
* @description Support for the exposed forms in Views. Also includes Better Exposed Forms (or will)
|
|
110
|
+
**/
|
|
111
|
+
|
|
112
|
+
.views-exposed-form.bef-exposed-form
|
|
113
|
+
form
|
|
114
|
+
display: flex
|
|
115
|
+
flex-wrap: wrap
|
|
116
|
+
align-items: center
|
|
117
|
+
position: relative
|
|
118
|
+
background-color: $white
|
|
119
|
+
width: 100%
|
|
120
|
+
|
|
121
|
+
+bp($desktop)
|
|
122
|
+
flex-wrap: nowrap
|
|
123
|
+
height: $ui_largeheight
|
|
124
|
+
|
|
125
|
+
.form-item
|
|
126
|
+
flex-grow: 0
|
|
127
|
+
flex-shrink: 1
|
|
128
|
+
margin-bottom: $ui_padding
|
|
129
|
+
|
|
130
|
+
+bp($tablet)
|
|
131
|
+
margin-right: $ui_padding
|
|
132
|
+
|
|
133
|
+
+bp($desktop)
|
|
134
|
+
margin-bottom: 0
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
> *
|
|
138
|
+
width: 100%
|
|
139
|
+
|
|
140
|
+
.form-actions
|
|
141
|
+
margin-left: auto
|
|
142
|
+
display: flex
|
|
143
|
+
|
|
144
|
+
> *
|
|
145
|
+
margin-left: $ui_padding
|
|
146
|
+
|
|
147
|
+
&:first-child
|
|
148
|
+
margin-left: 0
|
|
149
|
+
|
|
150
|
+
label
|
|
151
|
+
display: none
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
&.form-item-search-api-fulltext
|
|
156
|
+
flex-grow: 1
|
|
157
|
+
flex-shrink: 0
|
|
158
|
+
|
|
159
|
+
input
|
|
160
|
+
width: 100%
|
|
161
|
+
|
|
162
|
+
input
|
|
163
|
+
|
|
164
|
+
&[type="submit"].form-submit
|
|
165
|
+
@extend %button-search
|
|
166
|
+
+input-button-icon-right('search')
|
|
167
|
+
|
|
168
|
+
&[type="submit"][name="reset"].form-submit
|
|
169
|
+
@extend %button-search-clear
|
|
170
|
+
+input-button-icon-right('reset')
|
|
65
171
|
|
|
66
172
|
// Add ons in various contexts
|
|
67
173
|
|