No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 

168 líneas
2.8 KiB

  1. //
  2. // Search input and autocomplete
  3. //
  4. .search {
  5. position: relative;
  6. z-index: 99;
  7. flex-grow: 1;
  8. height: 100%;
  9. margin-bottom: $sp-3;
  10. @include mq(md) {
  11. margin-bottom: 0;
  12. }
  13. }
  14. .search-input-wrap {
  15. display: flex;
  16. height: 100%;
  17. padding: $sp-2;
  18. background-color: $search-background-color;
  19. border-radius: $border-radius;
  20. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
  21. @include mq(md) {
  22. padding-top: 0;
  23. padding-right: 0;
  24. padding-bottom: 0;
  25. padding-left: 0;
  26. background-color: $body-background-color;
  27. border-radius: 0;
  28. box-shadow: none;
  29. }
  30. }
  31. .search-input {
  32. align-self: center;
  33. width: 100%;
  34. padding-top: $sp-1;
  35. padding-bottom: $sp-1;
  36. background-color: $search-background-color;
  37. border-top: 0;
  38. border-right: 0;
  39. border-bottom: 0;
  40. border-left: 0;
  41. order: 2;
  42. @include fs-4;
  43. &:focus {
  44. outline: 0;
  45. box-shadow: none;
  46. + .search-icon {
  47. fill: $link-color;
  48. }
  49. }
  50. @include mq(md) {
  51. background-color: $body-background-color;
  52. @include fs-3;
  53. }
  54. }
  55. .search-icon {
  56. align-self: center;
  57. margin-right: $sp-2;
  58. fill: $grey-dk-000;
  59. order: 1;
  60. }
  61. .search-results-wrap {
  62. position: absolute;
  63. z-index: 100;
  64. display: none;
  65. width: 100%;
  66. background: $search-background-color;
  67. border-radius: $border-radius;
  68. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
  69. &.active {
  70. display: block;
  71. }
  72. @include mq(md) {
  73. width: $search-results-width;
  74. }
  75. }
  76. .search-results-list {
  77. padding-left: 0;
  78. margin-top: $sp-1;
  79. margin-bottom: $sp-1;
  80. list-style: none;
  81. @include fs-4;
  82. @include mq(md) {
  83. @include fs-3;
  84. }
  85. }
  86. .search-results-list-item {
  87. padding: 0;
  88. margin: 0;
  89. }
  90. .search-result {
  91. display: block;
  92. padding-top: $sp-1;
  93. padding-right: $sp-3;
  94. padding-bottom: $sp-1;
  95. padding-left: $sp-3;
  96. &:hover,
  97. &.active {
  98. background-color: $sidebar-color;
  99. }
  100. @include mq(md) {
  101. padding-right: $sp-4;
  102. padding-left: $sp-4;
  103. }
  104. }
  105. .search-result-title {
  106. display: block;
  107. padding-top: $sp-2;
  108. padding-right: $sp-4;
  109. padding-bottom: $sp-2;
  110. @include mq(sm) {
  111. display: inline-block;
  112. width: 40%;
  113. word-wrap: break-word;
  114. vertical-align: top;
  115. }
  116. }
  117. .search-result-rel-url {
  118. display: block;
  119. overflow: hidden;
  120. color: $search-result-preview-color;
  121. text-overflow: ellipsis;
  122. white-space: nowrap;
  123. @include fs-1;
  124. }
  125. .search-result-preview {
  126. display: block;
  127. padding-top: $sp-2;
  128. padding-bottom: $sp-2;
  129. padding-left: $sp-4;
  130. color: $search-result-preview-color;
  131. border-left: $border;
  132. border-left-color: $border-color;
  133. @include fs-2;
  134. @include mq(sm) {
  135. display: inline-block;
  136. width: 60%;
  137. vertical-align: top;
  138. }
  139. }
  140. .search-result-highlight {
  141. font-weight: bold;
  142. color: $link-color;
  143. }