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;
}
.price-table, .moneroversary-table {
.price-table,
.moneroversary-table {
margin: 0 0 1.3334rem 0;
width: 100%; // adjust to your needs
background: #45494f;
@ -50,8 +51,6 @@ p.table-title {
border-bottom: 2px solid #fff;
}
tr.row1 {
background-color: var(--block-bg-color-heading);
}
@ -64,10 +63,10 @@ p.table-title {
display: block;
&:first-child {
padding-top: .5em;
padding-top: 0.5em;
}
&:last-child {
padding-bottom: .5em;
padding-bottom: 0.5em;
}
&:before {
@ -85,12 +84,13 @@ p.table-title {
}
}
th, td {
th,
td {
text-align: left;
margin: .5em 1em;
margin: 0.5em 1em;
@media (min-width: $breakpoint-alpha) {
display: table-cell;
padding: .25em .5em;
padding: 0.25em 0.5em;
padding: 1em !important;
&:first-child {
padding-left: 0;
@ -100,10 +100,10 @@ p.table-title {
padding-right: 0;
}
}
}
th, td:before {
th,
td:before {
color: #fff;
}
@ -120,7 +120,6 @@ p.table-title {
color: #d83231;
}
}
}
.moneroversary-table {
@ -129,7 +128,8 @@ p.table-title {
background: #f0f0f0;
color: #45494f;
}
th, td:before {
th,
td:before {
@media (max-width: $breakpoint-alpha) {
color: #45494f;
}
@ -153,39 +153,44 @@ p.table-title {
background-color: #db8b55;
}
.content ul, .content ol {
.content ul,
.content ol {
line-height: 1.9;
}
.newsbyte, .event {
.newsbyte,
.event {
padding: 1rem;
background-color: var(--block-bg-color);
margin-top: 1rem;
}
.newsbyte:first-of-type, .event:first-of-type {
.newsbyte:first-of-type,
.event:first-of-type {
margin-top: 0;
}
.newsbyte:after {
display: none;
content: '';
content: "";
width: 100%;
height: 1px;
margin-top: 2rem;
background-color: #d5d5d5;
}
.newsbyte h4, h4.stat {
.newsbyte h4,
h4.stat {
font-size: 18px;
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
font-weight: 700;
@media (max-width: 480px) {
font-size: 16px;
}
}
.newsbyte p, .event p {
.newsbyte p,
.event p {
margin-bottom: 0;
}
@ -266,7 +271,7 @@ img.fob-img {
margin-left: auto;
margin-right: auto;
width: 8rem;
background-color: rgba(0, 0, 0, 0.75);;
background-color: rgba(0, 0, 0, 0.75);
padding: 1rem;
}
@ -277,7 +282,7 @@ img.wikileaks-img {
}
img#njalla {
background-color: #01051F;
background-color: #01051f;
padding: 1rem;
}
@ -285,7 +290,8 @@ p.text-lead {
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;
}
@ -353,7 +359,9 @@ img.dvchain {
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;
}