Skip to content

Commit 0c8130d

Browse files
committed
chore: revamp boutty detail actions
- move funder change address notification to above action buttons - move extra options to dropdown - update buttons to new style - refactor code + remove dead code
1 parent ecf7c7c commit 0c8130d

File tree

7 files changed

+149
-208
lines changed

7 files changed

+149
-208
lines changed

app/assets/v2/css/base.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -552,12 +552,6 @@ input[type=text].loading {
552552
text-align: left;
553553
}
554554

555-
.admin-only {
556-
background-color: #5495E1 !important;
557-
color:white !important;
558-
border: 1px solid white !important;
559-
}
560-
561555
/* The alert message box */
562556

563557
.alert {

app/assets/v2/css/bounty.css

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ body {
156156
}
157157

158158
#description {
159+
border-top: 1px solid #D4D4D4;
159160
margin-bottom: 2em;
160161
}
161162

@@ -285,10 +286,7 @@ body {
285286
}
286287

287288
.bounty-actions {
288-
margin-top: 2.5em;
289289
display: inherit;
290-
padding-bottom: 5px;
291-
border-bottom: 1px solid #D4D4D4;
292290
}
293291

294292
.bounty-actions .tag.usd {
@@ -364,10 +362,6 @@ a.btn {
364362
margin-bottom: 10px;
365363
}
366364

367-
#moderator-admin-actions:not(:empty).sticky {
368-
text-align: center;
369-
}
370-
371365
.sticky {
372366
position: fixed;
373367
top: 0;
@@ -490,7 +484,7 @@ a.btn {
490484
}
491485

492486
#funder_notif_info .bounty-notification {
493-
border: orange 1px solid;
487+
border: orange 2px solid;
494488
border-radius: 3px;
495489
padding: 0.5rem;
496490
}
@@ -501,7 +495,7 @@ a.btn {
501495
}
502496

503497
#funder_notif_info img {
504-
width: 1.5rem;
498+
width: 1.25rem;
505499
position: relative;
506500
top: -2px;
507501
}
@@ -565,15 +559,9 @@ a.btn {
565559
#moderator-admin-actions:not(:empty) {
566560
background: #F2F6F9;
567561
padding: 16px 0 10px;
568-
text-align: left;
569562
left: 0;
570563
}
571564

572-
#moderator-admin-actions:not(:empty) a {
573-
border: none !important;
574-
margin: 0 3px 5px;
575-
}
576-
577565
@media (max-width: 767px) {
578566

579567
#title {

app/assets/v2/css/forms/button.css

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
.button {
22
border: none;
3-
border-radius: 5px;
4-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
3+
border-radius: 3px;
54
color: #fff;
65
cursor: pointer;
76
font-size: 14px;
8-
font-weight: 400;
9-
padding: 10px 20px;
10-
-webkit-appearance: none;
7+
padding: 6px 20px;
118
}
129

1310
.button:hover {
@@ -17,22 +14,27 @@
1714

1815
.button--primary.button.disabled,
1916
.button--primary.button.disabled:hover {
20-
background-color: #DFDFDF;
17+
background-color: #D8D8D8;
18+
color: #666666;
2119
box-shadow: none;
22-
color: #9F9F9F;
2320
}
2421

2522
.button--primary {
26-
background-color: #0D0764;
27-
font-weight: 500;
23+
background-color: #3E00FF;
2824
}
2925

3026
.button--primary:hover {
31-
background-color: #280076;
27+
background-color: #3f00ff;
3228
}
3329

34-
.button--primary:active {
35-
background-color: #1B0050;
30+
.button--secondary {
31+
color: #3E00FF;
32+
border: 1px solid #3E00FF;
33+
}
34+
35+
.button--secondary:hover {
36+
color: #3f00ff;
37+
border-color: #3f00ff;
3638
}
3739

3840
.button--primary-o {

app/assets/v2/css/gitcoin.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,12 +571,12 @@ div.button-pink {
571571
}
572572

573573
.dropdown-menu .dropdown-item {
574-
padding: 12px 25px;
574+
padding: 12px 25px !important;
575575
}
576576

577577
.dropdown-menu .dropdown-item:hover {
578-
background-color: #0D0764;
579-
color: #FFFFFF;
578+
background-color: #3E00FF;
579+
color: #FFFFFF !important;
580580
}
581581

582582
#why-gitcoin .dropdown-item {

0 commit comments

Comments
 (0)