$this->log('CSS 7');
// Links Styles
$this->lessVariables['links-color'] = Color::colorToCSS($this->themeSettings->linksColor);
+ $this->lessVariables['links-opacity'] = ($this->themeSettings->linksOpacity ?? 30) . "%";
$this->lessVariables['slideshow-color'] = Color::colorToCSS($this->themeSettings->slideshowColor);
$this->lessVariables['inlineslideshow-transition-time'] = (floatval($this->fluidbookSettings->inlineSlideshowTransitionDuration) * 1000) . 'ms';
$this->lessVariables['slideshow-caption-size'] = $this->fluidbookSettings->slideshowCaptionSize ?: '16px';
use Cubist\Backpack\Magic\EntityData;
use Cubist\Backpack\Magic\Fields\Files;
use Cubist\Backpack\Magic\Fields\FormSeparator;
+use Cubist\Backpack\Magic\Fields\Percent;
use Cubist\Backpack\Magic\Fields\SelectFromArray;
use Cubist\Backpack\Magic\Fields\SelectFromModel;
use Cubist\Util\CommandLine;
'allows_alpha' => false,
'translatable' => false,
]);
+ $this->addField([
+ 'name' => 'linksOpacity',
+ 'type' => Percent::class,
+ 'label' => __('Opacité des liens'),
+ 'default' => 30,
+ 'translatable' => false,
+ ]);
+ $this->addField([
+ 'name' => 'linksRoundedCorners',
+ 'type' => Percent::class,
+ 'label' => __('Bords arrondis'),
+ 'default' => 0,
+ 'hint' => '0 : ' . __('Bords pas arrondis') . ' // 100 : ' . __('Bords complètement arrondis'),
+ 'translatable' => false,
+ ]);
+ $this->addField([
+ 'name' => 'linksAnimation',
+ 'label' => __('Animation à l\'apparition'),
+ 'type' => SelectFromArray::class,
+ 'options' => ['fade' => __('Opacité'), 'hightlight' => __('Surligner')],
+ 'default' => 'fade',
+ ]);
+ $this->addField([
+ 'name' => __('Position de l\'animation'),
+ 'type' => SelectFromArray::class,
+ 'options' => ['top' => __('Par dessus les contenus'), 'under' => __('Sous la couche de texte')],
+ 'default' => 'top',
+ ]);
+ $this->addField([
+ 'type' => 'FormSeparator',
+ ]);
$this->addField([
'name' => 'slideshowColor',
'type' => 'Color',