随笔分类 -  CSS3

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要:Manage the color palette used in your stylesheets by creating a map of variables and a function to access the values by key. This allows you to update 阅读全文
posted @ 2020-05-19 03:05 Zhentiw 阅读(132) 评论(0) 推荐(0)
摘要:object-position controls the placement of img and video media inside containing boxes. It's a partner property to object-fit. Using the two properties 阅读全文
posted @ 2020-05-12 14:32 Zhentiw 阅读(131) 评论(0) 推荐(0)
摘要:In this lesson, we'll take simple HTML and create a stripe with a full-width background color and centered content. We'll do all of this without addin 阅读全文
posted @ 2020-04-21 02:44 Zhentiw 阅读(137) 评论(0) 推荐(0)
摘要:We will create animated Content Placeholder as React component just like Facebook has when you load the page. Key points: 1. For each elements on the 阅读全文
posted @ 2020-03-17 19:03 Zhentiw 阅读(155) 评论(0) 推荐(0)
摘要:Dark Mode: If our application has multi themes, we don't need to iclude all the code in the init downlading. If there is no dark mode enabled for the 阅读全文
posted @ 2019-12-02 19:21 Zhentiw 阅读(398) 评论(0) 推荐(0)
摘要:In this lesson, we will be going over the attribute aria-expanded. Instead of using a class like .open we are going to use the aria-expanded attribute 阅读全文
posted @ 2019-11-22 17:05 Zhentiw 阅读(182) 评论(0) 推荐(0)
摘要:The prefers-reduced-motion CSS media feature is used to detect if the user has requested that the system minimize the amount of animation or motion it 阅读全文
posted @ 2019-11-21 18:47 Zhentiw 阅读(432) 评论(0) 推荐(0)
摘要:Animation can be a powerful way to enhance a user experience. In this lesson, we'll walk through the creation of a card-flip animation, creating a nic 阅读全文
posted @ 2019-11-01 20:31 Zhentiw 阅读(239) 评论(0) 推荐(0)
摘要:Inside of a flexed container, a single item can control its own flex with align-self. The possible values are flex-start, flex-end, center, or stretch 阅读全文
posted @ 2019-09-16 15:08 Zhentiw 阅读(198) 评论(0) 推荐(0)
摘要:We changed the axis layout with 'justify-content', and the "off axis" layout is controlled by 'align-items'. The most common values are flex-start, fl 阅读全文
posted @ 2019-09-16 14:59 Zhentiw 阅读(146) 评论(0) 推荐(0)
摘要:The :empty pseudo selector selects empty elements. We can use this to display useful messages instead of the empty content or hide the content complet 阅读全文
posted @ 2019-09-16 14:52 Zhentiw 阅读(159) 评论(0) 推荐(0)
摘要:Use the focus-within pseudo-class to conditionally assign styling to a parent element when its child receives focus. HTML: CSS: 阅读全文
posted @ 2019-08-29 17:15 Zhentiw 阅读(132) 评论(0) 推荐(0)
摘要:For a menu item, when we tab onto it, we want this element get 'focus' event, so that the submenu will show up. In the post, we will see how to achiev 阅读全文
posted @ 2019-03-13 16:29 Zhentiw 阅读(211) 评论(0) 推荐(0)
摘要:We'll add animation to patio11bot using CSS keyframes. When defining a CSS animation, you can add it to a class with animation-name, set the duration 阅读全文
posted @ 2019-02-11 18:50 Zhentiw 阅读(143) 评论(0) 推荐(0)
摘要:Because an installed PWA is really just a web app running in a browser, there are some browser behaviors that we may not want in our app, if we're goi 阅读全文
posted @ 2018-12-30 15:32 Zhentiw 阅读(557) 评论(0) 推荐(0)
摘要:It is hard to explain css selector specificty, to easy way to understand it is by playing around with it. To remember some rules can be helpful: inlin 阅读全文
posted @ 2018-12-11 01:54 Zhentiw 阅读(338) 评论(0) 推荐(0)
摘要:Pseudo elements allow us to target elements that are not explicitly set in the DOM. Using ::before ::after we can actually create and manipulate eleme 阅读全文
posted @ 2018-12-04 23:10 Zhentiw 阅读(178) 评论(0) 推荐(0)
摘要:Using just semantic CSS Pseudo-Classes you can help define important states for form elements that ensure the user provides the correct data without f 阅读全文
posted @ 2018-12-04 22:59 Zhentiw 阅读(132) 评论(0) 推荐(0)
摘要:The interactive pseudo-classes for links (and buttons) allow us to make sure the user knows what elements on the page are interactive and that they ca 阅读全文
posted @ 2018-12-04 22:53 Zhentiw 阅读(142) 评论(0) 推荐(0)
摘要:1. Color Picker (Chrome) You might know how to use color picker in Chrome, recently there is a feature inside color picker which is "Contrast Ratio", 阅读全文
posted @ 2018-07-15 18:41 Zhentiw 阅读(249) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页