From 575c6e7eaa3f3b1e26db6f7df0a2ab7eec960966 Mon Sep 17 00:00:00 2001 From: Silke Pisulla Date: Mon, 3 Apr 2017 13:32:21 +0200 Subject: [PATCH] SPR-742: help toggle in content --- css/plugins/folded.less | 35 +++++++++++++++++++++++++++++++++++ img/down.svg | 1 + img/up.svg | 1 + style.ini | 1 + 4 files changed, 38 insertions(+) create mode 100644 css/plugins/folded.less create mode 100644 img/down.svg create mode 100644 img/up.svg diff --git a/css/plugins/folded.less b/css/plugins/folded.less new file mode 100644 index 0000000..0402618 --- /dev/null +++ b/css/plugins/folded.less @@ -0,0 +1,35 @@ +/** + * This file provides styles for the toggle "folded" + */ + + +/* + + + + + global + + + + + */ + +#dokuwiki__content { + a.folder { + background: transparent url("svg.php?svg=down.svg&f=existing") right center no-repeat; + color: @ini_existing; + padding-right: 20px; + + &.open { + background-image: url("svg.php?svg=up.svg&f=existing"); + } + } + + div.folded { + box-shadow: @box-shadow-colored; + border: 1px solid fade(@ini_existing, 50%); + border-radius: 0; + margin-top: -.7rem; + margin-bottom: .7rem; + padding: .5em; + + p { + margin: .5rem 0; + } + } + + span.folded { + border: 1px dotted @ini_border; + } +} diff --git a/img/down.svg b/img/down.svg new file mode 100644 index 0000000..50b8625 --- /dev/null +++ b/img/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/up.svg b/img/up.svg new file mode 100644 index 0000000..5fb8642 --- /dev/null +++ b/img/up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/style.ini b/style.ini index 48a584f..e284f97 100755 --- a/style.ini +++ b/style.ini @@ -98,6 +98,7 @@ css/plugins/tagging.less = all css/plugins/include.less = all css/plugins/edittable.less = all css/plugins/extension__manager.less = all +css/plugins/folded.less = all ; _____________ print styles _____________