diff options
author | Lukas Winkler <github@lw1.at> | 2018-07-25 01:28:39 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2018-07-25 01:28:39 +0300 |
commit | 95dbe14165c4b86aadec619721aae9d5dfa28e0a (patch) | |
tree | 747f66a95b695479660c3db67c38df3be9934e98 /plugins/API | |
parent | b7e77d84d83643346f54b9e99191d6ea850f70bd (diff) |
fix glossary table of content style (#13145)
* fix glossary table of content style
Diffstat (limited to 'plugins/API')
-rw-r--r-- | plugins/API/API.php | 1 | ||||
-rw-r--r-- | plugins/API/stylesheets/glossary.less | 11 | ||||
-rw-r--r-- | plugins/API/stylesheets/listAllAPI.less | 3 | ||||
-rw-r--r-- | plugins/API/templates/glossary.twig | 2 |
4 files changed, 15 insertions, 2 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index ca2f1d5de3..32733174d0 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -762,5 +762,6 @@ class Plugin extends \Piwik\Plugin public function getStylesheetFiles(&$stylesheets) { $stylesheets[] = "plugins/API/stylesheets/listAllAPI.less"; + $stylesheets[] = "plugins/API/stylesheets/glossary.less"; } } diff --git a/plugins/API/stylesheets/glossary.less b/plugins/API/stylesheets/glossary.less new file mode 100644 index 0000000000..9b275867bc --- /dev/null +++ b/plugins/API/stylesheets/glossary.less @@ -0,0 +1,11 @@ + +.glossary .table-of-contents a { + box-sizing: content-box; + padding: 0 10px 5px; + &:hover, &.active { + text-decoration: none; + padding: 0 10px 3px; + border-left: none; + border-bottom: 2px solid @color-blue-piwik; + } +}
\ No newline at end of file diff --git a/plugins/API/stylesheets/listAllAPI.less b/plugins/API/stylesheets/listAllAPI.less index 40188e98d3..9d1e71a0e5 100644 --- a/plugins/API/stylesheets/listAllAPI.less +++ b/plugins/API/stylesheets/listAllAPI.less @@ -30,4 +30,5 @@ .apiMethod { margin-bottom: 5px; margin-left: 20px; -}
\ No newline at end of file +} + diff --git a/plugins/API/templates/glossary.twig b/plugins/API/templates/glossary.twig index 2039b56f0f..3773248e1b 100644 --- a/plugins/API/templates/glossary.twig +++ b/plugins/API/templates/glossary.twig @@ -14,7 +14,7 @@ </div> </div> - <div class="row"> + <div class="row glossary"> <div class="col s12"> <ul class="tabs"> {% for keyword, item in glossaryItems %} |