summaryrefslogtreecommitdiffstats
path: root/vector/components/collapsibleNav.less
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2017-04-19 00:18:12 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2017-04-19 00:18:12 +0200
commit0e8b7f021f27e524f8c0b25dca600c00fd2c2468 (patch)
treea1194ff372adcc235bcfea361af8830ed954456a /vector/components/collapsibleNav.less
parent14ffe3143e36d79ef7054b293e51f3fb4b658224 (diff)
downloadmediawiki-0e8b7f021f27e524f8c0b25dca600c00fd2c2468.tar
mediawiki-0e8b7f021f27e524f8c0b25dca600c00fd2c2468.tar.gz
mediawiki-0e8b7f021f27e524f8c0b25dca600c00fd2c2468.tar.bz2
mediawiki-0e8b7f021f27e524f8c0b25dca600c00fd2c2468.tar.xz
mediawiki-0e8b7f021f27e524f8c0b25dca600c00fd2c2468.zip
Add mw 1.23.15 themes
Diffstat (limited to 'vector/components/collapsibleNav.less')
-rw-r--r--vector/components/collapsibleNav.less91
1 files changed, 91 insertions, 0 deletions
diff --git a/vector/components/collapsibleNav.less b/vector/components/collapsibleNav.less
new file mode 100644
index 0000000..e6f5c9a
--- /dev/null
+++ b/vector/components/collapsibleNav.less
@@ -0,0 +1,91 @@
+/**
+ * LESS Stylesheet for collapsible nav
+ */
+@import "mediawiki.mixins.less";
+
+#mw-panel.collapsible-nav {
+ .portal {
+ background-position: left top;
+ background-repeat: no-repeat;
+ .background-image('images/portal-break.png');
+ padding: 0.25em 0 !important;
+ margin: -11px 9px 10px 11px;
+
+ h3 {
+ font-size: @menu-main-heading-font-size;
+ color: @collapsible-nav-heading-color;
+ font-weight: normal;
+ background-position: left center;
+ background-repeat: no-repeat;
+ .background-image-svg('images/arrow-expanded.svg', 'images/arrow-expanded.png');
+ padding: @collapsible-nav-heading-padding;
+ margin-bottom: 0;
+
+ &:hover {
+ cursor: pointer;
+ text-decoration: none;
+ }
+
+ a {
+ color: @collapsible-nav-heading-color;
+ text-decoration: none;
+ }
+ }
+
+ .body {
+ margin: @collapsible-nav-body-margin;
+ background-image: none !important;
+ padding-top: 0;
+ display: none;
+
+ ul {
+ li {
+ padding: 0.25em 0;
+ }
+ }
+ }
+
+
+ /* First */
+ &.first {
+ background-image: none;
+ margin-top: 0;
+ h3 {
+ display: none;
+ }
+ }
+
+ /* Persistent */
+ &.persistent {
+ .body {
+ display: block;
+ margin-left: 0.5em;
+ }
+
+ h3 {
+ background-image: none !important;
+ padding-left: 0.7em;
+ cursor: default;
+ }
+ }
+
+ /* Collapsed */
+ &.collapsed {
+ h3 {
+ color: @collapsible-nav-heading-collapsed-color;
+ background-position: left center;
+ background-repeat: no-repeat;
+ .background-image-svg('images/arrow-collapsed-ltr.svg', 'images/arrow-collapsed-ltr.png');
+ margin-bottom: 0;
+
+ &:hover {
+ text-decoration: underline;
+ }
+
+ a {
+ color: @collapsible-nav-heading-collapsed-color;
+ }
+ }
+ }
+ }
+}