stop14-themesystem-legacy 2.0.4 → 2.0.6

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.
Files changed (18) hide show
  1. package/package.json +1 -1
  2. package/scaffolding/default/_00_main_configuration.yml +7 -0
  3. package/scaffolding/drupal/_00_main_configuration.yml +6 -0
  4. package/scaffolding/drupal/source/sass/20_layout/_section_title.sass +2 -2
  5. package/scaffolding/drupal/source/sass/20_layout/_sidebar_left.sass +1 -5
  6. package/scaffolding/omeka/_00_main_configuration.yml +7 -0
  7. package/source/sass/a_components/10_colours_and_patterns/00_core/11_functions/_set_colour.sass +1 -1
  8. package/source/sass/a_components/10_colours_and_patterns/00_core/_01_configuration_colour_and_patterns.sass +11 -0
  9. package/source/sass/a_components/10_colours_and_patterns/common_patterns/_patterns.sass +4 -4
  10. package/source/sass/a_components/30_typography/callout_blocks/13_mixins/_callout.sass +6 -8
  11. package/source/sass/a_components/40_ui/ui_element_base_v002/13_definitions/_form_elements.sass +2 -20
  12. package/source/sass/a_components/40_ui/ui_element_base_v002/_form_ui.sass +11 -3
  13. package/source/sass/a_components/40_ui/ui_element_base_v002/_standardized_icons/_icon_mixins.sass +26 -7
  14. package/source/sass/a_components/40_ui/ui_element_base_v002/_ui_library_support/_component_superfish_navigation.sass +40 -21
  15. package/source/sass/a_components/60_site_elements/drupal_general_support/_component_views_bef_search_field.sass +106 -0
  16. package/source/sass/a_components/60_site_elements/slide_viewer/templates/_slide_viewer_template_3.sass +1 -1
  17. package/source/sass/a_components/60_site_elements/slide_viewer/templates/_slide_viewer_template_4.sass +1 -1
  18. package/source/sass/b_profiles/s14_standard_base/_components.sass +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stop14-themesystem-legacy",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "A scaffolding and build system for theme development across platforms. Legacy version",
5
5
  "author": {
6
6
  "name": "Bill Kennedy",
@@ -222,6 +222,13 @@ ui_select_width: fit-content
222
222
  ui_select_min_width: $btn_width
223
223
  ui_select_max_width: 100%
224
224
 
225
+ #Callouts
226
+
227
+ callout_shift: 0
228
+ callout_width: 40%
229
+ callout_inset: null
230
+ callout_breakpoint: lrg
231
+
225
232
 
226
233
  # Animation
227
234
 
@@ -222,6 +222,12 @@ ui_select_width: fit-content
222
222
  ui_select_min_width: $btn_width
223
223
  ui_select_max_width: 100%
224
224
 
225
+ #Callouts
226
+
227
+ callout_shift: 0
228
+ callout_width: 40%
229
+ callout_inset: null
230
+ callout_breakpoint: lrg
225
231
 
226
232
  # Animation
227
233
 
@@ -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($tablet)
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($tablet)
18
+ +bp($desktop)
19
19
  padding: 0 rv($edge_padding_factor)
20
20
 
21
21
 
@@ -7,11 +7,7 @@
7
7
 
8
8
  #primary-content
9
9
  aside.left
10
- padding: 0 rv($mobile_edge_padding_factor)
11
- +font-size(-1)
12
-
13
- +bp($desktop)
14
- padding: 0 rv($edge_padding_factor)
10
+ font-size: clamped(-2,-1)
15
11
 
16
12
  div, p, ul, li, label
17
13
  color: inherit
@@ -161,6 +161,7 @@ ui_mobile_app_controls_footer_height: $masthead_height
161
161
  ui_mobile_app_controls_breakpoint: $tablet
162
162
  ui_display_controls_icon_size: "$ui_mobile_app_controls_footer_height * 0.5"
163
163
 
164
+
164
165
  # legacy
165
166
  border_radius: $ui_border_radius
166
167
  mobile_filter_height: rv(5)
@@ -222,6 +223,12 @@ ui_select_width: fit-content
222
223
  ui_select_min_width: 200px
223
224
  ui_select_max_width: 100%
224
225
 
226
+ #Callouts
227
+
228
+ callout_shift: 0
229
+ callout_width: 40%
230
+ callout_inset: null
231
+ callout_breakpoint: lrg
225
232
 
226
233
  # Animation
227
234
  heartbeat: 0.2s
@@ -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($angle: 180deg, $stop: 66%, $colour: $black)
27
+ =overlay-dark($colour: $black, $stop: 66%, $angle: 180deg)
28
28
  +gradient-overlay-dark($angle,$stop,$colour)
29
29
 
30
- =gradient-overlay-slide($angle: 0deg,$colour: $true_black)
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 40%) // fudge second gradient stop to clear caption. See 60_site_elements/content/_slide.sass
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 40%) // fudge second gradient stop to clear caption. See 60_site_elements/content/_slide.sass
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)
@@ -50,11 +50,11 @@
50
50
 
51
51
  @if $direction == 'left'
52
52
  float: left
53
- padding-right: rv($mobile_edge_padding_factor)
53
+ padding-right: $paragraph_spacing
54
54
 
55
55
  @if $direction == 'right'
56
56
  float: right
57
- padding-left: rv($mobile_edge_padding_factor)
57
+ padding-left: $paragraph_spacing
58
58
 
59
59
  +bp($breakpoint)
60
60
  position: relative
@@ -67,9 +67,8 @@
67
67
  float: left
68
68
  text-align: right
69
69
 
70
- @if $inset == null
71
- right: calc(#{$shiftval} + var(--callout-width))
72
- margin-right: calc((#{$shiftval} + var(--callout-width)) * -1)
70
+ @if $inset == null or $inset == "null"
71
+ padding: 0 $paragraph_spacing $paragraph_spacing 0
73
72
  @else
74
73
  padding-right: rv($inset)
75
74
  right: calc(#{$shiftval} + (var(--callout-width)/2))
@@ -78,9 +77,8 @@
78
77
  @if $direction == 'right'
79
78
  float: right
80
79
 
81
- @if $inset == null
82
- left: calc(#{$shiftval} + var(--callout-width))
83
- margin-left: calc((#{$shiftval} + var(--callout-width)) * -1)
80
+ @if $inset == null or $inset == "null"
81
+ padding: 0 0 $paragraph_spacing $paragraph_spacing
84
82
  @else
85
83
  padding-left: rv($inset)
86
84
  left: calc(#{$shiftval} + (var(--callout-width)/2))
@@ -38,7 +38,7 @@
38
38
  font-size: $btn_fontsize
39
39
  font-weight: $normal
40
40
  padding: $btn_padding
41
- height: $ui_minheight
41
+ height: $btn_height
42
42
  min-width: $btn_minwidth
43
43
  border: $btn_border_width solid $btn_border_color
44
44
  border-radius: $ui_border_radius
@@ -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
@@ -38,18 +38,26 @@ input:focus
38
38
 
39
39
  input[type='text'],
40
40
  input[type='email'],
41
+ input[type='password']
41
42
  textarea#edit-message
42
43
  @extend %input-text
43
44
 
44
- input[type="search"] // Button
45
+ // Important. Icons do NOT apply to input elements automatically because
46
+ // they are not containers and can’t have :before and :after pseudo-elements.
47
+ // In most contexts you should apply icons to the an input container.
48
+ // Alternatively you can use the work-in-progress +input-button-icon() mixins
49
+ // to see if you can achieve the desired results.
50
+
51
+ input[type="search"]
52
+ button[type="search"]
45
53
  @extend %button-search
46
54
 
47
55
  input[type="submit"],
48
- button[type="submit"] //Button
56
+ button[type="submit"]
49
57
  @extend %button-submit
50
58
 
51
59
  input[type="reset"],
52
- button[type="teset"] //Button
60
+ button[type="reset"]
53
61
  @extend %button-reset
54
62
 
55
63
 
@@ -33,8 +33,8 @@
33
33
 
34
34
  &:before
35
35
  content: ''
36
- height: $btn_icon_size
37
- width: $btn_icon_size
36
+ height: $size
37
+ width: $size
38
38
  margin-right: $ui_padding
39
39
  +background-icon-base($icon_name,'contain',$initial_state,$active_state)
40
40
  background-position: center left
@@ -48,13 +48,13 @@
48
48
  =background-icon-right($icon_name, $size: $btn_icon_size, $initial_state: 'default', $active_state: 'active')
49
49
  display: flex
50
50
  align-items: center
51
- min-height: $btn_icon_size
51
+ min-height: $size
52
52
  cursor: pointer
53
53
 
54
54
  &:after
55
55
  content: ''
56
- height: $btn_icon_size
57
- width: $btn_icon_size
56
+ height: $size
57
+ width: $size
58
58
  margin-left: $ui_padding
59
59
  +background-icon-base($icon_name,'contain',$initial_state,$active_state)
60
60
  background-position: center right
@@ -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,'contain',$initial_state,$active_state)
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')
@@ -62,9 +62,40 @@ ul.sf-menu
62
62
  text-decoration: none
63
63
  border-bottom: none
64
64
 
65
- > * .menuparent
66
- +background-icon-base('accordion-expand',$btn_icon_size,'reversed')
67
- background-position: right center
65
+ // Superfish uses “menuparent” to indicate that the link has a submenu
66
+ // It applies to both the list and child anchor tag so li is explicit here
67
+ // Superfish also uses “.sf-depth-[x]” to indicate nested menu depth
68
+ // .sf-depth-1 is the top-level.
69
+
70
+ // This logic uses a right-facing arrow for all menu items that are not the
71
+ // top level, which has a downward arrow.
72
+
73
+ // @todo Superfish may have collision detection here, with submenus appearing
74
+ // on the left or right depending on available viewport space. If so,
75
+ // this logic needs to expand.
76
+
77
+ li.menuparent
78
+ +background-icon-right('accordion-expand',$btn_icon_size)
79
+
80
+ &:after
81
+ transform: rotate(-90deg)
82
+
83
+ &.sf-depth-1
84
+
85
+ +reversed()
86
+ +background-icon-right('accordion-expand',$btn_icon_size,'reversed')
87
+
88
+ &:after
89
+ transform: unset
90
+
91
+ &:not(.sf-depth-1)
92
+ &:hover
93
+ &:after
94
+ background-image: url(get_svg_url('icons/accordion-expand-default'))
95
+ transform: rotate(-90deg)
96
+ animation-name: unset // The animation overrides the transform in this context, so is unset here.
97
+
98
+
68
99
 
69
100
  .sf-depth-1
70
101
  li
@@ -72,37 +103,25 @@ ul.sf-menu
72
103
  *white-space: normal /* ...unless you support IE7 (let it wrap) */
73
104
  -webkit-transition: background $heartbeat
74
105
  transition: background $heartbeat
75
- background: neutral(10)
106
+ background-color: neutral(10)
76
107
 
77
108
  &:hover
78
- background: $impact
109
+ background-color: $impact
79
110
 
80
111
  a, a:hover
81
112
  color: $black
113
+
82
114
  .sf-depth-2
83
115
  &.li
84
- background: neutral(50)
116
+ background-color: neutral(50)
85
117
  a
86
118
  color: $black
87
- +font-size(-1)
119
+ width: 75%
120
+ padding-right: 1.5em // conforms with superfish
88
121
 
89
122
 
90
123
 
91
124
  /* styling arrows */
92
- .sf-depth-1 .sf-with-ul:after
93
- content: ''
94
- background-size: contain
95
- background-position: center
96
- width: rv(-1)
97
- height: rv(-4)
98
- position: absolute
99
- top: rv(0)
100
- margin-left: rv(-1)
101
- justify-content: center
102
-
103
-
104
- .sf-depth-2 .sf-with-ul:after
105
- content: ''
106
125
 
107
126
  /* superfish generated arrows */
108
127
  .sf-menu li .sf-sub-indicator
@@ -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
 
@@ -39,6 +39,6 @@
39
39
 
40
40
  // Adjust slide viewer active area
41
41
 
42
- $nav_clearance: ($slide_viewer_padding * 2) + $page_marker_width
42
+ $nav_clearance: calc((#{$slide_viewer_padding} * 2) + #{$page_marker_width})
43
43
 
44
44
  --slide-viewer-nav-clearance: 0 0 #{$nav_clearance} 0
@@ -39,6 +39,6 @@
39
39
 
40
40
  // Adjust slide viewer active area
41
41
 
42
- $nav_clearance: ($slide_viewer_padding * 2) + $page_marker_width
42
+ $nav_clearance: calc((#{$slide_viewer_padding} * 2) + #{$page_marker_width})
43
43
 
44
44
  --slide-viewer-nav-clearance: #{$nav_clearance} 0 0 0
@@ -24,7 +24,7 @@
24
24
  @import !fluid_type/_index_local_configuration
25
25
  @import standardized_text_collection/_index
26
26
  @import standardized_lists/_index
27
- @import callout_blocks/_index
27
+ @import callout_blocks/_index_local_configuration
28
28
 
29
29
  // 40 UI
30
30