From ae8f3abeda22cbc7635402c63d238e61be024ab4 Mon Sep 17 00:00:00 2001 From: Elliot Wirrick Date: Tue, 16 Mar 2021 15:37:11 -0400 Subject: [PATCH] reduce CLS when lazy loading images --- css/custom.css | 6 +++++- downloads/index.md | 26 +++++++++++++------------- get-started/accepting/index.md | 8 ++++---- get-started/what-is-monero/index.md | 8 ++++---- index.html | 12 ++++++------ 5 files changed, 32 insertions(+), 28 deletions(-) diff --git a/css/custom.css b/css/custom.css index dd068116..4225c1a5 100644 --- a/css/custom.css +++ b/css/custom.css @@ -1026,7 +1026,10 @@ a, button, input, select, textarea, label, label:checked, label:focus { h1, h2, h3, h4, h5, h6, p {margin: 0; padding: 0;} -img, video {max-width: 100%;} +img, video { + max-width: 100%; + height: auto; +} img.top-margin { margin-top: 1.2rem; @@ -3265,6 +3268,7 @@ span.icon-browser { padding: 0; padding-right: 0.5rem; height: 20px; + width: auto; vertical-align: middle; } diff --git a/downloads/index.md b/downloads/index.md index 2d56d529..99b5c949 100644 --- a/downloads/index.md +++ b/downloads/index.md @@ -48,7 +48,7 @@ permalink: /downloads/index.html {% t downloads.gui_intro %}
- {% t accessibility.guiscreen %} + {% t accessibility.guiscreen %}
- {% t accessibility.cliscreen %} + {% t accessibility.cliscreen %}
@@ -300,11 +300,11 @@ permalink: /downloads/index.html
- ledger logo - Trezor logo + ledger logo + Trezor logo
- Kastelo logo + Kastelo logo
diff --git a/get-started/accepting/index.md b/get-started/accepting/index.md index d6cf7e18..91296cff 100644 --- a/get-started/accepting/index.md +++ b/get-started/accepting/index.md @@ -17,10 +17,10 @@ permalink: /get-started/accepting/index.html

{% t accepting.title_gui %}

{% t accepting.gui1 %}

{% t accepting.gui2 %} {% t accepting.guilinkguide %}

- receive page + receive page

{% t accepting.guiinstructions %}

{% t accepting.guimerchant %} {% t accepting.guilinkguide1 %}.

- merchant view + merchant view

{% t accepting.guimerchant1 %}

{% t accepting.guisteps %}

    @@ -36,9 +36,9 @@ permalink: /get-started/accepting/index.html

    {% t accepting.clicreateaccount %}

    account new [label text with white spaces allowed]

    {% t accepting.clicreateaccount1 %}

    - accounts + accounts

    {% t accepting.cliindex %}

    - accounts switch + accounts switch

    {% t accepting.cliindex1 %}

    address new [label text with white spaces allowed]

    {% t accepting.clinotes %}

    diff --git a/get-started/what-is-monero/index.md b/get-started/what-is-monero/index.md index 5e2b3041..7f166cdd 100644 --- a/get-started/what-is-monero/index.md +++ b/get-started/what-is-monero/index.md @@ -19,12 +19,12 @@ permalink: /get-started/what-is-monero/index.html

    {% t what-is-monero.leading_para2 %}

    - Encrypted lock + Encrypted lock
    - Classified document + Classified document

    {% t what-is-monero.confidential %}

    @@ -38,12 +38,12 @@ permalink: /get-started/what-is-monero/index.html

    {% t what-is-monero.electronic_para1 %}

    - Electronic cash + Electronic cash
    - Academic growth + Academic growth

    {% t what-is-monero.grassroots %}

    diff --git a/index.html b/index.html index 41c8fbb4..a04debf0 100644 --- a/index.html +++ b/index.html @@ -45,12 +45,12 @@ permalink: index.html

    {% t home.downloads %}

    - Create wallet + Create wallet
    - Exchange + Exchange

    {% t home.getcoins %}

    @@ -66,12 +66,12 @@ permalink: index.html

    {% t home.merchants %}

    - Merchants + Merchants
    - FAQ + FAQ

    {% t home.answers %}

    @@ -135,12 +135,12 @@ permalink: index.html

    {% t home.contributing %}

    - Contribute + Contribute
    - Monero Research Lab + Monero Research Lab

    {% t titles.researchlab %}