63 lines
1.5 KiB
CSS
63 lines
1.5 KiB
CSS
/* body {
|
|
background-image: url('/static/images/bg-phys.svg');
|
|
background-repeat: repeat;
|
|
background-size: 800px 600px;
|
|
background-attachment: fixed;
|
|
}*/
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
|
|
position: relative;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
top: -50%;
|
|
left: -50%;
|
|
width: 200%;
|
|
height: 200%;
|
|
z-index: -1;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath d='M0 0 L50 50 M50 0 L0 50' stroke='%23003366' stroke-width='0.5' opacity='0.08'/%3E%3Ccircle cx='25' cy='25' r='1.5' fill='%23003366' opacity='0.12'/%3E%3C/svg%3E");
|
|
background-size: 50px 50px;
|
|
transform: rotate(20deg);
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Ограничение максимального размера всех изображений */
|
|
main img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
margin: 20px auto;
|
|
border-radius: 4px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* Специальные классы для управления размером */
|
|
.img-left {
|
|
float: left;
|
|
max-width: 300px;
|
|
margin: 0 20px 20px 0;
|
|
}
|
|
|
|
.img-right {
|
|
float: right;
|
|
max-width: 300px;
|
|
margin: 0 0 20px 20px;
|
|
}
|
|
|
|
.img-center {
|
|
max-width: 500px;
|
|
margin: 20px auto;
|
|
}
|
|
|
|
.img-thumbnail {
|
|
max-width: 150px;
|
|
border: 2px solid #ddd;
|
|
} |