мНет описания правки
мНет описания правки
Строка 101: Строка 101:
     }
     }
      
      
     /* Очень специфичный селектор для ссылок на песни */
     /* Скрываем навигацию и другие элементы при печати */
    .mw-body-content > p[style="font-size: small; text-align: right;"] {
        page-break-before: always;
        break-before: page;
        padding-top: 1cm;
    }
        /* Скрываем навигацию и другие элементы при печати */
     .mw-spcontent > p:first-child,
     .mw-spcontent > p:first-child,
     .mw-pager-navigation-bar,
     .mw-pager-navigation-bar,
Строка 113: Строка 107:
         display: none;
         display: none;
     }
     }
   
    /* Более гибкий селектор для ссылок на песни */
    /* Ищем параграфы с маленьким шрифтом и выравниванием по правому краю */
    p[style*="small"][style*="right"] {
        page-break-before: always;
        break-before: page;
        padding-top: 1cm;
    }
   
     /* Первая песня без разрыва */
     /* Первая песня без разрыва */
     .mw-body-content > p[style="font-size: small; text-align: right;"]:first-of-type {
     p[style*="small"][style*="right"]:first-of-type {
         page-break-before: avoid;
         page-break-before: avoid;
         break-before: avoid;
         break-before: avoid;

Версия от 17:25, 1 ноября 2025

/* Размещённый здесь CSS будет применяться к версии для печати */
@media print {
 .print-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid #ccc;
  background-color: #f7f7f7;
  text-align: center;
  font-size: 20px;
  line-height: 50px;
  content: "Ваша шапка страницы";
}
    #footer,
    #content,
    body { font-size: 10pt !important; }
    h1 { font-size: 14pt }
    h2 { font-size: 13pt }
    h3 { font-size: 12pt }
    h4 { font-size: 11pt }
    h5 { font-size: 10pt }
    h6 {
        font-size: 10pt;
        font-weight: normal;}
    pre, code { font-size: 12pt; }    
/*.firstHeading { margin-top: 0; padding-top: 0;  font-size: 14pt}*/
/*    #siteSub { display: none; }*/
/*    .printfooter { display: none; }*/
    #catlinks, .catlinks { display: none; }
    #footer { display: none; }   
    
  #header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid #ccc;
  background-color: #f7f7f7;
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  content: "Ваша шапка страницы";
}   
  .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid #ccc;
  background-color: #f7f7f7;
  text-align: center;
  font-size: 20px;
  line-height: 50px;
  content: "Ваша шапка страницы";
}   
  .firstHeading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid #ccc;
  background-color: #f7f7f7;
  text-align: center;
  font-size: 20px;
  line-height: 50px;
  content: "Ваша шапка страницы";
  display: none;
}   
/* Remove the default header that MediaWiki adds*/
#mw-head {
/*  display: none;*/
 content: "Ваша шапка страницы";
}	 
}
@media print {
    body {
        font-family: "Times New Roman", serif;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .mw-editsection,
    .visualeditor,
    .navbox,
    .infobox {
        display: none !important;
    }
    
    hr {
        display: none;
    }
    
    /* Скрываем навигацию и другие элементы при печати */
    .mw-spcontent > p:first-child,
    .mw-pager-navigation-bar,
    #toc {
        display: none;
    }
    
    /* Более гибкий селектор для ссылок на песни */
    /* Ищем параграфы с маленьким шрифтом и выравниванием по правому краю */
    p[style*="small"][style*="right"] {
        page-break-before: always;
        break-before: page;
        padding-top: 1cm;
    }
    
    /* Первая песня без разрыва */
    p[style*="small"][style*="right"]:first-of-type {
        page-break-before: avoid;
        break-before: avoid;
        padding-top: 0;
    }
    
    h2 {
        page-break-before: avoid !important;
        page-break-after: avoid !important;
    }
}