100+ Christmas Mockups, Icons, Graphics & Resources

Christmas is on the way! Whether you’re designing festive party flyers, looking for Christmas mockups, or a holiday icon set, we have a great collection for you today! We’ve pulled together a fantastic collection of Christmas flyers and templates, mock-ups, icons, vectors, and much more. Some of them are completely free, some cost a few […]
Read more

Compound Components in React Using the Context API

Compound components in React allow you to create components with some form of connected state that’s managed amongst themselves. A good example is the Form component in Semantic UI React.

To see how we can implement compound components in a real-life React application, we’ll build a compound (multi-part) form for login and sign up. The state will be saved in the form component and we’ll put React’s Context AP to use to pass that state and the method from …

The post Compound Components in React Using the Context API appeared first on CSS-Tricks.

Read more

Edge’s Announcements

The public-consumption blog post:

Ultimately, we want to make the web experience better for many different audiences. People using Microsoft Edge (and potentially other browsers) will experience improved compatibility with all web sites, while getting the best-possible battery life and hardware integration on all kinds of Windows devices. Web developers will have a less-fragmented web platform to test their sites against, ensuring that there are fewer problems and increased satisfaction for users of their sites; and because we’ll continue …

The post Edge’s Announcements appeared first on CSS-Tricks.

Read more

Gutenberg is Here!

In January 2017, Matt Mullenweg announced the Gutenberg project. A project that would change the way people created websites and content in WordPress. After nearly two years, Gutenberg has been merged with core in WordPress 5.0. A long time coming The WISIWYG editor hasn’t had a massive update in over 15 years. Gutenberg introduces a …
The post Gutenberg is Here! appeared first on Torque.
Read more

Browser Diversity Commentary, Regarding the Edge News

Still no word from the horse’s mouth about the reported EdgeHTML demise, but I hear that’s coming later today. The blog posts are starting to roll in about the possible impact of this though.

Andre Garzia: While we Blink, we loose the Web:

Even though Opera, Beaker and Brave are all doing very good work, it is still Chrome engine behind them and that limits the amount of stuff they can build and innovate. It is like as …

The post Browser Diversity Commentary, Regarding the Edge News appeared first on CSS-Tricks.

Read more

5 Ways to Give Your Blog a Temporary Holiday Theme

It’s the most wonderful time of the year — for blogging. Give your blog a temporary holiday theme and meet your readers’ expectations for a bright and joyful time of year. Small changes make a significant impact on your site visitors, and WordPress makes it easy to add some seasonal cheer. Experts predict holiday eCommerce …
The post 5 Ways to Give Your Blog a Temporary Holiday Theme appeared first on Torque.
Read more

DRY State Switching With CSS Variables: Fallbacks and Invalid Values

This is the second post in a two-part series that looks into the way CSS variables can be used to make the code for complex layouts and interactions less difficult to write and a lot easier to maintain. The first installment walks through various use cases where this technique applies. This post covers the use of fallbacks and invalid values to extend the technique to non-numeric values.

The strategy of using CSS Variables to drive the switching of layouts and …

The post DRY State Switching With CSS Variables: Fallbacks and Invalid Values appeared first on CSS-Tricks.

Read more

CSS Selectors are Conditional Statements

.foo {

}

Programmatically, is:

if (element has a class name of "foo") {

}

Descendent selectors are && logic and commas are ||. It just gets more complicated from there, with things like combinators and pseudo selectors. Just look at all the ways styles can cascade.

Jeremy Keith:

If you find you can’t select something in the CSS, that’s a sign that you probably need to add another class name to the HTML. The complexity is confined to …

The post CSS Selectors are Conditional Statements appeared first on CSS-Tricks.

Read more