Skip to content

Commit

Permalink
Add initial module files and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
occupant committed May 15, 2020
0 parents commit 23967ff
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ubc_chosen_style_tweaks

This module adjusts Claro Admin theme styles, making any style modifications as needed.
10 changes: 10 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "ubc-web-services/ubc_claro_style_tweaks",
"description": "A Drupal 8 module to add some style tweaks to Claro admin theme",
"type": "drupal-module",
"authors": [{
"name": "O'Toole, James",
"email": "[email protected]"
}],
"require": {}
}
19 changes: 19 additions & 0 deletions css/claro.style.tweaks.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

/* fix for multiple drag handles in node edit form */
.js .node-form .tabledrag-cell-content__item {
display: none;
}

@media screen and (min-width: 85em) {

/* fix to allow chosen dropdowns to appear beyond the boundaries of vertical tabs */
.js .block-claro-content .vertical-tabs__item {
overflow: visible;
}

/* fix to correct hidden vertical tabs in node edit form */
.js .node-form .vertical-tabs__item > summary {
display: block !important;
}

}
7 changes: 7 additions & 0 deletions ubc_claro_style_tweaks.info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: UBC Claro Style Tweaks
type: module
description: This module adds some style tweaks to the Claro admin theme.
package: UBC Web Services

core: '8.x'
core_version_requirement: ^8 || ^9
4 changes: 4 additions & 0 deletions ubc_claro_style_tweaks.libraries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
clarotweaks:
css:
theme:
css/claro.style.tweaks.css: { }
13 changes: 13 additions & 0 deletions ubc_claro_style_tweaks.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
/**
* Implements hook_page_attachments().
*
* @ingroup ubc_claro_style_tweaks
*/

/**
* Implements hook_preprocess_page().
*/
function ubc_claro_style_tweaks_preprocess_page(&$variables) {
$variables['#attached']['library'][] = 'ubc_claro_style_tweaks/clarotweaks';
}

0 comments on commit 23967ff

Please sign in to comment.