Skip to content

Commit c75568d

Browse files
committed
buttons decluttering done
1 parent 2a2f5cb commit c75568d

File tree

4 files changed

+35
-141
lines changed

4 files changed

+35
-141
lines changed

sass/styles/applications/hb/buttons.scss

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,17 @@
22
&.button-blue {
33
background-image: $button-gradient-blue;
44
}
5-
6-
&.disabled,
7-
&:disabled {
8-
background: $faded-text !important;
9-
cursor: auto;
10-
}
115
}
126

137
.button-dashed {
148
font-weight: $bold;
159

16-
&:hover {
17-
background-color: unset;
18-
}
19-
2010
&.button-blue {
2111
border: solid 1px $hb-blue;
2212
color: $hb-blue;
2313

2414
&:hover {
2515
background-image: $gradient-blue;
26-
color: $white;
27-
}
28-
}
29-
30-
&.button-orange {
31-
border: solid 1px $orange;
32-
color: $orange;
33-
34-
&:hover {
35-
background-image: $gradient-orange;
36-
color: $white;
3716
}
3817
}
3918

@@ -42,30 +21,7 @@
4221
color: $purple;
4322

4423
&:hover {
45-
background-image: $gradient-purple;
46-
color: $white;
47-
}
48-
}
49-
50-
&.button-green {
51-
border: solid 1px $green;
52-
color: $green;
53-
54-
&:hover {
55-
background-image: $gradient-green;
56-
color: $white;
57-
}
58-
}
59-
60-
&.disabled,
61-
&:disabled {
62-
border-color: $faded-text !important;
63-
color: $faded-text !important;
64-
cursor: auto;
65-
66-
&:hover {
67-
background: $white !important;
68-
color: $grey !important;
24+
background-image: $gradient-dpurple;
6925
}
7026
}
7127
}
Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
.button-solid {
2-
&.disabled,
3-
&:disabled {
4-
background: $faded-text !important;
5-
cursor: auto;
6-
}
7-
1+
.button-solid {
82
&.lg {
93
padding: 13px 20px;
104
border-radius: 30px;
@@ -14,44 +8,8 @@
148
.button-dashed {
159
font-weight: $bold;
1610

17-
&.disabled,
18-
&:disabled {
19-
border-color: $faded-text !important;
20-
color: $faded-text !important;
21-
cursor: auto;
22-
23-
&:hover {
24-
background: $white !important;
25-
color: $grey !important;
26-
}
27-
}
28-
2911
&.lg {
3012
padding: 13px 20px;
3113
border-radius: 30px;
3214
}
33-
34-
&:hover {
35-
background-color: unset;
36-
}
37-
38-
&.button-orange {
39-
border: solid 1px $orange;
40-
color: $orange;
41-
42-
&:hover {
43-
background-image: $gradient-orange;
44-
color: $white;
45-
}
46-
}
47-
48-
&.button-green {
49-
border: solid 1px $green;
50-
color: $green;
51-
52-
&:hover {
53-
background-image: $gradient-green;
54-
color: $white;
55-
}
56-
}
5715
}

sass/styles/applications/online-cb/elements/buttons.scss

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,9 @@
66
background: $light-grey;
77
color: #666666;
88
}
9-
10-
&.disabled,
11-
&:disabled {
12-
cursor: auto;
13-
background: $faded-text;
14-
}
159
}
1610

1711
.button-dashed {
1812
font-weight: $bold;
1913
display: inline-block;
20-
21-
&:hover {
22-
background-color: unset;
23-
}
24-
25-
&.button-orange {
26-
border: solid 1px $orange;
27-
color: $orange;
28-
29-
&:hover {
30-
background-image: $gradient-orange;
31-
color: $white;
32-
}
33-
}
34-
35-
&.disabled,
36-
&:disabled {
37-
border-color: $faded-text !important;
38-
color: $faded-text !important;
39-
cursor: auto;
40-
41-
&:hover {
42-
background: $white !important;
43-
color: $grey !important;
44-
}
45-
}
46-
}
47-
48-
@media screen and (max-width: 575px) {
49-
.button-align-container {
50-
display: flex;
51-
width: 100%;
52-
justify-content: flex-end;
53-
}
5414
}

sass/styles/objects/buttons.scss

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,19 @@
8585
&.button-white {
8686
background: $white !important;
8787
}
88+
89+
&.disabled,
90+
&:disabled {
91+
cursor: auto;
92+
background: $button-gradient-disabled;
93+
}
8894
}
8995

9096
.button-dashed {
9197
border: 1px solid;
9298

9399
&:hover {
94-
background-color: $dashed-button-color;
95-
color: $white;
100+
color: $white !important;
96101
}
97102

98103
&.button-pink-orange {
@@ -101,8 +106,6 @@
101106

102107
&:hover {
103108
background-image: $hi-gradient-pink-orange-lr;
104-
color: $white;
105-
border: unset;
106109
}
107110
}
108111

@@ -112,18 +115,35 @@
112115

113116
&:hover {
114117
background-image: $gradient-orange;
115-
color: $white;
116118
}
117119
}
118-
}
119120

120-
.button-solid.disabled,
121-
.button-solid:disabled {
122-
background-image: $button-gradient-disabled;
123-
box-shadow: 0 10px 41px 0 $button-gradient-disabled;
121+
&.button-green {
122+
border: solid 1px $green;
123+
color: $green;
124+
125+
&:hover {
126+
background-image: $gradient-green;
127+
}
128+
}
129+
130+
&.disabled,
131+
&:disabled {
132+
border-color: $faded-text !important;
133+
color: $faded-text !important;
134+
cursor: auto;
135+
136+
&:hover {
137+
background: $button-gradient-disabled !important;
138+
color: $white !important;
139+
}
140+
}
141+
}
124142

125-
button {
126-
cursor: default;
127-
pointer-events: none;
143+
@media screen and (max-width: 575px) {
144+
.button-align-container {
145+
display: flex;
146+
width: 100%;
147+
justify-content: flex-end;
128148
}
129149
}

0 commit comments

Comments
 (0)