_components.search.scss 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* ==========================================================================
  2. SEARCH
  3. ========================================================================== */
  4. // Taken from https://github.com/mmistakes/minimal-mistakes
  5. // Variables
  6. $large: 1024px !default;
  7. $x-large: 1280px !default;
  8. $type-size-1: 2.441em !default;
  9. $type-size-2: 1.953em !default;
  10. $type-size-3: 1.563em !default;
  11. $type-size-6: 0.75em !default;
  12. $intro-transition: intro 0.3s both !default;
  13. // Rules
  14. .layout--search {
  15. .archive__item-teaser {
  16. margin-bottom: 0.25em;
  17. }
  18. }
  19. .search__toggle {
  20. margin-left: 1rem;
  21. margin-right: 1rem;
  22. border: 0;
  23. outline: none;
  24. color: #393e46;
  25. background-color: transparent;
  26. cursor: pointer;
  27. -webkit-transition: 0.2s;
  28. transition: 0.2s;
  29. &:hover {
  30. color: #000;
  31. }
  32. }
  33. .search-icon {
  34. width: 100%;
  35. height: 100%;
  36. }
  37. .search-content {
  38. //display: none;
  39. //visibility: hidden;
  40. padding-top: 1em;
  41. padding-bottom: 1em;
  42. &__inner-wrap {
  43. width: 100%;
  44. margin-left: auto;
  45. margin-right: auto;
  46. padding-left: 1em;
  47. padding-right: 1em;
  48. -webkit-animation: $intro-transition;
  49. animation: $intro-transition;
  50. -webkit-animation-delay: 0.15s;
  51. animation-delay: 0.15s;
  52. .search-input {
  53. display: block;
  54. margin-bottom: 0;
  55. padding: 0;
  56. border: none;
  57. outline: none;
  58. box-shadow: none;
  59. background-color: transparent;
  60. font-size: $type-size-3;
  61. }
  62. }
  63. &.is--visible {
  64. display: block;
  65. visibility: visible;
  66. &::after {
  67. content: "";
  68. display: block;
  69. }
  70. }
  71. .results__found {
  72. margin-top: 0.5em;
  73. font-size: $type-size-6;
  74. }
  75. .archive__item {
  76. margin-bottom: 2em;
  77. }
  78. .archive__item-title {
  79. margin-top: 0;
  80. }
  81. .archive__item-excerpt {
  82. margin-bottom: 0;
  83. }
  84. }