Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_transforms.scss « mixins « scss « bootstrap « vendor « sass - github.com/mikeblum/hugo-now.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4005c9d028d3d8f3fcc94d5fa3d1cc6192bb2829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Applies the given styles only when the browser support CSS3 3D transforms.
@mixin if-supports-3d-transforms() {
  @media (-webkit-transform-3d) {
    // Old Safari, Old Android
    // http://caniuse.com/#feat=css-featurequeries
    // https://developer.mozilla.org/en-US/docs/Web/CSS/@media/-webkit-transform-3d
    @content;
  }

  @supports (transform: translate3d(0,0,0)) {
    // The Proper Way: Using a CSS feature query
    @content;
  }
}