You are here

search_theme_override.css in Search API Federated Solr 8.3

/**
 * Custom search override styles.
*/

/*
 * Begin search override styles
 * Apply all styles to be scoped globally within the Federated Search app inside the #fs-root ID.
 */

/**
 * Search filters
 */

/* The container for the search filters */
aside.fs-aside {
  background-color: #f6f6f6;
}
/* Search filters */
.fs-search-filters {
  /* Mobile search button / Desktop sidebar title */
  /* Search filters clear button */
}
.fs-search-filters__trigger,
.fs-search-filters__title {
  color: #333;
  font-size: 1.1em;
  line-height: 1.46667em;
}
.fs-search-filters__reset {
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #e5e5e5;
  font-size: 0.8em;
  line-height: 1.83333em;
}
.fs-search-filters__reset:active,
.fs-search-filters__reset:hover,
.fs-search-filters__reset:focus {
  text-decoration: underline;
  border-color: #b5b5b5;
  background-color: #d8d8d8;
}
/* Search filter accordion */
.fs-search-accordion {
  color: #333;
  /* Top level accordion links */
}
.fs-search-accordion__title {
  color: #0d57aa;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.8em;
}
.fs-search-accordion__title:active,
.fs-search-accordion__title:hover {
  text-decoration: none;
  color: #002a5b;
  border-color: #b5b5b5;
  background-color: #e5e5e5;
}
.fs-search-accordion__title:focus,
.fs-search-accordion__title.js-search-accordion-open {
  text-decoration: none;
  color: #0d57aa;
  border-color: #b5b5b5;
}
/*** Search form*/
.fs-search-form__label {
  color: #222;
  font-size: 0.8em;
  line-height: 1.83333em;
}
.fs-search-form__input {
  border: 1px solid #e5e5e5;
  border-radius: 3px 0 0 3px;
}
.fs-search-form__input:focus {
  border: 1px solid #555;
  outline: 0;
}
.fs-search-form__submit {
  border: 1px solid #e5e5e5;
  border-left: 0;
  border-radius: 0 3px 3px 0;
  background-color: #ffcb05;
}
.fs-search-form__submit svg {
  fill: #222;
}
.fs-search-form__submit:active,
.fs-search-form__submit:hover,
.fs-search-form__submit:focus {
  border-color: #e5e5e5;
  background-color: #f4bb06;
}
.fs-search-form__submit:active svg,
.fs-search-form__submit:hover svg,
.fs-search-form__submit:focus svg {
  fill: #222;
}
/*** Applied Filters*/
.fs-applied-filters__filter {
  padding-bottom: 0.29333em;
  border-bottom: solid 2px #ffcb05;
  font-size: 0.8em;
  line-height: 1.46667em;
}
/*** Search results list*/
.fs-search-results {
  /* Search results eyebrow (i.e. the content type). */
  /* Search results metadata (i.e. the site + date) */
  /* Search result snippet text */
  /* highlighted text in snippet */
}
.fs-search-results__heading a {
  text-decoration: none;
  color: #0d57aa;
  border-bottom: 2px dashed #0d57aa;
  background-color: transparent;
}
.fs-search-results__heading a:active,
.fs-search-results__heading a:hover {
  color: #002a5b;
  border-bottom: 2px solid #002a5b;
  outline-width: 0;
  background-color: #e5e5e5;
}
.fs-search-results__label {
  color: #555;
  font-size: 0.8em;
}
.fs-search-results__meta {
  color: #555;
  font-size: 0.8em;
  line-height: 1.46667em;
}
.fs-search-results__teaser {
  font-size: 18px;
  line-height: 1.3;
}
.fs-search-results em {
  background-color: rgba(255, 242, 192, 0.85);
  font-weight: 700;
}
/*** Pagination component*/
.fs-search-pager {
  background-color: transparent;
  /** pagination component **/
  /** inactive page links **/
  /** active page link **/
}
.fs-search-pager__items {
  border-radius: 3px;
  background-color: #eff0f1;
}
@media (min-width: 450px) {
  .fs-search-pager__items {
    background-color: transparent;
  }
}
@media (min-width: 450px) {
  .fs-search-pager__item a {
    border-radius: 3px;
    background-color: #ffcb05;
  }
}
.fs-search-pager__item a:hover,
.fs-search-pager__item a:active {
  text-decoration: underline;
  color: #00274c;
  background-color: #ffcb05;
}
@media (min-width: 450px) {
  .fs-search-pager__item a:hover,
  .fs-search-pager__item a:active {
    background-color: #f4bb06;
  }
}
.fs-search-pager__item a:hover svg,
.fs-search-pager__item a:active svg {
  fill: #00274c;
}
@media (min-width: 450px) {
  .fs-search-pager__item.is-active a {
    color: #fff;
    background-color: #0d57aa;
  }
  .fs-search-pager__item.is-active a:hover,
  .fs-search-pager__item.is-active a:active {
    background-color: #002a5b;
  }
}
/**DatePicker widget*/
.PresetDateRangePicker_button {
  color: #4696f1;
  border: 2px solid #4696f1;
}
.PresetDateRangePicker_button__selected {
  color: #fff;
  background: #4696f1;
}
.DayPickerKeyboardShortcuts_show__bottomRight {
  border-top: 26px solid transparent;
  border-right: 33px solid #0d57aa;
}
.DayPickerKeyboardShortcuts_show__bottomRight:hover {
  border-right: 33px solid #083363;
}
.DayPickerKeyboardShortcuts_show__topRight {
  border-right: 33px solid #0d57aa;
  border-bottom: 26px solid transparent;
}
.DayPickerKeyboardShortcuts_show__topRight:hover {
  border-right: 33px solid #083363;
}
.DayPickerKeyboardShortcuts_show__topLeft {
  border-bottom: 26px solid transparent;
  border-left: 33px solid #4696f1;
}
.DayPickerKeyboardShortcuts_show__topLeft:hover {
  border-left: 33px solid #00274c;
}
.CalendarDay__selected_span {
  color: #0d57aa;
  border: 1px solid #75b1f4;
  background: #ebf4fe;
}
.CalendarDay__selected_span:active,
.CalendarDay__selected_span:hover {
  color: #fff;
  border: 1px solid #b5b5b5;
  background: #d8d8d8;
}
.CalendarDay__last_in_range {
  border-right: #4696f1;
}
.CalendarDay__selected,
.CalendarDay__selected:active,
.CalendarDay__selected:hover {
  color: #fff;
  border: 1px solid #0d57aa;
  background: #0d57aa;
}
.CalendarDay__hovered_span,
.CalendarDay__hovered_span:hover {
  color: #0d57aa;
  border: 1px solid #75b1f4;
  background: #ebf4fe;
}
.CalendarDay__hovered_span:active {
  color: #0d57aa;
  border: 1px solid #75b1f4;
  background: #ebf4fe;
}
.DateInput_input__focused {
  border-bottom: 2px solid #0d57aa;
}
.CalendarDay__highlighted_calendar {
  color: #555;
  background: #fff2c0;
}
.CalendarDay__highlighted_calendar:active,
.CalendarDay__highlighted_calendar:hover {
  color: #555;
  background: #ffcb05;
}
.DateInput_input::placeholder {
  color: #555;
}
.DayPicker_weekHeader_li {
  display: inline-block !important;
}
.DateRangePickerInput_clearDates_default:focus,
.DateRangePickerInput_clearDates_default:hover {
  border-radius: 0;
}
@media only screen and (max-width: 1350px) and (min-width: 901px) {
  .DateInput_input__small {
    padding: 8px 4px 6px;
    font-size: 12px;
    line-height: 18px;
  }
  .DateInput__small {
    width: 70px;
  }
}
.KeyboardShortcutRow_keyContainer {
  display: inline-block;
  margin-right: 6px;
  text-align: right;
  white-space: nowrap;
}
.KeyboardShortcutRow_key {
  padding: 2px 6px;
  text-transform: uppercase;
  background: #f6f6f6;
  font-family: monospace;
  font-size: 12px;
}
.KeyboardShortcutRow_action {
  display: inline;
  margin-left: 8px;
  word-break: break-word;
}

File

docs/assets/search_theme_override.css
View source
  1. /**
  2. * Custom search override styles.
  3. */
  4. /*
  5. * Begin search override styles
  6. * Apply all styles to be scoped globally within the Federated Search app inside the #fs-root ID.
  7. */
  8. /**
  9. * Search filters
  10. */
  11. /* The container for the search filters */
  12. aside.fs-aside {
  13. background-color: #f6f6f6;
  14. }
  15. /* Search filters */
  16. .fs-search-filters {
  17. /* Mobile search button / Desktop sidebar title */
  18. /* Search filters clear button */
  19. }
  20. .fs-search-filters__trigger,
  21. .fs-search-filters__title {
  22. color: #333;
  23. font-size: 1.1em;
  24. line-height: 1.46667em;
  25. }
  26. .fs-search-filters__reset {
  27. border: 1px solid #ccc;
  28. border-radius: 3px;
  29. background-color: #e5e5e5;
  30. font-size: 0.8em;
  31. line-height: 1.83333em;
  32. }
  33. .fs-search-filters__reset:active,
  34. .fs-search-filters__reset:hover,
  35. .fs-search-filters__reset:focus {
  36. text-decoration: underline;
  37. border-color: #b5b5b5;
  38. background-color: #d8d8d8;
  39. }
  40. /* Search filter accordion */
  41. .fs-search-accordion {
  42. color: #333;
  43. /* Top level accordion links */
  44. }
  45. .fs-search-accordion__title {
  46. color: #0d57aa;
  47. border-bottom: 1px solid #e5e5e5;
  48. font-size: 0.8em;
  49. }
  50. .fs-search-accordion__title:active,
  51. .fs-search-accordion__title:hover {
  52. text-decoration: none;
  53. color: #002a5b;
  54. border-color: #b5b5b5;
  55. background-color: #e5e5e5;
  56. }
  57. .fs-search-accordion__title:focus,
  58. .fs-search-accordion__title.js-search-accordion-open {
  59. text-decoration: none;
  60. color: #0d57aa;
  61. border-color: #b5b5b5;
  62. }
  63. /*** Search form*/
  64. .fs-search-form__label {
  65. color: #222;
  66. font-size: 0.8em;
  67. line-height: 1.83333em;
  68. }
  69. .fs-search-form__input {
  70. border: 1px solid #e5e5e5;
  71. border-radius: 3px 0 0 3px;
  72. }
  73. .fs-search-form__input:focus {
  74. border: 1px solid #555;
  75. outline: 0;
  76. }
  77. .fs-search-form__submit {
  78. border: 1px solid #e5e5e5;
  79. border-left: 0;
  80. border-radius: 0 3px 3px 0;
  81. background-color: #ffcb05;
  82. }
  83. .fs-search-form__submit svg {
  84. fill: #222;
  85. }
  86. .fs-search-form__submit:active,
  87. .fs-search-form__submit:hover,
  88. .fs-search-form__submit:focus {
  89. border-color: #e5e5e5;
  90. background-color: #f4bb06;
  91. }
  92. .fs-search-form__submit:active svg,
  93. .fs-search-form__submit:hover svg,
  94. .fs-search-form__submit:focus svg {
  95. fill: #222;
  96. }
  97. /*** Applied Filters*/
  98. .fs-applied-filters__filter {
  99. padding-bottom: 0.29333em;
  100. border-bottom: solid 2px #ffcb05;
  101. font-size: 0.8em;
  102. line-height: 1.46667em;
  103. }
  104. /*** Search results list*/
  105. .fs-search-results {
  106. /* Search results eyebrow (i.e. the content type). */
  107. /* Search results metadata (i.e. the site + date) */
  108. /* Search result snippet text */
  109. /* highlighted text in snippet */
  110. }
  111. .fs-search-results__heading a {
  112. text-decoration: none;
  113. color: #0d57aa;
  114. border-bottom: 2px dashed #0d57aa;
  115. background-color: transparent;
  116. }
  117. .fs-search-results__heading a:active,
  118. .fs-search-results__heading a:hover {
  119. color: #002a5b;
  120. border-bottom: 2px solid #002a5b;
  121. outline-width: 0;
  122. background-color: #e5e5e5;
  123. }
  124. .fs-search-results__label {
  125. color: #555;
  126. font-size: 0.8em;
  127. }
  128. .fs-search-results__meta {
  129. color: #555;
  130. font-size: 0.8em;
  131. line-height: 1.46667em;
  132. }
  133. .fs-search-results__teaser {
  134. font-size: 18px;
  135. line-height: 1.3;
  136. }
  137. .fs-search-results em {
  138. background-color: rgba(255, 242, 192, 0.85);
  139. font-weight: 700;
  140. }
  141. /*** Pagination component*/
  142. .fs-search-pager {
  143. background-color: transparent;
  144. /** pagination component **/
  145. /** inactive page links **/
  146. /** active page link **/
  147. }
  148. .fs-search-pager__items {
  149. border-radius: 3px;
  150. background-color: #eff0f1;
  151. }
  152. @media (min-width: 450px) {
  153. .fs-search-pager__items {
  154. background-color: transparent;
  155. }
  156. }
  157. @media (min-width: 450px) {
  158. .fs-search-pager__item a {
  159. border-radius: 3px;
  160. background-color: #ffcb05;
  161. }
  162. }
  163. .fs-search-pager__item a:hover,
  164. .fs-search-pager__item a:active {
  165. text-decoration: underline;
  166. color: #00274c;
  167. background-color: #ffcb05;
  168. }
  169. @media (min-width: 450px) {
  170. .fs-search-pager__item a:hover,
  171. .fs-search-pager__item a:active {
  172. background-color: #f4bb06;
  173. }
  174. }
  175. .fs-search-pager__item a:hover svg,
  176. .fs-search-pager__item a:active svg {
  177. fill: #00274c;
  178. }
  179. @media (min-width: 450px) {
  180. .fs-search-pager__item.is-active a {
  181. color: #fff;
  182. background-color: #0d57aa;
  183. }
  184. .fs-search-pager__item.is-active a:hover,
  185. .fs-search-pager__item.is-active a:active {
  186. background-color: #002a5b;
  187. }
  188. }
  189. /**DatePicker widget*/
  190. .PresetDateRangePicker_button {
  191. color: #4696f1;
  192. border: 2px solid #4696f1;
  193. }
  194. .PresetDateRangePicker_button__selected {
  195. color: #fff;
  196. background: #4696f1;
  197. }
  198. .DayPickerKeyboardShortcuts_show__bottomRight {
  199. border-top: 26px solid transparent;
  200. border-right: 33px solid #0d57aa;
  201. }
  202. .DayPickerKeyboardShortcuts_show__bottomRight:hover {
  203. border-right: 33px solid #083363;
  204. }
  205. .DayPickerKeyboardShortcuts_show__topRight {
  206. border-right: 33px solid #0d57aa;
  207. border-bottom: 26px solid transparent;
  208. }
  209. .DayPickerKeyboardShortcuts_show__topRight:hover {
  210. border-right: 33px solid #083363;
  211. }
  212. .DayPickerKeyboardShortcuts_show__topLeft {
  213. border-bottom: 26px solid transparent;
  214. border-left: 33px solid #4696f1;
  215. }
  216. .DayPickerKeyboardShortcuts_show__topLeft:hover {
  217. border-left: 33px solid #00274c;
  218. }
  219. .CalendarDay__selected_span {
  220. color: #0d57aa;
  221. border: 1px solid #75b1f4;
  222. background: #ebf4fe;
  223. }
  224. .CalendarDay__selected_span:active,
  225. .CalendarDay__selected_span:hover {
  226. color: #fff;
  227. border: 1px solid #b5b5b5;
  228. background: #d8d8d8;
  229. }
  230. .CalendarDay__last_in_range {
  231. border-right: #4696f1;
  232. }
  233. .CalendarDay__selected,
  234. .CalendarDay__selected:active,
  235. .CalendarDay__selected:hover {
  236. color: #fff;
  237. border: 1px solid #0d57aa;
  238. background: #0d57aa;
  239. }
  240. .CalendarDay__hovered_span,
  241. .CalendarDay__hovered_span:hover {
  242. color: #0d57aa;
  243. border: 1px solid #75b1f4;
  244. background: #ebf4fe;
  245. }
  246. .CalendarDay__hovered_span:active {
  247. color: #0d57aa;
  248. border: 1px solid #75b1f4;
  249. background: #ebf4fe;
  250. }
  251. .DateInput_input__focused {
  252. border-bottom: 2px solid #0d57aa;
  253. }
  254. .CalendarDay__highlighted_calendar {
  255. color: #555;
  256. background: #fff2c0;
  257. }
  258. .CalendarDay__highlighted_calendar:active,
  259. .CalendarDay__highlighted_calendar:hover {
  260. color: #555;
  261. background: #ffcb05;
  262. }
  263. .DateInput_input::placeholder {
  264. color: #555;
  265. }
  266. .DayPicker_weekHeader_li {
  267. display: inline-block !important;
  268. }
  269. .DateRangePickerInput_clearDates_default:focus,
  270. .DateRangePickerInput_clearDates_default:hover {
  271. border-radius: 0;
  272. }
  273. @media only screen and (max-width: 1350px) and (min-width: 901px) {
  274. .DateInput_input__small {
  275. padding: 8px 4px 6px;
  276. font-size: 12px;
  277. line-height: 18px;
  278. }
  279. .DateInput__small {
  280. width: 70px;
  281. }
  282. }
  283. .KeyboardShortcutRow_keyContainer {
  284. display: inline-block;
  285. margin-right: 6px;
  286. text-align: right;
  287. white-space: nowrap;
  288. }
  289. .KeyboardShortcutRow_key {
  290. padding: 2px 6px;
  291. text-transform: uppercase;
  292. background: #f6f6f6;
  293. font-family: monospace;
  294. font-size: 12px;
  295. }
  296. .KeyboardShortcutRow_action {
  297. display: inline;
  298. margin-left: 8px;
  299. word-break: break-word;
  300. }