The -ms-accelerator
property sets or retrieves a string that indicates whether the object represents a keyboard shortcut.
-ms-accelerator: false | true
{ | |
"results": [ | |
{ | |
"name": { | |
"title": "miss", | |
"first": "sara", | |
"last": "cavalcanti" | |
}, | |
"picture": { | |
"large": "https://randomuser.me/api/portraits/women/8.jpg", |
@supports (padding-top: constant(safe-area-inset-top)) { | |
body { | |
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); | |
} | |
} | |
@media (display-mode: fullscreen) { | |
body { | |
padding: 0; | |
} |
Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element
or the /deep/
path selector.
video::webkit-media-controls-timeline {
background-color: lime;
}
video /deep/ input[type=range] {
A few days ago Lea Verou shared a link to Jake Archibald's post Having fun with where he once again found out that image and img are nearly the same, all browsers replace image with img while parsing HTML.
A couple of months ago this property of image tag gave me the idea to use it for graceful degradation of SVG images in browsers which do not support SVG. The idea is extremely simple, we will have a SVG image for modern browsers and regular raster image for others. And write the following code:
<svg width="96" height="96">
<image xlink:href="svg.svg" src="svg.png" width="96" height="96"/>
</svg>
// `Default font for form elements. | |
//---------------------------------------------------------------------------------------------------- | |
$form-font-stack: Arial, "Liberation Sans", FreeSans, sans-serif !default; | |
$form-font-size: 13px !default; | |
// `Form Element Reset. | |
//---------------------------------------------------------------------------------------------------- | |
input::ms-clear, |
Check out this Super User explanation of environment variables
We sometimes need to add folders containing programs to the PATH-variable to make them executable from the command line.
// Fork of the original Gist: https://gist.github.com/fitzhaile/3830038 by Fitz Haile | |
// | |
// Add outward pointing arrows (triangles) to the sides of a box that has borders. (CSS triangles obviously | |
// based on Chris Coyier's CSS triangle. http://css-tricks.com/snippets/css/css-triangle.) | |
// | |
// Parameters: | |
// | |
// * `direction` -- What side of the box and direction of the arrow | |
// * `flatten` -- An *even numbered* factor of flattening the triangle (MUST be a even number) | |
// * `arrowBaseLength` -- Width or height of the arrow's base |