Emmes

Manual del Librito

Nov 5th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.07 KB | None | 0 0
  1. Primero, hay que identificar el trozo de code correspondiente a la penúltima página:
  2.  
  3. <input type="checkbox" id="iiM98"><label class="bpM98" for="iiM98">09</label><span><i><div class="pagM98">Pág. 017
  4. </div><div class="pagM98">Pág. 018
  5. </div></i></span>
  6.  
  7. Y la última página:
  8.  
  9. <input type="checkbox" id="jjM98"><label class="bpM98" for="jjM98">10</label><span><i><div class="pagM98">Pág. 019
  10. </div><div class="pagM98">Pág. 020
  11. </div><a href="https://emmescodes.tumblr.com/" title="Code by Emme" class="miM98">Emme</a></i></span>
  12.  
  13. Atención a las IDs. Los numeré con letras. La primer página es "aaM98", la siguiente "bbM98", la tercera "ccM98", etc. Y lo mismo con los for.
  14.  
  15. Para asegurarse de no repetir IDs, hay que seguir el orden (o inventarse uno nuevo, funcionará siempre que el ID y el for de cada página sean iguales entre si y diferentes del resto).
  16.  
  17. La parte a duplicar para agregar páginas es esta:
  18.  
  19. <input type="checkbox" id="iiM98"><label class="bpM98" for="iiM98">09</label><span><i><div class="pagM98">Pág. 017
  20. </div><div class="pagM98">Pág. 018
  21. </div></i></span>
  22.  
  23. Cambiamos IDs y Fors:
  24.  
  25. <input type="checkbox" id="kkM98"><label class="kkM98" for="iiM98">09</label><span><i><div class="pagM98">Contenido aquí
  26. </div><div class="pagM98">Contenido Aquí
  27. </div></i></span>
  28.  
  29. Y lo pegamos antes de la última página.
  30.  
  31. Estamos a la mitad.
  32.  
  33. Ahora hay que ir a https://codepen.io/, crear un nuevo pen y pegar el contenido de https://cdn.statically.io/gh/EmmesCodes/CSS/e0448298/M98.css en la zona de CSS. También se puede pegar en el CSS del foro si se tiene uno o en cualquier otro host.
  34.  
  35. Hay que editar el CSS. La parte que nos interesa es la siguiente:
  36.  
  37. .bpM98:nth-of-type(2),
  38. .conM98 > span:nth-of-type(1) {
  39.  z-index: 20;
  40. }
  41. .bpM98:nth-of-type(3),
  42. .conM98 > span:nth-of-type(2) {
  43.  z-index: 18;
  44. }
  45. .bpM98:nth-of-type(4),
  46. .conM98 > span:nth-of-type(3) {
  47.  z-index: 16;
  48. }
  49. .bpM98:nth-of-type(5),
  50. .conM98 > span:nth-of-type(4) {
  51.  z-index: 14;
  52. }
  53. .bpM98:nth-of-type(6),
  54. .conM98 > span:nth-of-type(5) {
  55.  z-index: 12;
  56. }
  57. .bpM98:nth-of-type(7),
  58. .conM98 > span:nth-of-type(6) {
  59.  z-index: 10;
  60. }
  61. .bpM98:nth-of-type(8),
  62. .conM98 > span:nth-of-type(7) {
  63.  z-index: 8;
  64. }
  65. .bpM98:nth-of-type(9),
  66. .conM98 > span:nth-of-type(8) {
  67. z-index: 6;
  68. }
  69. .bpM98:nth-of-type(10),
  70. .conM98 > span:nth-of-type(9) {
  71.  z-index: 4;
  72. }
  73. .bpM98:nth-of-type(11),
  74. .conM98 > span:nth-of-type(10) {
  75.  z-index: 2;
  76. }
  77.  
  78. Esto define el orden de las páginas y los botones. La parte que hay que multiplicar por cada página agregada es:
  79.  
  80. .bpM98:nth-of-type(11),
  81. .conM98 > span:nth-of-type(10) {
  82.  z-index: 2;
  83. }
  84. Y, muy importante, editar los números necesarios para preservar la secuencia. Los primeros dos ( nth-of-type(11) y span:nth-of-type(10) ) bastará con sumarle una unidad. El último ( z-index: 2; ) hay que trabajar sobre el conjunto y modificarlos todos de tal manera que las últimas páginas tengan el valor más bajo.
  85.  
  86. Con solo una página más, quedaría:
  87.  
  88. .bpM98:nth-of-type(2),
  89. .conM98 > span:nth-of-type(1) {
  90.  z-index: 22;
  91. }
  92. .bpM98:nth-of-type(3),
  93. .conM98 > span:nth-of-type(2) {
  94.  z-index: 20;
  95. }
  96. .bpM98:nth-of-type(4),
  97. .conM98 > span:nth-of-type(3) {
  98.  z-index: 18;
  99. }
  100. .bpM98:nth-of-type(5),
  101. .conM98 > span:nth-of-type(4) {
  102.  z-index: 16;
  103. }
  104. .bpM98:nth-of-type(6),
  105. .conM98 > span:nth-of-type(5) {
  106.  z-index: 14;
  107. }
  108. .bpM98:nth-of-type(7),
  109. .conM98 > span:nth-of-type(6) {
  110.  z-index: 12;
  111. }
  112. .bpM98:nth-of-type(8),
  113. .conM98 > span:nth-of-type(7) {
  114.  z-index: 10;
  115. }
  116. .bpM98:nth-of-type(9),
  117. .conM98 > span:nth-of-type(8) {
  118. z-index: 8;
  119. }
  120. .bpM98:nth-of-type(10),
  121. .conM98 > span:nth-of-type(9) {
  122.  z-index: 6;
  123. }
  124. .bpM98:nth-of-type(11),
  125. .conM98 > span:nth-of-type(10) {
  126.  z-index: 4;
  127. }
  128. .bpM98:nth-of-type(12),
  129. .conM98 > span:nth-of-type(11) {
  130.  z-index: 2;
  131. }
  132.  
  133. Con dos páginas más:
  134.  
  135. .bpM98:nth-of-type(2),
  136. .conM98 > span:nth-of-type(1) {
  137.  z-index: 24;
  138. }
  139. .bpM98:nth-of-type(3),
  140. .conM98 > span:nth-of-type(2) {
  141.  z-index: 22;
  142. }
  143. .bpM98:nth-of-type(4),
  144. .conM98 > span:nth-of-type(3) {
  145.  z-index: 10;
  146. }
  147. .bpM98:nth-of-type(5),
  148. .conM98 > span:nth-of-type(4) {
  149.  z-index: 18;
  150. }
  151. .bpM98:nth-of-type(6),
  152. .conM98 > span:nth-of-type(5) {
  153.  z-index: 16;
  154. }
  155. .bpM98:nth-of-type(7),
  156. .conM98 > span:nth-of-type(6) {
  157.  z-index: 14;
  158. }
  159. .bpM98:nth-of-type(8),
  160. .conM98 > span:nth-of-type(7) {
  161.  z-index: 12;
  162. }
  163. .bpM98:nth-of-type(9),
  164. .conM98 > span:nth-of-type(8) {
  165. z-index: 10;
  166. }
  167. .bpM98:nth-of-type(10),
  168. .conM98 > span:nth-of-type(9) {
  169.  z-index: 8;
  170. }
  171. .bpM98:nth-of-type(11),
  172. .conM98 > span:nth-of-type(10) {
  173.  z-index: 6;
  174. }
  175. .bpM98:nth-of-type(12),
  176. .conM98 > span:nth-of-type(11) {
  177.  z-index: 4;
  178. }
  179. .bpM98:nth-of-type(13),
  180. .conM98 > span:nth-of-type(12) {
  181.  z-index: 2;
  182. }
  183.  
  184. Ahora queda guardar el pen o salvar los cambios en css del foro. Si se optó por usar codepen, hay que copiar el enlace del pen (algo como "https://codepen.io/Nombre/pen/MWWVExq") y usarlos como reemplazo de mi enlace (https://cdn.statically.io/gh/EmmesCodes/CSS/e0448298/M98.css), agregandole .css al final.
  185.  
  186. Quedaría algo así:
  187. <link href="https://codepen.io/Nombre/pen/MWWVExq.css" rel="stylesheet">
Add Comment
Please, Sign In to add comment