Giter VIP home page Giter VIP logo

tiny-framework's Introduction

tiny framework

tiny-framework's People

Contributors

mclaurent avatar mtomas7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mclaurent

tiny-framework's Issues

Cannot overwrite background on sections via child-theme (!important used in parent)

Hi

Any chance we could remove the !important use on .content-area section. The reason appears to be a line removing the background-image using !important, so I cannot overwrite it in my child-theme (without using !important). Since we never set a background on .content-area section in the child theme, could we just change the definition so that we only reset the background on the .content-area article (as that is the only one actually having a background set (see public_html/wp-content/themes/tiny-framework/style.css:2361).
VisualComposer is using the <section element, but I cannot set a background on them because the parent theme overwrites them.

Could we change the styling so that we do not unset the background on sections but only do it on articles?

So in style.css:2348, change

/* Remove content bottom border for a single page, attachement page and for the last post in archive view listing */
.attachment .content-area article,
.content-area article:last-child,
.content-area section, /* section is for 404.php and content-none.php */
.page .content-area article {
	background-image: none!important;
	border-bottom: 0;
	margin-bottom: 24px;
	margin-bottom: 1.5rem;
}

to

/* Remove content bottom border for a single page, attachement page and for the last post in archive view listing */
.attachment .content-area article,
.content-area article:last-child,
.content-area section, /* section is for 404.php and content-none.php */
.page .content-area article {
	border-bottom: 0;
	margin-bottom: 24px;
	margin-bottom: 1.5rem;
}
/* Remove the background on articles in the main content area. */
.attachment .content-area article,
.content-area article:last-child,
.page .content-area article {
	background-image: none!important;
}

Cheers

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.