protected function Bootstrap4::getVersionClasses in GridStack 8.2
Returns the module feature CSS classes, not available at CSS frameworks.
Overrides GridStackEnginePluginBase::getVersionClasses
File
- src/
Plugin/ gridstack/ engine/ Bootstrap4.php, line 107
Class
- Bootstrap4
- Provides a GridStack Bootstrap 4 layout engine.
Namespace
Drupal\gridstack\Plugin\gridstack\engineCode
protected function getVersionClasses() {
$classes = parent::getVersionClasses();
$gradient = [];
foreach ($this
->baseColors() as $type) {
$gradient[] = "bg-gradient-{$type}";
}
$rounded = [
'rounded',
'rounded-0',
];
foreach ([
'bottom',
'circle',
'left',
'lg',
'pill',
'right',
'sm',
'top',
] as $key) {
$rounded[] = 'rounded-' . $key;
}
$shadow = [
'shadow',
];
foreach ([
'lg',
'none',
'sm',
] as $key) {
$shadow[] = 'shadow-' . $key;
}
$classes['gradient'] = $gradient;
$classes['rounded'] = $rounded;
$classes['shadow'] = $shadow;
$classes['text_color'][] = 'text-black-50';
$classes['text_color'][] = 'text-white-50';
$classes['utility'][] = 'text-monospace';
$classes['visibility'][] = 'invisible';
$classes['visibility'][] = 'visible';
return $classes;
}