Visual Editor - questions editing [replace word]
[redakcja.git] / redakcja / static / css / html.css
index ffed30e..9199ede 100644 (file)
@@ -1,6 +1,6 @@
 /* Style widoku HTML. Nie należy tu ustawiać position ani marginesów */
 .htmlview {
-    counter-reset: main;
+    counter-reset: main aktywnosc;
     font-size: 16px;
     font-family: "Georgia", "Times New Roman", serif;
     line-height: 1.5em;
@@ -37,7 +37,7 @@
  -webkit-border-radius: 4px;
  }
  */
-.htmlview *[x-node = 'RDF'] {
+.htmlview *[x-node = 'RDF'][x-ns = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'] {
     display: none;
 }
 
 }
 
 /* wersy */
+.htmlview *[x-verse]:after {
+    content: "\feff";
+}
+
 .htmlview .strofa .wers_wciety, .htmlview .strofa .wers_wciety[data-wlf-typ='1'] {
     margin-left: 1em;
 }
@@ -253,9 +257,9 @@ not(.strofa) > *[x-verse]::after {
     padding: 0 1em 1em 1em;
 }
 
-.htmlview br.sekcja_swiatlo {
-    height: 3em;
-    /* visibility: hidden; */
+.htmlview hr.sekcja_swiatlo {
+    margin: 2em 0;
+    visibility: hidden;
 }
 
 .htmlview hr.separator_linia {
@@ -270,6 +274,10 @@ not(.strofa) > *[x-verse]::after {
     text-align: center;
 }
 
+.htmlview p.sekcja_asterysk:after {
+    content: "*";
+}
+
 .htmlview div.lista_osob ol {
     list-style: none;
     padding: 0 0 0 1.5em;
@@ -488,7 +496,8 @@ div[x-node] > .uwaga {
     visibility: hidden;
 }
 
-.edit-button, .delete-button, .accept-button, .tytul-button, .wyroznienie-button, .slowo-button, .znak-button {
+/*.edit-button, .delete-button, .accept-button, .tytul-button, .wyroznienie-button, .slowo-button, .znak-button, .luka-button */
+.edit-button, .delete-button, .accept-button, .akap-edit-button {
     position: absolute;
     top: -21px;
     left: -1px;
@@ -529,13 +538,31 @@ div[x-node] > .uwaga {
     width:100px;
 }
 
-.edit-button:hover, .edit-button:active,
+.luka-button {
+    left:550px;
+    width:100px;
+}
+
+.zastap-button {
+    top: -50px;
+    left:550px;
+    width:100px;
+}
+
+
+/*.edit-button:hover, .edit-button:active,
 .delete-button:hover, .delete-button:active,
 .accept-button:hover, .accept-button:active,
 .tytul-button:hover, .tytul-button:active,
 .wyroznienie-button:hover, .wyroznienie-button:active,
 .slowo-button:hover, .slowo-button:active,
-.znak-button:hover, .znak-button:active {
+.znak-button:hover, .znak-button:active,
+.luka-button:hover, .luka-button:active */
+
+.edit-button:hover, .edit-button:active,
+.delete-button:hover, .delete-button:active,
+.accept-button:hover, .accept-button:active,
+.akap-edit-button:hover, .akap-edit-button:active {
     /*    color: #FFF;*/
     background-color: #999;
     color: #FFF;
@@ -596,6 +623,7 @@ div[x-node] > .uwaga {
     margin: 0px;
     padding: 0px;
     width: 100%;
+    min-width: 600px; /* for editing narrow elements */
     height: 100%;
     z-index: 0;
     font-size: 10pt;
@@ -634,6 +662,10 @@ div[x-node] > .uwaga {
     border: 1px solid orange;
 }
 
+.alien {
+    color: red;
+}
+
 /* specialChars */
 #specialCharsContainer {
     text-align: center; 
@@ -651,8 +683,109 @@ div[x-node] > .uwaga {
     color: white;
     font-weight: bold;
 } 
+
 #tableSpecialChars td input {
     background-color: transparent;
     border:0;
     color: white;
 } 
+
+#tableSpecialChars td input.recentSymbol {
+    background-color: white;
+    border:0;
+    color: black;
+} 
+
+
+.htmlview .lista[data-wlf-typ="alfa"] 
+{
+    list-style-type: lower-alpha;
+}
+
+.htmlview .lista[data-wlf-typ="slowniczek"] 
+{
+    list-style-type: none;
+}
+
+.htmlview span.punkt {
+    display: list-item;
+    list-style-position: inside;
+}
+
+.htmlview span.aktywnosc span.opis {
+    font-style: italic;
+}
+.htmlview span.aktywnosc span.opis p:before {
+    content: counter(aktywnosc) ". ";
+    counter-increment: aktywnosc;
+    font-weight: bold;
+}
+
+.htmlview span.aktywnosc span.wskazowki {
+    font-style: italic;
+    color: #202020;
+}
+
+.htmlview .pomoce, .htmlview .czas, .htmlview .forma {
+    display: block;
+}
+.htmlview .pomoce:before { content: "Pomoce: "; }
+.htmlview .czas:before { content: "Czas: "; }
+.htmlview .czas:after { content: " min"; }
+.htmlview .forma:before { content: "Forma: "; }
+
+.htmlview .aktywnosc {
+    display: block;
+}
+
+.htmlview .definiendum {
+    font-weight: bold;
+    display: block;
+}
+
+.htmlview .definiens {
+    padding-left: 50px;
+}
+
+.htmlview .link {
+    color: #990066;
+}
+
+.htmlview .tabela {
+    display: table;
+}
+
+.htmlview .wiersz {
+    display: table-row;
+}
+
+.htmlview .kol {
+    min-width: 200px;
+    display: table-cell;
+    padding: 5px;
+}
+
+.htmlview .kol span {
+    position: relative;
+}
+
+.htmlview img.obraz {
+    max-width: 640px;
+}
+
+.htmlview span.luka {
+    color: #808080;
+    display: inline-block;
+    padding: 0px 8px;
+    border-bottom: 1px solid grey;
+}
+
+.htmlview span.zastap {
+    color: darkred;
+}
+
+.htmlview span.zastap:after {
+    content: "→" attr(data-wlf-rozw);
+    color: darkgoldenrod;
+}
+