mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Set the text color of map control buttons to match the SVG path fill color.
This commit is contained in:
parent
2c5a38dc6f
commit
e7978e89e8
3 changed files with 17 additions and 0 deletions
4
modules/ui/theme/css/map.css
Normal file
4
modules/ui/theme/css/map.css
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
/* Set text color of map control buttons to match SVG color. */
|
||||||
|
.farm-map .ol-control button {
|
||||||
|
color: var(--colorGinPrimary);
|
||||||
|
}
|
|
@ -10,3 +10,7 @@ flag:
|
||||||
css:
|
css:
|
||||||
theme:
|
theme:
|
||||||
css/flag.css: {}
|
css/flag.css: {}
|
||||||
|
map:
|
||||||
|
css:
|
||||||
|
theme:
|
||||||
|
css/map.css: {}
|
||||||
|
|
|
@ -7,6 +7,15 @@
|
||||||
|
|
||||||
use Drupal\Core\Block\BlockPluginInterface;
|
use Drupal\Core\Block\BlockPluginInterface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implements hook_element_info_alter().
|
||||||
|
*/
|
||||||
|
function farm_ui_theme_element_info_alter(array &$info) {
|
||||||
|
if (isset($info['farm_map'])) {
|
||||||
|
$info['farm_map']['#attached']['library'][] = 'farm_ui_theme/map';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements hook_preprocess_HOOK().
|
* Implements hook_preprocess_HOOK().
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue