summaryrefslogtreecommitdiffstats
path: root/browser/components/newtab/content-src/asrouter/templates/EOYSnippet/_EOYSnippet.scss
blob: d9911ff02caad4359d22eff6c61bc1cc36e131a9 (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
.EOYSnippetForm {
  margin: 10px 0 8px;
  align-self: start;
  font-size: 14px;
  display: flex;
  align-items: center;

  .donation-amount,
  .donation-form-url {
    white-space: nowrap;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 2px;
  }

  .donation-amount {
    color: var(--newtab-text-primary-color);
    margin-inline-end: 18px;
    border: $input-border;
    padding: 5px 14px;
    background: var(--newtab-background-color-secondary);
    cursor: pointer;
  }

  input {
    &[type='radio'] {
      opacity: 0;
      margin-inline-end: -18px;

      &:checked + .donation-amount {
        // Use a text color for the background to achieve an inverted look.
        background: var(--newtab-text-secondary-color);
        color: var(--newtab-background-color-secondary);
        border: $border-secondary;
      }

      // accessibility
      &:checked:focus + .donation-amount,
      &:not(:checked):focus + .donation-amount {
        border: 1px dotted var(--newtab-primary-action-background);
      }
    }
  }

  .monthly-checkbox-container {
    display: flex;
    width: 100%;
  }

  .donation-form-url {
    margin-inline-start: 18px;
    align-self: flex-end;
    display: flex;
  }
}