Showing
7 changed files
with
229 additions
and
7 deletions
build/candidate.html
0 → 100644
| 1 | +<!doctype html> | ||
| 2 | +<html lang="ru"> | ||
| 3 | +<head> | ||
| 4 | + <meta charset="utf-8"> | ||
| 5 | + <meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
| 6 | + <title>Выборы в Совет депутатов Савёловского района</title> | ||
| 7 | + <meta name="description" content=""> | ||
| 8 | + <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 9 | + <link rel="apple-touch-icon" href="/img/apple-touch-icon.png"> | ||
| 10 | + <link rel="stylesheet" href="css/main.css"> | ||
| 11 | + <script src="js/main.js"></script> | ||
| 12 | +</head> | ||
| 13 | +<body> | ||
| 14 | + | ||
| 15 | + | ||
| 16 | +<div class="header "> | ||
| 17 | + <div class="header__container"> | ||
| 18 | + <div class="header__row"> | ||
| 19 | + <a href="#" class="header__logo "> | ||
| 20 | + <div class="icon icon__logo"></div> | ||
| 21 | + </a> | ||
| 22 | + | ||
| 23 | + <div class="header__nav "> | ||
| 24 | + <div class=" header__title ">Команда независимых кандидатов в совет депутатов Савёловского района</div> | ||
| 25 | + | ||
| 26 | + <div class="header__nav__wrapper"> | ||
| 27 | + <ul class="nav nav--header"> | ||
| 28 | + <li><a href="about.html">О совете депутатов</a></li> | ||
| 29 | + <li><a href="candidates.html">Кандидаты</a></li> | ||
| 30 | + <li><a href="help.html">Как помочь</a></li> | ||
| 31 | + <li><a href="volunteer.html">Стать волонтёром</a></li> | ||
| 32 | + <li><a href="vote.html">Как проголосовать</a></li> | ||
| 33 | + </ul> | ||
| 34 | + </div> | ||
| 35 | + </div> | ||
| 36 | + | ||
| 37 | + <a href="#right-menu" id="right-menu" class="mobile-menu"><span></span></a> | ||
| 38 | + | ||
| 39 | + <!--<a id="right-menu" href="#right-menu">Right Menu</a>--> | ||
| 40 | + | ||
| 41 | + <div class="header__do"> | ||
| 42 | + <button type="button" class="btn btn-default btn__attention">Поддержать</button> | ||
| 43 | + </div> | ||
| 44 | + </div> | ||
| 45 | + </div> | ||
| 46 | +</div> | ||
| 47 | + | ||
| 48 | +<div class="content"> | ||
| 49 | + <div class="content__container"> | ||
| 50 | + | ||
| 51 | + <div class="candidate"> | ||
| 52 | + <div class="candidate__img"> | ||
| 53 | + <img src="http://xn--2017-43dma2cjij0b9af0v.xn--p1ai/assets/images/2_vihoreva.jpg" alt=""> | ||
| 54 | + </div> | ||
| 55 | + | ||
| 56 | + <div class="candidate__description"> | ||
| 57 | + <h1 class="head-h1">Кто-то там</h1> | ||
| 58 | + | ||
| 59 | + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque, porro?</p> | ||
| 60 | + | ||
| 61 | + <br> | ||
| 62 | + | ||
| 63 | + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Blanditiis debitis dicta dolor esse, hic ipsam maiores officiis quaerat repudiandae voluptatem?</p> | ||
| 64 | + </div> | ||
| 65 | + </div> | ||
| 66 | + | ||
| 67 | + </div> | ||
| 68 | +</div> | ||
| 69 | + | ||
| 70 | +<div class="footer"> | ||
| 71 | + <div class="footer__container"> | ||
| 72 | + <div class="footer__left"> | ||
| 73 | + <p>Следите за кампанией</p> | ||
| 74 | + | ||
| 75 | + <ul class="social"> | ||
| 76 | + <li><a href="#">Вконтакте</a></li> | ||
| 77 | + <li><a href="#">Фейсбук</a></li> | ||
| 78 | + <li><a href="#">Твиттер</a></li> | ||
| 79 | + <li><a href="#">Одноклассники</a></li> | ||
| 80 | + </ul> | ||
| 81 | + | ||
| 82 | + <p>Оставьте нам свой мобильный телефон. Мы отправим вам сообщение перед выборами</p> | ||
| 83 | + | ||
| 84 | + | ||
| 85 | + <form class="form-inline" role="form"> | ||
| 86 | + <div class="form-group"> | ||
| 87 | + <input type="email" class="form-control" placeholder=""> | ||
| 88 | + </div> | ||
| 89 | + <button type="submit" class="btn btn-default">Напомнить о выборах</button> | ||
| 90 | + </form> | ||
| 91 | + </div> | ||
| 92 | + | ||
| 93 | + <div class="footer__right"> | ||
| 94 | + <p>Пообщаться с кандидатами</p> | ||
| 95 | + | ||
| 96 | + <ul class="social"> | ||
| 97 | + <li><a href="#">Телеграм</a></li> | ||
| 98 | + <li><a href="#">Электронная почта</a></li> | ||
| 99 | + <li><a href="#">Телефон</a></li> | ||
| 100 | + </ul> | ||
| 101 | + </div> | ||
| 102 | + | ||
| 103 | + <div class="col-xs-24 text-center"> | ||
| 104 | + <br> | ||
| 105 | + | ||
| 106 | + <h4 class="">Приходите на выборы 10 сентября 2017 года <br> и голосуйте за независимую команду</h4> | ||
| 107 | + | ||
| 108 | + <br> | ||
| 109 | + | ||
| 110 | + <button type="button" class="btn btn-default btn__attention">Как проголосовать</button> | ||
| 111 | + </div> | ||
| 112 | + </div> | ||
| 113 | +</div> | ||
| 114 | +</body> | ||
| 115 | +</html> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -7739,6 +7739,7 @@ This must be run when you have at least 2 sprites. | ... | @@ -7739,6 +7739,7 @@ This must be run when you have at least 2 sprites. |
| 7739 | } | 7739 | } |
| 7740 | .head-h1 { | 7740 | .head-h1 { |
| 7741 | font-size: 28px; | 7741 | font-size: 28px; |
| 7742 | + margin-top: 0; | ||
| 7742 | } | 7743 | } |
| 7743 | h1, | 7744 | h1, |
| 7744 | h2, | 7745 | h2, |
| ... | @@ -7930,6 +7931,8 @@ label { | ... | @@ -7930,6 +7931,8 @@ label { |
| 7930 | } | 7931 | } |
| 7931 | } | 7932 | } |
| 7932 | .header__do { | 7933 | .header__do { |
| 7934 | + float: left; | ||
| 7935 | + width: 100%; | ||
| 7933 | position: relative; | 7936 | position: relative; |
| 7934 | min-height: 1px; | 7937 | min-height: 1px; |
| 7935 | padding-left: 10px; | 7938 | padding-left: 10px; |
| ... | @@ -7937,20 +7940,22 @@ label { | ... | @@ -7937,20 +7940,22 @@ label { |
| 7937 | margin-top: 15px; | 7940 | margin-top: 15px; |
| 7938 | text-align: right; | 7941 | text-align: right; |
| 7939 | } | 7942 | } |
| 7940 | -@media (min-width: 797px) { | 7943 | +@media (min-width: 990px) { |
| 7941 | .header__do { | 7944 | .header__do { |
| 7942 | float: left; | 7945 | float: left; |
| 7943 | - width: 100%; | 7946 | + width: 14.58333333%; |
| 7944 | } | 7947 | } |
| 7945 | } | 7948 | } |
| 7946 | -@media (min-width: 990px) { | 7949 | +@media (max-width: 989px) { |
| 7947 | .header__do { | 7950 | .header__do { |
| 7948 | - float: left; | 7951 | + text-align: center; |
| 7949 | - width: 14.58333333%; | ||
| 7950 | } | 7952 | } |
| 7951 | } | 7953 | } |
| 7952 | -.header__do .btn { | 7954 | +@media (max-width: 989px) { |
| 7955 | + .header__do .btn { | ||
| 7953 | width: 100%; | 7956 | width: 100%; |
| 7957 | + max-width: 200px; | ||
| 7958 | + } | ||
| 7954 | } | 7959 | } |
| 7955 | .mobile-menu { | 7960 | .mobile-menu { |
| 7956 | position: absolute; | 7961 | position: absolute; |
| ... | @@ -8386,6 +8391,50 @@ label { | ... | @@ -8386,6 +8391,50 @@ label { |
| 8386 | height: 100%; | 8391 | height: 100%; |
| 8387 | text-align: center; | 8392 | text-align: center; |
| 8388 | } | 8393 | } |
| 8394 | +.candidate { | ||
| 8395 | + margin: 0px -10px; | ||
| 8396 | +} | ||
| 8397 | +.candidate__img { | ||
| 8398 | + float: left; | ||
| 8399 | + width: 100%; | ||
| 8400 | + position: relative; | ||
| 8401 | + min-height: 1px; | ||
| 8402 | + padding-left: 10px; | ||
| 8403 | + padding-right: 10px; | ||
| 8404 | +} | ||
| 8405 | +@media (min-width: 550px) { | ||
| 8406 | + .candidate__img { | ||
| 8407 | + float: left; | ||
| 8408 | + width: 33.33333333%; | ||
| 8409 | + } | ||
| 8410 | +} | ||
| 8411 | +.candidate__img img { | ||
| 8412 | + width: 100%; | ||
| 8413 | +} | ||
| 8414 | +.candidate__description { | ||
| 8415 | + float: left; | ||
| 8416 | + width: 100%; | ||
| 8417 | + position: relative; | ||
| 8418 | + min-height: 1px; | ||
| 8419 | + padding-left: 10px; | ||
| 8420 | + padding-right: 10px; | ||
| 8421 | +} | ||
| 8422 | +@media (min-width: 550px) { | ||
| 8423 | + .candidate__description { | ||
| 8424 | + float: left; | ||
| 8425 | + width: 62.5%; | ||
| 8426 | + } | ||
| 8427 | +} | ||
| 8428 | +@media (min-width: 550px) { | ||
| 8429 | + .candidate__description { | ||
| 8430 | + margin-left: 4.16666667%; | ||
| 8431 | + } | ||
| 8432 | +} | ||
| 8433 | +@media (max-width: 549px) { | ||
| 8434 | + .candidate__description { | ||
| 8435 | + padding-top: 20px; | ||
| 8436 | + } | ||
| 8437 | +} | ||
| 8389 | .promo { | 8438 | .promo { |
| 8390 | text-align: center; | 8439 | text-align: center; |
| 8391 | padding: 30px 0px; | 8440 | padding: 30px 0px; |
| ... | @@ -8411,6 +8460,7 @@ label { | ... | @@ -8411,6 +8460,7 @@ label { |
| 8411 | } | 8460 | } |
| 8412 | .promo__title { | 8461 | .promo__title { |
| 8413 | font-size: 28px; | 8462 | font-size: 28px; |
| 8463 | + margin-top: 0; | ||
| 8414 | } | 8464 | } |
| 8415 | @media (max-width: 989px) { | 8465 | @media (max-width: 989px) { |
| 8416 | .promo__title { | 8466 | .promo__title { | ... | ... |
src/candidate.html
0 → 100644
| 1 | +//= _head.html | ||
| 2 | + | ||
| 3 | +//= _header.html | ||
| 4 | + | ||
| 5 | +<div class="content"> | ||
| 6 | + <div class="content__container"> | ||
| 7 | + | ||
| 8 | + <div class="candidate"> | ||
| 9 | + <div class="candidate__img"> | ||
| 10 | + <img src="http://xn--2017-43dma2cjij0b9af0v.xn--p1ai/assets/images/2_vihoreva.jpg" alt=""> | ||
| 11 | + </div> | ||
| 12 | + | ||
| 13 | + <div class="candidate__description"> | ||
| 14 | + <h1 class="head-h1">Кто-то там</h1> | ||
| 15 | + | ||
| 16 | + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque, porro?</p> | ||
| 17 | + | ||
| 18 | + <br> | ||
| 19 | + | ||
| 20 | + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Blanditiis debitis dicta dolor esse, hic ipsam maiores officiis quaerat repudiandae voluptatem?</p> | ||
| 21 | + </div> | ||
| 22 | + </div> | ||
| 23 | + | ||
| 24 | + </div> | ||
| 25 | +</div> | ||
| 26 | + | ||
| 27 | +//= _footer.html |
src/styles/candidate.less
0 → 100644
| 1 | + | ||
| 2 | +.candidate { | ||
| 3 | + margin: 0px -10px; | ||
| 4 | + | ||
| 5 | + &__img { | ||
| 6 | + .make-xs-column(24); | ||
| 7 | + .make-sm-column(8); | ||
| 8 | + | ||
| 9 | + img { | ||
| 10 | + width: 100%; | ||
| 11 | + } | ||
| 12 | + } | ||
| 13 | + | ||
| 14 | + &__description { | ||
| 15 | + .make-xs-column(24); | ||
| 16 | + .make-sm-column(15); | ||
| 17 | + .make-sm-column-offset(1); | ||
| 18 | + @media(@xs){ | ||
| 19 | + padding-top: 20px; | ||
| 20 | + } | ||
| 21 | + } | ||
| 22 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -43,13 +43,19 @@ | ... | @@ -43,13 +43,19 @@ |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | &__do { | 45 | &__do { |
| 46 | - .make-md-column(24); | 46 | + .make-xs-column(24); |
| 47 | .make-lg-column(3.5); | 47 | .make-lg-column(3.5); |
| 48 | margin-top: 15px; | 48 | margin-top: 15px; |
| 49 | text-align: right; | 49 | text-align: right; |
| 50 | + @media(@md){ | ||
| 51 | + text-align: center; | ||
| 52 | + } | ||
| 50 | 53 | ||
| 51 | .btn { | 54 | .btn { |
| 55 | + @media(@md){ | ||
| 52 | width: 100%; | 56 | width: 100%; |
| 57 | + max-width: 200px; | ||
| 58 | + } | ||
| 53 | } | 59 | } |
| 54 | } | 60 | } |
| 55 | } | 61 | } | ... | ... |
-
Please register or login to post a comment