File size: 2,599 Bytes
4450790
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
:not(#fakeid) .rgthree-button-reset {
  position: relative;
  appearance: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;

}
:not(#fakeid) .rgthree-button {
  --padding-top: 7px;
  --padding-bottom: 9px;
  --padding-x: 16px;
  position: relative;
  cursor: pointer;
  border: 0;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-family: system-ui, sans-serif;
  font-size: calc(16rem / 16);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  margin: 0.25rem;
  box-shadow: 0px 0px 2px rgb(0, 0, 0);
  background: #212121;
  transition: all 0.1s ease-in-out;
  padding: var(--padding-top) var(--padding-x) var(--padding-bottom);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  &::before,
  &::after {
    content: "";
    display: block;
    position: absolute;
    border-radius: 0.25rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-shadow:
      inset 1px 1px 0px rgba(255, 255, 255, 0.12),
      inset -1px -1px 0px rgba(0, 0, 0, 0.75);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.15));
    mix-blend-mode: screen;
  }

  &::after {
    mix-blend-mode: multiply;
  }

  &:hover {
    background: #303030;
  }
  &:active {
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
    background: #121212;
    padding: calc(var(--padding-top) + 1px) calc(var(--padding-x) - 1px)
      calc(var(--padding-bottom) - 1px) calc(var(--padding-x) + 1px);
  }

  &:active::before,
  &:active::after {
    box-shadow:
      1px 1px 0px rgba(255, 255, 255, 0.15),
      inset 1px 1px 0px rgba(0, 0, 0, 0.5),
      inset 1px 3px 5px rgba(0, 0, 0, 0.33);
  }

  &.-blue {
    background: #346599 !important;
  }
  &.-blue:hover {
    background: #3b77b8 !important;
  }
  &.-blue:active {
    background: #1d5086 !important;
  }

  &.-green {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.15)), #14580b;
  }
  &.-green:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.15)), #1a6d0f;
  }
  &.-green:active {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.06)), #0f3f09;
  }

  &[disabled] {
    box-shadow: none;
    background: #666 !important;
    color: #aaa;
    pointer-events: none;
  }
  &[disabled]::before,
  &[disabled]::after {
    display: none;
  }
}