-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2index.html
154 lines (152 loc) · 8.56 KB
/
2index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@1,6..12,200;1,6..12,500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./resources/css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&family=Caveat&family=El+Messiri&family=Lobster&family=Pacifico&display=swap" rel="stylesheet">
<title>Document</title>
</head>
<body>
<header>
<h1>Стилизация Сайтов</h1>
</header>
<nav class="text-style-nav">
<ul>
<li class="home"><a href="./index.html" target="_blank">Home</a></li>
<li><a href="#">Стилизация текста</a></li>
</ul>
</nav>
<main>
<section class="text">
<h3>Цвета и варианты их включения</h3>
<article class="">
<p>В CSS можно задавать как цвета самого текста так и заднего фона. Цвет текста задается с помощью свойства "color". Цвет фона командой "background-color". Можно задавать прозрачность с помощью rgba и hsla. </p>
<p>Пример:</p>
<div class="block-color">
<div class="block-orange">
<p>color:red</p>
<p>background-color:orange</p>
</div>
<div class="block-violet">
<p>color: rgb(255, 255, 255)</p>
<p>rgba(182, 10, 255, 0.7);</p>
</div>
<div class="block-blue">
<p>color:hsl(60, 100%, 50%)</p>
<p>hsla(240, 100%, 50%, 0.5);</p>
</div>
<div class="block-green">
<p>color:#000000</p>
<p>background-color:#138b03</p>
</div>
<div class="block-brown">
<p>color:rgba(229, 55, 165, 0.5)</p>
<p>background-color:#8f2f11</p>
</div>
</div>
</article>
<h3>Шрифты и вид текста</h3>
<article class="">
<p>Шрифт текста можно задавать как стандартный, уже включенный в редактор, так и интегрированный из Google Fonts, и локально сохраненные. </p>
<p>Пример стандартных шрифтов:</p>
<div class="block-fonts">
<div class="fonts-arial">
<p>"Этот текст показывает шрифт Arial"</p>
<p id="w900">font-weight: bold;</p>
<p id="w400">font-weight: normal;</p>
<p id="w100">font-weight: lighter;</p>
</div>
<div class="fonts-verdana">
<p>"Этот текст показывает шрифт Verdana"</p>
<p id="w900">font-weight: bold;</p>
<p id="w400">font-weight: normal;</p>
<p id="w100">font-weight: lighter;</p>
</div>
<div class="fonts-georgia">
<p>"Этот текст показывает шрифт Georgia"</p>
<p id="w900">font-weight: bold;</p>
<p id="w400">font-weight: normal;</p>
<p id="w100">font-weight: lighter;</p>
</div>
<div class="fonts-cambria">
<p>"Этот текст показывает шрифт Cambria"</p>
<p id="w900">font-weight: bold;</p>
<p id="w400">font-weight: normal;</p>
<p id="w100">font-weight: lighter;</p>
</div>
<div class="fonts-trebuchet">
<p>"Этот текст показывает шрифт Trebuchet MS"</p>
<p id="w900">font-weight: bold;</p>
<p id="w400">font-weight: normal;</p>
<p id="w100">font-weight: lighter;</p>
</div>
</div>
<p>Пример интегрированных шрифтов:</p>
<div class="block-fonts">
<div class="fonts-Amatic-SC">
<p>"Этот текст показывает шрифт Amatic SC"</p>
<p id="w900">font-weight: bold;</p>
<p id="w400">font-weight: normal;</p>
<p id="w100">font-weight: lighter;</p>
</div>
<div class="fonts-Caveat">
<p>"Этот текст показывает шрифт Caveat"</p>
<p id="w900">font-weight: bold;</p>
<p id="w400">font-weight: normal;</p>
<p id="w100">font-weight: lighter;</p>
</div>
<div class="fonts-El-Messiri">
<p>"Этот текст показывает шрифт El Messiri"</p>
<p id="w900">font-weight: bold;</p>
<p id="w400">font-weight: normal;</p>
<p id="w100">font-weight: lighter;</p>
</div>
<div class="fonts-Lobster">
<p>"Этот текст показывает шрифт Lobster"</p>
<p id="w900">font-weight: bold;</p>
<p id="w400">font-weight: normal;</p>
<p id="w100">font-weight: lighter;</p>
</div>
<div class="fonts-Pacifico">
<p>"Этот текст показывает шрифт Pacifico"</p>
<p id="w900">font-weight: bold;</p>
<p id="w400">font-weight: normal;</p>
<p id="w100">font-weight: lighter;</p>
</div>
</div>
</article>
<h3>Подзаголовки и оформление</h3>
<article class="head">
<p>Подзаголовки как правило могут создаваться тегами h1..h6 с уже включенными настройками шрифта, которые, при желании можно изменить с помощью CSS. Но не все шрифты поддерживают те или иные настройки (толщину текста, курсив). </p>
<p>Пример подзаголовков:</p>
<div class="block-head">
<div class="head-h1">
<h2>"Это заголовок h2"</h2>
<h2 id="italic">Текст курсивом;</h2>
<h2 id="underline">Подчеркнутый текст;</h2>
<h2 id="line-through">Перечеркнутый текст;</h2>
</div>
<div class="head-h2">
<h4>"Это заголовок h4"</h4>
<h4 id="italic">Текст курсивом</h4>
<h4 id="underline">Подчеркнутый текст</h4>
<h4 id="line-through">Перечеркнутый текст</h4>
</div>
<div class="head-h3">
<h6>"Это заголовок h6"</h6>
<h6 id="italic">Текст курсивом</h6>
<h6 id="underline">Подчеркнутый текст</h6>
<h6 id="line-through">Перечеркнутый текст</h6>
</div>
</div>
</article>
</section>
</main>
</body>
</html>