Skip to content
Browse files

Moves inline CSS to a file.

  • Loading branch information...
1 parent b50f79a commit 69444250f06963d20dd0fbc0204f5020a757c07e @BertrandBordage committed
View
2 MANIFEST.in
@@ -1,2 +1,2 @@
include README.rst COPYING
-recursive-include cmsplugin_footnote *.html *.po *.mo *.png
+recursive-include cmsplugin_footnote *.html *.po *.mo *.png *.css
View
39 cmsplugin_footnote/static/css/cmsplugin-footnote.css
@@ -0,0 +1,39 @@
+@charset "UTF-8";
+
+.cms-footnote-list-hline {
+ background-color: lightGrey;
+ width: 100%;
+ max-width: 300px;
+ height: 1px;
+}
+
+.cms-footnote-list {
+ margin: 5px 0;
+}
+
+.cms-footnote-list .footnote {
+ vertical-align: top;
+}
+
+.cms-footnote-list .footnote>* {
+ padding-top: 5px;
+ padding-bottom: 5px;
+}
+.cms-footnote-list .footnote:first-of-type>* {
+ padding-top: 0;
+}
+.cms-footnote-list .footnote:last-of-type>* {
+ padding-bottom: 0;
+}
+
+.cms-footnote-list .footnote p:first-of-type {
+ margin-top: 0;
+}
+.cms-footnote-list .footnote p:last-of-type {
+ margin-bottom: 0;
+}
+
+.cms-footnote-list .footnote:target .footnote-symbol,
+.footnote-symbol:target {
+ background-color: #FF6;
+}
View
40 cmsplugin_footnote/templates/cmsplugin_footnote/footnote_list.html
@@ -1,45 +1,7 @@
{% load sekizai_tags %}
{% addtoblock 'css' %}
- <style type="text/css">
- .cms-footnote-list-hline {
- background-color: lightGrey;
- width: 100%;
- max-width: 300px;
- height: 1px;
- }
-
- .cms-footnote-list {
- margin: 5px 0;
- }
-
- .cms-footnote-list .footnote {
- vertical-align: top;
- }
-
- .cms-footnote-list .footnote>* {
- padding-top: 5px;
- padding-bottom: 5px;
- }
- .cms-footnote-list .footnote:first-of-type>* {
- padding-top: 0;
- }
- .cms-footnote-list .footnote:last-of-type>* {
- padding-bottom: 0;
- }
-
- .cms-footnote-list .footnote p:first-of-type {
- margin-top: 0;
- }
- .cms-footnote-list .footnote p:last-of-type {
- margin-bottom: 0;
- }
-
- .cms-footnote-list .footnote:target .footnote-symbol,
- .footnote-symbol:target {
- background-color: #FF6;
- }
- </style>
+ <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/cmsplugin-footnote.css" />
{% endaddtoblock %}
{% spaceless %}

0 comments on commit 6944425

Please sign in to comment.
Something went wrong with that request. Please try again.