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

@ -1,35 +1,36 @@
p.note { p.note {
font-size: 0.7em; font-size: 0.7em;
margin-bottom: 1rem; margin-bottom: 1rem;
margin-top: -1rem; margin-top: -1rem;
} }
.bcstats { .bcstats {
background-color: var(--block-bg-color); background-color: var(--block-bg-color);
margin-bottom: 1.3334rem; margin-bottom: 1.3334rem;
border-radius: 2px; border-radius: 2px;
} }
.bcstats p { .bcstats p {
padding: 1em; padding: 1em;
margin: 0; margin: 0;
} }
.bcstats p:nth-child(even) { .bcstats p:nth-child(even) {
background-color: var(--blog-bg-color-secondary); background-color: var(--blog-bg-color-secondary);
} }
$breakpoint-alpha: 480px; // adjust to your needs $breakpoint-alpha: 480px; // adjust to your needs
p.table-title { p.table-title {
margin: 0; margin: 0;
padding-bottom: 0.5em; padding-bottom: 0.5em;
font-weight: 700; font-weight: 700;
font-size: 16px; font-size: 16px;
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;
@ -42,347 +43,354 @@ p.table-title {
color: #45494f; color: #45494f;
tr.row3 { tr.row3 {
background-color: var(--blog-bg-color-secondary); background-color: var(--blog-bg-color-secondary);
}
} }
}
tr { tr {
border-top: 2px solid #fff; border-top: 2px solid #fff;
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);
} }
th { th {
display: none; display: none;
} }
td { td {
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
width: 6.5em; // magic number :( adjust according to your own content width: 6.5em; // magic number :( adjust according to your own content
display: inline-block; display: inline-block;
// end options // end options
@media (min-width: $breakpoint-alpha) { @media (min-width: $breakpoint-alpha) {
display: none; display: none;
} }
} }
} }
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;
} }
&:last-child { &:last-child {
padding-right: 0; padding-right: 0;
} }
} }
} }
th, td:before { th,
td:before {
color: #fff; color: #fff;
} }
td.green { td.green {
color: #66d166; color: #66d166;
@media (min-width: $breakpoint-alpha) { @media (min-width: $breakpoint-alpha) {
color: #51a751; color: #51a751;
} }
} }
td.red { td.red {
color: #e36f6e; color: #e36f6e;
@media (min-width: $breakpoint-alpha) { @media (min-width: $breakpoint-alpha) {
color: #d83231; color: #d83231;
} }
} }
} }
.moneroversary-table { .moneroversary-table {
margin: 1.3334rem 0 1.3334rem 0; margin: 1.3334rem 0 1.3334rem 0;
@media (max-width: $breakpoint-alpha) { @media (max-width: $breakpoint-alpha) {
background: #f0f0f0; background: #f0f0f0;
color: #45494f; color: #45494f;
}
th,
td:before {
@media (max-width: $breakpoint-alpha) {
color: #45494f;
} }
th, td:before { }
@media (max-width: $breakpoint-alpha) {
color: #45494f;
}
}
} }
.moneroversary-table tr.row1 { .moneroversary-table tr.row1 {
background-color: #db8b55; background-color: #db8b55;
} }
.content h3 { .content h3 {
margin-top: 3rem; margin-top: 3rem;
background-color: #45494f; background-color: #45494f;
color: white; color: white;
padding-left: 1rem; padding-left: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
border-radius: 2px; border-radius: 2px;
} }
.content h3.orange { .content h3.orange {
background-color: #db8b55; background-color: #db8b55;
} }
.content ul, .content ol { .content ul,
line-height: 1.9; .content ol {
line-height: 1.9;
} }
.newsbyte, .event { .newsbyte,
padding: 1rem; .event {
background-color: var(--block-bg-color); padding: 1rem;
margin-top: 1rem; background-color: var(--block-bg-color);
margin-top: 1rem;
} }
.newsbyte:first-of-type, .event:first-of-type { .newsbyte:first-of-type,
margin-top: 0; .event:first-of-type {
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,
font-size: 18px; h4.stat {
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 18px;
font-weight: 700; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
@media (max-width: 480px) { font-weight: 700;
font-size: 16px; @media (max-width: 480px) {
} font-size: 16px;
}
} }
.newsbyte p, .event p { .newsbyte p,
margin-bottom: 0; .event p {
margin-bottom: 0;
} }
p.date { p.date {
margin-bottom: 0.2em; margin-bottom: 0.2em;
font-weight: 700; font-weight: 700;
} }
.proposal { .proposal {
margin-bottom: 1rem; margin-bottom: 1rem;
padding: 1em; padding: 1em;
background-color: var(--block-bg-color); background-color: var(--block-bg-color);
} }
.proposal p { .proposal p {
margin-bottom: 0; margin-bottom: 0;
} }
.proposal p:first-child { .proposal p:first-child {
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
} }
.proposal p a { .proposal p a {
line-height: 1.7; line-height: 1.7;
} }
img.merchant-img { img.merchant-img {
width: 15rem; width: 15rem;
margin: 0 0 24px 0; margin: 0 0 24px 0;
} }
img#pepperworks { img#pepperworks {
margin-top: 40px; margin-top: 40px;
} }
img#openpriv { img#openpriv {
margin-bottom: 0; margin-bottom: 0;
} }
img#veracrypt { img#veracrypt {
width: 10rem; width: 10rem;
margin-top: 40px; margin-top: 40px;
} }
p.address { p.address {
background-color: var(--block-bg-color); background-color: var(--block-bg-color);
color: var(--link-color); color: var(--link-color);
font-weight: bold; font-weight: bold;
word-wrap: break-word; word-wrap: break-word;
padding: 1.5rem; padding: 1.5rem;
margin-top: 1.5rem; margin-top: 1.5rem;
border-radius: 2px; border-radius: 2px;
-webkit-touch-callout: all; -webkit-touch-callout: all;
-webkit-user-select: all; -webkit-user-select: all;
-khtml-user-select: all; -khtml-user-select: all;
-moz-user-select: all; -moz-user-select: all;
-ms-user-select: all; -ms-user-select: all;
user-select: all; user-select: all;
} }
a.qr { a.qr {
display: inline-block; display: inline-block;
border: none; border: none;
border-radius: 10px; border-radius: 10px;
} }
a.qr img { a.qr img {
margin-bottom: 0; margin-bottom: 0;
vertical-align: middle; vertical-align: middle;
} }
img.merchant-img { img.merchant-img {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
img.fob-img { 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;
} }
img.wikileaks-img { img.wikileaks-img {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
width: 10rem; width: 10rem;
} }
img#njalla { img#njalla {
background-color: #01051F; background-color: #01051f;
padding: 1rem; padding: 1rem;
} }
p.text-lead { p.text-lead {
margin-bottom: 0; margin-bottom: 0;
} }
#post-page img.img-lead, #post-page p.text-lead { #post-page img.img-lead,
display: none; #post-page p.text-lead {
display: none;
} }
img.gratuitas { img.gratuitas {
width: 10rem; width: 10rem;
} }
img.localmonero { img.localmonero {
width: 10rem; width: 10rem;
margin-bottom: -1rem; margin-bottom: -1rem;
} }
.sponsors { .sponsors {
box-sizing: border-box; box-sizing: border-box;
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-flex: 0; -webkit-box-flex: 0;
-ms-flex: 0 1 auto; -ms-flex: 0 1 auto;
flex: 0 1 auto; flex: 0 1 auto;
-webkit-box-orient: horizontal; -webkit-box-orient: horizontal;
-webkit-box-direction: normal; -webkit-box-direction: normal;
-ms-flex-direction: row; -ms-flex-direction: row;
flex-direction: row; flex-direction: row;
-ms-flex-wrap: wrap; -ms-flex-wrap: wrap;
flex-wrap: wrap; flex-wrap: wrap;
-webkit-box-pack: center; -webkit-box-pack: center;
-ms-flex-pack: center; -ms-flex-pack: center;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
} }
.sponsor { .sponsor {
box-sizing: border-box; box-sizing: border-box;
-webkit-box-flex: 0; -webkit-box-flex: 0;
-ms-flex: 0 0 auto; -ms-flex: 0 0 auto;
flex: 0 0 auto; flex: 0 0 auto;
flex-basis: auto; flex-basis: auto;
@media (max-width: 520px) { @media (max-width: 520px) {
-ms-flex-preferred-size: 100%; -ms-flex-preferred-size: 100%;
flex-basis: 100%; flex-basis: 100%;
max-width: 100%; max-width: 100%;
} }
} }
img.dvchain { img.dvchain {
height: 9rem; height: 9rem;
margin-left: 3rem; margin-left: 3rem;
@media (max-width: 520px) { @media (max-width: 520px) {
margin-left: auto; margin-left: auto;
margin-top: 1rem; margin-top: 1rem;
height: auto; height: auto;
width: 13rem; width: 13rem;
} }
} }
// Periodical // Periodical
.revuo-classes a { .revuo-classes a {
padding: 1rem 2rem; padding: 1rem 2rem;
width: 11rem; width: 11rem;
} }
#weekly .revuo-classes a.wk { #weekly .revuo-classes a.wk {
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,
background-color: #f0f0f0; #wrap.periodical .revuo-classes a.pd:active,
#wrap.periodical .revuo-classes a.pd:focus {
background-color: #f0f0f0;
} }
// Typography for Periodical // Typography for Periodical
.hted-head { .hted-head {
margin: 2.5rem 0 1.3334rem 0; margin: 2.5rem 0 1.3334rem 0;
background: #d9dadb; background: #d9dadb;
color: #222222; color: #222222;
width: 100%; width: 100%;
border-radius: 2px; border-radius: 2px;
padding: 1em; padding: 1em;
text-align: left; text-align: left;
} }
#post-page h2 { #post-page h2 {
line-height: 1.3; line-height: 1.3;
} }
.text-center { .text-center {
text-align: center; text-align: center;
} }
.page-numbers-display { .page-numbers-display {
display: inline-block; display: inline-block;
margin-left: 1rem; margin-left: 1rem;
margin-right: 1rem; margin-right: 1rem;
} }
html { html {
scroll-behavior: smooth; scroll-behavior: smooth;
} }