aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/button.scss
blob: cf2568fc45e396a142631ffe028d36e8b824b6d1 (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
@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-lighter;
    color: $dark-theme-text-color;

    &:hover { background: lighten($dark-theme-gray-lighter, 10%); }
    &:active { background: lighten($dark-theme-gray-lighter, 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: .5; }
}

.franz-form__button {
  background: $theme-brand-primary;
  border-radius: 3px;
  display: block;
  color: #FFF;
  padding: 10px 20px;
  position: relative;
  transition: background .5s;
  text-align: center;

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

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

  &:disabled { opacity: .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;
    transition: background .5s, color .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;  
  }
}