specials.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. .special-items {
  2. &__container {
  3. display: flex;
  4. flex-direction: row;
  5. justify-content: flex-start;
  6. flex-wrap: wrap;
  7. margin: 5px -10px 5px 0;
  8. }
  9. &__item {
  10. width: 220px;
  11. box-sizing: border-box;
  12. border-radius: 10px 0 0 0;
  13. border: 1px solid #ebebeb;
  14. display: flex;
  15. flex-direction: column;
  16. justify-content: space-between;
  17. margin: 15px 10px;
  18. color: #000000;
  19. text-decoration: none;
  20. }
  21. &__title {
  22. display: flex;
  23. flex-direction: row;
  24. justify-content: space-between;
  25. color: #ffffff;
  26. font-family: $fontcuprum;
  27. font-size: 13px;
  28. background-color: #656565;
  29. padding: 10px;
  30. border-radius: 10px 0 0 0;
  31. margin-left: -1px;
  32. margin-right: -1px;
  33. margin-top: -1px;
  34. &--specials {
  35. background-color: #e65e26;
  36. }
  37. &--exhibition {
  38. background-color: #53b02e;
  39. }
  40. &--school {
  41. background-color: #929292;
  42. }
  43. &--conference {
  44. background-color: #5597d1;
  45. }
  46. }
  47. &__badge {
  48. position: absolute;
  49. bottom: 0;
  50. left: -10px;
  51. height: 36px;
  52. line-height: 30px;
  53. padding-right: 8px;
  54. max-width: calc(100% - 18px);
  55. text-overflow: ellipsis;
  56. color: #fff;
  57. background-image: url(../img/specials/badge-middle.png);
  58. font-family: $fontcuprum;
  59. font-size: 18px;
  60. &:before {
  61. position: absolute;
  62. left: -8px;
  63. top: 0;
  64. content: '';
  65. display: block;
  66. height: 100%;
  67. width: 8px;
  68. background-image: url(../img/specials/badge-start.png);
  69. }
  70. &:after {
  71. position: absolute;
  72. right: -10px;
  73. top: 0;
  74. content: '';
  75. display: block;
  76. height: 100%;
  77. width: 10px;
  78. background-image: url(../img/specials/badge-end.png);
  79. }
  80. &--specials {
  81. background-position: 0 0;
  82. &:before,
  83. &:after {
  84. background-position: 0 0;
  85. }
  86. }
  87. &--exhibition {
  88. background-position: 0 -36px;
  89. &:before,
  90. &:after {
  91. background-position: 0 -36px;
  92. }
  93. }
  94. &--school {
  95. background-position: 0 -72px;
  96. &:before,
  97. &:after {
  98. background-position: 0 -72px;
  99. }
  100. }
  101. &--conference {
  102. background-position: 0 -108px;
  103. &:before,
  104. &:after {
  105. background-position: 0 -108px;
  106. }
  107. }
  108. &-text {
  109. overflow: hidden;
  110. width: 100%;
  111. display: block;
  112. white-space: nowrap;
  113. text-overflow: ellipsis;
  114. }
  115. }
  116. &__item-content {
  117. padding: 10px;
  118. display: block;
  119. }
  120. &__item-images {
  121. position: relative;
  122. display: block;
  123. }
  124. &__image {
  125. max-width: 100%;
  126. display: block;
  127. }
  128. &__organization-icon {
  129. max-width: 64px;
  130. position: absolute;
  131. top: 12px;
  132. right: 12px;
  133. border-radius: 50%;
  134. display: block;
  135. }
  136. &__description {
  137. font-family: $fontcuprum;
  138. font-size: 15px;
  139. padding: 5px 0;
  140. display: block;
  141. margin: 0 -3px 0 -3px;
  142. }
  143. &__horizontal-rule {
  144. display: block;
  145. margin: 0 10px;
  146. border: none;
  147. border-bottom: 1px solid #ebebeb;
  148. }
  149. &__organization-name {
  150. font-family: $fontcuprum;
  151. font-size: 13px;
  152. color: #004d7b;
  153. display: flex;
  154. flex-direction: column;
  155. justify-content: flex-start;
  156. height: 40px;
  157. padding: 5px 20px;
  158. text-align: center;
  159. box-sizing: border-box;
  160. }
  161. &__organization-address {
  162. font-family: $fontcuprum;
  163. font-size: 13px;
  164. background: #ebebeb;
  165. color: #929292;
  166. display: flex;
  167. flex-direction: column;
  168. justify-content: center;
  169. height: 40px;
  170. padding: 5px 26px;
  171. overflow: hidden;
  172. text-align: center;
  173. box-sizing: border-box;
  174. }
  175. }