You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

252 regels
5.2 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  3. .search-results {
  4. .results-wrapper {
  5. margin: 30px 0;
  6. position: relative;
  7. &:last-child {
  8. margin-bottom: calc(1.4 * var(--section-margin));
  9. }
  10. @media(max-width: 767px) {
  11. margin: var(--container-padding) 0;
  12. }
  13. &:before {
  14. font-family: "Icons", sans-serif;
  15. position: absolute;
  16. font-size: var(--icon-size);
  17. line-height: 1;
  18. right: 0;
  19. top: 0;
  20. margin: 28px 26px;
  21. @media(max-width: 767px) {
  22. margin: 22px var(--container-padding);
  23. }
  24. }
  25. &.no-border {
  26. .result {
  27. border: 1px solid var(--theme-color-primary-dimmed-03);
  28. border-radius: var(--border-radius-xs);
  29. padding: 12px 16px;
  30. font-size: var(--font-size-small);
  31. background-color: var(--theme-color-white);
  32. @media(max-width: 767px) {
  33. padding: 10px 12px;
  34. }
  35. + .result {
  36. margin-top: 10px;
  37. }
  38. &:not(.fitResult){
  39. a {
  40. display: block;
  41. text-decoration: none;
  42. transition: 0.2s ease;
  43. &:before {
  44. content: "";
  45. @include full-size;
  46. pointer-events: none;
  47. @include focus-standalone;
  48. border-radius: var(--border-radius-xs);
  49. opacity: 0;
  50. transition: 0.3s ease;
  51. }
  52. &.focus-visible:focus {
  53. outline: 0;
  54. &:before {
  55. opacity: 1;
  56. }
  57. }
  58. &:focus-visible, &.-moz-focusring {
  59. outline: 0;
  60. &:before {
  61. opacity: 1;
  62. }
  63. }
  64. &:hover {
  65. color: var(--theme-color-link-hover);
  66. }
  67. }
  68. }
  69. }
  70. }
  71. h3 {
  72. margin-top: 0.1em;
  73. }
  74. .highlight {
  75. font-weight: 700;
  76. }
  77. .result {
  78. position: relative;
  79. display: block;
  80. transition: 0.3s ease;
  81. @media(max-width: 767px) {
  82. overflow: hidden;
  83. }
  84. &:before {
  85. position: absolute;
  86. top: 0;
  87. right: 0;
  88. margin: 10px 8px;
  89. font-family: 'Icons', sans-serif;
  90. font-size: var(--icon-size-small);
  91. line-height: 1;
  92. text-align: center;
  93. @media(max-width: 567px) {
  94. margin: 8px;
  95. }
  96. }
  97. &.download::before {
  98. @include icon-small-download;
  99. }
  100. &.external::before {
  101. @include icon-small-link-external;
  102. }
  103. p:last-child {
  104. margin: 1px 0;
  105. line-height: 1.4;
  106. }
  107. &:hover {
  108. color: var(--theme-color-secondary-intensed);
  109. }
  110. }
  111. .h-kicker {
  112. @include kicker;
  113. margin-bottom: 1px;
  114. }
  115. .title, .h-title {
  116. text-decoration: underline;
  117. font-size: var(--font-size-copy);
  118. margin-bottom: 5px;
  119. font-weight: 600;
  120. line-height: 1.25;
  121. &:after {
  122. content: "";
  123. position: absolute;
  124. top: 0;
  125. left: 0;
  126. width: 100%;
  127. height: 100%;
  128. }
  129. &:first-child:last-child {
  130. margin: 5px 0;
  131. }
  132. &:not(:first-child):last-child {
  133. margin-bottom: 4px;
  134. }
  135. }
  136. .fitResult{
  137. .title, .h-title {
  138. &:after {
  139. display: none;
  140. }
  141. }
  142. }
  143. .results {
  144. list-style: none;
  145. margin-bottom: 24px;
  146. padding: 0;
  147. li {
  148. margin: 10px 0;
  149. }
  150. a {
  151. display: block;
  152. background-color: var(--theme-color-white);
  153. border-radius: var(--border-radius-xs);
  154. padding: 10px 20px;
  155. transition: 0.3s ease;
  156. @include focus-visible();
  157. &:hover {
  158. color: var(--theme-color-link-hover);
  159. }
  160. @media(max-width: 767px) {
  161. padding: 6px 12px;
  162. }
  163. }
  164. .fitResult {
  165. display: block;
  166. background-color: var(--theme-color-white);
  167. border-radius: var(--border-radius-xs);
  168. padding: 10px 20px;
  169. a{
  170. padding: 0;
  171. }
  172. }
  173. }
  174. .more-wrapper {
  175. margin: 24px 0 12px;
  176. text-align: right;
  177. strong {
  178. display: inline-block;
  179. margin: 0 5px;
  180. }
  181. }
  182. &:not(.no-border) {
  183. background-color: var(--theme-color-primary-dimmed-04);
  184. padding: 18px 28px;
  185. @media(max-width: 767px) {
  186. margin: var(--container-padding) calc(var(--container-padding) * -1);
  187. padding: 15px var(--container-padding);
  188. }
  189. .result {
  190. margin: 10px 0;
  191. display: block;
  192. }
  193. }
  194. &.events-list + .events-list, &.events-list + #infscr-loading + .events-list,
  195. &.events-list + .events-list, &.events-list + #infscr-loading + .events-list,
  196. #dummy-wrapper + .results-wrapper.events-list, #dummy-wrapper + #infscr-loading + .results-wrapper.events-list {
  197. margin-top: -50px;
  198. padding-top: 0;
  199. }
  200. &.no-border + .no-border, &.no-border + #infscr-loading + .no-border,
  201. &.no-border + .no-border, &.no-border + #infscr-loading + .no-border,
  202. #dummy-wrapper + .results-wrapper.no-border, #dummy-wrapper + #infscr-loading + .results-wrapper.no-border {
  203. margin-top: -20px;
  204. }
  205. }
  206. }