summaryrefslogtreecommitdiffstats
path: root/browser/components/pocket/content/panels/js/components/TagPicker/TagPicker.scss
blob: 215307d0794aa4ed02b0d6bda14b2a002773dabe (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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
.stp_tag_picker {
  .stp_tag_picker_tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px;
    border: 1px solid #8F8F9D;
    border-radius: 4px;
    font-style: normal;
    font-weight: normal;
    font-size: 1rem;
    line-height: 1.2rem;
    color: #15141A;
    margin-bottom: 10px;
  }

  .stp_tag_picker_tag {
    background: #F0F0F4;
    border-radius: 4px;
    color: #15141A;
    display: inline-block;
    font-size: 0.85rem;
    line-height: 1rem;
    font-style: normal;
    font-weight: 600;
    padding: 0 8px;
    transition: background-color 200ms ease-in-out;

    @include theme_dark {
      background: #2B2A33;
      color: #FBFBFB;
    }
  }

  .recent_tags .stp_tag_picker_tag {
    margin-inline-end: 5px;
  }

  .stp_tag_picker_tag_remove {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-inline-end: 5px;
    color: #5B5B66;
    font-weight: 400;

    &:hover {
      color: #3E3E44;
    }
    
    &:focus {
      color: #3E3E44;
      outline: 2px solid #0060df;
      outline-offset: -4px;
    }

    @include theme_dark {
      color: #8F8F9D;

      &:hover {
        color: #fff;
      }

      &:focus {
        outline: 2px solid #00DDFF;
      }
    }
  }

  .stp_tag_picker_tag_duplicate {
    background-color: #bbb;

    @include theme_dark {
      background-color: #666;
    }
  }

  .stp_tag_picker_input_wrapper {
    display: flex;
    flex-grow: 1;
  }

  .stp_tag_picker_input {
    flex-grow: 1;
    border: 1px solid #8F8F9D;
    padding: 0 6px;
    border-start-start-radius: 4px;
    border-end-start-radius: 4px;

    &:focus {
      border: 1px solid #0060DF;
      outline: 1px solid #0060DF;
    }

    @include theme_dark {
      background: none;
      color: #FBFBFB;

      &:focus {
        border: 1px solid #00DDFF;
        outline: 1px solid #00DDFF;
      }
    }
  }

  .stp_tag_picker_button {
    font-size: 0.95rem;
    line-height: 1.1rem;
    padding: 4px 6px;
    background-color: #F0F0F4;
    border: 1px solid #8F8F9D;
    border-inline-start: none;
    border-start-end-radius: 4px;
    border-end-end-radius: 4px;
    &:disabled {
      color: #8F8F9D;
    }
    &:hover:enabled {
      background-color: #DADADF;
    }
    &:focus:enabled {
      border: 1px solid #0060DF;
      outline: 1px solid #0060DF;
    }

    @include theme_dark {
      background-color: #2B2A33;
      color: #FBFBFB;
      &:disabled {
        color: #666;
      }
      &:hover:enabled {
        background-color: #53535d;
      }
      &:focus:enabled {
        border: 1px solid #00DDFF;
        outline: 1px solid #00DDFF;
      }
    }
  }
}