-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 23967ff
Showing
6 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
clarotweaks: | ||
css: | ||
theme: | ||
css/claro.style.tweaks.css: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
} |