code optimization

This commit is contained in:
Luke 2023-03-11 11:35:11 +01:00 committed by GitHub
parent 77fd1150e4
commit bad127b12f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,8 @@ p.table-title {
padding-top: 0.5em; padding-top: 0.5em;
} }
.price-table, .moneroversary-table { .price-table,
.moneroversary-table {
margin: 0 0 1.3334rem 0; margin: 0 0 1.3334rem 0;
width: 100%; // adjust to your needs width: 100%; // adjust to your needs
background: #45494f; background: #45494f;
@ -50,8 +51,6 @@ p.table-title {
border-bottom: 2px solid #fff; border-bottom: 2px solid #fff;
} }
tr.row1 { tr.row1 {
background-color: var(--block-bg-color-heading); background-color: var(--block-bg-color-heading);
} }
@ -64,14 +63,14 @@ p.table-title {
display: block; display: block;
&:first-child { &:first-child {
padding-top: .5em; padding-top: 0.5em;
} }
&:last-child { &:last-child {
padding-bottom: .5em; padding-bottom: 0.5em;
} }
&:before { &:before {
content: attr(data-th)": "; // who knew you could do this? The internet, that's who. content: attr(data-th) ": "; // who knew you could do this? The internet, that's who.
font-weight: bold; font-weight: bold;
// optional stuff to make it look nicer // optional stuff to make it look nicer
@ -85,12 +84,13 @@ p.table-title {
} }
} }
th, td { th,
td {
text-align: left; text-align: left;
margin: .5em 1em; margin: 0.5em 1em;
@media (min-width: $breakpoint-alpha) { @media (min-width: $breakpoint-alpha) {
display: table-cell; display: table-cell;
padding: .25em .5em; padding: 0.25em 0.5em;
padding: 1em !important; padding: 1em !important;
&:first-child { &:first-child {
padding-left: 0; padding-left: 0;
@ -100,10 +100,10 @@ p.table-title {
padding-right: 0; padding-right: 0;
} }
} }
} }
th, td:before { th,
td:before {
color: #fff; color: #fff;
} }
@ -120,7 +120,6 @@ p.table-title {
color: #d83231; color: #d83231;
} }
} }
} }
.moneroversary-table { .moneroversary-table {
@ -129,7 +128,8 @@ p.table-title {
background: #f0f0f0; background: #f0f0f0;
color: #45494f; color: #45494f;
} }
th, td:before { th,
td:before {
@media (max-width: $breakpoint-alpha) { @media (max-width: $breakpoint-alpha) {
color: #45494f; color: #45494f;
} }
@ -153,39 +153,44 @@ p.table-title {
background-color: #db8b55; background-color: #db8b55;
} }
.content ul, .content ol { .content ul,
.content ol {
line-height: 1.9; line-height: 1.9;
} }
.newsbyte, .event { .newsbyte,
.event {
padding: 1rem; padding: 1rem;
background-color: var(--block-bg-color); background-color: var(--block-bg-color);
margin-top: 1rem; margin-top: 1rem;
} }
.newsbyte:first-of-type, .event:first-of-type { .newsbyte:first-of-type,
.event:first-of-type {
margin-top: 0; margin-top: 0;
} }
.newsbyte:after { .newsbyte:after {
display: none; display: none;
content: ''; content: "";
width: 100%; width: 100%;
height: 1px; height: 1px;
margin-top: 2rem; margin-top: 2rem;
background-color: #d5d5d5; background-color: #d5d5d5;
} }
.newsbyte h4, h4.stat { .newsbyte h4,
h4.stat {
font-size: 18px; font-size: 18px;
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
font-weight: 700; font-weight: 700;
@media (max-width: 480px) { @media (max-width: 480px) {
font-size: 16px; font-size: 16px;
} }
} }
.newsbyte p, .event p { .newsbyte p,
.event p {
margin-bottom: 0; margin-bottom: 0;
} }
@ -266,7 +271,7 @@ img.fob-img {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
width: 8rem; width: 8rem;
background-color: rgba(0, 0, 0, 0.75);; background-color: rgba(0, 0, 0, 0.75);
padding: 1rem; padding: 1rem;
} }
@ -277,7 +282,7 @@ img.wikileaks-img {
} }
img#njalla { img#njalla {
background-color: #01051F; background-color: #01051f;
padding: 1rem; padding: 1rem;
} }
@ -285,7 +290,8 @@ p.text-lead {
margin-bottom: 0; margin-bottom: 0;
} }
#post-page img.img-lead, #post-page p.text-lead { #post-page img.img-lead,
#post-page p.text-lead {
display: none; display: none;
} }
@ -353,7 +359,9 @@ img.dvchain {
background-color: #f0f0f0; background-color: #f0f0f0;
} }
#periodical .revuo-classes a.pd, #wrap.periodical .revuo-classes a.pd:active, #wrap.periodical .revuo-classes a.pd:focus { #periodical .revuo-classes a.pd,
#wrap.periodical .revuo-classes a.pd:active,
#wrap.periodical .revuo-classes a.pd:focus {
background-color: #f0f0f0; background-color: #f0f0f0;
} }