Merge branch 'master' of stigma:platforma
[redakcja.git] / platforma / static / css / html.css
index fcc111e..105f05a 100644 (file)
@@ -1,5 +1,9 @@
 /* Style widoku HTML. Nie należy tu ustawiać position ani marginesów */
+
+@namespace wl2o "";
+
 .htmlview {
+    counter-reset: main;
     font-size: 16px;
     font-family: "Georgia", "Times New Roman", serif;
     line-height: 1.5em;
     text-align: left;
 }
 
-.htmlview .annotation {
-    font-style: normal;
-    font-weight: normal;
-    font-size: 12px;
-}
-
-.htmlview #footnotes .annotation {
-    display: block;
-    float: left;
-    width: 2.5em;
-    clear: both;
-}
-
 .htmlview #footnotes div {
     margin: 1.5em 0 0 0;
 }
 }
 
 .htmlview .strofa {
-    margin: 1.5em 0 0;
+    margin: 1.5em 0 0 auto;    
 }
 
 .htmlview .kwestia .strofa {
     margin: 1em;
 }
 
+/* Przypisy */
+.htmlview .annotation {    
+    vertical-align: super;
+    text-decoration: none;
+    font-size: 0.66em;
+}
+
+.htmlview a:hover {
+    text-decoration: none;
+}
+
+/* .htmlview .annotation:before {
+    content: "[\2217]";
+} */
+
+.htmlview span.annotation:before {
+    content: "[" counter(main) "]";
+    counter-increment: main;
+}
+
+.htmlview *[wl2o\:editable] {
+    background-color: pink;
+}
+
+.htmlview *[wl2o\:editable] *[wl2o\:editable] {
+    background-color: red;
+}
+
+
+.htmlview .annotation:hover {
+    background-color: #dfdfdf;
+}
+
 .parse-warning .message {
     color: purple;
     font-weight: bold;