aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/fields/ButtonField.scss
blob: 99afe08b4e2e72b6384ecba4adcdd8040131d571 (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
@import "../../colors.scss";

.button-field {
  font-size: 0.9em;

  .button-bordered {
    border-bottom: 5px solid $color-primary-1;
  }

  &.field-small {
    font-size: 0.8em;

    button {
      padding: 3px 12px;
    }
  }

  &.field-active {
    button {
      color: $color-primary-1;
      background-color: $color-primary-4;
    }
  }

  .button-variant-red {
    color: $color-red-light;
    background-color: $color-red;

    &.button-bordered {
      border-bottom: 5px solid $color-red-dark;
    }

    &:hover,
    &:active {
      color: $color-red-light;
      background-color: $color-red-dark;
    }
  }

  .button-variant-pink {
    color: $color-pink-light;
    background-color: $color-pink;

    &.button-bordered {
      border-bottom: 5px solid $color-pink-dark;
    }

    &:hover,
    &:active {
      color: $color-pink-light;
      background-color: $color-pink-dark;
    }
  }

  .button-variant-purple {
    color: $color-purple-light;
    background-color: $color-purple;

    &.button-bordered {
      border-bottom: 5px solid $color-purple-dark;
    }

    &:hover,
    &:active {
      color: $color-purple-light;
      background-color: $color-purple-dark;
    }
  }

  .button-variant-deep-purple {
    color: $color-deep-purple-light;
    background-color: $color-deep-purple;

    &.button-bordered {
      border-bottom: 5px solid $color-deep-purple-dark;
    }

    &:hover,
    &:active {
      color: $color-deep-purple-light;
      background-color: $color-deep-purple-dark;
    }
  }

  .button-variant-indigo {
    color: $color-indigo-light;
    background-color: $color-indigo;

    &.button-bordered {
      border-bottom: 5px solid $color-indigo-dark;
    }

    &:hover,
    &:active {
      color: $color-indigo-light;
      background-color: $color-indigo-dark;
    }
  }

  .button-variant-blue {
    color: $color-blue-light;
    background-color: $color-blue;

    &.button-bordered {
      border-bottom: 5px solid $color-blue-dark;
    }

    &:hover,
    &:active {
      color: $color-blue-light;
      background-color: $color-blue-dark;
    }
  }

  .button-variant-green {
    color: $color-green-light;
    background-color: $color-green;

    &.button-bordered {
      border-bottom: 5px solid $color-green-dark;
    }

    &:hover,
    &:active {
      color: $color-green-light;
      background-color: $color-green-dark;
    }
  }
}