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.

143 lines
2.5 KiB

  1. .search {
  2. position: relative;
  3. }
  4. .search__input {
  5. display: block;
  6. padding: 10px;
  7. padding-right: 30px;
  8. @include search-input();
  9. }
  10. .search__icon {
  11. .fa {
  12. position: absolute;
  13. top: 10px;
  14. right: 10px;
  15. z-index: 2;
  16. display: inline-block;
  17. opacity: 0;
  18. transition: all 100ms linear;
  19. font-size: 18px;
  20. width: 18px;
  21. height: 18px;
  22. color: $secondary-text-color;
  23. cursor: default;
  24. pointer-events: none;
  25. &.active {
  26. pointer-events: auto;
  27. opacity: 0.3;
  28. }
  29. }
  30. .fa-search {
  31. transform: rotate(90deg);
  32. &.active {
  33. pointer-events: none;
  34. transform: rotate(0deg);
  35. }
  36. }
  37. .fa-times-circle {
  38. top: 11px;
  39. transform: rotate(0deg);
  40. cursor: pointer;
  41. &.active {
  42. transform: rotate(90deg);
  43. }
  44. &:hover {
  45. color: $primary-text-color;
  46. }
  47. }
  48. }
  49. .search-results__header {
  50. color: $dark-text-color;
  51. background: lighten($ui-base-color, 2%);
  52. border-bottom: 1px solid darken($ui-base-color, 4%);
  53. padding: 15px 10px;
  54. font-size: 14px;
  55. font-weight: 500;
  56. }
  57. .trends {
  58. &__header {
  59. color: $dark-text-color;
  60. background: lighten($ui-base-color, 2%);
  61. border-bottom: 1px solid darken($ui-base-color, 4%);
  62. font-weight: 500;
  63. padding: 15px;
  64. font-size: 16px;
  65. cursor: default;
  66. .fa {
  67. display: inline-block;
  68. margin-right: 5px;
  69. }
  70. }
  71. &__item {
  72. display: flex;
  73. align-items: center;
  74. padding: 15px;
  75. border-bottom: 1px solid lighten($ui-base-color, 8%);
  76. &:last-child {
  77. border-bottom: 0;
  78. }
  79. &__name {
  80. flex: 1 1 auto;
  81. color: $dark-text-color;
  82. overflow: hidden;
  83. text-overflow: ellipsis;
  84. white-space: nowrap;
  85. strong {
  86. font-weight: 500;
  87. }
  88. a {
  89. color: $darker-text-color;
  90. text-decoration: none;
  91. font-size: 14px;
  92. font-weight: 500;
  93. display: block;
  94. overflow: hidden;
  95. text-overflow: ellipsis;
  96. white-space: nowrap;
  97. &:hover,
  98. &:focus,
  99. &:active {
  100. span {
  101. text-decoration: underline;
  102. }
  103. }
  104. }
  105. }
  106. &__current {
  107. flex: 0 0 auto;
  108. width: 100px;
  109. font-size: 24px;
  110. line-height: 36px;
  111. font-weight: 500;
  112. text-align: center;
  113. color: $secondary-text-color;
  114. }
  115. &__sparkline {
  116. flex: 0 0 auto;
  117. width: 50px;
  118. path {
  119. stroke: lighten($highlight-text-color, 6%) !important;
  120. }
  121. }
  122. }
  123. }