diff --git a/README.md b/README.md new file mode 100644 index 0000000..221163a --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ubc_chosen_style_tweaks + +This module adjusts Claro Admin theme styles, making any style modifications as needed. diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..a51ab1a --- /dev/null +++ b/composer.json @@ -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": "james.otoole@ubc.ca" + }], + "require": {} +} diff --git a/css/claro.style.tweaks.css b/css/claro.style.tweaks.css new file mode 100644 index 0000000..94410a4 --- /dev/null +++ b/css/claro.style.tweaks.css @@ -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; + } + +} diff --git a/ubc_claro_style_tweaks.info.yml b/ubc_claro_style_tweaks.info.yml new file mode 100755 index 0000000..e9614bf --- /dev/null +++ b/ubc_claro_style_tweaks.info.yml @@ -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 diff --git a/ubc_claro_style_tweaks.libraries.yml b/ubc_claro_style_tweaks.libraries.yml new file mode 100644 index 0000000..f758345 --- /dev/null +++ b/ubc_claro_style_tweaks.libraries.yml @@ -0,0 +1,4 @@ +clarotweaks: + css: + theme: + css/claro.style.tweaks.css: { } diff --git a/ubc_claro_style_tweaks.module b/ubc_claro_style_tweaks.module new file mode 100644 index 0000000..34ea170 --- /dev/null +++ b/ubc_claro_style_tweaks.module @@ -0,0 +1,13 @@ +