Skip to content

Instantly share code, notes, and snippets.

View smokills's full-sized avatar

Vito Famiglietti smokills

View GitHub Profile
@smokills
smokills / gist:b982e49e89647c7aaf93de42e31526be
Created May 29, 2017 08:21 — forked from ptz0n/gist:1646171
Recursive merge of arrays with integer keys
<?php
/**
* Merge two dimensional arrays my way
*
* Will merge keys even if they are of type int
*
* @param array $array1 Initial array to merge.
* @param array ... Variable list of arrays to recursively merge.
*

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] {