Giter Club home page Giter Club logo

Comments (4)

dshanske avatar dshanske commented on May 27, 2024

The size can be set in CSS. These are SVG icons and will scale infinitely. Also, since I am now using the Social Logos pack from Automattic, this is the same icon set Jetpack uses. There are two ways to add it... inside the content block or outside. Outside requires hacking the theme.

from syndication-links.

chrisaldrich avatar chrisaldrich commented on May 27, 2024

For reference, here's the CSS that jetpack uses:

/* Make the Syndication Links replicate the font characteristics of JetPack */
.relsyn {
    font-family: Montserrat, "Helvetica Neue", sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
}

from syndication-links.

dshanske avatar dshanske commented on May 27, 2024

I added support for three different icon sizes. I am reluctant to set font families as I prefer to inherit from the theme.

from syndication-links.

chrisaldrich avatar chrisaldrich commented on May 27, 2024

That's acceptable and should work well.

For those in the future looking to change their CSS to match JetPack, try the following:

  • In the settings, change "Text Before Links" to: Syndicated to: <br/>
  • Add the following CSS snippet to your theme (preferably as a child them) or to the "Additional CSS" tab from within the Customizer:
    /* Make the Syndication Links replicate the font characteristics of JetPack */
    .relsyn { font-family: Montserrat, "Helvetica Neue", sans-serif; font-size: 0.8125rem; font-weight: 400; }

I'm guessing the medium size should work well for the icons (once that feature is released). One could add some additional padding/margins and the <hr> as well, but for some reason I've had difficulty pulling it off in CSS (or I've been missing some override somewhere...)

As always, thanks David!

from syndication-links.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.