diff --git a/web/themes/asc_adminimal/asc_adminimal.info.yml b/web/themes/asc_adminimal/asc_adminimal.info.yml new file mode 100644 index 0000000000000000000000000000000000000000..0b2cee81b0a3e22974b09b33ae746c3c957cb377 --- /dev/null +++ b/web/themes/asc_adminimal/asc_adminimal.info.yml @@ -0,0 +1,37 @@ +# This theme is marked as @internal. It is intended to evolve and change over +# minor releases. +# Change record https://www.drupal.org/node/2582945. +# As the UI of Drupal improves between minor versions, the mark up and assets +# in the Seven theme will change. The Seven theme is not backwards +# compatible. If you wish to modify the output or assets of Seven you can: +# 1. Copy the whole of Seven and rename it as your own administration theme. You +# will need to manually manage your own updates if you want to stay up to +# date with Seven's bug fixes and feature support. +# +# 2. Sub-theme Seven. This is only recommended if you want to make minor +# tweaks and understand that Seven could break your modifications as it +# changes. +name: 'asc_adminimal' +type: theme +base theme: adminimal_theme +description: 'Adds custom CSS to default administration theme for Drupal.' +alt text: 'Default administration theme for Drupal with simple blocks, clean lines, and custom CSS.' +package: Core +version: VERSION +core_version_requirement: ^8 || ^9 + +regions: + header: 'Header' + pre_content: 'Pre-content' + breadcrumb: Breadcrumb + highlighted: Highlighted + help: Help + content: Content + page_top: 'Page top' + page_bottom: 'Page bottom' + sidebar_first: 'First sidebar' +regions_hidden: + - sidebar_first + +libraries: + - 'asc_adminimal/global-styling' diff --git a/web/themes/asc_adminimal/asc_adminimal.libraries.yml b/web/themes/asc_adminimal/asc_adminimal.libraries.yml new file mode 100644 index 0000000000000000000000000000000000000000..52f4220a868b69484a1db04097355cbde2a8eab8 --- /dev/null +++ b/web/themes/asc_adminimal/asc_adminimal.libraries.yml @@ -0,0 +1,4 @@ +global-styling: + css: + theme: + css/customstyle.css: {} diff --git a/web/themes/asc_adminimal/asc_adminimal.theme b/web/themes/asc_adminimal/asc_adminimal.theme new file mode 100644 index 0000000000000000000000000000000000000000..b91086ba3502d0090fa9764bc4c57df326175a8c --- /dev/null +++ b/web/themes/asc_adminimal/asc_adminimal.theme @@ -0,0 +1,18 @@ +<?php +use \Drupal\Core\Form\FormStateInterface; + +function asc_adminimal_form_user_cancel_form_alter(&$form, FormStateInterface $form_state, $form_id) { + // Don't allow delet users or content when disabling an account + unset($form['user_cancel_method']['#options']['user_cancel_block_unpublish']); + unset($form['user_cancel_method']['#options']['user_cancel_reassign']); + unset($form['user_cancel_method']['#options']['user_cancel_delete']); + unset($form['user_cancel_confirm']); +} + +function asc_adminimal_form_user_multiple_cancel_confirm_alter(&$form, FormStateInterface $form_state, $form_id) { + // Don't allow delet users or content when disabling an account + unset($form['user_cancel_method']['#options']['user_cancel_block_unpublish']); + unset($form['user_cancel_method']['#options']['user_cancel_reassign']); + unset($form['user_cancel_method']['#options']['user_cancel_delete']); + unset($form['user_cancel_confirm']); +} diff --git a/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_breadcrumbs.yml b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_breadcrumbs.yml new file mode 100644 index 0000000000000000000000000000000000000000..07f9e45ca44765ce9ae5c1de3f32900aa1bdf8af --- /dev/null +++ b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_breadcrumbs.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + module: + - system + theme: + - asc_adminimal +id: asc_adminimal_breadcrumbs +theme: asc_adminimal +region: breadcrumb +weight: 0 +provider: null +plugin: system_breadcrumb_block +settings: + id: system_breadcrumb_block + label: Breadcrumbs + provider: system + label_display: '0' +visibility: { } diff --git a/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_content.yml b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_content.yml new file mode 100644 index 0000000000000000000000000000000000000000..82867879c27ca40723f377f1d8d0c8237891410f --- /dev/null +++ b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_content.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + module: + - system + theme: + - asc_adminimal +id: asc_adminimal_content +theme: asc_adminimal +region: content +weight: 0 +provider: null +plugin: system_main_block +settings: + id: system_main_block + label: 'Main page content' + provider: system + label_display: '0' +visibility: { } diff --git a/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_help.yml b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_help.yml new file mode 100644 index 0000000000000000000000000000000000000000..e6c4ab8304d6d6d1aff83b3a60ed6c7b4a6d094d --- /dev/null +++ b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_help.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + module: + - help + theme: + - asc_adminimal +id: asc_adminimal_help +theme: asc_adminimal +region: help +weight: 0 +provider: null +plugin: help_block +settings: + id: help_block + label: Help + provider: help + label_display: '0' +visibility: { } diff --git a/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_local_actions.yml b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_local_actions.yml new file mode 100644 index 0000000000000000000000000000000000000000..da87088ce5985b278946a1eede6a7a9a09e226a3 --- /dev/null +++ b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_local_actions.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + theme: + - asc_adminimal +id: asc_adminimal_local_actions +theme: asc_adminimal +region: content +weight: -10 +provider: null +plugin: local_actions_block +settings: + id: local_actions_block + label: 'Primary admin actions' + provider: core + label_display: '0' +visibility: { } diff --git a/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_login.yml b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_login.yml new file mode 100644 index 0000000000000000000000000000000000000000..0962ec4a0706ec63a9fc91da8b5b2c3589c4d2f5 --- /dev/null +++ b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_login.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + module: + - user + theme: + - asc_adminimal +id: asc_adminimal_login +theme: asc_adminimal +region: content +weight: 10 +provider: null +plugin: user_login_block +settings: + id: user_login_block + label: 'User login' + provider: user + label_display: visible +visibility: { } diff --git a/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_messages.yml b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_messages.yml new file mode 100644 index 0000000000000000000000000000000000000000..251a7fcdc931b76e089bf04b2e8dca65991ada8a --- /dev/null +++ b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_messages.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + module: + - system + theme: + - asc_adminimal +id: asc_adminimal_messages +theme: asc_adminimal +region: highlighted +weight: 0 +provider: null +plugin: system_messages_block +settings: + id: system_messages_block + label: 'Status messages' + provider: system + label_display: '0' +visibility: { } diff --git a/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_page_title.yml b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_page_title.yml new file mode 100644 index 0000000000000000000000000000000000000000..add922c6e70510bb1c60ee1cdf54325cd4379657 --- /dev/null +++ b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_page_title.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + theme: + - asc_adminimal +id: asc_adminimal_page_title +theme: asc_adminimal +region: header +weight: -30 +provider: null +plugin: page_title_block +settings: + id: page_title_block + label: 'Page title' + provider: core + label_display: '0' +visibility: { } diff --git a/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_primary_local_tasks.yml b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_primary_local_tasks.yml new file mode 100644 index 0000000000000000000000000000000000000000..91936cf319198340c19d5e85885601484a66e2cf --- /dev/null +++ b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_primary_local_tasks.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + theme: + - asc_adminimal +id: asc_adminimal_primary_local_tasks +theme: asc_adminimal +region: header +weight: 0 +provider: null +plugin: local_tasks_block +settings: + id: local_tasks_block + label: 'Primary tabs' + provider: core + label_display: '0' + primary: true + secondary: false +visibility: { } diff --git a/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_secondary_local_tasks.yml b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_secondary_local_tasks.yml new file mode 100644 index 0000000000000000000000000000000000000000..862524edfeaa1bbc74dc9ca50a85b81a70246059 --- /dev/null +++ b/web/themes/asc_adminimal/config/optional/block.block.asc_adminimal_secondary_local_tasks.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + theme: + - asc_adminimal +id: asc_adminimal_secondary_local_tasks +theme: asc_adminimal +region: pre_content +weight: 0 +provider: null +plugin: local_tasks_block +settings: + id: local_tasks_block + label: 'Secondary tabs' + provider: core + label_display: '0' + primary: false + secondary: true +visibility: { } diff --git a/web/themes/asc_adminimal/css/customstyle.css b/web/themes/asc_adminimal/css/customstyle.css new file mode 100644 index 0000000000000000000000000000000000000000..eb762a6e432a88f7a448fa4e2d3847c4f59b31f5 --- /dev/null +++ b/web/themes/asc_adminimal/css/customstyle.css @@ -0,0 +1,65 @@ +/* +// Landing Page Slideshow Labels +// -------------------------------------------------- +*/ +.field--name-field-slide-display-text .form-type-checkbox label { + font-size: 16px; +} + + +/* +// Background Color Selection Box +// -------------------------------------------------- +*/ + +.field--name-field-background-color .form-select option[value="lgray-bg"]{ + background-color: red !important; +} +/*select option { + margin: 40px; + background: rgba(0, 0, 0, 0.3); + color: #fff; + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); +} + +select option[value="1"] { + background: rgba(100, 100, 100, 0.3); +} + +select option[value="2"] { + background: rgba(150, 150, 150, 0.3); +} + +select option[value="3"] { + background: rgba(200, 200, 200, 0.3); +} + +select option[value="4"] { + background: rgba(250, 250, 250, 0.3); +}*/ + + + +/* +// Academic Programs - Related Programs Selection +// -------------------------------------------------- +*/ + +.view-related-programs .js-form-type-checkbox { + display: inline-block; + margin: 0; +} + +#edit-field-ap-related-programs-remove-button { + display: none; +} + + +/* +// Paragraphs +// -------------------------------------------------- +*/ + +.js .paragraph-type-title { + flex-basis: 500px; +}