-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
67 lines (56 loc) · 1.24 KB
/
main.css
File metadata and controls
67 lines (56 loc) · 1.24 KB
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
body {
font-family: Roboto, sans-serif;
}
.container {
padding: 0 40px;
margin-left: 80px;
}
/* Свойства ссылок */
a {
display: block;
text-decoration:none;
margin-bottom: 1.2em;
position: relative;
}
/* Что делать при наведении на ссылку */
a:hover {
color:#d804db;
}
/* Этим свойством добавляем подчеркивание через создание псевдокласса */
a::after {
content: '';
position: absolute;
left: 0;
right: 0;
transform: translateY(1.5em);
border-bottom: 1px solid #dadada;
width: 300px;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.5em;
margin: 1.25em 0;
}
/* Свойства фотографии*/
.photo {
border-radius: 100px;
/* Радиус скругления */
border: 3px solid transparent;
/* Параметры рамки */
box-shadow: 0 4px 15px 0px rgba(0, 0, 0, 0.52);
object-fit: cover;
}
/* Эффект наведения на картинку */
.photo:hover {
border: 3px solid #d804db;
}
.button {
border: 1px solid;
border-radius: 3px;
cursor: pointer;
}
.button:hover {
background: #fa7efc;
}