diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index 59fba3963..4be60321c 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -257,7 +257,7 @@ "explanation": "\n\n1. `::-webkit-scrollbar` targets the whole scrollbar element.\n2. `::-webkit-scrollbar-track` targets only the scrollbar track.\n3. `::-webkit-scrollbar-thumb` targets the scrollbar thumb.\n\nThere are many other pseudo-elements that you can use to style scrollbars. For more info, visit the [WebKit Blog](https://webkit.org/blog/363/styling-scrollbars/).\n\n", "browserSupport": { "text": "\n\n⚠️ Scrollbar styling doesn't appear to be on any standards track.\n\n- https://caniuse.com/#feat=css-scrollbar\n", - "supportPercentage": 98.63 + "supportPercentage": 98.91 }, "codeBlocks": { "html": "
", @@ -288,7 +288,7 @@ "explanation": "\n\n- `::selection` defines a pseudo selector on an element to style text within it when selected. Note that if you don't combine any other selector your style will be applied at document root level, to any selectable element.\n\n", "browserSupport": { "text": "\n\n⚠️ Requires prefixes for full support and is not actually in any specification.\n\n- https://caniuse.com/#feat=css-selection\n", - "supportPercentage": 90.77 + "supportPercentage": 89.11 }, "codeBlocks": { "html": "Select some of this text.
", @@ -319,7 +319,7 @@ "explanation": "\n\n- `user-select: none` specifies that the text cannot be selected.\n\n_Note: This is not a secure method to prevent users from copying content._\n\n", "browserSupport": { "text": "\n\n- https://caniuse.com/#feat=user-select-none\n", - "supportPercentage": 98.82 + "supportPercentage": 99.7 }, "codeBlocks": { "html": "You can select me.
\nYou can't select me!
", @@ -443,7 +443,7 @@ "explanation": "\n\n1. `position: relative` on the element establishes a Cartesian positioning context for psuedo-elements.\n2. `z-index: 1` establishes a new stacking context.\n3. `::after` defines a pseudo-element.\n4. `position: absolute` takes the pseudo element out of the flow of the document and positions it in relation to the parent.\n5. `width: 100%` and `height: 100%` sizes the pseudo-element to fill its parent's dimensions, making it equal in size.\n6. `background: inherit` causes the pseudo-element to inherit the linear gradient specified on the element.\n7. `top: 0.5rem` offsets the pseudo-element down slightly from its parent.\n8. `filter: blur(0.4rem)` will blur the pseudo-element to create the appearance of a shadow underneath.\n9. `opacity: 0.7` makes the pseudo-element partially transparent.\n10. `z-index: -1` positions the pseudo-element behind the parent but in front of the background.\n\n", "browserSupport": { "text": "\n\n- https://caniuse.com/#feat=css-filters\n", - "supportPercentage": 98.67999999999999 + "supportPercentage": 100 }, "codeBlocks": { "html": "", @@ -474,7 +474,7 @@ "explanation": "\n\n- The variables are defined globally within the `:root` CSS pseudo-class which matches the root element of a tree representing the document.\n- In HTML, `:root` represents the `` element and is identical to the selector `html`, except that its specificity is higher.\n\n", "browserSupport": { "text": "\n\n- https://caniuse.com/#feat=css-variables\n", - "supportPercentage": 97.16 + "supportPercentage": 98.68 }, "codeBlocks": { "html": "Gradient text
", @@ -754,7 +754,7 @@ "explanation": "\n\n1. `display: grid` creates a grid layout\n2. `justify-content: center` centers the child horizontally.\n3. `align-items: center` centers the child vertically.\n\n", "browserSupport": { "text": "\n\n- https://caniuse.com/#feat=css-grid\n", - "supportPercentage": 97.91 + "supportPercentage": 99.05 }, "codeBlocks": { "html": "\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui\n repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui\n iure, consequatur velit sit?\n
\n