|
| 1 | +/* stylename-screen.css */ |
| 2 | +/* Основано на davewhipp-screen.css с доработками для markdown и улучшенным шрифтом */ |
| 3 | + |
| 4 | +/* Сброс стилей */ |
| 5 | +html, body, div, span, applet, object, iframe, |
| 6 | +h1, h2, h3, h4, h5, h6, p, blockquote, pre, |
| 7 | +a, abbr, acronym, address, big, cite, code, |
| 8 | +del, dfn, em, img, ins, kbd, q, s, samp, |
| 9 | +small, strike, strong, sub, sup, tt, var, |
| 10 | +b, u, i, center, |
| 11 | +dl, dt, dd, ol, ul, li, |
| 12 | +fieldset, form, label, legend, |
| 13 | +table, caption, tbody, tfoot, thead, tr, th, td, |
| 14 | +article, aside, canvas, details, embed, |
| 15 | +figure, figcaption, footer, header, hgroup, |
| 16 | +menu, nav, output, ruby, section, summary, |
| 17 | +time, mark, audio, video { |
| 18 | + margin: 0; |
| 19 | + padding: 0; |
| 20 | + border: 0; |
| 21 | + font-size: 100%; |
| 22 | + font: inherit; |
| 23 | + vertical-align: baseline; |
| 24 | +} |
| 25 | +/* HTML5 display-role reset для старых браузеров */ |
| 26 | +article, aside, details, figcaption, figure, |
| 27 | +footer, header, hgroup, menu, nav, section { |
| 28 | + display: block; |
| 29 | +} |
| 30 | +body { |
| 31 | + line-height: 1; |
| 32 | +} |
| 33 | +ol, ul { |
| 34 | + list-style: none; |
| 35 | +} |
| 36 | +blockquote, q { |
| 37 | + quotes: none; |
| 38 | +} |
| 39 | +blockquote:before, blockquote:after, |
| 40 | +q:before, q:after { |
| 41 | + content: ''; |
| 42 | + content: none; |
| 43 | +} |
| 44 | +table { |
| 45 | + border-collapse: collapse; |
| 46 | + border-spacing: 0; |
| 47 | +} |
| 48 | +/* Конец сброса */ |
| 49 | + |
| 50 | +/* Основные стили */ |
| 51 | +body { |
| 52 | + /* Улучшаем читаемость и добавляем современный шрифт */ |
| 53 | + font: normal normal 400 100%/1.6em; |
| 54 | + font-family: "Open Sans", Avenir, Verdana, sans-serif; |
| 55 | + margin-top: 1em; |
| 56 | + margin-left: 1em; |
| 57 | +} |
| 58 | + |
| 59 | +p { |
| 60 | + /* Убираем фиксированный отступ слева для адаптивного центрирования */ |
| 61 | + position: relative; |
| 62 | + margin: 0 auto 0.7em auto; |
| 63 | + width: 80%; |
| 64 | + max-width: 800px; |
| 65 | +} |
| 66 | + |
| 67 | +code { |
| 68 | + font: normal normal; |
| 69 | + font-size: 90%; |
| 70 | + font-family: Monaco, Menlo, monospace, sans-serif; |
| 71 | + color: #555; |
| 72 | +} |
| 73 | +p code { |
| 74 | + position: absolute; |
| 75 | + text-align: right; |
| 76 | + right: -20%; |
| 77 | +} |
| 78 | + |
| 79 | +ul { |
| 80 | + position: relative; |
| 81 | + /* Центрируем список */ |
| 82 | + margin: 0 auto 1.5em auto; |
| 83 | + width: 80%; |
| 84 | + max-width: 800px; |
| 85 | + margin-top: -0.5em; |
| 86 | +} |
| 87 | + |
| 88 | +li { |
| 89 | + padding-left: 1.25em; |
| 90 | + text-indent: -1.25em; |
| 91 | +} |
| 92 | + |
| 93 | +li ul { |
| 94 | + position: relative; |
| 95 | + left: 0; |
| 96 | + width: 100%; |
| 97 | + margin-top: 0.25em; |
| 98 | +} |
| 99 | + |
| 100 | +h1, h2, h3, h4 { |
| 101 | + font-weight: 400; |
| 102 | + font-family: "Open Sans", Avenir, Cousine, Verdana, sans-serif; |
| 103 | + width: 80%; |
| 104 | + margin: 0 auto; |
| 105 | + max-width: 800px; |
| 106 | + text-align: center; |
| 107 | +} |
| 108 | +h1 { |
| 109 | + font-size: 3em; |
| 110 | + line-height: 1em; |
| 111 | +} |
| 112 | +h1 + p { |
| 113 | + font-style: italic; |
| 114 | + font-size: 110%; |
| 115 | +} |
| 116 | +h2 { |
| 117 | + font-size: 1.1em; |
| 118 | + color: #bc412b; |
| 119 | + margin-top: 2em; |
| 120 | + text-align: center; |
| 121 | +} |
| 122 | +h3 { |
| 123 | + font-size: 1em; |
| 124 | + line-height: 2em; |
| 125 | + text-align: center; |
| 126 | +} |
| 127 | + |
| 128 | +a { |
| 129 | + color: inherit; |
| 130 | + text-decoration: none; |
| 131 | +} |
| 132 | +a:hover { |
| 133 | + color: #39f; |
| 134 | +} |
| 135 | + |
| 136 | +#webaddress { |
| 137 | + margin-top: 1em; |
| 138 | + /* Центрируем блок с адресом */ |
| 139 | + margin-left: auto; |
| 140 | + margin-right: auto; |
| 141 | + color: #bc412b; |
| 142 | + font-family: Monaco, Menlo, monospace, sans-serif; |
| 143 | + font-size: 100%; |
| 144 | + text-align: center; |
| 145 | +} |
| 146 | +#webaddress a { |
| 147 | + text-decoration: none; |
| 148 | +} |
| 149 | + |
| 150 | +em { |
| 151 | + font-style: italic; |
| 152 | + color: #333; |
| 153 | +} |
| 154 | +strong { |
| 155 | + font-weight: bold; |
| 156 | +} |
| 157 | + |
| 158 | +#address { |
| 159 | + display: none; |
| 160 | +} |
| 161 | + |
| 162 | +/* Новое правило для изображений в markdown */ |
| 163 | +img { |
| 164 | + max-width: 100%; |
| 165 | + height: auto; |
| 166 | + display: block; |
| 167 | + margin: 1em auto; /* Центрирование изображения с отступами */ |
| 168 | +} |
| 169 | + |
| 170 | +/* Адаптив для маленьких экранов */ |
| 171 | +@media only screen and (max-width: 480px) { |
| 172 | + body { |
| 173 | + font-size: 90%; |
| 174 | + } |
| 175 | + p, ul, h1, h2, h3, h4 { |
| 176 | + width: 95%; |
| 177 | + } |
| 178 | +} |
0 commit comments