summaryrefslogtreecommitdiffstats
path: root/web_src/css/modules/select.css
blob: 1d7d749d4ad05f09f24c948186beb8585afb78fb (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
.gitea-select {
  position: relative;
}

.gitea-select select {
  appearance: none; /* hide default triangle */
}

/* ::before and ::after pseudo elements don't work on select elements,
   so we need to put it on the parent. */
.gitea-select::after {
  position: absolute;
  top: 12px;
  right: 8px;
  pointer-events: none;
  content: "";
  width: 14px;
  height: 14px;
  mask-size: cover;
  -webkit-mask-size: cover;
  mask-image: var(--octicon-chevron-right);
  -webkit-mask-image: var(--octicon-chevron-right);
  transform: rotate(90deg); /* point the chevron down */
  background: currentcolor;
}