summaryrefslogtreecommitdiffstats
path: root/browser/components/newtab/content-src/components/DiscoveryStreamComponents/DSDismiss/_DSDismiss.scss
blob: 3c736a24ade713ca98f99510e2d203914689c734 (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
.ds-dismiss {
  position: relative;
  border-radius: 8px;
  transition-duration: 250ms;
  transition-property: background;

  &:hover {
    .ds-dismiss-button {
      opacity: 1;
    }
  }

  .ds-dismiss-button {
    border: 0;
    cursor: pointer;
    height: 32px;
    width: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    border-radius: 50%;
    background-color: transparent;

    .icon {
      @media (forced-colors: active) {
        fill: CurrentColor;
      }
      fill: var(--newtab-text-primary-color);
    }

    &:hover {
      background: var(--newtab-element-hover-color);
    }

    &:active {
      background: var(--newtab-element-active-color);
    }

    &:focus {
      box-shadow: $shadow-secondary;
    }
  }
}