Werdna has submitted this change and it was merged.

Change subject: Return to default tipsy styles in Blueprint
......................................................................


Return to default tipsy styles in Blueprint

Change-Id: Ic8aa4e73d4dd629ac794446cf88a2669fdd34d1d
---
M LivingStyleGuide.php
A skinStyles/tipsy.original.less
A skinStyles/tipsy.override.less
3 files changed, 51 insertions(+), 0 deletions(-)

Approvals:
  Werdna: Verified; Looks good to me, approved



diff --git a/LivingStyleGuide.php b/LivingStyleGuide.php
index 7f70eb7..d392861 100644
--- a/LivingStyleGuide.php
+++ b/LivingStyleGuide.php
@@ -57,6 +57,16 @@
        ) + $styleguideSkinResourceTemplate,
 );
 
+$wgResourceModuleSkinStyles['livingstyleguide'] = array(
+       // Apply original Tipsy styles
+       'jquery.tipsy' => array(
+               'tipsy.original.less',
+               'tipsy.override.less',
+       ),
+       'remoteSkinPath' => 'LivingStyleGuide/skinStyles',
+       'localBasePath' => __DIR__ . '/skinStyles',
+);
+
 require_once __DIR__."/autoload.php";
 require_once __DIR__."/vendor/autoload.php";
 
diff --git a/skinStyles/tipsy.original.less b/skinStyles/tipsy.original.less
new file mode 100644
index 0000000..14a31f5
--- /dev/null
+++ b/skinStyles/tipsy.original.less
@@ -0,0 +1,34 @@
+// Copied from 
https://raw.githubusercontent.com/jaz303/tipsy/master/src/stylesheets/tipsy.css
+// And modified for additional specificity
+
+@tooltip-color: #333;
+
+body {
+  .tipsy {
+    font-size: 10px; position: absolute; padding: 5px; z-index: 100000;
+    .tipsy-inner { background-color: @tooltip-color; color: #FFF; max-width: 
200px; padding: 5px 8px 4px 8px; text-align: center; }
+
+    /* Rounded corners */
+    .tipsy-inner { border-radius: 3px; -moz-border-radius: 3px; 
-webkit-border-radius: 3px; }
+
+    /* Uncomment for shadow */
+    /*.tipsy-inner { box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px 
#000000; -moz-box-shadow: 0 0 5px #000000; }*/
+
+    .tipsy-arrow { position: absolute; width: 0; height: 0; line-height: 0; 
border: 5px dashed @tooltip-color; }
+
+    /* Rules to colour arrows */
+    .tipsy-arrow-n { border-bottom-color: @tooltip-color; }
+    .tipsy-arrow-s { border-top-color: @tooltip-color; }
+    .tipsy-arrow-e { border-left-color: @tooltip-color; }
+    .tipsy-arrow-w { border-right-color: @tooltip-color; }
+
+       &.tipsy-n .tipsy-arrow { top: 0px; left: 50%; margin-left: -5px; 
border-bottom-style: solid; border-top: none; border-left-color: transparent; 
border-right-color: transparent; }
+      &.tipsy-nw .tipsy-arrow { top: 0; left: 10px; border-bottom-style: 
solid; border-top: none; border-left-color: transparent; border-right-color: 
transparent;}
+      &.tipsy-ne .tipsy-arrow { top: 0; right: 10px; border-bottom-style: 
solid; border-top: none;  border-left-color: transparent; border-right-color: 
transparent;}
+    &.tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -5px; 
border-top-style: solid; border-bottom: none;  border-left-color: transparent; 
border-right-color: transparent; }
+      &.tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; border-top-style: 
solid; border-bottom: none;  border-left-color: transparent; 
border-right-color: transparent; }
+      &.tipsy-se .tipsy-arrow { bottom: 0; right: 10px; border-top-style: 
solid; border-bottom: none; border-left-color: transparent; border-right-color: 
transparent; }
+    &.tipsy-e .tipsy-arrow { right: 0; top: 50%; margin-top: -5px; 
border-left-style: solid; border-right: none; border-top-color: transparent; 
border-bottom-color: transparent; }
+    &.tipsy-w .tipsy-arrow { left: 0; top: 50%; margin-top: -5px; 
border-right-style: solid; border-left: none; border-top-color: transparent; 
border-bottom-color: transparent; }
+  }
+}
diff --git a/skinStyles/tipsy.override.less b/skinStyles/tipsy.override.less
new file mode 100644
index 0000000..39d3f8c
--- /dev/null
+++ b/skinStyles/tipsy.override.less
@@ -0,0 +1,7 @@
+body .tipsy {
+       font-size: 14px;
+
+       .tipsy-inner {
+               border: none;
+       }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/199871
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic8aa4e73d4dd629ac794446cf88a2669fdd34d1d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/Blueprint
Gerrit-Branch: master
Gerrit-Owner: Werdna <agarr...@wikimedia.org>
Gerrit-Reviewer: Werdna <agarr...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to