search.css 974 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. This CSS only styled the search results section, not the search input
  3. It defines the basic interraction to hide content when displaying results, etc
  4. */
  5. #book-search-results .search-results {
  6. display: none;
  7. }
  8. #book-search-results .search-results ul.search-results-list {
  9. list-style-type: none;
  10. padding-left: 0;
  11. }
  12. #book-search-results .search-results ul.search-results-list li {
  13. margin-bottom: 1.5rem;
  14. padding-bottom: 0.5rem;
  15. /* Highlight results */
  16. }
  17. #book-search-results .search-results ul.search-results-list li p em {
  18. background-color: rgba(255, 220, 0, 0.4);
  19. font-style: normal;
  20. }
  21. #book-search-results .search-results .no-results {
  22. display: none;
  23. }
  24. #book-search-results.open .search-results {
  25. display: block;
  26. }
  27. #book-search-results.open .search-noresults {
  28. display: none;
  29. }
  30. #book-search-results.no-results .search-results .has-results {
  31. display: none;
  32. }
  33. #book-search-results.no-results .search-results .no-results {
  34. display: block;
  35. }