Skip to content

Instantly share code, notes, and snippets.

View ThekhoN's full-sized avatar
💭
(メ`ロ´)/

Ngaosathe ThekhoN

💭
(メ`ロ´)/
View GitHub Profile

Styling native elements

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] {
@ThekhoN
ThekhoN / 0_reuse_code.js
Last active August 29, 2015 14:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console