Move all the jquery-purr css settings into separate file and add it to base.html template only if needed.
Patch by: Pawel Solyga
Reviewed by: to-be-reviewed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/content/css/jquery-purr-090308.css Mon Mar 09 00:43:36 2009 +0000
@@ -0,0 +1,52 @@
+/* jquery purr */
+
+#purr-container {
+ position:fixed;
+ bottom:0;
+ right:0;
+}
+
+.tooltip {
+ position: relative;
+ width: 300px;
+}
+
+.tooltip .close {
+ position: absolute;
+ top: 12px;
+ right: 12px;
+ display: block;
+ width: 18px;
+ height: 17px;
+ text-indent: -9999px;
+ background: url('/soc/content/images/purrClose.png') no-repeat 0 10px;
+}
+
+.tooltip-body {
+ min-height: 50px;
+ padding: 22px 22px 0 22px;
+ background: url('/soc/content/images/purrTop.png') no-repeat left top;
+ color: #f9f9f9;
+}
+
+.tooltip-body img {
+ width: 50px;
+ margin: 0 10px 0 0;
+ float: left;
+}
+
+.tooltip-body h3 {
+ margin: 0;
+ font-size: 1.1em;
+}
+
+.tooltip-body p {
+ margin: 5px 0 0 60px;
+ font-size: 0.8em;
+ line-height: 1.4em;
+}
+
+.tooltip-bottom {
+ height: 22px;
+ background: url('/soc/content/images/purrBottom.png') no-repeat left top;
+}
\ No newline at end of file
--- a/app/soc/content/css/soc-090120.css Mon Mar 09 00:42:08 2009 +0000
+++ b/app/soc/content/css/soc-090120.css Mon Mar 09 00:43:36 2009 +0000
@@ -242,45 +242,6 @@
padding: 3px;
}
-/* TOOLTIPS */
-
-#purr-container {
- position:fixed;
- bottom:0;
- right:0;
-}
-
-.tooltip {
- position: relative;
- width: 300px;
-}
-
-.tooltip .close {
- position: absolute;
- top: 12px;
- right: 12px;
- display: block;
- width: 18px;
- height: 17px;
- text-indent: -9999px;
- background: url('/soc/content/images/purrClose.png') no-repeat 0 10px;
-}
-.tooltip-body {
- min-height: 50px;
- padding: 22px 22px 0 22px;
- background: url('/soc/content/images/purrTop.png') no-repeat left top;
- color: #f9f9f9;
-}
-.tooltip-body img {width: 50px; margin: 0 10px 0 0; float: left;}
-.tooltip-body h3 {margin: 0; font-size: 1.1em;}
-.tooltip-body p {margin: 5px 0 0 60px; font-size: 0.8em; line-height: 1.4em;}
-
-.tooltip-bottom {
- height: 22px;
- background: url('/soc/content/images/purrBottom.png') no-repeat left top;
-}
-
-
#logo {
padding-right: 18px;
position: absolute;
--- a/app/soc/templates/soc/base.html Mon Mar 09 00:42:08 2009 +0000
+++ b/app/soc/templates/soc/base.html Mon Mar 09 00:43:36 2009 +0000
@@ -23,6 +23,9 @@
{% if uses_jq_thickbox %}
<link rel="stylesheet" href="/soc/content/css/jquery-thickbox-090304.css" type="text/css"/>
{% endif %}
+ {% if uses_jq_purr %}
+ <link rel="stylesheet" href="/soc/content/css/jquery-purr-090308.css" type="text/css"/>
+ {% endif %}
{% if uses_jq_datetimepicker %}
<link rel="stylesheet" type="text/css" media="screen" href="/soc/content/css/ui.datetimepicker-090304.css">
{% endif %}