Skip to content

Instantly share code, notes, and snippets.

View airen's full-sized avatar
💭
I may be slow to respond.

Airen airen

💭
I may be slow to respond.
View GitHub Profile
@airen
airen / pseudo-elements.md
Created April 19, 2020 14:15 — forked from alwayrun/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] {
@airen
airen / SassMeister-input-HTML.html
Created August 3, 2015 02:19
Generated by SassMeister.com.
<ul>
<li><div>1</div></li>
<li><div>2</div></li>
<li><div>3</div></li>
<li><div>4</div></li>
<li><div>5</div></li>
<li><div>6</div></li>
<li><div>7</div></li>
<li><div>8</div></li>
<li><div>9</div></li>
@airen
airen / SassMeister-input.scss
Created July 24, 2015 07:55
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
.a {
color: red;
.b {
color: green;
@airen
airen / SassMeister-input.scss
Created July 7, 2015 06:01
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@mixin keyframes($name:test){
@-webkit-key-frames($name){
@content;
}
}
@airen
airen / SassMeister-input.scss
Created July 2, 2015 08:04
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
.box {
color: red;
&:before{
color:green;
}
}
@airen
airen / SassMeister-input.scss
Created June 27, 2015 10:12
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$breakpoints: (
small : 480px,
medium: 700px, // Previously 640px
large : 1024px
);
@airen
airen / SassMeister-input.scss
Created June 27, 2015 10:10
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$breakpoints: (
small : 480px,
medium: 700px,
large : 1024px
);
@airen
airen / SassMeister-input.scss
Created June 27, 2015 08:44
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$p-font-sizes: (
null : 15px,
480px : 16px,
640px : 17px,
1024px: 19px
);
@airen
airen / SassMeister-input.scss
Created June 26, 2015 03:01
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
.a{
color: red;
}
.b {
color: green;
}