From 49dff35a7c0ff4c85fbc1d5611e2d8ea1cbe9946 Mon Sep 17 00:00:00 2001 From: Brian Canini <canini.16@osu.edu> Date: Mon, 7 Dec 2020 11:43:32 -0500 Subject: [PATCH] asc admin theme --- web/themes/asc_seven/asc_seven.info.yml | 32 ++++++++++++++++ web/themes/asc_seven/asc_seven.libraries.yml | 4 ++ web/themes/asc_seven/asc_seven.theme | 18 +++++++++ web/themes/asc_seven/css/customstyle.css | 39 ++++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 web/themes/asc_seven/asc_seven.info.yml create mode 100644 web/themes/asc_seven/asc_seven.libraries.yml create mode 100644 web/themes/asc_seven/asc_seven.theme create mode 100644 web/themes/asc_seven/css/customstyle.css diff --git a/web/themes/asc_seven/asc_seven.info.yml b/web/themes/asc_seven/asc_seven.info.yml new file mode 100644 index 0000000000..8d15068c3c --- /dev/null +++ b/web/themes/asc_seven/asc_seven.info.yml @@ -0,0 +1,32 @@ +# 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_seven' +type: theme +base theme: seven +description: 'Adds custom CSS to default administration theme for Drupal 8.' +alt text: 'Default administration theme for Drupal 8 with simple blocks, clean lines, and custom CSS.' +package: Core +version: VERSION +core: 8.x + +regions: + header: 'Header' + pre_content: 'Pre-content' + breadcrumb: 'Breadcrumb' + highlighted: 'Highlighted' + help: 'Help' + content: 'Content' + +libraries: + - 'asc_seven/global-styling' diff --git a/web/themes/asc_seven/asc_seven.libraries.yml b/web/themes/asc_seven/asc_seven.libraries.yml new file mode 100644 index 0000000000..52f4220a86 --- /dev/null +++ b/web/themes/asc_seven/asc_seven.libraries.yml @@ -0,0 +1,4 @@ +global-styling: + css: + theme: + css/customstyle.css: {} diff --git a/web/themes/asc_seven/asc_seven.theme b/web/themes/asc_seven/asc_seven.theme new file mode 100644 index 0000000000..68fe732890 --- /dev/null +++ b/web/themes/asc_seven/asc_seven.theme @@ -0,0 +1,18 @@ +<?php +use \Drupal\Core\Form\FormStateInterface; + +function asc_seven_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_seven_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_seven/css/customstyle.css b/web/themes/asc_seven/css/customstyle.css new file mode 100644 index 0000000000..42c1f96ba8 --- /dev/null +++ b/web/themes/asc_seven/css/customstyle.css @@ -0,0 +1,39 @@ +/* +// Landing Page Slideshow Labels +// -------------------------------------------------- +*/ +#field-slides2-values .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); +}*/ -- GitLab