Skip to content
Snippets Groups Projects
Commit be967885 authored by Brian Canini's avatar Brian Canini
Browse files

ASC Adminimal subtheme

- adding custom subtheme based off Adminimal theme
parent db80b062
No related branches found
No related tags found
No related merge requests found
Showing
with 291 additions and 0 deletions
# 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'
global-styling:
css:
theme:
css/customstyle.css: {}
<?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']);
}
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: { }
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: { }
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: { }
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: { }
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: { }
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: { }
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: { }
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: { }
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: { }
/*
// 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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment