File: _Widgets.scss

package info (click to toggle)
thunderbird 1%3A143.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,703,968 kB
  • sloc: cpp: 7,770,492; javascript: 5,943,842; ansic: 3,918,754; python: 1,418,263; xml: 653,354; asm: 474,045; java: 183,079; sh: 111,238; makefile: 20,410; perl: 14,359; objc: 13,059; yacc: 4,583; pascal: 3,405; lex: 1,720; ruby: 999; exp: 762; sql: 715; awk: 580; php: 436; lisp: 430; sed: 69; csh: 10
file content (107 lines) | stat: -rw-r--r-- 2,341 bytes parent folder | download | duplicates (2)
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
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.discovery-stream.ds-layout.ds-layout-widgets {
  margin-inline: 0;
  margin-block-end: var(--space-xlarge);
}

.widgets-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;

  .widgets-scroll-message {
    @include wallpaper-contrast-fix;

    color: var(--newtab-text-primary-color);
    position: absolute;
    bottom: calc(var(--space-xxlarge) * -2);
    animation: fade-in 0.25s ease-out 0.7s both;
    border-radius: var(--button-border-radius);
    background: var(--button-background-color);
    padding: var(--space-small) var(--space-xlarge);

    p {
      margin: 0;
      font-weight: var(--font-weight-bold);
    }
  }
}

.widgets-container {
  &:has(.lists),
  &:has(.focus-timer) {
    display: grid;
    align-items: flex-start;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: var(--space-large);
    justify-content: center;
    width: 100%;

    // Mirrors the grid-gap spacing used on
    // .ds-outer-wrapper-breakpoint-override .ds-card-grid
    @media(min-width: $break-point-widest) {
      gap: var(--space-xlarge);
    }
  }

  // Sections Layout Override
  .has-sections-grid & {
    @media(min-width: $break-point-widest) {
      gap: var(--space-large);
    }
  }
}

.feature-highlight .feature-highlight-modal.widget-highlight-wrapper {
  width: auto;
  border-radius: var(--border-radius-medium);

  .content-wrapper {
    margin: 0;
    padding: var(--space-medium);
  }

  .widget-highlight {
    img {
      border-radius: var(--border-radius-medium);
      margin-block-end: var(--space-small);
    }

    h3 {
      margin-block: 0 var(--space-xsmall);
      font-size: var(--font-size-root);
    }

    p {
      margin-block: 0;
      font-size: var(--font-size-root);
    }
  }

  .message-icon {
    display: none;
  }

  moz-button {
    position: absolute;
    inset-inline-end: var(--space-medium);
    inset-block-start: var(--space-medium);
  }
}