Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5fdf938
Update local bootstrap/popper assets, update libraries
occupant Aug 21, 2025
9b7e40e
Update templates to use bootstrap 5 data attributes
occupant Aug 21, 2025
2762d94
Fix global nav button colour for all colour versions
occupant Aug 22, 2025
c7d62e1
Add additional style tweaks for display issues introduced in bootstrap5
occupant Aug 22, 2025
f5bc663
Update libraries to remove CDN assets, add local copies of CDN assets
occupant Aug 22, 2025
18f5940
Initial, AI generated visual regression test, currently D11 menu is b…
joelpittet Aug 22, 2025
69904b7
Remove reference to non-existant css file
occupant Aug 23, 2025
3d73088
Fixes #ubc7-global-utility button not changing when opened
occupant Aug 23, 2025
8ee4c83
Add visual regression test for global utility button
occupant Aug 25, 2025
00dc241
Update font-awesome-ie7.css
occupant Aug 25, 2025
6b5e6ab
Add visual regression test for global menu
occupant Aug 29, 2025
5461c63
Update global menu test to remove desktop constraint
occupant Aug 29, 2025
207e9be
Merge branch 'main' into bootstrap5-poc
joelpittet Sep 23, 2025
3bc687d
Update galactus.schema.yml
occupant Sep 23, 2025
ae108c6
Remove settings no longer defined in theme
occupant Sep 23, 2025
88778e6
Remove the final references to the CLF CDN, as well as prefetch
occupant Sep 23, 2025
be5ac15
Add copy-files-from-to to copy bootstrap and popper.js to the js/lib …
joelpittet Sep 23, 2025
ce97d50
Update theme-settings.php
occupant Sep 23, 2025
13d4e07
Move two unused settings to Legacy Settings region on theme settings …
occupant Sep 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions config/install/galactus.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ clf_one_sidebar_class_sidebar: 'span3'
clf_two_sidebar_class: 'span6'
clf_two_sidebar_class_sidebar1: 'span3'
clf_two_sidebar_class_sidebar2: 'span3'
clf_one_sidebar_front_class: 'span8'
clf_one_sidebar_front_class_sidebar: 'span4'
152 changes: 152 additions & 0 deletions config/schema/galactus.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,155 @@
galactus.settings:
type: theme_settings
label: 'galactus settings'
mapping:
clf_unitname:
type: text
label: 'Unit name'
clf_theme_colour:
type: string
label: 'Version'
constraints:
Choice:
# @see galactus_form_system_theme_settings_alter()
choices:
- 'wb'
- 'wg'
- 'gw'
- 'bw'
clf_layout:
type: string
label: 'Layout'
constraints:
Choice:
# @see galactus_form_system_theme_settings_alter()
choices:
- ''
- 'full'
- 'fluid'
clf_override:
type: boolean
label: 'Use Minimal CLF'
clf_source:
type: string
label: 'CLF Version and Source'
constraints:
Choice:
# @see galactus_form_system_theme_settings_alter()
choices:
- ''
- 'min'
- 'local'
clf_navoption:
type: boolean
label: 'Nav option'
clf_unit_campus:
type: string
label: 'Unit campus'
clf_faculty:
type: boolean
label: 'Unit is part of faculty'
clf_theme_unit_colour:
type: color_hex
label: 'Unit primary color'
clf_faculty_name:
type: text
label: 'Faculty name'
constraints:
Choice:
# @see galactus_form_system_theme_settings_alter()
choices:
- 'Allard School of Law'
- 'Faculty of Applied Science'
- 'Faculty of Arts'
- 'Faculty of Dentistry'
- 'Faculty of Education'
- 'Faculty of Forestry'
- 'Faculty of Land and Food Systems'
- 'Faculty of Pharmaceutical Sciences'
- 'Faculty of Science'
- 'Graduate and Postdoctoral Studies'
- 'Sauder School of Business'
unuglify:
type: boolean
label: 'Remove the gradient from the unit name area?'
clf_streetaddr:
type: text
label: 'Street address'
clf_locality:
type: text
label: 'Locality'
clf_region:
type: text
label: 'Region'
clf_country:
type: text
label: 'Country'
clf_postal:
type: text
label: 'Postal code'
clf_telephone:
type: string
label: 'Telephone number'
clf_fax:
type: string
label: 'Fax number'
clf_email:
type: email
label: 'Email'
clf_website:
type: text
label: 'Website'
clf_social_facebook:
type: text
label: 'Facebook account'
clf_social_twitter:
type: text
label: 'Twitter account'
clf_social_linkedin:
type: text
label: 'Linkedin account'
clf_social_instagram:
type: text
label: 'Instagram account'
clf_social_youtube:
type: text
label: 'Youtube account'
clf_searchdomain:
type: text
label: 'Search domain'
clf_searchlabel:
type: text
label: 'Search label'
clf_content_row_class:
type: text
label: 'Content CSS Grid Classes'
clf_navigation_placement:
type: text
label: 'General Navigation Options'
constraints:
Choice:
# @see galactus_form_system_theme_settings_alter()
choices:
- 'default'
- 'drawer--push-left'
- 'drawer--cover-left'
- 'drawer--push-right'
- 'drawer--cover-right'
clf_no_sidebar_class:
type: text
label: 'Grid classes to use when no sidebars'
clf_one_sidebar_class:
type: text
label: 'Grid classes to use for content when one sidebar'
clf_one_sidebar_class_sidebar:
type: text
label: 'Grid classes to use for sidebar when one sidebar'
clf_two_sidebar_class:
type: text
label: 'Grid classes to use for content when two sidebars'
clf_two_sidebar_class_sidebar1:
type: text
label: 'Grid classes to use for first sidebar when two sidebars'
clf_two_sidebar_class_sidebar2:
type: text
label: 'Grid classes to use for second sidebar when two sidebars'
1 change: 0 additions & 1 deletion css/clf.7.local.css
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,6 @@ a#ubc7-global-utility-no-script {

#ubc7-global-utility button span.opened,
#ubc7-global-utility button[aria-expanded="true"] span {
background-color: #002145;
background-position: -1167px 7px;
}

Expand Down
70 changes: 69 additions & 1 deletion css/clf.drupal.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,77 @@ a.close:hover {
border-color: #00162f;
}

/* utilities from bootstrap5 for visibility */
.collapse:not(.show):not(.in) {
display: none;
}

.collapsing {
position: relative;
overflow: hidden;
height: 0;
transition: height 0.35s ease;
}

.collapse.in,
.collapse.show {
height: auto;
}

.open > .dropdown-menu,
.dropdown-menu.show {
display: block;
}

/* updating ubc7-unit-navigation mobile trigger from an a tag to a button tag alters layout, so we need to reassert the styling */
#ubc7-unit .navbar .btn-navbar {
height: 35px;
width: 45px;
padding: 11px 13px;
}
}

/* remove CLF visibility rule from global menu - the old '.in' class is no longer used, collapse behaviour now has a '.collapsing' transition state and '.show' visible state */
#ubc7-global-menu #ubc7-search input,
#ubc7-global-menu #ubc7-search button,
#ubc7-global-menu #ubc7-global-header a {
visibility: visible;
}

/* correct issue with bootstrap 5 and boostrap 2's use of the '.show' class. In bootstrap 5, this class is used to change elements to 'display: block' */
.btn-group .btn.show {
display: inline-flex;
place-items: center;
place-content: center;
}

/* override to ensure the desktop menu is visible on desktop regardless of collapse state */
@media (min-width: 980px) {
#ubc7-unit-navigation {
display: block;
}
}

/* fix the global nav trigger arrow not changing direction when opened due to missing '.open' class */

#ubc7-global-utility button[aria-expanded="true"] span {
background-position: -1167px 7px;
}

@media screen and (max-width: 379px) {
#ubc7-global-utility button[aria-expanded="true"] span {
background-position: -1163px -296px;
}
}

@media screen and (max-width: 767px) {
#ubc7-global-utility button[aria-expanded="true"] span {
background-position: -1163px -291px;
}
}

@media screen and (min-width: 1200px) {
#ubc7-global-utility button[aria-expanded="true"] span {
background-position: -1167px 11px;
}
}

Loading