aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/button.scss
blob: 86b3501f08712d9d54dcbaa39d367d8883c65c78 (plain) (blame)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
@import './config.scss';

.theme__dark .franz-form__button {
  background: $theme-brand-primary;
  color: $dark-theme-text-color;

  &:hover {
    background: darken($theme-brand-primary, 5%);
  }
  &:active {
    background: lighten($theme-brand-primary, 5%);
  }

  &.franz-form__button--secondary {
    background: $dark-theme-gray-dark;
    color: $dark-theme-text-color;

    &:hover {
      background: lighten($dark-theme-gray-dark, 10%);
    }
    &:active {
      background: lighten($dark-theme-gray-dark, 20%);
    }
  }

  &.franz-form__button--danger {
    background: $theme-brand-danger;

    &:hover {
      background: darken($theme-brand-danger, 5%);
    }
    &:active {
      background: lighten($theme-brand-danger, 5%);
    }
  }

  &.franz-form__button--warning {
    background: $theme-brand-warning;

    &:hover {
      background: darken($theme-brand-warning, 5%);
    }
    &:active {
      background: lighten($theme-brand-warning, 5%);
    }
  }

  &.franz-form__button--inverted {
    border: 2px solid $theme-brand-primary;
    color: $theme-brand-primary;

    &:hover {
      background: darken($theme-brand-primary, 5%);
      color: $dark-theme-text-color;
    }
  }

  &:disabled {
    opacity: 0.5;
  }
}

.franz-form__button {
  background: $theme-brand-primary;
  border-radius: 3px;
  display: block;
  color: #fff;
  padding: 10px 20px;
  position: relative;
  @media (prefers-reduced-motion: no-preference) {
    transition: background 0.5s;
  }
  text-align: center;

  &:hover {
    background: darken($theme-brand-primary, 5%);
  }

  &:active {
    background: lighten($theme-brand-primary, 5%);
    transition: none;
  }

  &:disabled {
    opacity: 0.2;
  }

  &.franz-form__button--large {
    width: 100%;
    margin-bottom: 20px;
  }

  &.franz-form__button--secondary {
    background: $theme-gray-lighter;
    color: $theme-gray;

    &:hover {
      background: darken($theme-gray-lighter, 5%);
    }
    &:active {
      background: lighten($theme-gray-lighter, 5%);
    }
  }

  &.franz-form__button--danger {
    background: $theme-brand-danger;

    &:hover {
      background: darken($theme-brand-danger, 5%);
    }
    &:active {
      background: lighten($theme-brand-danger, 5%);
    }
  }

  &.franz-form__button--warning {
    background: $theme-brand-warning;

    &:hover {
      background: darken($theme-brand-warning, 5%);
    }
    &:active {
      background: lighten($theme-brand-warning, 5%);
    }
  }

  &.franz-form__button--inverted {
    background: none;
    border: 2px solid $theme-brand-primary;
    color: $theme-brand-primary;
    padding: 10px 20px;
    @media (prefers-reduced-motion: no-preference) {
      transition: background 0.5s, color 0.5s;
    }
    &:hover {
      background: darken($theme-brand-primary, 5%);
      color: #fff;
    }
  }

  .loader {
    display: inline-block;
    height: 12px;
    margin-right: 5px;
    position: relative;
    width: 20px;
    z-index: 9999;
  }
}

.ferdi__fab {
  box-sizing: border-box;

  width: 50px;
  height: 50px;

  border-radius: 25px;
  white-space: nowrap;
  z-index: 9998;
  list-style: none;
  background: $theme-brand-primary;

  position: absolute;
  bottom: 20px;
  right: 20px;

  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  a {
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
  }
}