From 0fc8ab58df7a221fe981d3cb5b4fa2ac25aee1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20D=C3=ADaz=20Soto?= Date: Thu, 20 Jun 2024 11:45:05 -0600 Subject: [PATCH 1/5] feat(shs-5631): uninstall legacy themes and remove related configuration --- ...ock.exposed_form_hs_search_search_page.yml | 30 ------------------- ...lock.exposed_form_hs_searchsearch_page.yml | 24 --------------- config/default/block.block.hs_about.yml | 29 ------------------ .../default/block.block.hs_connectwithus.yml | 29 ------------------ config/default/block.block.hs_contactus.yml | 29 ------------------ config/default/block.block.hs_people.yml | 29 ------------------ .../block.block.su_humsci_theme_branding.yml | 25 ---------------- .../block.block.su_humsci_theme_content.yml | 22 -------------- .../block.block.su_humsci_theme_footer.yml | 27 ----------------- .../block.block.su_humsci_theme_help.yml | 22 -------------- ...ck.block.su_humsci_theme_local_actions.yml | 20 ------------- ...lock.block.su_humsci_theme_local_tasks.yml | 22 -------------- .../block.block.su_humsci_theme_main_menu.yml | 28 ----------------- ...block.block.su_humsci_theme_masquerade.yml | 27 ----------------- .../block.block.su_humsci_theme_messages.yml | 22 -------------- ...block.block.su_humsci_theme_page_title.yml | 27 ----------------- config/default/config_ignore.settings.yml | 1 - config/default/core.extension.yml | 1 - config/envs/local/config_ignore.settings.yml | 1 - .../su_humsci_profile.install | 19 ++++++++++++ 20 files changed, 19 insertions(+), 415 deletions(-) delete mode 100644 config/default/block.block.exposed_form_hs_search_search_page.yml delete mode 100644 config/default/block.block.exposed_form_hs_searchsearch_page.yml delete mode 100644 config/default/block.block.hs_about.yml delete mode 100644 config/default/block.block.hs_connectwithus.yml delete mode 100644 config/default/block.block.hs_contactus.yml delete mode 100644 config/default/block.block.hs_people.yml delete mode 100644 config/default/block.block.su_humsci_theme_branding.yml delete mode 100644 config/default/block.block.su_humsci_theme_content.yml delete mode 100644 config/default/block.block.su_humsci_theme_footer.yml delete mode 100644 config/default/block.block.su_humsci_theme_help.yml delete mode 100644 config/default/block.block.su_humsci_theme_local_actions.yml delete mode 100644 config/default/block.block.su_humsci_theme_local_tasks.yml delete mode 100644 config/default/block.block.su_humsci_theme_main_menu.yml delete mode 100644 config/default/block.block.su_humsci_theme_masquerade.yml delete mode 100644 config/default/block.block.su_humsci_theme_messages.yml delete mode 100644 config/default/block.block.su_humsci_theme_page_title.yml diff --git a/config/default/block.block.exposed_form_hs_search_search_page.yml b/config/default/block.block.exposed_form_hs_search_search_page.yml deleted file mode 100644 index dbf3d2f55a..0000000000 --- a/config/default/block.block.exposed_form_hs_search_search_page.yml +++ /dev/null @@ -1,30 +0,0 @@ -uuid: fe8462d6-50fe-4988-8f59-d7eeddf90052 -langcode: en -status: true -dependencies: - config: - - views.view.hs_search - module: - - block_class - - system - - views - theme: - - su_humsci_theme -id: exposed_form_hs_search_search_page -theme: su_humsci_theme -region: content -weight: 0 -provider: null -plugin: 'views_exposed_filter_block:hs_search-search_page' -settings: - id: 'views_exposed_filter_block:hs_search-search_page' - label: '' - label_display: visible - provider: views - views_label: '' -visibility: - request_path: - id: request_path - negate: false - context_mapping: { } - pages: /search diff --git a/config/default/block.block.exposed_form_hs_searchsearch_page.yml b/config/default/block.block.exposed_form_hs_searchsearch_page.yml deleted file mode 100644 index 57f39057b1..0000000000 --- a/config/default/block.block.exposed_form_hs_searchsearch_page.yml +++ /dev/null @@ -1,24 +0,0 @@ -uuid: 1e244051-4fea-4a30-a32f-63a61a51fcb1 -langcode: en -status: true -dependencies: - config: - - views.view.hs_search - module: - - block_class - - views - theme: - - su_humsci_theme -id: exposed_form_hs_searchsearch_page -theme: su_humsci_theme -region: search -weight: 0 -provider: null -plugin: 'views_exposed_filter_block:hs_search-search_page' -settings: - id: 'views_exposed_filter_block:hs_search-search_page' - label: '' - label_display: '0' - provider: views - views_label: '' -visibility: { } diff --git a/config/default/block.block.hs_about.yml b/config/default/block.block.hs_about.yml deleted file mode 100644 index 31b8285091..0000000000 --- a/config/default/block.block.hs_about.yml +++ /dev/null @@ -1,29 +0,0 @@ -uuid: 2975689e-d6cb-4b01-8755-59423e751d66 -langcode: en -status: true -dependencies: - content: - - 'block_content:hs_basic_block:4f4fde75-b73c-4494-850b-e61e19776137' - module: - - block_class - - block_content - theme: - - su_humsci_theme -third_party_settings: - block_class: - classes: decanter-width-one-fourth -id: hs_about -theme: su_humsci_theme -region: footer -weight: -6 -provider: null -plugin: 'block_content:4f4fde75-b73c-4494-850b-e61e19776137' -settings: - id: 'block_content:4f4fde75-b73c-4494-850b-e61e19776137' - label: About - label_display: visible - provider: block_content - status: true - info: '' - view_mode: full -visibility: { } diff --git a/config/default/block.block.hs_connectwithus.yml b/config/default/block.block.hs_connectwithus.yml deleted file mode 100644 index ac58658799..0000000000 --- a/config/default/block.block.hs_connectwithus.yml +++ /dev/null @@ -1,29 +0,0 @@ -uuid: 0f12ffa7-87cb-4a3d-89fc-b173eab76260 -langcode: en -status: true -dependencies: - content: - - 'block_content:hs_basic_block:985ebfed-df24-487c-8602-51dc3bdcde84' - module: - - block_class - - block_content - theme: - - su_humsci_theme -third_party_settings: - block_class: - classes: decanter-width-one-fourth -id: hs_connectwithus -theme: su_humsci_theme -region: footer -weight: -4 -provider: null -plugin: 'block_content:985ebfed-df24-487c-8602-51dc3bdcde84' -settings: - id: 'block_content:985ebfed-df24-487c-8602-51dc3bdcde84' - label: 'Connect With Us' - label_display: visible - provider: block_content - status: true - info: '' - view_mode: full -visibility: { } diff --git a/config/default/block.block.hs_contactus.yml b/config/default/block.block.hs_contactus.yml deleted file mode 100644 index a31a45ccbe..0000000000 --- a/config/default/block.block.hs_contactus.yml +++ /dev/null @@ -1,29 +0,0 @@ -uuid: aaf73945-f3bb-4bb6-b785-abace593d5d5 -langcode: en -status: true -dependencies: - content: - - 'block_content:hs_basic_block:ec7040d9-e884-461d-a529-49a78fa01d25' - module: - - block_class - - block_content - theme: - - su_humsci_theme -third_party_settings: - block_class: - classes: decanter-width-one-fourth -id: hs_contactus -theme: su_humsci_theme -region: footer -weight: -3 -provider: null -plugin: 'block_content:ec7040d9-e884-461d-a529-49a78fa01d25' -settings: - id: 'block_content:ec7040d9-e884-461d-a529-49a78fa01d25' - label: 'Contact Us' - label_display: visible - provider: block_content - status: true - info: '' - view_mode: full -visibility: { } diff --git a/config/default/block.block.hs_people.yml b/config/default/block.block.hs_people.yml deleted file mode 100644 index 7a960118b6..0000000000 --- a/config/default/block.block.hs_people.yml +++ /dev/null @@ -1,29 +0,0 @@ -uuid: 49516a40-796b-408d-b891-7fa2e9b0ff60 -langcode: en -status: true -dependencies: - content: - - 'block_content:hs_basic_block:2b7335a6-d3a4-468b-b515-9b1e2be558bc' - module: - - block_class - - block_content - theme: - - su_humsci_theme -third_party_settings: - block_class: - classes: decanter-width-one-fourth -id: hs_people -theme: su_humsci_theme -region: footer -weight: -5 -provider: null -plugin: 'block_content:2b7335a6-d3a4-468b-b515-9b1e2be558bc' -settings: - id: 'block_content:2b7335a6-d3a4-468b-b515-9b1e2be558bc' - label: People - label_display: visible - provider: block_content - status: true - info: '' - view_mode: full -visibility: { } diff --git a/config/default/block.block.su_humsci_theme_branding.yml b/config/default/block.block.su_humsci_theme_branding.yml deleted file mode 100644 index 1d13147091..0000000000 --- a/config/default/block.block.su_humsci_theme_branding.yml +++ /dev/null @@ -1,25 +0,0 @@ -uuid: 025f2db0-a3a6-4e99-9a9a-db190657c76c -langcode: en -status: true -dependencies: - module: - - system - theme: - - su_humsci_theme -_core: - default_config_hash: TgAwjAhbo03mRiTPNzXKNA6CgpAjayATZ3Ui2DpNTY0 -id: su_humsci_theme_branding -theme: su_humsci_theme -region: header -weight: 0 -provider: null -plugin: system_branding_block -settings: - id: system_branding_block - label: 'Site branding' - label_display: '0' - provider: system - use_site_logo: true - use_site_name: true - use_site_slogan: true -visibility: { } diff --git a/config/default/block.block.su_humsci_theme_content.yml b/config/default/block.block.su_humsci_theme_content.yml deleted file mode 100644 index e84c535237..0000000000 --- a/config/default/block.block.su_humsci_theme_content.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: e82446dd-23f3-43a5-b0f4-d40a533a336b -langcode: en -status: true -dependencies: - module: - - system - theme: - - su_humsci_theme -_core: - default_config_hash: OLvNDDzewXPxlm6tSQO9AiwOpBPkUzRzlVapESVO4nQ -id: su_humsci_theme_content -theme: su_humsci_theme -region: content -weight: 0 -provider: null -plugin: system_main_block -settings: - id: system_main_block - label: 'Main page content' - label_display: '0' - provider: system -visibility: { } diff --git a/config/default/block.block.su_humsci_theme_footer.yml b/config/default/block.block.su_humsci_theme_footer.yml deleted file mode 100644 index 4cd356ed05..0000000000 --- a/config/default/block.block.su_humsci_theme_footer.yml +++ /dev/null @@ -1,27 +0,0 @@ -uuid: 6d8fca7c-6e2b-4db3-9c63-899289954b24 -langcode: en -status: true -dependencies: - config: - - system.menu.footer - module: - - system - theme: - - su_humsci_theme -_core: - default_config_hash: U4ZrT9JspRQEFPIi8WPTe2yagUyZQiMNFwQZ7xZtL5k -id: su_humsci_theme_footer -theme: su_humsci_theme -region: footer -weight: -7 -provider: null -plugin: 'system_menu_block:footer' -settings: - id: 'system_menu_block:footer' - label: 'Footer menu' - label_display: '0' - provider: system - level: 1 - depth: 0 - expand_all_items: false -visibility: { } diff --git a/config/default/block.block.su_humsci_theme_help.yml b/config/default/block.block.su_humsci_theme_help.yml deleted file mode 100644 index 68504699a5..0000000000 --- a/config/default/block.block.su_humsci_theme_help.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: a0fcb6c2-9a46-4682-bddc-34f4889c278b -langcode: en -status: true -dependencies: - module: - - help - theme: - - su_humsci_theme -_core: - default_config_hash: 7BtoEqJPxfoSIZoLVZeS6qis4pOPAGwQduLVxDe9hlg -id: su_humsci_theme_help -theme: su_humsci_theme -region: help -weight: -30 -provider: null -plugin: help_block -settings: - id: help_block - label: Help - label_display: '0' - provider: help -visibility: { } diff --git a/config/default/block.block.su_humsci_theme_local_actions.yml b/config/default/block.block.su_humsci_theme_local_actions.yml deleted file mode 100644 index cb30e0aabf..0000000000 --- a/config/default/block.block.su_humsci_theme_local_actions.yml +++ /dev/null @@ -1,20 +0,0 @@ -uuid: cb04192a-9903-4e66-a1c0-5f1a31d24436 -langcode: en -status: true -dependencies: - theme: - - su_humsci_theme -_core: - default_config_hash: INh1K21VTmuJ_Z77mnYKl2v7FBKzpaiR5m_X5EJ_Zrw -id: su_humsci_theme_local_actions -theme: su_humsci_theme -region: content -weight: -20 -provider: null -plugin: local_actions_block -settings: - id: local_actions_block - label: 'Primary admin actions' - label_display: '0' - provider: core -visibility: { } diff --git a/config/default/block.block.su_humsci_theme_local_tasks.yml b/config/default/block.block.su_humsci_theme_local_tasks.yml deleted file mode 100644 index 8e616d0bc8..0000000000 --- a/config/default/block.block.su_humsci_theme_local_tasks.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: ab8cfd4b-b68d-428e-81e6-aa809da521b1 -langcode: en -status: true -dependencies: - theme: - - su_humsci_theme -_core: - default_config_hash: 8nR0Fpy3b231jFCvpZwnU1J2BoAqOeVH0jpToo_Ybj4 -id: su_humsci_theme_local_tasks -theme: su_humsci_theme -region: content -weight: -40 -provider: null -plugin: local_tasks_block -settings: - id: local_tasks_block - label: Tabs - label_display: '0' - provider: core - primary: true - secondary: true -visibility: { } diff --git a/config/default/block.block.su_humsci_theme_main_menu.yml b/config/default/block.block.su_humsci_theme_main_menu.yml deleted file mode 100644 index 964fd72b9c..0000000000 --- a/config/default/block.block.su_humsci_theme_main_menu.yml +++ /dev/null @@ -1,28 +0,0 @@ -uuid: 775df0b8-e6f0-4e8b-9067-6688b693b4b4 -langcode: en -status: true -dependencies: - config: - - system.menu.main - module: - - block_class - - system - theme: - - su_humsci_theme -_core: - default_config_hash: KCENbCpTWbHGshxBisDQrMiEtvwJimjwNZydjbQn8WQ -id: su_humsci_theme_main_menu -theme: su_humsci_theme -region: menu -weight: 0 -provider: null -plugin: 'system_menu_block:main' -settings: - id: 'system_menu_block:main' - label: 'Main navigation' - label_display: '0' - provider: system - level: 1 - depth: 2 - expand_all_items: false -visibility: { } diff --git a/config/default/block.block.su_humsci_theme_masquerade.yml b/config/default/block.block.su_humsci_theme_masquerade.yml deleted file mode 100644 index 45a765539e..0000000000 --- a/config/default/block.block.su_humsci_theme_masquerade.yml +++ /dev/null @@ -1,27 +0,0 @@ -uuid: 5fa72604-bf67-47de-9209-b26c956f887c -langcode: en -status: true -dependencies: - module: - - masquerade - - system - theme: - - su_humsci_theme -id: su_humsci_theme_masquerade -theme: su_humsci_theme -region: content -weight: 0 -provider: null -plugin: masquerade -settings: - id: masquerade - label: Masquerade - label_display: visible - provider: masquerade - show_unmasquerade_link: false -visibility: - request_path: - id: request_path - negate: false - context_mapping: { } - pages: '/user/*' diff --git a/config/default/block.block.su_humsci_theme_messages.yml b/config/default/block.block.su_humsci_theme_messages.yml deleted file mode 100644 index 7486a7ea0c..0000000000 --- a/config/default/block.block.su_humsci_theme_messages.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: f155e51d-7490-4a8a-afa2-a9b060bf6e36 -langcode: en -status: true -dependencies: - module: - - system - theme: - - su_humsci_theme -_core: - default_config_hash: SxFrUXCwnbLDb8G3jWaa47iDtIP62fBHWjpcSzohabY -id: su_humsci_theme_messages -theme: su_humsci_theme -region: highlighted -weight: 0 -provider: null -plugin: system_messages_block -settings: - id: system_messages_block - label: 'Status messages' - label_display: '0' - provider: system -visibility: { } diff --git a/config/default/block.block.su_humsci_theme_page_title.yml b/config/default/block.block.su_humsci_theme_page_title.yml deleted file mode 100644 index 162c02a9b9..0000000000 --- a/config/default/block.block.su_humsci_theme_page_title.yml +++ /dev/null @@ -1,27 +0,0 @@ -uuid: 0c49e21e-69bd-4be9-9147-ba13a53231ca -langcode: en -status: true -dependencies: - module: - - system - theme: - - su_humsci_theme -_core: - default_config_hash: a4moGbv6UA5goxVuMTkffURbb8KBThCkMbTP6sRiSmg -id: su_humsci_theme_page_title -theme: su_humsci_theme -region: content -weight: -50 -provider: null -plugin: page_title_block -settings: - id: page_title_block - label: 'Page title' - label_display: '0' - provider: core -visibility: - request_path: - id: request_path - negate: true - context_mapping: { } - pages: '/node/*' diff --git a/config/default/config_ignore.settings.yml b/config/default/config_ignore.settings.yml index e19d49788f..9cf7aa8e7a 100644 --- a/config/default/config_ignore.settings.yml +++ b/config/default/config_ignore.settings.yml @@ -6,7 +6,6 @@ ignored_config_entities: - '~block.block.claro*' - '~block.block.gin*' - '~block.block.su_humsci_gin_admin*' - - '~block.block.su_humsci_theme*' - '~block.block.humsci_basic_*' - '~block.block.humsci_colorful_*' - '~block.block.humsci_traditional_*' diff --git a/config/default/core.extension.yml b/config/default/core.extension.yml index 21225abb9d..e96a29123d 100644 --- a/config/default/core.extension.yml +++ b/config/default/core.extension.yml @@ -279,7 +279,6 @@ theme: gin: 0 su_humsci_gin_admin: 0 stanford_basic: 0 - su_humsci_theme: 0 humsci_basic: 0 humsci_colorful: 0 humsci_traditional: 0 diff --git a/config/envs/local/config_ignore.settings.yml b/config/envs/local/config_ignore.settings.yml index 62b3cce761..49ed31d4c0 100644 --- a/config/envs/local/config_ignore.settings.yml +++ b/config/envs/local/config_ignore.settings.yml @@ -2,7 +2,6 @@ _core: default_config_hash: UVH1aJ4b44UM-VdPVN7hNNuuVqfReJxwfVeDQH1Hvsk ignored_config_entities: - 'system.theme:default' - - '~block.block.su_humsci_theme_*' - '~block.block.su_humsci_admin_*' - '~block.block.seven_*' - '~block.block.humsci_basic_*' diff --git a/docroot/profiles/humsci/su_humsci_profile/su_humsci_profile.install b/docroot/profiles/humsci/su_humsci_profile/su_humsci_profile.install index fd151271b8..18dd16466d 100644 --- a/docroot/profiles/humsci/su_humsci_profile/su_humsci_profile.install +++ b/docroot/profiles/humsci/su_humsci_profile/su_humsci_profile.install @@ -845,3 +845,22 @@ function _su_humsci_profile_get_uuid(string $config_name): string|null { $config = $config_storage->read($config_name); return $config['uuid'] ?? NULL; } + +/** +* Uninstall legacy themes. +*/ +function su_humsci_profile_update_9705() { + $extension_config = \Drupal::service('config.factory')->get('core.extension'); + $legacy_themes = [ + 'archaeology', + 'francestanford', + 'mathematics', + 'su_humsci_subtheme', + 'su_humsci_theme', + ]; + // Filter out the themes that are not installed. + $installed_themes = array_filter($legacy_themes, function ($theme) use ($extension_config) { + return $extension_config->get("theme.{$theme}") !== NULL; + }); + \Drupal::service('theme_installer')->uninstall($installed_themes); +} From 4464df6cabd703cf9b9ec2b4866999e1ac07126f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20D=C3=ADaz=20Soto?= Date: Fri, 21 Jun 2024 18:27:56 -0600 Subject: [PATCH 2/5] fix(shs-5631): remove references to su_humsci_theme in hs_layouts module --- .../humsci/hs_layouts/hs_layouts.libraries.yml | 13 ++++++++++--- .../patterns/masonry/masonry.ui_patterns.yml | 2 +- .../hs_layouts/scss/three-column-w-image.scss | 16 +++++++++++++--- .../src/Plugin/Layout/HumsciLayout.php | 2 +- .../hs_layouts/src/TwigExtension/TwigFilters.php | 2 +- 5 files changed, 26 insertions(+), 9 deletions(-) diff --git a/docroot/modules/humsci/hs_layouts/hs_layouts.libraries.yml b/docroot/modules/humsci/hs_layouts/hs_layouts.libraries.yml index fd4288226c..61d574e51b 100644 --- a/docroot/modules/humsci/hs_layouts/hs_layouts.libraries.yml +++ b/docroot/modules/humsci/hs_layouts/hs_layouts.libraries.yml @@ -1,15 +1,22 @@ three_column_w_image: - version: VERSION css: layout: css/three-column-w-image.css: {} news_style: - version: VERSION css: layout: css/news-style.css: {} layout_builder_admin: - version: VERSION css: theme: css/hs_layouts.layout_builder_admin.css: {} +images_loaded: + remote: https://imagesloaded.desandro.com + license: + name: imagesLoaded + url: https://imagesloaded.desandro.com/#mit-license + js: + //imagesloaded.desandro.com/imagesloaded.pkgd.min.js: {type: external, minified: true } + dependencies: + - core/jquery + diff --git a/docroot/modules/humsci/hs_layouts/patterns/masonry/masonry.ui_patterns.yml b/docroot/modules/humsci/hs_layouts/patterns/masonry/masonry.ui_patterns.yml index 1eaac17c40..a5bb9b1f2c 100644 --- a/docroot/modules/humsci/hs_layouts/patterns/masonry/masonry.ui_patterns.yml +++ b/docroot/modules/humsci/hs_layouts/patterns/masonry/masonry.ui_patterns.yml @@ -46,6 +46,6 @@ masonry: //unpkg.com/masonry-layout@4.2.1/dist/masonry.pkgd.min.js: {type: external, minified: true } js/masonry.js: {} dependencies: - - su_humsci_theme/images_loaded + - hs_layouts/images_loaded use: "@hs_layouts/masonry/masonry.html.twig" diff --git a/docroot/modules/humsci/hs_layouts/scss/three-column-w-image.scss b/docroot/modules/humsci/hs_layouts/scss/three-column-w-image.scss index 3688a6537a..74052e83c5 100644 --- a/docroot/modules/humsci/hs_layouts/scss/three-column-w-image.scss +++ b/docroot/modules/humsci/hs_layouts/scss/three-column-w-image.scss @@ -4,9 +4,19 @@ // Page layout: Three column with image // -@import - 'decanter-no-markup', - '../../../../themes/humsci/su_humsci_theme/scss/utilities/mixins/index'; +@import "decanter-no-markup"; + +@mixin accent-dash($dash-height, $dash-color, $dash-width) { + &::before { + border-bottom: $dash-height solid $dash-color; + content: ""; + display: inline-block; + vertical-align: middle; + width: $dash-width; + + @include margin(null 10px null null); + } +} .three-column-w-image { .image-wrapper { diff --git a/docroot/modules/humsci/hs_layouts/src/Plugin/Layout/HumsciLayout.php b/docroot/modules/humsci/hs_layouts/src/Plugin/Layout/HumsciLayout.php index 73841972dd..37f0bcf781 100644 --- a/docroot/modules/humsci/hs_layouts/src/Plugin/Layout/HumsciLayout.php +++ b/docroot/modules/humsci/hs_layouts/src/Plugin/Layout/HumsciLayout.php @@ -9,7 +9,7 @@ /** * Class HumsciLayout. * - * @package Drupal\su_humsci_theme\Plugin + * @package Drupal\hs_layouts\Plugin */ class HumsciLayout extends LayoutDefault implements PluginFormInterface { diff --git a/docroot/modules/humsci/hs_layouts/src/TwigExtension/TwigFilters.php b/docroot/modules/humsci/hs_layouts/src/TwigExtension/TwigFilters.php index db526e94e8..be5a0a313a 100644 --- a/docroot/modules/humsci/hs_layouts/src/TwigExtension/TwigFilters.php +++ b/docroot/modules/humsci/hs_layouts/src/TwigExtension/TwigFilters.php @@ -8,7 +8,7 @@ /** * Additional twig filters for custom functionality. * - * @package Drupal\su_humsci_theme\TwigExtension + * @package Drupal\hs_layouts\TwigExtension */ class TwigFilters extends AbstractExtension { From bac4f2bfbad5ddd35fa44e7a3d06efca71212610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20D=C3=ADaz=20Soto?= Date: Tue, 25 Jun 2024 15:18:49 -0600 Subject: [PATCH 3/5] chore(shs-5631): update documentation to remove references to legacy themes --- .../docs/config-override-deployment.md | 34 ++----------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/docroot/themes/humsci/humsci_basic/docs/config-override-deployment.md b/docroot/themes/humsci/humsci_basic/docs/config-override-deployment.md index fe3306c85a..3d78f52a2c 100644 --- a/docroot/themes/humsci/humsci_basic/docs/config-override-deployment.md +++ b/docroot/themes/humsci/humsci_basic/docs/config-override-deployment.md @@ -1,14 +1,6 @@ # Deploying new components without impacting legacy and existing site configuration(s) -Stanford University Humanities & Sciences supports the creation of multiple websites. Sparkbox is assisting with the implementation of new themes to support updates to their client's sites. The themes that currently exist can be categorized as legacy and current. - -## Legacy site themes - -* SU_HUMSCI_THEME (base theme) - * Archaeology - * France-Stanford - * Mathematics - * Stanford HumSci SubTheme +Stanford University Humanities & Sciences supports the creation of multiple websites. Sparkbox is assisting with the implementation of new themes to support updates to their client's sites. ## Current site themes @@ -19,16 +11,13 @@ Stanford University Humanities & Sciences supports the creation of multiple webs ## Post Update functions -Post update functions allow us to override Humsci Basic theme settings. New components / paragraph type configurations and exisiting component configurations are available to all sites (legacy & current). When configurations are added or updated, we may not want those changes on all sites. - -Post update functions allow us to target and prevent new configurations from being available for use on legacy sites. We need to prevent new features from breaking the functionality and presentation of legacy sites. +Post update functions allow us to override Humsci Basic theme settings. New components / paragraph type configurations and exisiting component configurations are available to all sites. When configurations are added or updated, we may not want those changes on all sites. When you would like to add a new Post update function you will need to to update the file below: https://github.com/SU-HSDO/suhumsci/blob/develop/docroot/profiles/humsci/su_humsci_profile/su_humsci_profile.post_update.php -* You'll want to add a new function with the prefix `su_humsci_provile_post_update` to the function with a number assigned to the new function, example `su_humsci_profile_post_update_9013`. We assign a number that would be the next logical order to what has been added ex: 9012, 9013, 9014.. +* You'll want to add a new function with the prefix `su_humsci_profile_post_update` to the function with a number assigned to the new function, example `su_humsci_profile_post_update_9013`. We assign a number that would be the next logical order to what has been added ex: 9012, 9013, 9014.. * You will need to write the function to disable or enable the component depending on how which option you'd like to do. -* You will also need to add a line for legacy if your function needs to remove the component from legacy only or on both current and legacy themes. ### Example(s) @@ -38,20 +27,3 @@ _su_humsci_profile_enable_paragraph('node', 'hs_basic_page', 'field_hs_page_comp ``` * How you fill in the function: `('entity_type', 'entity_name', 'field_region_name', 'field_name')`. - -#### Legacy Example info - -Focusing specifically on the legacy themes only you can use an `if` statement for the legacy theme profile. - -```php -function su_humsci_profile_post_update_9011() { - if (_su_humsci_profile_is_legacy_theme()) { - _su_humsci_profile_disable_paragraph('paragraph', 'hs_row', 'field_hs_row_components', 'hs_timeline'); - return; - } - - _su_humsci_profile_enable_paragraph('paragraph', 'hs_row', 'field_hs_row_components', 'hs_timeline'); -} -``` - -* This function is filled out the same as the example above it, but it uses an `if` statement to disable the paragraph component for `hs_timeline` on Legacy themes only and enables it on the current themes. From aa86ab7067ce240eff72e574f984dc19194c4f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20D=C3=ADaz=20Soto?= Date: Tue, 25 Jun 2024 11:59:52 -0600 Subject: [PATCH 4/5] feat: remove legacy themes files --- .../themes/humsci/archaeology/Gruntfile.js | 185 --------- .../humsci/archaeology/archaeology.info.yml | 27 -- .../archaeology/archaeology.libraries.yml | 5 - .../humsci/archaeology/archaeology.theme | 6 - .../themes/humsci/archaeology/css/base.css | 1 - .../humsci/archaeology/css/ckeditor.css | 1 - docroot/themes/humsci/archaeology/logo.svg | 19 - .../humsci/archaeology/patterns/.gitkeep | 0 .../themes/humsci/archaeology/scss/base.scss | 158 -------- .../humsci/archaeology/scss/ckeditor.scss | 4 - .../themes/humsci/francestanford/Gruntfile.js | 185 --------- .../themes/humsci/francestanford/css/base.css | 1 - .../humsci/francestanford/css/ckeditor.css | 1 - .../francestanford/francestanford.info.yml | 27 -- .../francestanford.libraries.yml | 4 - .../francestanford/francestanford.theme | 6 - docroot/themes/humsci/francestanford/logo.svg | 19 - .../humsci/francestanford/patterns/.gitkeep | 0 .../humsci/francestanford/scss/base.scss | 55 --- .../humsci/francestanford/scss/ckeditor.scss | 4 - .../themes/humsci/mathematics/Gruntfile.js | 187 --------- .../themes/humsci/mathematics/css/base.css | 1 - .../humsci/mathematics/css/ckeditor.css | 1 - .../mathematics/css/row-with-background.css | 1 - docroot/themes/humsci/mathematics/logo.svg | 19 - .../humsci/mathematics/mathematics.info.yml | 26 -- .../mathematics/mathematics.libraries.yml | 9 - .../humsci/mathematics/mathematics.theme | 17 - .../humsci/mathematics/patterns/.gitkeep | 0 .../molecules/dated-event/css/dated-event.css | 1 - .../dated-event/dated-event.html.twig | 38 -- .../dated-event/dated-event.ui_patterns.yml | 34 -- .../dated-event/scss/dated-event.scss | 80 ---- .../themes/humsci/mathematics/scss/base.scss | 57 --- .../humsci/mathematics/scss/ckeditor.scss | 4 - .../mathematics/scss/row-with-background.scss | 255 ------------ .../humsci/su_humsci_subtheme/css/base.css | 1 - .../su_humsci_subtheme/css/ckeditor.css | 1 - .../themes/humsci/su_humsci_subtheme/logo.svg | 19 - .../su_humsci_subtheme/patterns/.gitkeep | 0 .../humsci/su_humsci_subtheme/scss/base.scss | 4 - .../su_humsci_subtheme/scss/ckeditor.scss | 3 - .../su_humsci_subtheme.info.yml | 28 -- .../su_humsci_subtheme.libraries.yml | 4 - .../su_humsci_subtheme.theme | 6 - .../humsci/su_humsci_theme/Gruntfile.js | 187 --------- .../humsci/su_humsci_theme/color/color.inc | 130 ------ .../humsci/su_humsci_theme/color/preview.css | 1 - .../humsci/su_humsci_theme/color/preview.html | 90 ----- .../humsci/su_humsci_theme/color/preview.js | 54 --- .../humsci/su_humsci_theme/color/preview.scss | 162 -------- .../block.block.su_humsci_theme_branding.yml | 22 -- .../block.block.su_humsci_theme_content.yml | 19 - .../block.block.su_humsci_theme_footer.yml | 23 -- .../block.block.su_humsci_theme_help.yml | 19 - ...ck.block.su_humsci_theme_local_actions.yml | 17 - ...lock.block.su_humsci_theme_local_tasks.yml | 19 - .../block.block.su_humsci_theme_main_menu.yml | 23 -- .../block.block.su_humsci_theme_messages.yml | 19 - ...block.block.su_humsci_theme_page_title.yml | 24 -- .../block.block.su_humsci_theme_search.yml | 19 - ...tity_view_mode.node.hs_horizontal_card.yml | 10 - ...entity_view_mode.node.hs_vertical_card.yml | 10 - .../humsci/su_humsci_theme/css/base/index.css | 1 - .../humsci/su_humsci_theme/css/ckeditor.css | 1 - .../humsci/su_humsci_theme/css/colors.css | 1 - .../css/components/atoms/index.css | 1 - .../css/components/molecules/index.css | 1 - .../css/img/external-link-hover.png | Bin 1730 -> 0 bytes .../css/img/external-link-hover.svg | 22 -- .../su_humsci_theme/css/img/external-link.png | Bin 1725 -> 0 bytes .../su_humsci_theme/css/img/external-link.svg | 22 -- .../css/nodes/hs_basic_page.css | 1 - .../su_humsci_theme/css/nodes/hs_person.css | 1 - .../css/paragraphs/hs_carousel.css | 1 - .../humsci/su_humsci_theme/img/loading.png | Bin 2548 -> 0 bytes .../humsci/su_humsci_theme/img/search.svg | 8 - .../humsci/su_humsci_theme/js/hover_menu.js | 106 ----- .../su_humsci_theme/js/nodes/hs_person.js | 13 - .../su_humsci_theme/js/su_humsci_theme.js | 66 ---- .../themes/humsci/su_humsci_theme/logo.svg | 19 - .../humsci/su_humsci_theme/screenshot.png | Bin 94325 -> 0 bytes .../humsci/su_humsci_theme/scss/base/.gitkeep | 0 .../su_humsci_theme/scss/base/_debug.scss | 27 -- .../su_humsci_theme/scss/base/_footer.scss | 22 -- .../su_humsci_theme/scss/base/_global.scss | 332 ---------------- .../su_humsci_theme/scss/base/_header.scss | 30 -- .../scss/base/_paragraphs.scss | 48 --- .../su_humsci_theme/scss/base/_search.scss | 84 ---- .../scss/base/_site-title-lockup.scss | 17 - .../su_humsci_theme/scss/base/index.scss | 16 - .../humsci/su_humsci_theme/scss/ckeditor.scss | 169 -------- .../humsci/su_humsci_theme/scss/colors.scss | 145 ------- .../scss/components/atoms/.gitkeep | 0 .../components/atoms/_contextual_links.scss | 14 - .../scss/components/atoms/_media.scss | 57 --- .../scss/components/atoms/_pager.scss | 19 - .../scss/components/atoms/index.scss | 10 - .../components/molecules/_hover-menu.scss | 371 ------------------ .../scss/components/molecules/_tables.scss | 131 ------- .../scss/components/molecules/index.scss | 9 - .../scss/components/organisms/.gitkeep | 0 .../_decanter-overrides.scss | 51 --- .../scss/nodes/hs_basic_page.scss | 14 - .../su_humsci_theme/scss/nodes/hs_person.scss | 35 -- .../scss/paragraphs/hs_carousel.scss | 82 ---- .../scss/utilities/mixins/_accent-dash.scss | 18 - .../utilities/mixins/_accessible-focus.scss | 11 - .../scss/utilities/mixins/_card.scss | 29 -- .../scss/utilities/mixins/_date-stacked.scss | 30 -- .../scss/utilities/mixins/_heading-dash.scss | 22 -- .../scss/utilities/mixins/_index.scss | 14 - .../scss/utilities/mixins/_links.scss | 39 -- .../scss/utilities/mixins/_well.scss | 13 - .../su_humsci_theme/su_humsci_theme.info.yml | 27 -- .../su_humsci_theme.layouts.yml | 12 - .../su_humsci_theme.libraries.yml | 162 -------- .../su_humsci_theme/su_humsci_theme.theme | 268 ------------- .../block/block--menu_block.html.twig | 56 --- .../block/block--search-form-block.html.twig | 39 -- .../block/block--system-menu-block.html.twig | 63 --- .../templates/ds-entity-view.html.twig | 12 - .../field/field--inline-contents.html.twig | 67 ---- .../field/field--node--title.html.twig | 26 -- .../templates/field/field.html.twig | 2 - .../templates/field/viewfield-item.html.twig | 63 --- .../templates/layouts/basic-node.html.twig | 26 -- .../templates/menus/menu--main.html.twig | 52 --- .../menus/menu--menu-block--main.html.twig | 54 --- .../templates/menus/menu.html.twig | 55 --- .../su_humsci_theme/templates/page.html.twig | 45 --- .../templates/patterns/molecules/.gitkeep | 0 ...ttern_date_stacked_vertical_card.html.twig | 40 -- .../pattern_hero_text_overlay.html.twig | 15 - .../pattern_horizontal_card.html.twig | 49 --- .../table-row/pattern_table_row.html.twig | 35 -- .../pattern_vertical_card.html.twig | 39 -- .../pattern_vertical_link_card.html.twig | 28 -- .../pattern_table_pattern.html.twig | 69 ---- .../views-infinite-scroll-pager.html.twig | 14 - .../templates/views/views-view-grid.html.twig | 83 ---- .../views/views-view-unformatted.html.twig | 41 -- .../humsci/su_humsci_theme/theme-settings.php | 6 - 143 files changed, 5923 deletions(-) delete mode 100644 docroot/themes/humsci/archaeology/Gruntfile.js delete mode 100644 docroot/themes/humsci/archaeology/archaeology.info.yml delete mode 100644 docroot/themes/humsci/archaeology/archaeology.libraries.yml delete mode 100644 docroot/themes/humsci/archaeology/archaeology.theme delete mode 100644 docroot/themes/humsci/archaeology/css/base.css delete mode 100644 docroot/themes/humsci/archaeology/css/ckeditor.css delete mode 100644 docroot/themes/humsci/archaeology/logo.svg delete mode 100644 docroot/themes/humsci/archaeology/patterns/.gitkeep delete mode 100644 docroot/themes/humsci/archaeology/scss/base.scss delete mode 100644 docroot/themes/humsci/archaeology/scss/ckeditor.scss delete mode 100644 docroot/themes/humsci/francestanford/Gruntfile.js delete mode 100644 docroot/themes/humsci/francestanford/css/base.css delete mode 100644 docroot/themes/humsci/francestanford/css/ckeditor.css delete mode 100644 docroot/themes/humsci/francestanford/francestanford.info.yml delete mode 100644 docroot/themes/humsci/francestanford/francestanford.libraries.yml delete mode 100644 docroot/themes/humsci/francestanford/francestanford.theme delete mode 100644 docroot/themes/humsci/francestanford/logo.svg delete mode 100644 docroot/themes/humsci/francestanford/patterns/.gitkeep delete mode 100644 docroot/themes/humsci/francestanford/scss/base.scss delete mode 100644 docroot/themes/humsci/francestanford/scss/ckeditor.scss delete mode 100644 docroot/themes/humsci/mathematics/Gruntfile.js delete mode 100644 docroot/themes/humsci/mathematics/css/base.css delete mode 100644 docroot/themes/humsci/mathematics/css/ckeditor.css delete mode 100644 docroot/themes/humsci/mathematics/css/row-with-background.css delete mode 100644 docroot/themes/humsci/mathematics/logo.svg delete mode 100644 docroot/themes/humsci/mathematics/mathematics.info.yml delete mode 100644 docroot/themes/humsci/mathematics/mathematics.libraries.yml delete mode 100644 docroot/themes/humsci/mathematics/mathematics.theme delete mode 100644 docroot/themes/humsci/mathematics/patterns/.gitkeep delete mode 100644 docroot/themes/humsci/mathematics/patterns/molecules/dated-event/css/dated-event.css delete mode 100644 docroot/themes/humsci/mathematics/patterns/molecules/dated-event/dated-event.html.twig delete mode 100644 docroot/themes/humsci/mathematics/patterns/molecules/dated-event/dated-event.ui_patterns.yml delete mode 100644 docroot/themes/humsci/mathematics/patterns/molecules/dated-event/scss/dated-event.scss delete mode 100644 docroot/themes/humsci/mathematics/scss/base.scss delete mode 100644 docroot/themes/humsci/mathematics/scss/ckeditor.scss delete mode 100644 docroot/themes/humsci/mathematics/scss/row-with-background.scss delete mode 100644 docroot/themes/humsci/su_humsci_subtheme/css/base.css delete mode 100644 docroot/themes/humsci/su_humsci_subtheme/css/ckeditor.css delete mode 100644 docroot/themes/humsci/su_humsci_subtheme/logo.svg delete mode 100644 docroot/themes/humsci/su_humsci_subtheme/patterns/.gitkeep delete mode 100644 docroot/themes/humsci/su_humsci_subtheme/scss/base.scss delete mode 100644 docroot/themes/humsci/su_humsci_subtheme/scss/ckeditor.scss delete mode 100644 docroot/themes/humsci/su_humsci_subtheme/su_humsci_subtheme.info.yml delete mode 100644 docroot/themes/humsci/su_humsci_subtheme/su_humsci_subtheme.libraries.yml delete mode 100644 docroot/themes/humsci/su_humsci_subtheme/su_humsci_subtheme.theme delete mode 100644 docroot/themes/humsci/su_humsci_theme/Gruntfile.js delete mode 100644 docroot/themes/humsci/su_humsci_theme/color/color.inc delete mode 100644 docroot/themes/humsci/su_humsci_theme/color/preview.css delete mode 100644 docroot/themes/humsci/su_humsci_theme/color/preview.html delete mode 100644 docroot/themes/humsci/su_humsci_theme/color/preview.js delete mode 100644 docroot/themes/humsci/su_humsci_theme/color/preview.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/block.block.su_humsci_theme_branding.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/block.block.su_humsci_theme_content.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/block.block.su_humsci_theme_footer.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/block.block.su_humsci_theme_help.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/block.block.su_humsci_theme_local_actions.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/block.block.su_humsci_theme_local_tasks.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/block.block.su_humsci_theme_main_menu.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/block.block.su_humsci_theme_messages.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/block.block.su_humsci_theme_page_title.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/block.block.su_humsci_theme_search.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/core.entity_view_mode.node.hs_horizontal_card.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/config/install/core.entity_view_mode.node.hs_vertical_card.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/base/index.css delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/ckeditor.css delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/colors.css delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/components/atoms/index.css delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/components/molecules/index.css delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/img/external-link-hover.png delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/img/external-link-hover.svg delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/img/external-link.png delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/img/external-link.svg delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/nodes/hs_basic_page.css delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/nodes/hs_person.css delete mode 100644 docroot/themes/humsci/su_humsci_theme/css/paragraphs/hs_carousel.css delete mode 100644 docroot/themes/humsci/su_humsci_theme/img/loading.png delete mode 100644 docroot/themes/humsci/su_humsci_theme/img/search.svg delete mode 100644 docroot/themes/humsci/su_humsci_theme/js/hover_menu.js delete mode 100644 docroot/themes/humsci/su_humsci_theme/js/nodes/hs_person.js delete mode 100644 docroot/themes/humsci/su_humsci_theme/js/su_humsci_theme.js delete mode 100755 docroot/themes/humsci/su_humsci_theme/logo.svg delete mode 100644 docroot/themes/humsci/su_humsci_theme/screenshot.png delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/base/.gitkeep delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/base/_debug.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/base/_footer.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/base/_global.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/base/_header.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/base/_paragraphs.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/base/_search.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/base/_site-title-lockup.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/base/index.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/ckeditor.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/colors.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/components/atoms/.gitkeep delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/components/atoms/_contextual_links.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/components/atoms/_media.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/components/atoms/_pager.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/components/atoms/index.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/components/molecules/_hover-menu.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/components/molecules/_tables.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/components/molecules/index.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/components/organisms/.gitkeep delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/decanter-overrides/_decanter-overrides.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/nodes/hs_basic_page.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/nodes/hs_person.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/paragraphs/hs_carousel.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/utilities/mixins/_accent-dash.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/utilities/mixins/_accessible-focus.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/utilities/mixins/_card.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/utilities/mixins/_date-stacked.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/utilities/mixins/_heading-dash.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/utilities/mixins/_index.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/utilities/mixins/_links.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/scss/utilities/mixins/_well.scss delete mode 100644 docroot/themes/humsci/su_humsci_theme/su_humsci_theme.info.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/su_humsci_theme.layouts.yml delete mode 100644 docroot/themes/humsci/su_humsci_theme/su_humsci_theme.libraries.yml delete mode 100755 docroot/themes/humsci/su_humsci_theme/su_humsci_theme.theme delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/block/block--menu_block.html.twig delete mode 100755 docroot/themes/humsci/su_humsci_theme/templates/block/block--search-form-block.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/block/block--system-menu-block.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/ds-entity-view.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/field/field--inline-contents.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/field/field--node--title.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/field/field.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/field/viewfield-item.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/layouts/basic-node.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/menus/menu--main.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/menus/menu--menu-block--main.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/menus/menu.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/page.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/patterns/molecules/.gitkeep delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/patterns/molecules/date-stacked-vertical-card/pattern_date_stacked_vertical_card.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/patterns/molecules/hero-text-overlay/pattern_hero_text_overlay.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/patterns/molecules/horizontal-card/pattern_horizontal_card.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/patterns/molecules/table-row/pattern_table_row.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/patterns/molecules/vertical-card/pattern_vertical_card.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/patterns/molecules/vertical-link-card/pattern_vertical_link_card.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/patterns/organisms/table-pattern/pattern_table_pattern.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/views/views-infinite-scroll-pager.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/views/views-view-grid.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/templates/views/views-view-unformatted.html.twig delete mode 100644 docroot/themes/humsci/su_humsci_theme/theme-settings.php diff --git a/docroot/themes/humsci/archaeology/Gruntfile.js b/docroot/themes/humsci/archaeology/Gruntfile.js deleted file mode 100644 index a42a87566c..0000000000 --- a/docroot/themes/humsci/archaeology/Gruntfile.js +++ /dev/null @@ -1,185 +0,0 @@ -/** - * @file - */ -module.exports = function(grunt) { - - // This is where we configure each task that we'd like to run. - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - watch: { - // This is where we set up all the tasks we'd like grunt to watch for changes. - scripts: { - files: ['js/source/**/*.js'], - tasks: ['uglify', 'drush:ccall'], - options: { - spawn: false, - }, - }, - images: { - files: ['images/source/*.{png,jpg,gif}'], - tasks: ['imagemin'], - options: { - spawn: false, - } - }, - vector: { - files: ['images/source/**/*.svg'], - tasks: ['svgmin'], - options: { - spawn: false, - } - }, - css: { - files: ['scss/**/*.scss', 'scss/**/**/*.scss', 'patterns/**/**/scss/*.scss'], - tasks: ['sass'], - options: { - interrupt: true - } - }, - twig: { - files: ['templates/**/*.html.twig'], - tasks: ['uglify', 'svgmin', 'imagemin', 'sass', 'drush:ccall'] - } - }, - uglify: { - // This is for minifying all of our scripts. - options: { - sourceMap: true, - mangle: false - }, - my_target: { - files: [{ - expand: true, - cwd: 'js/source', - src: '{,*/}*.js', - dest: 'js/build' - }] - } - }, - imagemin: { - // This will optimize all of our images for the web. - dynamic: { - files: [{ - expand: true, - cwd: 'img/source/', - src: ['{,*/}*.{png,jpg,gif}'], - dest: 'img/optimized/' - }] - } - }, - svgmin: { - options: { - plugins: [{ - removeViewBox: false - }, { - removeUselessStrokeAndFill: false - }] - }, - dist: { - files: [{ - expand: true, - cwd: 'images/source/', - src: ['{,*/}*.svg'], - dest: 'images/optimized/' - }] - } - }, - sass: { - // This will compile all of our sass files - // Additional configuration options can be found at https://github.com/sindresorhus/grunt-sass - options: { - includePaths: [ - "scss", - "node_modules/bourbon/core", - "node_modules/bourbon-neat/app/assets/stylesheets", - "node_modules/neat-omega/core", - "node_modules/decanter/scss", - "node_modules", - ], - sourceMap: false, - // This controls the compiled css and can be changed to nested, compact or compressed. - outputStyle: 'compressed', - precision: 10 - }, - dist: { - files: [{ - expand: true, - cwd: 'scss', - src: ['**/[a-z]*.scss'], - dest: 'css', - ext: '.css', - extDot: 'last', - rename: function(dest, src) { - return dest + '/' + src.replace('scss', 'css'); - } - }, - { - expand: true, - cwd: 'patterns', - src: ['**/[a-z]*.scss'], - dest: 'patterns', - ext: '.css', - extDot: 'last', - rename: function(dest, src) { - return dest + '/' + src.replace('scss', 'css'); - } - } - ] - } - }, - drush: { - ccall: { - args: ['cache-rebuild', 'all'] - } - }, - browserSync: { - dev: { - bsFiles: { - src: [ - 'css/**/*.css', - 'templates/**/*.twig', - 'images/optimized/**/*.{png,jpg,gif,svg}', - 'js/build/**/*.js', - '*.theme' - ] - }, - options: { - watchTask: true, - // reloadDelay: 1000, - // reloadDebounce: 500, - reloadOnRestart: true, - logConnections: true, - injectChanges: false // Depends on enabling the link_css module - } - } - }, - availabletasks: { - tasks: { - options: { - filter: "include", - tasks: [ - 'browserSync', 'imagemin', 'sass', 'svgmin', 'uglify', 'watch', 'devmode' - ] - } - } - } - }); - - // This is where we tell Grunt we plan to use this plug-in. - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-imagemin'); - grunt.loadNpmTasks('grunt-svgmin'); - grunt.loadNpmTasks('grunt-sass'); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-browser-sync'); - grunt.loadNpmTasks('grunt-available-tasks'); - grunt.loadNpmTasks('grunt-drush'); - - // My tasks. - grunt.registerTask('devmode', "Watch and BrowserSync all in one.", ['browserSync', 'watch']); - - // This is where we tell Grunt what to do when we type "grunt" into the terminal. - // Note: if you'd like to run and of the tasks individually you can do so by typing 'grunt mytaskname' alternatively - // you can type 'grunt watch' to automatically track your files for changes. - grunt.registerTask('default', ['availabletasks']); -}; diff --git a/docroot/themes/humsci/archaeology/archaeology.info.yml b/docroot/themes/humsci/archaeology/archaeology.info.yml deleted file mode 100644 index a1abc8146c..0000000000 --- a/docroot/themes/humsci/archaeology/archaeology.info.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Archaeology -type: theme -'base theme': su_humsci_theme -description: 'Humanities & Sciences' -package: Core -version: 8.x -core_version_requirement: ^9.4 || ^10 -libraries: - - archaeology/base - -regions: - page_top: 'Page top' - header: Header - search: Search - menu: Menu - highlighted: Highlighted - help: Help - content: Content - footer: Footer - page_bottom: 'Page bottom' - -components: - namespaces: - archaeology: patterns - -ckeditor_stylesheets: - - css/ckeditor.css diff --git a/docroot/themes/humsci/archaeology/archaeology.libraries.yml b/docroot/themes/humsci/archaeology/archaeology.libraries.yml deleted file mode 100644 index 658e2739e4..0000000000 --- a/docroot/themes/humsci/archaeology/archaeology.libraries.yml +++ /dev/null @@ -1,5 +0,0 @@ -base: - version: VERSION - css: - theme: - css/base.css: {} diff --git a/docroot/themes/humsci/archaeology/archaeology.theme b/docroot/themes/humsci/archaeology/archaeology.theme deleted file mode 100644 index 16173bd1c9..0000000000 --- a/docroot/themes/humsci/archaeology/archaeology.theme +++ /dev/null @@ -1,6 +0,0 @@ -a[class*="heading-link-"]{display:table}.vertical-link-card>a[class*="heading-link-"]::after{content:none}h3::after,a.heading-link-h3::after{border-bottom:3px solid #eaab00;content:'';display:block;width:30px;padding-top:.1em}h3.no-dash::after,a[data-extlink] h3::after,a.heading-link-h3.no-dash::after,a[data-extlink] a.heading-link-h3::after{content:unset}.horizontal-card__title h2::after,.horizontal-card__title h3::after{content:none}h4::after,a.heading-link-h4::after{border-bottom:3px solid #eaab00;content:'';display:block;width:25px;padding-top:.1em}h4.no-dash::after,a[data-extlink] h4::after,a.heading-link-h4.no-dash::after,a[data-extlink] a.heading-link-h4::after{content:unset}h5::after,h6::after,a.heading-link-h5::after,a.heading-link-h6::after{border-bottom:2px solid #eaab00;content:'';display:block;width:20px;padding-top:.1em}h5.no-dash::after,a[data-extlink] h5::after,h6.no-dash::after,a[data-extlink] h6::after,a.heading-link-h5.no-dash::after,a[data-extlink] a.heading-link-h5::after,a.heading-link-h6.no-dash::after,a[data-extlink] a.heading-link-h6::after{content:unset}a[class*="heading-link-"]{display:block}.horizontal-card__title::after,.horizontal-card__title a[class*="heading-link"]::after,.horizontal-card__title h2::after,h2.vertical-link-card__title::after,.date-stacked-vertical-card__content-container h2::after,h2#menu-blockmain-menu::after,#footer h2::after,.field-hs-person-title h3::after,.view.duplicate-of-news h2.vertical-card__title::after,.view.hs-publications h2::after{content:unset}.three-column-w-image .main-below::before{border-bottom:.25em solid #eaab00;content:'';display:inline-block;vertical-align:middle;width:2.125em;margin-right:10px}.accent-dash::before{border-bottom:2px solid #eaab00;content:'';display:inline-block;vertical-align:middle;width:20px;margin-right:10px}.views-field-field-hs-publication-type .masonry-item--type::before{border-bottom:2px solid #eaab00;content:'';display:inline-block;vertical-align:middle;width:20px;margin-right:10px}.views-element-container .more-link{text-align:center}.views-element-container .decanter-button{margin-top:0}.views-field-field-hs-person-research .decanter-button--secondary{margin-bottom:0}.main-container .menu--main .menu-item--active-trail.menu-item--expanded>a,.main-container .menu--main a.is-active{border-left-color:#eaab00}.js #header .decanter-main-menu--hover-reveal a.is-active{border-left-color:#eaab00}.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary.ui-menu li.menu-item--active-trail .ui-menu-item-wrapper,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary .ui-state-active,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary .ui-widget-content .ui-state-active,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary .ui-widget-header .ui-state-active,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary a.ui-button:active,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary .ui-button:active,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary .ui-button.ui-state-active:hover{border-bottom-color:#eaab00}.front .hs-basic-page.field-hs-page-hero{margin-bottom:.5em}.centered-font-lead{font-size:3rem;max-width:85rem;margin-right:auto;margin-left:auto} diff --git a/docroot/themes/humsci/archaeology/css/ckeditor.css b/docroot/themes/humsci/archaeology/css/ckeditor.css deleted file mode 100644 index 61f5c1a141..0000000000 --- a/docroot/themes/humsci/archaeology/css/ckeditor.css +++ /dev/null @@ -1 +0,0 @@ -.decanter-button,.hs-button,a.hs-button,.decanter-button--secondary,.hs-secondary-button,a.hs-secondary-button{padding:1rem 2rem 1.5rem}.decanter-button a:hover,.decanter-button a:focus,.decanter-button a:active,.hs-button a:hover,.hs-button a:focus,.hs-button a:active{color:#fff}.decanter-button--secondary,.hs-secondary-button,a.hs-secondary-button{font-weight:400;margin-right:.2rem}.decanter-button--secondary a,.hs-secondary-button a,a.hs-secondary-button a{text-decoration:none}.no-wrap{white-space:nowrap}h1::after,a.heading-link-h1::after{border-bottom:.2em solid #eaab00;content:'';display:block;width:1.125em;padding-top:.1em}h1.no-dash::after,a[data-extlink] h1::after,a.heading-link-h1.no-dash::after,a[data-extlink] a.heading-link-h1::after{content:unset}h2::after,a.heading-link-h2::after{border-bottom:4px solid #eaab00;content:'';display:block;width:40px;padding-top:.1em}h2.no-dash::after,a[data-extlink] h2::after,a.heading-link-h2.no-dash::after,a[data-extlink] a.heading-link-h2::after{content:unset}h2.text-align-center::after,a.heading-link-h2.text-align-center::after{margin:0 auto}.vertical-link-card>a[class*="heading-link-"]{display:table}.vertical-link-card>a[class*="heading-link-"]::after{content:none}h3::after,a.heading-link-h3::after{border-bottom:3px solid #eaab00;content:'';display:block;width:30px;padding-top:.1em}h3.no-dash::after,a[data-extlink] h3::after,a.heading-link-h3.no-dash::after,a[data-extlink] a.heading-link-h3::after{content:unset}.horizontal-card__title h2::after,.horizontal-card__title h3::after{content:none}h4::after,a.heading-link-h4::after{border-bottom:3px solid #eaab00;content:'';display:block;width:25px;padding-top:.1em}h4.no-dash::after,a[data-extlink] h4::after,a.heading-link-h4.no-dash::after,a[data-extlink] a.heading-link-h4::after{content:unset}h5::after,h6::after,a.heading-link-h5::after,a.heading-link-h6::after{border-bottom:2px solid #eaab00;content:'';display:block;width:20px;padding-top:.1em}h5.no-dash::after,a[data-extlink] h5::after,h6.no-dash::after,a[data-extlink] h6::after,a.heading-link-h5.no-dash::after,a[data-extlink] a.heading-link-h5::after,a.heading-link-h6.no-dash::after,a[data-extlink] a.heading-link-h6::after{content:unset}a[class*="heading-link-"]{display:block}.horizontal-card__title::after,.horizontal-card__title a[class*="heading-link"]::after,.horizontal-card__title h2::after,h2.vertical-link-card__title::after,.date-stacked-vertical-card__content-container h2::after,h2#menu-blockmain-menu::after,#footer h2::after,.field-hs-person-title h3::after,.view.duplicate-of-news h2.vertical-card__title::after,.view.hs-publications h2::after{content:unset}.three-column-w-image .main-below::before{border-bottom:.25em solid #eaab00;content:'';display:inline-block;vertical-align:middle;width:2.125em;margin-right:10px}.accent-dash::before{border-bottom:2px solid #eaab00;content:'';display:inline-block;vertical-align:middle;width:20px;margin-right:10px}.views-field-field-hs-publication-type .masonry-item--type::before{border-bottom:2px solid #eaab00;content:'';display:inline-block;vertical-align:middle;width:20px;margin-right:10px}.views-element-container .more-link{text-align:center}.views-element-container .decanter-button{margin-top:0}.views-field-field-hs-person-research .decanter-button--secondary{margin-bottom:0}.main-container .menu--main .menu-item--active-trail.menu-item--expanded>a,.main-container .menu--main a.is-active{border-left-color:#eaab00}.js #header .decanter-main-menu--hover-reveal a.is-active{border-left-color:#eaab00}.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary.ui-menu li.menu-item--active-trail .ui-menu-item-wrapper,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary .ui-state-active,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary .ui-widget-content .ui-state-active,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary .ui-widget-header .ui-state-active,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary a.ui-button:active,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary .ui-button:active,.js #header .decanter-main-menu--hover-reveal .ui-menu.decanter-nav-primary .ui-button.ui-state-active:hover{border-bottom-color:#eaab00}.front .hs-basic-page.field-hs-page-hero{margin-bottom:.5em}.centered-font-lead{font-size:3rem;max-width:85rem;margin-right:auto;margin-left:auto} diff --git a/docroot/themes/humsci/archaeology/logo.svg b/docroot/themes/humsci/archaeology/logo.svg deleted file mode 100644 index 9b321a9826..0000000000 --- a/docroot/themes/humsci/archaeology/logo.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Stanford University Logo - - diff --git a/docroot/themes/humsci/archaeology/patterns/.gitkeep b/docroot/themes/humsci/archaeology/patterns/.gitkeep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docroot/themes/humsci/archaeology/scss/base.scss b/docroot/themes/humsci/archaeology/scss/base.scss deleted file mode 100644 index 0b48edfd78..0000000000 --- a/docroot/themes/humsci/archaeology/scss/base.scss +++ /dev/null @@ -1,158 +0,0 @@ -@charset "UTF-8"; - -// -// Archaeology -// Archaeology website specific styles. -// - -// Decanter -@import - 'decanter-no-markup'; - -// Decanter Overrides -@import - '../../su_humsci_theme/scss/decanter-overrides/decanter-overrides'; - -// SU HumSci -@import - '../../su_humsci_theme/scss/utilities/mixins/index'; - -// Heading -h1, -a.heading-link-h1 { - @include heading-dash(0.2em, $color-sun, 1.125em); -} - -h2, -a.heading-link-h2 { - @include heading-dash(4px, $color-sun, 40px); - - // Headers with centered dash - &.text-align-center::after { - @include margin(0 auto); - } -} - -.vertical-link-card > a[class*="heading-link-"] { - display: table; - - &::after { - content: none; - } -} - -h3, -a.heading-link-h3 { - @include heading-dash(3px, $color-sun, 30px); -} - -.horizontal-card__title { - h2, - h3 { - &::after { - content: none; - } - } -} - -h4, -a.heading-link-h4 { - @include heading-dash(3px, $color-sun, 25px); -} - -h5, -h6, -a.heading-link-h5, -a.heading-link-h6 { - @include heading-dash(2px, $color-sun, 20px); -} - -a[class*="heading-link-"] { - display: block; -} - -// Headers without dash -.horizontal-card__title, -.horizontal-card__title a[class*="heading-link"], -.horizontal-card__title h2, -h2.vertical-link-card__title, -.date-stacked-vertical-card__content-container h2, -h2#menu-blockmain-menu, -#footer h2, -.field-hs-person-title h3, -.view.duplicate-of-news h2.vertical-card__title, -.view.hs-publications h2 { - &::after { - content: unset; - } -} - -// Page layout dash color -.three-column-w-image .main-below { - @include accent-dash(0.25em, $color-sun, 2.125em); -} - -// Event category dash -.accent-dash { - @include accent-dash(2px, $color-sun, 20px); -} - -// Featured publications dash -.views-field-field-hs-publication-type .masonry-item--type { - @include accent-dash(2px, $color-sun, 20px); -} - -// Button (more-link) styles in views -.views-element-container { - .more-link { - text-align: center; - } - - .decanter-button { - @include margin(0 null null); - } -} - -// Reasearch area buttons -.views-field-field-hs-person-research .decanter-button--secondary { - @include margin(null null 0); -} - -// Menu active states -.main-container .menu--main { - .menu-item--active-trail.menu-item--expanded > a, - a.is-active { - border-left-color: $color-sun; - } -} - -.js #header .decanter-main-menu--hover-reveal { - a.is-active { - border-left-color: $color-sun; - } - - .ui-menu.decanter-nav-primary { - &.ui-menu li.menu-item--active-trail .ui-menu-item-wrapper, - .ui-state-active, - .ui-widget-content .ui-state-active, - .ui-widget-header .ui-state-active, - a.ui-button:active, - .ui-button:active, - .ui-button.ui-state-active:hover { - border-bottom-color: $color-sun; - } - } -} - -// Homepage -.front .hs-basic-page.field-hs-page-hero { - @include margin(null null 0.5em); -} - -// Custom classes -.centered-font-lead { - font-size: 3rem; - max-width: 85rem; - - @include margin(null auto); -} diff --git a/docroot/themes/humsci/archaeology/scss/ckeditor.scss b/docroot/themes/humsci/archaeology/scss/ckeditor.scss deleted file mode 100644 index 5a110829bf..0000000000 --- a/docroot/themes/humsci/archaeology/scss/ckeditor.scss +++ /dev/null @@ -1,4 +0,0 @@ -@charset "UTF-8"; - -@import - 'base'; diff --git a/docroot/themes/humsci/francestanford/Gruntfile.js b/docroot/themes/humsci/francestanford/Gruntfile.js deleted file mode 100644 index 5f12a165da..0000000000 --- a/docroot/themes/humsci/francestanford/Gruntfile.js +++ /dev/null @@ -1,185 +0,0 @@ -/** - * @file - */ -module.exports = function(grunt) { - - // This is where we configure each task that we'd like to run. - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - watch: { - // This is where we set up all the tasks we'd like grunt to watch for changes. - scripts: { - files: ['js/source/**/*.js'], - tasks: ['uglify', 'drush:ccall'], - options: { - spawn: false, - }, - }, - images: { - files: ['images/source/*.{png,jpg,gif}'], - tasks: ['imagemin'], - options: { - spawn: false, - } - }, - vector: { - files: ['images/source/**/*.svg'], - tasks: ['svgmin'], - options: { - spawn: false, - } - }, - css: { - files: ['scss/**/*.scss', 'scss/**/**/*.scss', 'patterns/**/**/scss/*.scss'], - tasks: ['sass'], - options: { - interrupt: true - } - }, - twig: { - files: ['templates/**/*.html.twig'], - tasks: ['uglify', 'svgmin', 'imagemin', 'sass', 'drush:ccall'] - } - }, - uglify: { - // This is for minifying all of our scripts. - options: { - sourceMap: true, - mangle: false - }, - my_target: { - files: [{ - expand: true, - cwd: 'js/source', - src: '{,*/}*.js', - dest: 'js/build' - }] - } - }, - imagemin: { - // This will optimize all of our images for the web. - dynamic: { - files: [{ - expand: true, - cwd: 'img/source/', - src: ['{,*/}*.{png,jpg,gif}'], - dest: 'img/optimized/' - }] - } - }, - svgmin: { - options: { - plugins: [{ - removeViewBox: false - }, { - removeUselessStrokeAndFill: false - }] - }, - dist: { - files: [{ - expand: true, - cwd: 'images/source/', - src: ['{,*/}*.svg'], - dest: 'images/optimized/' - }] - } - }, - sass: { - // This will compile all of our sass files - // Additional configuration options can be found at https://github.com/sindresorhus/grunt-sass - options: { - includePaths: [ - "scss", - "node_modules/bourbon/core", - "node_modules/bourbon-neat/app/assets/stylesheets", - "node_modules/neat-omega/core", - "node_modules/decanter/scss", - "node_modules", - ], - sourceMap: true, - // This controls the compiled css and can be changed to nested, compact or compressed. - outputStyle: 'compressed', - precision: 10 - }, - dist: { - files: [{ - expand: true, - cwd: 'scss', - src: ['**/[a-z]*.scss'], - dest: 'css', - ext: '.css', - extDot: 'last', - rename: function(dest, src) { - return dest + '/' + src.replace('scss', 'css'); - } - }, - { - expand: true, - cwd: 'patterns', - src: ['**/[a-z]*.scss'], - dest: 'patterns', - ext: '.css', - extDot: 'last', - rename: function(dest, src) { - return dest + '/' + src.replace('scss', 'css'); - } - } - ] - } - }, - drush: { - ccall: { - args: ['cache-rebuild', 'all'] - } - }, - browserSync: { - dev: { - bsFiles: { - src: [ - 'css/**/*.css', - 'templates/**/*.twig', - 'images/optimized/**/*.{png,jpg,gif,svg}', - 'js/build/**/*.js', - '*.theme' - ] - }, - options: { - watchTask: true, - // reloadDelay: 1000, - // reloadDebounce: 500, - reloadOnRestart: true, - logConnections: true, - injectChanges: false // Depends on enabling the link_css module - } - } - }, - availabletasks: { - tasks: { - options: { - filter: "include", - tasks: [ - 'browserSync', 'imagemin', 'sass', 'svgmin', 'uglify', 'watch', 'devmode' - ] - } - } - } - }); - - // This is where we tell Grunt we plan to use this plug-in. - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-imagemin'); - grunt.loadNpmTasks('grunt-svgmin'); - grunt.loadNpmTasks('grunt-sass'); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-browser-sync'); - grunt.loadNpmTasks('grunt-available-tasks'); - grunt.loadNpmTasks('grunt-drush'); - - // My tasks. - grunt.registerTask('devmode', "Watch and BrowserSync all in one.", ['browserSync', 'watch']); - - // This is where we tell Grunt what to do when we type "grunt" into the terminal. - // Note: if you'd like to run and of the tasks individually you can do so by typing 'grunt mytaskname' alternatively - // you can type 'grunt watch' to automatically track your files for changes. - grunt.registerTask('default', ['availabletasks']); -}; diff --git a/docroot/themes/humsci/francestanford/css/base.css b/docroot/themes/humsci/francestanford/css/base.css deleted file mode 100644 index 897e4bb434..0000000000 --- a/docroot/themes/humsci/francestanford/css/base.css +++ /dev/null @@ -1 +0,0 @@ -.decanter-button,.hs-button,a.hs-button,.decanter-button--secondary,.hs-secondary-button,a.hs-secondary-button{padding:1rem 2rem 1.5rem}.decanter-button a:hover,.decanter-button a:focus,.decanter-button a:active,.hs-button a:hover,.hs-button a:focus,.hs-button a:active{color:#fff}.decanter-button--secondary,.hs-secondary-button,a.hs-secondary-button{font-weight:400;margin-right:.2rem}.decanter-button--secondary a,.hs-secondary-button a,a.hs-secondary-button a{text-decoration:none}.no-wrap{white-space:nowrap}.three-column-w-image .main-below::before{border-bottom:.25em solid #006cb8;content:'';display:inline-block;vertical-align:middle;width:2.125em;margin-right:10px}.node-custom-hs-project-custm-person .horizontal-card{background:none;box-shadow:none;margin-bottom:1em;padding:0}.custom-hs-projects-masonry .vertical-card h3,.custom-hs-projects-masonry .vertical-card h3 a{font-size:2.1rem;margin:0 0 .5em}.custom-hs-projects-masonry .vertical-card p{font-size:1.8rem;line-height:1.3;margin-top:0;margin-bottom:.5em}.custom-hs-projects-masonry .vertical-card a{font-size:1.8rem;line-height:1.3} diff --git a/docroot/themes/humsci/francestanford/css/ckeditor.css b/docroot/themes/humsci/francestanford/css/ckeditor.css deleted file mode 100644 index 897e4bb434..0000000000 --- a/docroot/themes/humsci/francestanford/css/ckeditor.css +++ /dev/null @@ -1 +0,0 @@ -.decanter-button,.hs-button,a.hs-button,.decanter-button--secondary,.hs-secondary-button,a.hs-secondary-button{padding:1rem 2rem 1.5rem}.decanter-button a:hover,.decanter-button a:focus,.decanter-button a:active,.hs-button a:hover,.hs-button a:focus,.hs-button a:active{color:#fff}.decanter-button--secondary,.hs-secondary-button,a.hs-secondary-button{font-weight:400;margin-right:.2rem}.decanter-button--secondary a,.hs-secondary-button a,a.hs-secondary-button a{text-decoration:none}.no-wrap{white-space:nowrap}.three-column-w-image .main-below::before{border-bottom:.25em solid #006cb8;content:'';display:inline-block;vertical-align:middle;width:2.125em;margin-right:10px}.node-custom-hs-project-custm-person .horizontal-card{background:none;box-shadow:none;margin-bottom:1em;padding:0}.custom-hs-projects-masonry .vertical-card h3,.custom-hs-projects-masonry .vertical-card h3 a{font-size:2.1rem;margin:0 0 .5em}.custom-hs-projects-masonry .vertical-card p{font-size:1.8rem;line-height:1.3;margin-top:0;margin-bottom:.5em}.custom-hs-projects-masonry .vertical-card a{font-size:1.8rem;line-height:1.3} diff --git a/docroot/themes/humsci/francestanford/francestanford.info.yml b/docroot/themes/humsci/francestanford/francestanford.info.yml deleted file mode 100644 index a35f49c853..0000000000 --- a/docroot/themes/humsci/francestanford/francestanford.info.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: France-Stanford -type: theme -'base theme': su_humsci_theme -description: 'Humanities & Sciences' -package: Core -version: 8.x -core_version_requirement: ^9.4 || ^10 -libraries: - - francestanford/base - -regions: - page_top: 'Page top' - header: Header - search: Search - menu: Menu - highlighted: Highlighted - help: Help - content: Content - footer: Footer - page_bottom: 'Page bottom' - -components: - namespaces: - francestanford: patterns - -ckeditor_stylesheets: - - css/ckeditor.css diff --git a/docroot/themes/humsci/francestanford/francestanford.libraries.yml b/docroot/themes/humsci/francestanford/francestanford.libraries.yml deleted file mode 100644 index f8e82fd919..0000000000 --- a/docroot/themes/humsci/francestanford/francestanford.libraries.yml +++ /dev/null @@ -1,4 +0,0 @@ -base: - css: - theme: - css/base.css: {} diff --git a/docroot/themes/humsci/francestanford/francestanford.theme b/docroot/themes/humsci/francestanford/francestanford.theme deleted file mode 100644 index 16173bd1c9..0000000000 --- a/docroot/themes/humsci/francestanford/francestanford.theme +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - Stanford University Logo -