мНет описания правки
мНет описания правки
 
(не показано 27 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Размещённый здесь CSS будет применяться к версии для печати */
/* Размещённый здесь CSS будет применяться к версии для печати */
@media print {
@media print {
  .print-header {
  .print-header {
Строка 16: Строка 14:
   content: "Ваша шапка страницы";
   content: "Ваша шапка страницы";
}
}
/* Пытаемся сделать моноширинный шрифт для poem */
/* ******************************************** */
poem {
font-family: "Roboto Mono", monospace;
white-space: pre;
    font-size: 90%;
    line-height: 2.1;
}
.mw-poem-indented {
font-family: "Roboto Mono", monospace;
}
.mw-body-content poem{
font-family: "Roboto Mono", monospace;
}
.poem pre {
    font-family: monospace;
    white-space: pre;
    font-size: 90%;
    line-height: 2.1;
}
.poem {
    font-family: monospace;
    white-space: pre;
    font-size: 90%;
    line-height: 2.1;
}
/* ******************************************** */
     #footer,
     #footer,
     #content,
     #content,
/*      body { font-family: "Roboto Mono", monospace;
    body { font-size: 10pt !important; }
white-space: pre;
    font-size: 90% !important;
    line-height: 0.6 !important }*/
body { font-size: 10pt;
line-height: 2}
     h1 { font-size: 14pt }
     h1 { font-size: 14pt }
     h2 { font-size: 13pt }
     h2 { font-size: 13pt }
Строка 61: Строка 23:
     h5 { font-size: 10pt }
     h5 { font-size: 10pt }
     h6 {
     h6 {
    font-size: 10pt;
        font-size: 10pt;
         font-weight: normal;}
         font-weight: normal;}
     pre, code {  
     pre, code { font-size: 12pt; }  
        font-size: 90%;
    line-height: 2.1 } 
    poem {
font-family: "Roboto Mono", monospace;
white-space: pre;
    font-size: 90% !important;
    line-height: 2.1 !important}
    .poem {
font-family: "Roboto Mono", monospace;
white-space: pre;
    font-size: 90% !important;
    line-height: 2.1 !important}
   
   
   
   
/*.firstHeading { margin-top: 0; padding-top: 0;  font-size: 14pt}*/
/*.firstHeading { margin-top: 0; padding-top: 0;  font-size: 14pt}*/
/*    #siteSub { display: none; }*/
/*    #siteSub { display: none; }*/
Строка 126: Строка 72:
   display: none;
   display: none;
}   
}   
/* Remove the default header that MediaWiki adds*/
/* Remove the default header that MediaWiki adds*/
#mw-head {
#mw-head {
Строка 136: Строка 77:
  content: "Ваша шапка страницы";
  content: "Ваша шапка страницы";
}  
}  
}
@media print {
    body {
        font-family: "Arial", sans-serif;
        font-size: 10pt;
        line-height: 1.0;
    }
   
    p {
    font-size: 10pt !important;
    line-height: 1.0 !important; /* Еще меньше межстрочное расстояние */
    margin: 0.15cm 0 !important; /* Меньше отступы */
}
    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"] {
        display: none !important;
    }
   
    /* Переносим разрывы страниц на заголовки h2 (названия песен) */
    h2 {
        page-break-before: always !important;
        break-before: page !important;
        margin-top: 0.2cm !important;
        page-break-after: avoid !important;
    }
   
    /* Первый h2 (первая песня) без разрыва */
    .mw-body-content h2:first-of-type {
        page-break-before: avoid !important;
        break-before: avoid !important;
    }
   
    /* Текст песен - 12pt с минимальным межстрочным расстоянием */
    .poem-content {
        font-size: 12pt !important;
        line-height: 0.95 !important; /* Минимальное межстрочное расстояние */
    }
   
    /* Отступ сверху для контейнеров с текстом песен */
    .poem-flex-container {
        margin-top: 0.1cm !important; /* 1 мм отступ сверху */
    }
   
    blockquote {
        font-size: 10pt !important;
        line-height: 1.0 !important;
        margin: 0.3cm 0 !important;
        padding: 0.1cm 0.3cm !important;
        border-left: 1px solid #999 !important;
        background-color: #f5f5f5 !important;
    }
    blockquote p {
        margin: 0.05cm 0 !important;
        line-height: 0.9 !important;
    }
}
}

Текущая версия от 09:57, 19 ноября 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: "Arial", sans-serif;
        font-size: 10pt;
        line-height: 1.0;
    }
    
    p {
    font-size: 10pt !important;
    line-height: 1.0 !important; /* Еще меньше межстрочное расстояние */
    margin: 0.15cm 0 !important; /* Меньше отступы */
}

    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"] {
        display: none !important;
    }
    
    /* Переносим разрывы страниц на заголовки h2 (названия песен) */
    h2 {
        page-break-before: always !important;
        break-before: page !important;
        margin-top: 0.2cm !important;
        page-break-after: avoid !important;
    }
    
    /* Первый h2 (первая песня) без разрыва */
    .mw-body-content h2:first-of-type {
        page-break-before: avoid !important;
        break-before: avoid !important;
    }
    
    /* Текст песен - 12pt с минимальным межстрочным расстоянием */
    .poem-content {
        font-size: 12pt !important;
        line-height: 0.95 !important; /* Минимальное межстрочное расстояние */
    }
    
    /* Отступ сверху для контейнеров с текстом песен */
    .poem-flex-container {
        margin-top: 0.1cm !important; /* 1 мм отступ сверху */
    }
    
    blockquote {
        font-size: 10pt !important;
        line-height: 1.0 !important;
        margin: 0.3cm 0 !important;
        padding: 0.1cm 0.3cm !important;
        border-left: 1px solid #999 !important;
        background-color: #f5f5f5 !important;
    }

    blockquote p {
        margin: 0.05cm 0 !important;
        line-height: 0.9 !important;
    }
}