summaryrefslogtreecommitdiffstats
path: root/browser/components/newtab/content-src/components/DiscoveryStreamComponents/DSContextFooter/_DSContextFooter.scss
blob: c23bb1c66166606ebd68b19c505cfae358304f2d (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
.story-footer {
  color: var(--newtab-text-secondary-color);
  inset-inline-start: 0;
  margin-top: 12px;
  position: relative;

  .story-sponsored-label span {
    display: inline-block;
  }

  .story-sponsored-label,
  .status-message {
    -webkit-line-clamp: 1;
    font-size: 13px;
    line-height: 24px;
    color: var(--newtab-text-secondary-color);
  }

  .status-message {
    display: flex;
    align-items: center;
    height: 24px;

    .story-badge-icon {
      fill: var(--newtab-text-secondary-color);
      height: 16px;
      margin-inline-end: 6px;

      &.icon-bookmark-removed {
        background-image: url('#{$image-path}icon-removed-bookmark.svg');
      }
    }

    .story-context-label {
      color: var(--newtab-text-secondary-color);
      flex-grow: 1;
      font-size: 13px;
      line-height: 24px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}

.story-animate-enter {
  opacity: 0;
}

.story-animate-enter-active {
  opacity: 1;
  transition: opacity 150ms ease-in 300ms;

  .story-badge-icon,
  .story-context-label {
    animation: color 3s ease-out 0.3s;

    @keyframes color {
      0% {
        color: var(--newtab-status-success);
        fill: var(--newtab-status-success);
      }

      100% {
        color: var(--newtab-text-secondary-color);
        fill: var(--newtab-text-secondary-color);
      }
    }
  }
}

.story-animate-exit {
  position: absolute;
  top: 0;
  opacity: 1;
}

.story-animate-exit-active {
  opacity: 0;
  transition: opacity 250ms ease-in;
}