use Cubist\Util\Graphics\Color;
-class ColorLink extends ContentLink {
+class ColorLink extends ContentLink
+{
protected $role = '';
- public function getCSS() {
+ public function getCSS()
+ {
$res = parent::getCSS();
$res .= 'background-color:' . Color::colorToCSS($this->to) . ';';
return $res;
}
- public function getAdditionnalContent() {
+ public function getExtraCSS()
+ {
+ $res = parent::getExtraCSS();
+ $res .= '#l_' . $this->id . '.stroke{';
+ $res .= 'background-color:transparent;';
+ $res .= 'border:4px solid ' . Color::colorToCSS($this->to) . ';';
+ $res .= '}';
+ return $res;
+ }
+
+ public function getAdditionnalContent()
+ {
$res = parent::getAdditionnalContent();
$res .= ' data-color="' . Color::colorToCSS($this->to) . '"';
return $res;
$css .= $this->getCSSClipPath();
$css .= $this->getCSS();
$css .= '}';
+ $css.=$this->getExtraCSS();
if ($this->cursor) {
$css .= '#l_' . $this->id . ' a{cursor:' . $this->cursor . ' !important;}';
}
return '';
}
+ public function getExtraCSS(){
+ return '';
+ }
+
public function getCSS()
{
return '';
$attrs .= ' data-animation="' . $this->getAnimationType() . '"';
$attrs .= ' data-display-area="' . $this->display_area . '" ';
} else {
- $attrs .= ' data-display-area="none" ';
+ $attrs .= ' data-display-area="none" data-display-area-related=" ' . $this->display_area . '" ';
}
if (count($class)) {