aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/frontend/src/main/components/search/search.scss
blob: 6dd07d5b68bb3e0de7a2908062d1909f6f7f44e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*!
 * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

$font-color: hsla(0, 0%, 100%, 0.8);
$secondary-font-color: hsla(0, 0%, 100%, 0.6);

#pages-search {
  cursor: pointer;
  border: none;
  border-radius: 50%;
  background: transparent;
  fill: #fff;
  fill: var(--dark-mode-and-search-icon-color);

  &:focus {
    outline: none;
  }

  &:hover {
    background: var(--white-10);
  }
}

.search {
  &, [data-test="ring-select"], [data-test="ring-tooltip"], [data-test="ring-select_focus"], #pages-search {
    display: inline-block;
    padding: 0;
    margin: 0;
    font-size: 0;
    line-height: 0;
  }
}

.search-hotkey-popup {
  background-color: var(--background-color) !important;
  padding: 4px;
}

.popup-wrapper {
  min-width: calc(100% - 322px) !important;

  border: 1px solid hsla(0, 0%, 100%, 0.2) !important;

  background-color: #27282c !important;

  [class^="filterWrapper"] {
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.2);
  }

  input {
    color: $font-color !important;

    font-weight: normal !important;
  }

  span[data-test-custom="ring-select-popup-filter-icon"] {
    color: #fff;
  }

  button[data-test="ring-input-clear"] {
    color: #fff !important;
  }
}

@media screen and (max-width: 759px) {
  .popup-wrapper {
    min-width: 100% !important;
  }
}

.template-wrapper {
  display: grid;

  height: 32px;
  grid-template-columns: auto auto;

  strong {
    color: $font-color;
  }

  span {
    color: $font-color;

    line-height: 32px;

    &.template-description {
      color: $secondary-font-color;
      justify-self: end;
    }
  }
}

@media screen and (max-width: 759px) {
  .template-wrapper {
    display: flex;
    flex-direction: column;

    height: auto;

    span {
      line-height: unset;
    }
  }
}

.template-name {
  justify-self: start;
}

/* remove fade at the bottom */
[class^="fade"] {
  display: none;
}

[class*="hover"] {
  background-color: hsla(0, 0%, 100%, 0.1) !important;
}