Ordnung.css: Unterschied zwischen den Versionen

Aus Stura Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „@charset "utf-8"; →‎Styles for Satzung (ovgu.de): body { counter-reset: teil; } h1 { counter-reset: para; } h2::before { content: "Teil "counter(…“)
 
Zeile 8: Zeile 8:
 
     counter-reset: para;
 
     counter-reset: para;
 
}
 
}
h2::before {
+
span h2::before {
 
   content: "Teil "counter(teil) " - ";
 
   content: "Teil "counter(teil) " - ";
 
   counter-increment: teil;
 
   counter-increment: teil;
 
}
 
}
h3::before {
+
span h3::before {
 
   content: "§ "counter(para) " ";
 
   content: "§ "counter(para) " ";
 
   counter-increment: para;
 
   counter-increment: para;
 
}
 
}
  
ol li.nonum::before {
+
span ol li.nonum::before {
 
   display: none;
 
   display: none;
 
}
 
}
ol {
+
span ol {
 
   counter-reset: item;
 
   counter-reset: item;
 
   margin-left: 0;
 
   margin-left: 0;
 
   padding-left: 0;
 
   padding-left: 0;
 
}
 
}
ol li {
+
span ol li {
 
   display: block;
 
   display: block;
 
   margin-bottom: .5em;
 
   margin-bottom: .5em;
 
   margin-left: 2em;
 
   margin-left: 2em;
 
}
 
}
ol li::before {
+
span ol li::before {
 
   display: inline-block;
 
   display: inline-block;
 
   content: "("counter(item) ") ";
 
   content: "("counter(item) ") ";
Zeile 38: Zeile 38:
 
}
 
}
  
ol ol {
+
span ol ol {
 
   margin-left: 0.95em;
 
   margin-left: 0.95em;
 
   padding-left: 1.95em;
 
   padding-left: 1.95em;
 
   text-indent: 1em;
 
   text-indent: 1em;
 
}
 
}
ol ol li {
+
span ol ol li {
 
   margin-bottom: 0em;
 
   margin-bottom: 0em;
 
   margin-left: 0.1em;
 
   margin-left: 0.1em;
 
}
 
}
ol ol li::before {
+
span ol ol li::before {
 
   content: counter(item) ". ";
 
   content: counter(item) ". ";
 
   margin-left: -3em;
 
   margin-left: -3em;
 
}
 
}

Version vom 15. September 2023, 10:54 Uhr

@charset "utf-8"; /* Styles for Satzung (ovgu.de) */

body {

   counter-reset: teil;

} h1 {

   counter-reset: para;

} span h2::before {

 content: "Teil "counter(teil) " - ";
 counter-increment: teil;

} span h3::before {

 content: "§ "counter(para) " ";
 counter-increment: para;

}

span ol li.nonum::before {

 display: none;

} span ol {

 counter-reset: item;
 margin-left: 0;
 padding-left: 0;

} span ol li {

 display: block;
 margin-bottom: .5em;
 margin-left: 2em;

} span ol li::before {

 display: inline-block;
 content: "("counter(item) ") ";
 counter-increment: item;
 width: 2em;
 margin-left: -2em;

}

span ol ol {

 margin-left: 0.95em;
 padding-left: 1.95em;
 text-indent: 1em;

} span ol ol li {

 margin-bottom: 0em;
 margin-left: 0.1em;

} span ol ol li::before {

 content: counter(item) ". ";
 margin-left: -3em;

}