-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
160 lines (139 loc) · 4.47 KB
/
styles.css
File metadata and controls
160 lines (139 loc) · 4.47 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
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
body {
font-family: Arial, sans-serif;
background-color: #1e1b3a; /* Темный фиолетовый для основного фона */
color: #d4c1f9; /* Светло-фиолетовый текст */
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-size: cover; /* Растягивание GIF на весь экран */
background-repeat: no-repeat;
background-position: center;
background-image: url('car.gif');
}
.container {
width: 60%;
background-color: rgba(44, 37, 77, 0.85); /* Полупрозрачный темный фиолетовый для контейнера */
border-radius: 8px;
padding: 20px;
box-shadow: 0px 0px 10px 0px #000;
}
nav ul {
list-style-type: none;
padding: 0;
display: flex;
justify-content: space-around;
margin-bottom: 20px;
background-color: rgba(62, 51, 112, 0.85); /* Полупрозрачный фиолетовый для фона навигации */
border-radius: 5px;
}
nav ul li {
margin: 0;
}
nav ul li a {
text-decoration: none;
color: #d4c1f9; /* Светло-фиолетовый текст ссылок */
padding: 10px 20px;
display: block;
}
nav ul li a:hover,
nav ul li a.active {
background-color: #5e4a96; /* Более светлый фиолетовый для активной ссылки */
color: #f9e8ff; /* Очень светлый фиолетовый для текста активной ссылки */
}
.bio {
display: flex;
background-color: rgba(44, 37, 77, 0.85); /* Полупрозрачный темный фиолетовый для фона блока bio */
padding: 20px;
border-radius: 5px;
box-shadow: 0px 0px 10px 0px #000;
}
.bio img {
border-radius: 5px;
width: 150px;
height: 150px;
margin-right: 20px;
box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.5); /* Тень для выделения изображения */
}
.bio-text {
max-width: 600px;
}
.bio-text h2 {
margin: 0;
color: #f9e8ff; /* Очень светлый фиолетовый для заголовков */
}
.bio-text p {
margin-top: 10px;
line-height: 1.6;
}
.bio-text .footer {
margin-top: 20px;
font-size: 0.9em;
color: #b3a6d1; /* Более темный светло-фиолетовый для подвала */
}
a {
text-decoration: none;
color: #0c92eb; /* Цвет ссылок */
font-size: large;
font-family: 'Courier New', Courier, monospace;
}
a:focus,
a:active {
outline: none; /* Убирает обводку */
color: #f9e8ff; /* Устанавливает нужный цвет текста при нажатии */
}
a:hover {
color: #f9e8ff; /* Цвет текста при наведении */
text-decoration: underline;
}
@media (max-width: 768px) {
.container {
width: 90%;
}
.bio {
flex-direction: column;
align-items: center;
}
.bio img {
margin: 0 0 20px 0;
}
}
* {
box-sizing: border-box;
}
/* CSS Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.play-button {
background: linear-gradient(145deg, #6a4b9a, #3e2a6a); /* Градиент для кнопки */
border: none;
border-radius: 50px; /* Круглая форма кнопки */
color: #fff; /* Цвет текста */
font-size: 18px;
padding: 15px 30px;
cursor: pointer;
box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.2),
-8px -8px 15px rgba(255, 255, 255, 0.3); /* Тени для кнопки */
position: absolute;
top: 20px;
right: 20px;
transition: background 0.3s ease, transform 0.2s ease;
}
.play-button:hover {
background: linear-gradient(145deg, #7d5b8e, #4e3d73); /* Изменение градиента при наведении */
transform: scale(1.05); /* Увеличение кнопки при наведении */
}
.play-button:active {
transform: scale(0.95); /* Уменьшение кнопки при нажатии */
}
.play-button.disabled {
background: #b3a6d1; /* Цвет кнопки, когда она неактивна */
cursor: not-allowed; /* Указывает, что действие не разрешено */
box-shadow: none; /* Убирает тень, когда кнопка неактивна */
transition: none; /* Убирает анимацию при деактивации */
}