stop14-themesystem-legacy 2.0.4 → 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/drupal/source/sass/20_layout/_section_title.sass +2 -2
- package/scaffolding/drupal/source/sass/20_layout/_sidebar_left.sass +1 -5
- 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/40_ui/ui_element_base_v002/13_definitions/_form_elements.sass +1 -19
- package/source/sass/a_components/40_ui/ui_element_base_v002/_form_ui.sass +10 -3
- package/source/sass/a_components/40_ui/ui_element_base_v002/_standardized_icons/_icon_mixins.sass +21 -2
- 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
|
|
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)
|
package/source/sass/a_components/40_ui/ui_element_base_v002/13_definitions/_form_elements.sass
CHANGED
|
@@ -101,25 +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
|
-
+background-icon-left('reset')
|
|
115
|
-
|
|
116
|
-
&:hover
|
|
117
|
-
background-color: $black
|
|
118
|
-
|
|
119
|
-
&:active
|
|
120
|
-
background-color: neutral(80)
|
|
121
|
-
|
|
122
|
-
|
|
123
104
|
%button-text
|
|
124
105
|
background-color: $black
|
|
125
106
|
text-decoration: underline
|
|
@@ -172,6 +153,7 @@
|
|
|
172
153
|
min-width: $btn_compactwidth
|
|
173
154
|
text-decoration: none
|
|
174
155
|
justify-content: flex-start
|
|
156
|
+
+background-icon-left('reset')
|
|
175
157
|
|
|
176
158
|
&:hover
|
|
177
159
|
color: $btn_reset_hover_color
|
|
@@ -41,15 +41,22 @@ 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
|
|
|
51
58
|
input[type="reset"],
|
|
52
|
-
button[type="
|
|
59
|
+
button[type="reset"]
|
|
53
60
|
@extend %button-reset
|
|
54
61
|
|
|
55
62
|
|
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')
|
|
@@ -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
|
|