Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

section2 images are not being displayed on Firefox Browsers #98

Open
nathanbiller opened this issue Nov 17, 2019 · 2 comments
Open

section2 images are not being displayed on Firefox Browsers #98

nathanbiller opened this issue Nov 17, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@nathanbiller
Copy link
Contributor

Both Chrome and Safari correctly show these SVG icons, but when Firefox renders they're missing.

Screenshot 2019-11-17 14 48 25

@edwardch
Copy link

@nathanbiller this seems to be the svg file (really large) that needs to have its size specified.
For reference I used a 150px .png file and it displayed fine.

I fixed this by editing the //Icon box in _sections.scss

//Icon box
.media.icon-box {
    border-top: none !important;
    .media-content .content p {
        span {
            display: block;
        }
        .icon-box-title {
            color: $blue-grey;
            font-size: 1.2rem;
            font-weight: 600;
        }
        .icon-box-text {
            color: $title-grey;
            font-size: 1rem;
            font-weight: 400;
        }
    }
    // Add this here
    img {
        height: 150px;
        width: 150px;
    }
}

hth

@StefMa StefMa added the bug Something isn't working label Feb 12, 2021
@jkirk
Copy link

jkirk commented Nov 3, 2024

FWIW: And if you remove the icons (from section2.features in hugo.yml) "broken" images are displayed (/images/illustrations/icons/%25!s%28%3cnil%3e%29.svg). It would be nice, if the section can also be shown without images.

screenshot_20241103T110300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants