Andrei | рефакторинг проекта (разнес стили и скрипты главной страницы в /static/js/front-page.js и /static/css/fron-page.css)
@ -1,173 +0,0 @@ |
|||||||
.slider { |
|
||||||
position: relative; |
|
||||||
height: 400px; |
|
||||||
width: 100%; |
|
||||||
} |
|
||||||
.slider.fullscreen { |
|
||||||
height: 100%; |
|
||||||
width: 100%; |
|
||||||
position: absolute; |
|
||||||
top: 0; |
|
||||||
left: 0; |
|
||||||
right: 0; |
|
||||||
bottom: 0; |
|
||||||
} |
|
||||||
.slider.fullscreen ul.slides { |
|
||||||
height: 100%; |
|
||||||
} |
|
||||||
.slider.fullscreen ul.indicators { |
|
||||||
z-index: 2; |
|
||||||
bottom: 30px; |
|
||||||
} |
|
||||||
.slider .slides { |
|
||||||
background-color: #9e9e9e; |
|
||||||
margin: 0; |
|
||||||
height: 400px; |
|
||||||
} |
|
||||||
.slider .slides li { |
|
||||||
opacity: 0; |
|
||||||
position: absolute; |
|
||||||
top: 0; |
|
||||||
left: 0; |
|
||||||
z-index: 1; |
|
||||||
width: 100%; |
|
||||||
height: inherit; |
|
||||||
overflow: hidden; |
|
||||||
} |
|
||||||
.slider .slides li img { |
|
||||||
height: 100%; |
|
||||||
width: 100%; |
|
||||||
background-size: cover; |
|
||||||
background-position: center; |
|
||||||
} |
|
||||||
.slider .slides li .caption { |
|
||||||
color: #fff; |
|
||||||
position: absolute; |
|
||||||
top: 15%; |
|
||||||
left: 15%; |
|
||||||
width: 70%; |
|
||||||
opacity: 0; |
|
||||||
} |
|
||||||
.slider .slides li .caption p { |
|
||||||
color: #e0e0e0; |
|
||||||
} |
|
||||||
.slider .slides li.active { |
|
||||||
z-index: 2; |
|
||||||
} |
|
||||||
.slider .indicators { |
|
||||||
position: absolute; |
|
||||||
text-align: center; |
|
||||||
left: 0; |
|
||||||
right: 0; |
|
||||||
bottom: 0; |
|
||||||
margin: 0; |
|
||||||
} |
|
||||||
.slider .indicators .indicator-item { |
|
||||||
display: inline-block; |
|
||||||
position: relative; |
|
||||||
cursor: pointer; |
|
||||||
height: 16px; |
|
||||||
width: 16px; |
|
||||||
margin: 0 12px; |
|
||||||
background-color: #e0e0e0; |
|
||||||
-webkit-transition: background-color 0.3s; |
|
||||||
transition: background-color 0.3s; |
|
||||||
border-radius: 50%; |
|
||||||
} |
|
||||||
.slider .indicators .indicator-item.active { |
|
||||||
background-color: #4caf50; |
|
||||||
} |
|
||||||
.carousel { |
|
||||||
overflow: hidden; |
|
||||||
position: relative; |
|
||||||
width: 100%; |
|
||||||
min-height: 660px; |
|
||||||
-webkit-perspective: 500px; |
|
||||||
perspective: 500px; |
|
||||||
-webkit-transform-style: preserve-3d; |
|
||||||
transform-style: preserve-3d; |
|
||||||
-webkit-transform-origin: 0% 50%; |
|
||||||
transform-origin: 0% 50%; |
|
||||||
} |
|
||||||
.carousel.carousel-slider { |
|
||||||
top: 0; |
|
||||||
left: 0; |
|
||||||
} |
|
||||||
.carousel.carousel-slider .carousel-fixed-item { |
|
||||||
position: absolute; |
|
||||||
left: 0; |
|
||||||
right: 0; |
|
||||||
bottom: 20px; |
|
||||||
z-index: 1; |
|
||||||
} |
|
||||||
.carousel.carousel-slider .carousel-fixed-item.with-indicators { |
|
||||||
bottom: 68px; |
|
||||||
} |
|
||||||
.carousel.carousel-slider .carousel-item { |
|
||||||
width: 100%; |
|
||||||
height: 100%; |
|
||||||
min-height: 400px; |
|
||||||
position: absolute; |
|
||||||
top: 0; |
|
||||||
left: 0; |
|
||||||
} |
|
||||||
.carousel.carousel-slider .carousel-item h2 { |
|
||||||
font-size: 24px; |
|
||||||
font-weight: 500; |
|
||||||
line-height: 32px; |
|
||||||
} |
|
||||||
.carousel.carousel-slider .carousel-item p { |
|
||||||
font-size: 15px; |
|
||||||
} |
|
||||||
.carousel .carousel-item { |
|
||||||
visibility: hidden; |
|
||||||
/* width: 200px; */ |
|
||||||
/* height: 200px; */ |
|
||||||
width: 257px; |
|
||||||
height: 489px; |
|
||||||
position: absolute; |
|
||||||
top: 0; |
|
||||||
left: 0; |
|
||||||
} |
|
||||||
.carousel .carousel-item > img { |
|
||||||
width: 100%; |
|
||||||
} |
|
||||||
.carousel .indicators { |
|
||||||
position: absolute; |
|
||||||
text-align: center; |
|
||||||
left: 0; |
|
||||||
right: 0; |
|
||||||
bottom: 0; |
|
||||||
margin: 0; |
|
||||||
} |
|
||||||
.carousel .indicators .indicator-item { |
|
||||||
display: inline-block; |
|
||||||
position: relative; |
|
||||||
cursor: pointer; |
|
||||||
margin: 24px 4px; |
|
||||||
width: 8px; |
|
||||||
height: 8px; |
|
||||||
opacity : 0.5; |
|
||||||
content: ""; |
|
||||||
border-radius: 50%; |
|
||||||
border: 1px solid #fff; |
|
||||||
background-color: unset; |
|
||||||
/* round-color 0.3s; */ |
|
||||||
border-radius: 50%; |
|
||||||
} |
|
||||||
.carousel .indicators .indicator-item { |
|
||||||
width: 9px; |
|
||||||
height: 9px; |
|
||||||
content: ""; |
|
||||||
border-radius: 50%; |
|
||||||
border: 1px solid #fff; |
|
||||||
background-color: unset; |
|
||||||
} |
|
||||||
.carousel .indicators .indicator-item.active { |
|
||||||
background-color: #fff; |
|
||||||
opacity: 1; |
|
||||||
} |
|
||||||
.carousel.scrolling .carousel-item .materialboxed, |
|
||||||
.carousel .carousel-item:not(.active) .materialboxed { |
|
||||||
pointer-events: none; |
|
||||||
} |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 4.2 MiB After Width: | Height: | Size: 4.2 MiB |
Before Width: | Height: | Size: 3.6 MiB After Width: | Height: | Size: 3.6 MiB |
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.0 MiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 396 KiB After Width: | Height: | Size: 396 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 598 B After Width: | Height: | Size: 598 B |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 6.6 MiB After Width: | Height: | Size: 6.6 MiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 376 KiB After Width: | Height: | Size: 376 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 155 KiB |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 168 KiB |
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 206 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 257 B |
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 5.2 MiB After Width: | Height: | Size: 5.2 MiB |
Before Width: | Height: | Size: 5.3 MiB After Width: | Height: | Size: 5.3 MiB |
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 186 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 491 KiB After Width: | Height: | Size: 491 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 486 B After Width: | Height: | Size: 486 B |
Before Width: | Height: | Size: 976 B After Width: | Height: | Size: 976 B |
Before Width: | Height: | Size: 1003 B After Width: | Height: | Size: 1003 B |
Before Width: | Height: | Size: 476 B After Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 886 B After Width: | Height: | Size: 886 B |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 246 KiB After Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 284 KiB After Width: | Height: | Size: 284 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 424 B |
Before Width: | Height: | Size: 598 B After Width: | Height: | Size: 598 B |
Before Width: | Height: | Size: 850 B After Width: | Height: | Size: 850 B |
Before Width: | Height: | Size: 976 B After Width: | Height: | Size: 976 B |
Before Width: | Height: | Size: 1003 B After Width: | Height: | Size: 1003 B |
Before Width: | Height: | Size: 476 B After Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 240 B |
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 319 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |