diff --git a/css/area_main-content.less b/css/area_main-content.less index f97a4d0..ee7e045 100755 --- a/css/area_main-content.less +++ b/css/area_main-content.less @@ -4,20 +4,19 @@ * @author Jana Deutschlaender */ - #dokuwiki__content.main-content { .level2 { p a.media { - img{ - border:1px dotted @color-site-bg; + img { + border: 1px dotted @color-site-bg; } - &:hover,&:focus,&:active{ - img{ - border:1px solid @color-link; - } - } + &:hover, &:focus, &:active { + img { + border: 1px solid @color-link; + } + } } } @@ -34,19 +33,41 @@ float: right; margin-top: 0; position: relative; - z-index:2; + z-index: 2; top: 0; + + button { + background-color: transparent; + color: transparent; + border-color: transparent; + + &::after { + content: ''; + display: inline-block; + background: transparent url("svg.php?svg=pencil.svg&f=link") center center no-repeat; + height: 1em; + width: 1em; + background-size: contain; + margin-left: 0.5rem; // FIXME hard coded in plugins/edit.less + } + + &:hover, + &:active, + &:focus { + background-color: @button_color; + color: @button_background; + border-color: @button_background; + } + } } } - /* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* min-width: 1440px */ @media @screen_min-xlg { } - /* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* max-width: 1199px */ diff --git a/css/base_design.less b/css/base_design.less index eec8d7d..2b7f88e 100755 --- a/css/base_design.less +++ b/css/base_design.less @@ -131,9 +131,6 @@ h1 { font-size: @font-size-head1; margin: 0 0 @font-size-head1; padding-top: 1em; - #dokuwiki__content > & { - padding-top: 1.5em; - } } h2 { diff --git a/img/pencil.svg b/img/pencil.svg new file mode 100644 index 0000000..e3a4faa --- /dev/null +++ b/img/pencil.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/svg.php b/svg.php index 1fab9c2..f0bad62 100644 --- a/svg.php +++ b/svg.php @@ -272,6 +272,9 @@ class SVG { if(isset($this->replacements[$color])) { return $this->replacements[$color]; } + if(isset($this->replacements['__' . $color . '__'])) { + return $this->replacements['__' . $color . '__']; + } return ''; }