Update style.css

main
Mihaeļs Mejerovs 2024-05-21 18:28:58 +00:00
parent 79a7536dd8
commit 00290943ec
1 changed files with 135 additions and 115 deletions

250
style.css
View File

@ -1,115 +1,135 @@
body{ body {
height: 100%; background-repeat: no-repeat;
margin: 0; background-attachment: fixed; /* Это делает фон фиксированным */
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; background-size: cover; /* Это масштабирует изображение для заполнения всего экрана */
background-color: #F2F2F2; background-color: #EEEEEE;
}
}
html {
height: 100%;
margin: 0;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; html {
} height: 100%;
margin: 0;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
.panel { }
color: red;
}
.panel {
.panel ul { color: red;
list-style-type: none; }
margin: 0;
padding: 0; .panel ul {
overflow: hidden; list-style-type: none;
background-color: #066163; margin: 0;
} padding: 0;
overflow: hidden;
.panel li { background-color: #066163;
float: left; }
font-size: 150%;
text-align: center; .panel li {
float: left;
} font-size: 150%;
text-align: center;
.panel li a {
display: block; }
color: #F2F2F2;
text-align: center; .panel li a {
padding: 20px 22px; display: block;
text-decoration: none; color: #F2F2F2;
text-align: center;
padding: 20px 22px;
} text-decoration: none;
.panel li a:hover {
}
color: #CDBE78;
} .panel li a:hover {
.glavfoto { color: #CDBE78;
background-image: url("https://www.minecraft.net/content/dam/community/fy21/minecraft/heroimages/hero_cityoflight-081220.png"); }
height: 100%;
width: 100%; .glavfoto {
background-position: center; background-image: url("https://www.minecraft.net/content/dam/community/fy21/minecraft/heroimages/hero_cityoflight-081220.png");
background-repeat: no-repeat; height: 100%;
background-size: cover; width: 100%;
position: relative; background-position: center;
} background-repeat: no-repeat;
background-size: cover;
.glavtex { position: relative;
text-align: center; }
position: absolute;
top: 30%; .glavtex {
left: 50%; text-align: center;
transform: translate(-50%, -50%); position: absolute;
color: #EEEEEE; top: 30%;
} left: 50%;
transform: translate(-50%, -50%);
.glavp { color: #EEEEEE;
font-size: 100px; }
margin: 1px;
color: #066163; .glavp {
font-weight: bold; font-size: 100px;
text-align: center; margin: 1px;
} color: #066163;
font-weight: bold;
.center { text-align: center;
margin-left: 25%; }
margin-right: 25%;
.center {
} margin-left: 10%;
margin-right: 10%;
.oglavlenije {
font-size: 40px; }
text-align: center;
font-weight: bold; .oglavlenije {
font-size: 40px;
} text-align: center;
.samtext { font-weight: bold;
font-size: 20px;
} }
.samtext {
.foto1 { font-size: 20px;
float: left; }
width: 33%;
} .foto1 {
float: left;
footer { width: 33%;
left: 0; }
bottom: 0;
width: 100%; footer {
height: 35px; left: 0;
bottom: 0;
background-color: #066163; width: 100%;
color: #F2F2F2; height: 35px;
text-align: center;
font-size: 20px; background-color: #066163;
color: #F2F2F2;
} text-align: center;
font-size: 20px;
.masik {
text-align: center; }
font-size: 25px;
color: #066163; .masik {
} text-align: center;
font-size: 25px;
color: #066163;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Применение анимации ко всем изображениям */
img {
animation: fadeIn 2s ease-in-out;
-webkit-animation: fadeIn 2s ease-in-out; /* Для совместимости с Safari */
-moz-animation: fadeIn 2s ease-in-out; /* Для совместимости с Firefox */
-o-animation: fadeIn 2s ease-in-out; /* Для совместимости с Opera */
animation-fill-mode: forwards; /* Сохраняет конечное состояние анимации */
}