wplemon / gridd

Flexible grid-based WordPress theme
Other
39 stars 7 forks source link

Social media block - adding a frontend CSS #161

Closed paaljoachim closed 4 years ago

paaljoachim commented 4 years ago

Hey Ari

As I used the Social Media Block. The frontend looked like this:

Screen Shot 2020-01-16 at 12 53 18

The backend one could choose from multiple styles. I selected this: Screen Shot 2020-01-16 at 12 53 31

It would be great to have the frontend reflect the backend. https://github.com/WordPress/gutenberg/issues/19020


I added the following CSS into the style.css.

.wp-social-link svg {  
    width: 50px;
    height: 50px;
    border-radius: 25px;
    padding: 8px;
    margin-right: 10px;
    background: #167ac6;
    float: left;
}

.wp-social-link a {
    fill: #fff;
}

.wp-social-link a:active, 
.wp-social-link a:hover {
    fill: #c65c00;
}

It now looks like this on the frontend:

Screen Shot 2020-01-17 at 01 26 59
aristath commented 4 years ago

Styles for that will be added once the block lands in wp-core ;)

paaljoachim commented 4 years ago

This has been fixed.