\n28+<\/td>\n | No<\/td>\n | 31+<\/td>\n | 12.1+<\/td>\n | Edge<\/td>\n | 4.4+<\/td>\n | No<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \nWrapping Up<\/h3>\nThe at-rule<\/code> is where it’s at for making CSS do some crazy and interesting things. While the examples here are basic, we can see how they might be used to handcraft styles to very specific conditions, thereby creating user experiences and interactions that match a scenario.<\/p>\n","protected":false},"excerpt":{"rendered":"The at-rule is a statement that provides CSS with instructions to perform or how to behave. Each statement begins with an @ followed directly by one of several available keywords that acts as the identifier for what CSS should do. This is the common syntax, though each at-rule is a variation of it.<\/p>\n","protected":false},"author":2508,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[4],"tags":[],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":307873,"url":"https:\/\/css-tricks.com\/david-barons-thoughts-on-an-implementable-path-forward-for-container-queries\/","url_meta":{"origin":201268,"position":0},"title":"[David Baron’s] Thoughts on an implementable path forward for Container Queries","date":"April 29, 2020","format":false,"excerpt":"That's the title of a public post from David Baron, a Principal Engineer at Firefox, with thoughts toward container queries. I know a lot of people have been holding their breath waiting for David's ideas, as he's one of few uniquely qualified to understand the ins and outs of this\u2026","rel":"","context":"In "Link"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":373639,"url":"https:\/\/css-tricks.com\/css-rules-vs-css-rulesets\/","url_meta":{"origin":201268,"position":1},"title":"CSS Rules vs. CSS Rulesets","date":"September 21, 2022","format":false,"excerpt":"The latest spec: A\u00a0style rule\u00a0is a\u00a0qualified rule\u00a0that associates a\u00a0selector list\u00a0with a list of property declarations and possibly a list of nested rules. They are also called\u00a0rule sets\u00a0in\u00a0CSS2. Louis Lazaris: As the above quote from W3C indicates, it seems like the W3C considers \u201crule set\u201d to be a bit of an\u2026","rel":"","context":"In "Link"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2017\/05\/css-ruleset-terminology.png?fit=1200%2C547&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":240767,"url":"https:\/\/css-tricks.com\/stylelint\/","url_meta":{"origin":201268,"position":2},"title":"Lint your CSS with stylelint","date":"April 20, 2016","format":false,"excerpt":"You write CSS. Probably a lot of CSS. And you make mistakes. Probably a lot of mistakes. Somebody needs to stop you from making mistakes in your CSS. Sometimes your mistake is a real bug. Sometimes it's just sloppy, inconsistent, or unclear coding style. Some of them may seem trivial\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":372839,"url":"https:\/\/css-tricks.com\/interpolating-numeric-css-variables\/","url_meta":{"origin":201268,"position":3},"title":"Interpolating Numeric CSS Variables","date":"August 30, 2022","format":false,"excerpt":"We can make variables in CSS pretty easily: :root { --scale: 1; } And we can declare them on any element: .thing { transform: scale(var(--scale)); } Even better for an example like this is applying the variable on a user interaction, say :hover: :root { --scale: 1; } .thing {\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/08\/scale-layers-scaled-1.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":317807,"url":"https:\/\/css-tricks.com\/css-vocabulary\/","url_meta":{"origin":201268,"position":4},"title":"CSS Vocabulary","date":"July 27, 2020","format":false,"excerpt":"This is a neat interactive page by Ville V. Vanninen to reference the names of things in the CSS syntax. I feel like the easy ones to remember are \"selector,\" \"property,\" and \"value,\" but even as a person who writes about CSS a lot, I forget some of the others.\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/07\/Screen-Shot-2020-07-23-at-10.44.16-AM.png?fit=1200%2C787&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":353112,"url":"https:\/\/css-tricks.com\/writing-your-own-code-rules\/","url_meta":{"origin":201268,"position":5},"title":"Writing Your Own Code Rules","date":"October 7, 2021","format":false,"excerpt":"There comes a time on a project when it's worth investing in tooling to protect the codebase. I'm not sure how to articulate when, but it's somewhere after the project has proven to be something long-term and rough edges are starting to show, and before things feel like a complete\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/05\/nodes-pattern.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"featured_media_src_url":null,"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/201268"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/2508"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=201268"}],"version-history":[{"count":25,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/201268\/revisions"}],"predecessor-version":[{"id":202147,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/201268\/revisions\/202147"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=201268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/categories?post=201268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=201268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |