Skip to content

Commit 1d008a5

Browse files
AdrianoCaheteMauricioFauth
authored andcommitted
Fix Donate, Docs and About page layouts + Add History view to About page + Fix css variables + Prepare for future dark mode
1 parent c61c77d commit 1d008a5

File tree

8 files changed

+520
-100
lines changed

8 files changed

+520
-100
lines changed

pmaweb/static/bootstrap/css/modal.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
.modal-content {
3737
position: relative;
38-
background-color: #ffffff;
38+
background-color: var(--background-page);
3939
background-clip: padding-box;
4040
border: 1px solid #999999;
4141
border: 1px solid rgba(0, 0, 0, 0.2);

pmaweb/static/css/base.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
--brand-primary: var(--color-primary-100);
5757
--brand-secondary: var(--color-secondary-100);
5858

59+
--background-page: rgba(255, 255, 255, 1);
60+
5961
--alert-info: var(--color-blue-100);
6062
--alert-error: var(--color-red);
6163
--alert-success: var(--color-green-50);

pmaweb/static/css/mobile.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ body {
4242
top: 7rem;
4343
width: 100%;
4444
height: auto;
45-
background: #fff;
46-
border-bottom: 1px solid #ccc;
45+
background: var(--background-page);
46+
border-bottom: 1px solid var(--color-gray-200);
4747
}
4848

4949
.nav-menu.navbar-collapse:not(.show) {

pmaweb/static/css/style.css

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ button {
326326
flex-direction: column;
327327
justify-content: space-evenly;
328328
flex: 1;
329-
background-color: #fff;
329+
background-color: var(--background-page);
330330
border: 1px solid var(--color-gray-200);
331331
padding: 1rem;
332332
border-radius: 10px;
@@ -438,7 +438,8 @@ button {
438438
margin-right: 1rem;
439439
}
440440

441-
.card-simple .card-description p {
441+
.card-simple .card-description p,
442+
.card-simple p.card-description {
442443
margin-top: 0;
443444
}
444445

@@ -529,7 +530,7 @@ button {
529530
}
530531

531532
.accordion .accordion-header {
532-
background-color: #f2f2f2;
533+
background-color: var(--color-gray-100);
533534
}
534535

535536
.accordion .accordion-header button {
@@ -556,7 +557,7 @@ button {
556557
}
557558

558559
.accordion .accordion-list .accordion-list-item:hover {
559-
background-color: #f2f2f2;
560+
background-color: var(--color-gray-100);
560561
transition: .3s ease all;
561562
}
562563

@@ -699,7 +700,44 @@ button {
699700
color: #fff;
700701
}
701702

703+
/* History View */
704+
.history-view {
705+
list-style-type: none;
706+
padding: 0;
707+
border-left: 1px solid var(--color-gray-200);
708+
}
702709

710+
.history-view li {
711+
display: flex;
712+
padding: 1rem;
713+
position: relative;
714+
}
715+
716+
.history-view .history-date {
717+
margin-right: 1rem;
718+
padding: .5rem 1rem;
719+
text-align: center;
720+
background-color: var(--color-gray-100);
721+
}
722+
723+
.history-view .history-date::before {
724+
display: flex;
725+
align-self: center;
726+
top: 1.7rem;
727+
content: "";
728+
height: 1rem;
729+
width: 1rem;
730+
border: 3px solid var(--brand-primary);
731+
position: absolute;
732+
left: -0.6rem;
733+
border-radius: 50%;
734+
background-color: var(--background-page);
735+
}
736+
737+
.history-view .history-link {
738+
color: var(--brand-primary);
739+
font-weight: bold;
740+
}
703741

704742

705743
/* Footer */

0 commit comments

Comments
 (0)