Skip to content

Instantly share code, notes, and snippets.

View neversun's full-sized avatar

Robert Scheinpflug neversun

View GitHub Profile
@neversun
neversun / pseudo_elements.md
Created April 30, 2018 09:33 — forked from p3t3r67x0/pseudo_elements.md
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

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] {
@neversun
neversun / gist:bb7936aecddaf5fe4519dcc9cb95dd13
Created April 26, 2018 08:48 — forked from kylefox/gist:4512777
If you want to use Xcode's FileMerge as your git mergetool, this is how you set it up.
# Tell system when Xcode utilities live:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
# Set "opendiff" as the default mergetool globally:
git config --global merge.tool opendiff
@neversun
neversun / moment.js
Created November 20, 2015 00:52 — forked from Nicd/moment.js
New, smaller patch to use moment.js in Qt 5.2
.pragma library
//! moment.js
//! version : 2.8.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var moment = (function (undefined) {
/************************************