main.scss 8.5 KB

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