style.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. @import url('https://fonts.googleapis.com/css?family=Open+Sans');
  2. @import url('https://fonts.googleapis.com/css?family=Roboto+Slab');
  3. * {
  4. box-sizing: border-box;
  5. margin: 0;
  6. }
  7. html {
  8. font-size: 10px;
  9. }
  10. body {
  11. font-family: 'Open Sans', sans-serif;
  12. font-size: 1.4rem;
  13. line-height: 1.7;
  14. color: #6B6B6B;
  15. background: #F2f2f2;
  16. }
  17. img {
  18. max-width: 100%;
  19. }
  20. h1, h2, h3, h4, h5, h6 {
  21. font-family: 'Roboto Slab', serif;
  22. }
  23. h2 {
  24. font-size: 2.8rem;
  25. }
  26. main {
  27. overflow: hidden;
  28. margin: 40px 0;
  29. }
  30. header {
  31. background: #363636;
  32. }
  33. header {
  34. position: fixed;
  35. width: 100%;
  36. top: 0;
  37. left: 0;
  38. z-index: 1; /*повышает приоритет элементу*/
  39. }
  40. /*----------------------------------header------------------------------------*/
  41. header .head-menu {
  42. display: flex;
  43. flex-flow: row nowrap;
  44. justify-content: space-between;
  45. align-items: center;
  46. height: 75px;
  47. }
  48. header section p a {
  49. color: #DADADA;
  50. font-weight: bolder;
  51. text-decoration: none;
  52. font-size: 20px;
  53. }
  54. header .head-menu .menu {
  55. list-style: none;
  56. text-transform: uppercase;
  57. font-size: 12px;
  58. }
  59. header li {
  60. display: inline;
  61. margin-right: 30px;
  62. }
  63. header li a {
  64. text-decoration: none;
  65. color: #fff;
  66. }
  67. header li a:hover {
  68. color: #DA4453;
  69. transition: .3s;
  70. }
  71. /*----------------------------------slider----------------------------------------------*/
  72. section.slider {
  73. background: url(../img/slider.jpg) no-repeat;
  74. padding-top: 75px;
  75. width: 100%;
  76. height: 500px;
  77. margin-bottom: 50px;
  78. display: flex;
  79. flex-flow: column wrap;
  80. justify-content: flex-end;
  81. }
  82. .inslider {
  83. max-width: 1170px;
  84. margin: 0 auto;
  85. position: absolute;
  86. left: 0;
  87. right: 0;
  88. padding-bottom: 50px;
  89. }
  90. section .slider-caption {
  91. background: rgba(218, 68, 83, 0.7);
  92. font-size: 24px;
  93. font-weight: bolder;
  94. padding: 12px 20px;
  95. color: #fff;
  96. max-width: 350px;
  97. }
  98. section .slider-under-caption {
  99. background: rgba(59,59,59, 0.8);
  100. color: #DDDDDD;
  101. padding: 12px 20px;
  102. max-width: 600px;
  103. }
  104. /*--------------------------------------------------------------------------------------*/
  105. .inner-content {
  106. max-width: 1170px;
  107. margin: auto;
  108. }
  109. main .colum-content {
  110. float: left;
  111. width: 750px;
  112. max-width: 66%;
  113. }
  114. main .colum-side {
  115. float: left;
  116. width: 34%;
  117. padding-left: 30px;
  118. }
  119. article {
  120. margin-bottom: 50px;
  121. }
  122. article a.article-prew {
  123. transition: opacity .3s;
  124. }
  125. article a.article-prew:hover {
  126. opacity: 0.8;
  127. }
  128. article a img {
  129. vertical-align: middle;
  130. }
  131. article .article-content {
  132. background: #fff;
  133. border: 1px solid #dadada;
  134. padding: 45px 50px;
  135. }
  136. article h2 {
  137. margin-bottom: 30px;
  138. }
  139. article h2 a {
  140. text-decoration: none;
  141. color: #444;
  142. transition: color 0.3s;
  143. }
  144. article h2 a:hover {
  145. color: #DA4453;
  146. }
  147. article .meta-info {
  148. margin-bottom: 30px;
  149. }
  150. article .meta-info a {
  151. text-decoration: none;
  152. color: #6B6B6B;
  153. margin-right: 15px;
  154. }
  155. article .links {
  156. text-align: right;
  157. margin-top: 20px;
  158. }
  159. article .links .readmore {
  160. background: #DA4453;
  161. color: #fff;
  162. text-decoration: none;
  163. padding: 11px 13px;
  164. display: inline-block;
  165. border-radius: 4px;
  166. text-transform: uppercase;
  167. transition: background 0.5s;
  168. border: 1px solid transparent;
  169. }
  170. article .links .readmore:hover {
  171. background: #000;
  172. border-color: #000;
  173. }
  174. /*------------------------------------right----------------------------------------*/
  175. .colum-side .colum-side-inner {
  176. background: #fff;
  177. border:1px solid #DADADA;
  178. border-radius: 4px;
  179. padding: 30px;
  180. }
  181. .colum-side .colum-side-inner p {
  182. font-weight: bolder;
  183. color: #636467;
  184. padding-bottom: 25px;
  185. text-transform: uppercase;
  186. }
  187. .colum-side-inner .social-media {
  188. display: flex;
  189. flex-flow: row wrap;
  190. justify-content: flex-start;
  191. }
  192. .colum-side-inner .social-media a {
  193. height: 40px;
  194. width: 40px;
  195. color: #fff;
  196. margin-right: 5px;
  197. margin-bottom: 5px;
  198. border-radius: 3px;
  199. font-size: 18px;
  200. background: #C1C0C0;
  201. text-align: center;
  202. line-height: 2;
  203. }
  204. .colum-side-inner .social-media a.tw:hover {
  205. background: #55ACEE;
  206. }
  207. .colum-side-inner .social-media a.f:hover {
  208. background: #4365B9;
  209. }
  210. .colum-side-inner .social-media a.yb:hover {
  211. background: #DF3333;
  212. }
  213. .colum-side-inner .social-media a.gg:hover {
  214. background: #D62408;
  215. }
  216. .colum-side-inner .social-media a.vk:hover {
  217. background: #5B8BB4;
  218. }
  219. .colum-side .colum-side-inner .comments-block {
  220. color: #C1C0C0;
  221. margin-bottom: 10px;
  222. padding-bottom: 50px;
  223. }
  224. .comments-block ul {
  225. list-style: none;
  226. padding-left: 0;
  227. }
  228. .comments-block ul li span {
  229. font-weight: bolder;
  230. }
  231. .links-block {
  232. margin-bottom: 0;
  233. }
  234. .links-block .tag-link {
  235. display: flex;
  236. flex-flow: row wrap;
  237. }
  238. .links-block .tag-link a {
  239. background: #DADADA;
  240. margin-bottom: 4px;
  241. margin-right: 4px;
  242. padding: 6px 7px;
  243. color: #fff;
  244. border-radius: 3px;
  245. font-size: 12px;
  246. text-decoration: none;
  247. }
  248. .links-block .tag-link a:hover {
  249. background: #DA4453;
  250. }
  251. /*------------------------------------footer----------------------------------------*/
  252. footer {
  253. background: #1F1F1F;
  254. padding: 10px 0;
  255. }
  256. footer .footer-menu {
  257. display: flex;
  258. flex-flow: row nowrap;
  259. justify-content: space-between;
  260. align-items: center;
  261. }
  262. footer .footer-menu .menu{
  263. padding-left: 0;
  264. }
  265. footer li {
  266. display: inline;
  267. margin-right: 30px;
  268. }
  269. footer li a {
  270. color: #DADADA;
  271. text-decoration: none;
  272. padding: 10px 15px;
  273. }
  274. footer li a:hover {
  275. color: #FFF;
  276. }
  277. footer address {
  278. color: #999;
  279. font-size: 12px;
  280. font-style: normal;
  281. }
  282. footer address span {
  283. color: #DADADA;
  284. }