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

asc admin theme

parent 1d759616
No related branches found
No related tags found
No related merge requests found
# 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'
global-styling:
css:
theme:
css/customstyle.css: {}
<?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']);
}
/*
// 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);
}*/
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