-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
238 lines (225 loc) · 4.64 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
* { box-sizing: border-box;
--textcolor: #000000;
--bgcolor: #f0f0f0;
--highlight: rgb(202,89,73); /*rgb(202,89,73)rgb(254,113,93)rgb(253,155,141)rgb(254,211,205);
#CA5949
#FE715D
#FD9B8D
rgb(254,211,205);*/
}
::selection { /* выделенный текст */
color: #fff;
background: #CA5949;
}
@media (prefers-color-scheme: dark) { /* темная тема */
* {
--textcolor: #dadada;
--bgcolor: #343d46;
--highlight: #FE715D;
}
}
body {
/* font-size: 1em;
font-family: system-ui, sans-serif;*/
line-height: 1.2; /* межстрочный отступ */
color: var(--textcolor);
background: var(--bgcolor);
font-family: Cambria,Times New Roman,Times,FreeSerif,Noto Serif,serif,Monomakh Unicode,sans-serif,Calibri,Segoe UI;
font-size: 105%; /* размер текста */
/*margin: 0 auto;*/
max-width: 600px;
margin: 0 auto;
}
#header,
#main,
section
{
max-width: 600px;
margin: 0 auto;
}
section {
padding: 70px 0vw 0vw 0vw;
display: none;
position: absolute;
top: 0;
min-height: 100vh;
width: 100%;
background: var(--bgcolor);
}
section:target { /* Отображаемая часть */
display: block;
}
section#home { /* отображаемая часть по умолчанию */
display: block;
}
#header { /* шапка */
font-size: 0.9em;
padding: 50px 0px 0px 0px;
font-family: sans-serif;
letter-spacing: 0.03em;
text-align: center;
width: 100%;
position: absolute;
z-index: 2;
}
#main {
padding: 70px 0vw 0vw 0vw;
position: absolute;
margin: 0vw 10px 0vw 10px;
min-height: 100vh;
width: 95%;
}
a {
color: var(--highlight);
text-decoration: none;
/* border-bottom: 1px dotted #f55;*/
}
a:hover,
a:focus {
text-decoration:underline
}
img{
display: block;
margin: 30px auto 30px auto;
max-width: 100%;
}
p {
text-align: justify;
line-height: 1.35;
}
.рисунок {
text-align: center;
font-size: 0.9em;
font-style: italic !important;
font-family: "Open Sans", sans-serif;
}
/*.podpis::before {
color: #CA5949;
content: "Рисунок";
}*/
.ключ_слова {
margin: 10px 0px 10px 0px;
color: #CA5949;
font-size: 0.7em;
font-family: "Open Sans", sans-serif;
}
.текст {
text-indent: 30px;
-moz-hyphens: auto;
-webkit-hyphens: auto;
-ms-hyphens: auto;
margin: 8px 0px 0px 0px;
}
.библио li {
margin: 0px 0px 6px 0px;
font-size: 0.9em;
}
.формула {
font-size: 1.2em;
margin: 15px 0px 20px 0px;
text-align: center;
}
.автограф {
font-size: 0.9em;
text-align: center;
color: #535353;
}
kbd { /* клавиша */
background-color: #e7e7e7;
background-image: -moz-linear-gradient(#fefefe, #e7e7e7);
background-image: -webkit-linear-gradient(#fefefe, #e7e7e7);
background-image: linear-gradient(#fefefe, #e7e7e7);
background-repeat: repeat-x;
border-radius: 5px;
border: 1px solid #cfcfcf;
color: #000;
padding: 3px 2px;
line-height: 10px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
display: inline-block;
}
h2, h3, h4 {
color: var(--highlight);
font-weight: 600;
}
h2 {
font-size: 1.3em;
letter-spacing: 0.15em;
}
h3 {
font-size: 1.3em;
letter-spacing: 0.15em;
text-align: center;
}
h4 {
font-size: 1.1em;
font-family: sans-serif;
letter-spacing: 0.1em;
text-align: center;
}
ul > li::before { /* маркер списка */
position: absolute;
margin-left: -1.4em;
content: "•";
}
ul{
padding-left: 28px;
list-style:none
}
li {
list-style-position: inside;
padding: 0px 0px 0px 0px;
line-height: 1.35;
}
ol {
padding-left: 0px;
}
.список {
counter-reset: o-counter 0;
list-style-type: none;
margin: 0px 0px 0px 0px;
text-indent: 30px;
-moz-hyphens: auto;
-webkit-hyphens: auto;
-ms-hyphens: auto;
text-align: justify;
}
.список li:before {
content: counter(o-counter) ') ';
counter-increment: o-counter;
}
sup { /* ссылка */
font-size: 0.7em;
font-weight: 600;
}
pre, textarea { /* область кода */
max-width: 90%;
font-size: .9em;
color: inherit;
line-height:inherit;
padding:.6em .6em;
margin: 0em 0px 0px 30px;
position: relative;
display: block;
width: 100%;
white-space: pre;
/* border: 1px solid #cfcfcf;rgba(255,211,205,.075);*/
border-radius: 5px;
background:rgb(254,227,220);
page-break-inside: avoid;
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
code {
padding: 0px 0px 0px 0px;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
/*:lang(ru) { } Особые настройки для конкретного языка*/