main.scss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. @import "variables";
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. font-family: Tahoma, Arial, Helvetica, sans-serif;
  7. }
  8. img {
  9. display: block;
  10. width: 100%;
  11. }
  12. body {
  13. max-width: $pageWidth;
  14. margin: 0 auto;
  15. color: $color-black;
  16. overflow-x: hidden;
  17. }
  18. header {
  19. position: relative;
  20. display: flex;
  21. align-items: center;
  22. justify-content: space-evenly;
  23. background-color: $color1;
  24. color: $color-white;
  25. margin-bottom: 20px;
  26. > .logo {
  27. width: 180px;
  28. text-align: center;
  29. // Hide Anchor underline
  30. text-decoration: none;
  31. flex-shrink: 0;
  32. > .text {
  33. font-weight: 700;
  34. text-decoration: none;
  35. }
  36. }
  37. }
  38. main {
  39. display: grid;
  40. section {
  41. position: relative;
  42. }
  43. .article-title {
  44. font-weight: bold;
  45. margin-bottom: 20px;
  46. color: $color-black;
  47. line-height: 1;
  48. }
  49. article {
  50. background-color: $color-white;
  51. border-radius: $border-radius;
  52. padding: 20px;
  53. > h1 {
  54. font-size: 1.4rem;
  55. text-align: center;
  56. margin-bottom: 20px;
  57. }
  58. > .published {
  59. font-size: 0.8rem;
  60. font-style: italic;
  61. color: $color-grey;
  62. margin-bottom: 20px;
  63. }
  64. > p {
  65. margin: 20px 0;
  66. text-indent: 25px;
  67. text-align: justify;
  68. line-height: 1.5;
  69. }
  70. ol,
  71. ul {
  72. margin: 20px 0;
  73. padding-left: 25px;
  74. line-height: 1.5;
  75. text-align: justify;
  76. }
  77. .news-images {
  78. display: grid;
  79. grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  80. grid-auto-rows: 220px;
  81. grid-gap: 10px;
  82. padding-top: 40px;
  83. margin-top: 40px;
  84. border-top: 1px solid $color-grey;
  85. img {
  86. width: 100%;
  87. height: 100%;
  88. object-fit: cover;
  89. }
  90. }
  91. }
  92. }
  93. footer {
  94. text-align: center;
  95. color: $color-white;
  96. background-color: $color1;
  97. margin-top: 50px;
  98. padding: 20px 0;
  99. position: relative;
  100. a {
  101. text-decoration: none;
  102. color: inherit;
  103. transition: color 100ms linear;
  104. &:hover {
  105. cursor: pointer;
  106. color: $color-secondary-a-0;
  107. }
  108. }
  109. .sign-in {
  110. color: $color-white;
  111. &:hover {
  112. color: $color-secondary-a-0;
  113. cursor: pointer;
  114. }
  115. }
  116. }
  117. .block {
  118. margin-bottom: 20px;
  119. padding: 15px 5px;
  120. background-color: $color-grey;
  121. border-radius: $border-radius;
  122. text-decoration: none;
  123. color: $color-black;
  124. min-height: 90px;
  125. // transition: background-color 250ms linear, color 250ms linear;
  126. .normal {
  127. font-size: 1.2em;
  128. }
  129. .red {
  130. font-size: 1.5em;
  131. color: red;
  132. }
  133. .sub {
  134. font-size: 0.7em;
  135. }
  136. &.flex {
  137. display: flex;
  138. justify-content: space-around;
  139. align-items: center;
  140. > .image {
  141. width: 100px;
  142. }
  143. }
  144. > .icon {
  145. text-align: center;
  146. + div {
  147. margin-right: 5px;
  148. flex-grow: 1;
  149. max-width: 60%;
  150. }
  151. }
  152. }
  153. a.block {
  154. &:hover {
  155. cursor: pointer;
  156. background-color: $color1;
  157. color: $color-white;
  158. }
  159. }
  160. .notice-container {
  161. margin-bottom: 20px;
  162. .carousel {
  163. position: relative;
  164. width: 100%;
  165. overflow: hidden;
  166. background-color: $color-white;
  167. border-radius: $border-radius;
  168. > .slider {
  169. display: flex;
  170. flex-wrap: nowrap;
  171. position: absolute;
  172. height: 100%;
  173. z-index: 10;
  174. > .slide {
  175. width: 100%;
  176. display: flex;
  177. justify-content: center;
  178. align-items: center;
  179. overflow: hidden;
  180. > .image {
  181. position: relative;
  182. > img {
  183. width: 100%;
  184. height: 100%;
  185. display: block;
  186. object-position: center;
  187. position: relative;
  188. z-index: 2;
  189. }
  190. }
  191. > .content {
  192. display: flex;
  193. flex-direction: column;
  194. > h2 {
  195. margin-bottom: 20px;
  196. }
  197. > .text {
  198. max-height: 90px;
  199. overflow: hidden;
  200. columns: 1;
  201. line-height: 1.6;
  202. }
  203. > .full-text {
  204. display: none;
  205. }
  206. }
  207. &.expand {
  208. position: fixed;
  209. z-index: 200;
  210. left: 0;
  211. background-color: $color-white;
  212. right: 0;
  213. bottom: 0;
  214. > .image {
  215. height: auto;
  216. width: 100%;
  217. &.no {
  218. display: none;
  219. }
  220. }
  221. > .content {
  222. > h2 {
  223. font-size: 2rem;
  224. }
  225. > .text {
  226. display: none;
  227. }
  228. > .full-text {
  229. display: block;
  230. font-size: 1.6rem;
  231. max-height: none;
  232. columns: unset;
  233. overflow: auto;
  234. }
  235. }
  236. }
  237. }
  238. }
  239. > .navigation-dots {
  240. position: absolute;
  241. bottom: 10px;
  242. left: 50%;
  243. z-index: 11;
  244. transform: translateX(-50%);
  245. display: flex;
  246. div {
  247. width: 15px;
  248. height: 15px;
  249. background-color: rgba(0, 0, 0, 0.15);
  250. border-radius: 50%;
  251. margin: 0 5px;
  252. transition: background-color 250ms linear;
  253. &.active {
  254. background-color: rgba(0, 0, 0, 0.35);
  255. }
  256. &:hover:not(.active) {
  257. cursor: pointer;
  258. background-color: rgba(0, 0, 0, 1);
  259. }
  260. }
  261. }
  262. &.hide {
  263. &::before {
  264. background-color: $color-white;
  265. content: "";
  266. position: absolute;
  267. top: 0;
  268. right: 0;
  269. left: 0;
  270. bottom: 0;
  271. z-index: 30;
  272. opacity: 1;
  273. }
  274. &.out {
  275. &::before {
  276. opacity: 0;
  277. transition: opacity 500ms linear;
  278. }
  279. }
  280. }
  281. }
  282. }
  283. .news-container {
  284. display: grid;
  285. grid-auto-rows: minmax(300px, auto);
  286. grid-gap: 10px;
  287. margin-bottom: 20px;
  288. > .news {
  289. background-color: $color-grey;
  290. border-radius: $border-radius;
  291. position: relative;
  292. display: flex;
  293. flex-direction: column;
  294. justify-content: center;
  295. overflow: hidden;
  296. > .caption {
  297. font-weight: bold;
  298. font-size: 1.4rem;
  299. margin-bottom: 20px;
  300. }
  301. > .text {
  302. max-height: 90px;
  303. overflow: hidden;
  304. columns: 1;
  305. line-height: 1.6;
  306. }
  307. }
  308. }
  309. .news-pagination {
  310. display: flex;
  311. justify-content: center;
  312. > a {
  313. display: block;
  314. color: $color-black;
  315. background-color: $color-white;
  316. margin: 0 2px;
  317. border-radius: $border-radius;
  318. text-decoration: none;
  319. &:hover {
  320. cursor: pointer;
  321. background-color: $color-green-500;
  322. color: $color-green-50;
  323. }
  324. &.active {
  325. cursor: default;
  326. font-weight: 700;
  327. background-color: $color-grey;
  328. color: $color-white;
  329. }
  330. }
  331. }
  332. // Кнопка Читать далее
  333. a {
  334. &.gradient-button {
  335. display: flex;
  336. justify-content: center;
  337. align-items: center;
  338. text-decoration: none;
  339. flex-shrink: 0;
  340. margin: 20px 0 0 0;
  341. color: $color-black;
  342. border-radius: $border-radius;
  343. background-color: #dce0e2;
  344. border: none;
  345. box-shadow: none;
  346. outline: none;
  347. &:hover {
  348. color: $color-white;
  349. background-color: $color-secondary-b-2;
  350. }
  351. }
  352. }
  353. .text-center {
  354. text-align: center !important;
  355. }
  356. .text-left {
  357. text-align: left !important;
  358. }
  359. .text-right {
  360. text-align: right !important;
  361. }
  362. .text-justify {
  363. text-align: justify !important;
  364. }
  365. .hidden {
  366. display: none !important;
  367. }
  368. .material-image {
  369. max-width: 450px;
  370. display: block;
  371. margin: 40px auto;
  372. }
  373. .material-image-caption {
  374. text-align: center;
  375. margin-top: -30px;
  376. margin-bottom: 30px;
  377. font-size: 0.8rem;
  378. font-style: italic;
  379. font-weight: normal;
  380. }
  381. .loading {
  382. position: fixed;
  383. top: 50%;
  384. left: 50%;
  385. transform: translate(-50%, -50%);
  386. width: 150px;
  387. height: 150px;
  388. z-index: 1000;
  389. filter: url(#gaus);
  390. > .glob {
  391. position: absolute;
  392. width: 100%;
  393. height: 100%;
  394. top: 0;
  395. left: 0;
  396. animation: loading 1.5s ease-in-out infinite;
  397. animation-delay: calc(0.075s * var(--i));
  398. &::before {
  399. content: "";
  400. position: absolute;
  401. top: 0;
  402. left: 50%;
  403. height: 10px;
  404. width: 10px;
  405. transform: translateX(-50%);
  406. border-radius: 50%;
  407. }
  408. &:nth-child(1) {
  409. &::before {
  410. box-shadow: 0 0 10px #aa00ff;
  411. background-color: #aa00ff;
  412. }
  413. z-index: 6;
  414. }
  415. &:nth-child(2) {
  416. &::before {
  417. box-shadow: 0 0 10px #ff5722;
  418. background-color: #ff5722;
  419. }
  420. z-index: 5;
  421. }
  422. &:nth-child(3) {
  423. &::before {
  424. box-shadow: 0 0 10px #00c853;
  425. background-color: #00c853;
  426. }
  427. z-index: 4;
  428. }
  429. &:nth-child(4) {
  430. &::before {
  431. box-shadow: 0 0 10px #2962ff;
  432. background-color: #2962ff;
  433. }
  434. z-index: 7;
  435. }
  436. &:nth-child(5) {
  437. &::before {
  438. box-shadow: 0 0 10px #ffff00;
  439. background-color: #ffff00;
  440. }
  441. z-index: 2;
  442. }
  443. &:nth-child(6) {
  444. &::before {
  445. box-shadow: 0 0 10px #ff3d00;
  446. background-color: #ff3d00;
  447. }
  448. z-index: 1;
  449. }
  450. }
  451. }
  452. .loading-filter {
  453. width: 0;
  454. height: 0;
  455. position: fixed;
  456. left: -50px;
  457. top: -50px;
  458. }
  459. @keyframes navBackground {
  460. 0% {
  461. filter: hue-rotate(0deg);
  462. }
  463. 100% {
  464. filter: hue-rotate(360deg);
  465. }
  466. }
  467. @keyframes loading {
  468. 0% {
  469. transform: rotate(0deg);
  470. }
  471. 50%,
  472. 100% {
  473. transform: rotate(360deg);
  474. }
  475. }
  476. table{
  477. //border-collapse: collapse;
  478. width: 100%;
  479. td{
  480. border: 1px solid rgb(204, 199, 199);
  481. border-radius: 5px;
  482. padding: 5px 15px 15px 5px;
  483. text-align: left;
  484. vertical-align: top;
  485. }
  486. }