[update] Init front tasks

This commit is contained in:
Bruno SIMON
2016-08-26 15:30:26 +02:00
parent 861c9d4ee1
commit d4d852f356
16 changed files with 401 additions and 106 deletions
@@ -0,0 +1,20 @@
$breakpoint-xxsmall: 480px;
$breakpoint-xsmall: 600px;
$breakpoint-small: 840px;
$breakpoint-medium: 960px;
$breakpoint-large: 1280px;
$breakpoint-xlarge: 1440px;
$breakpoint-xxlarge: 1600px;
@define-mixin max-width $value
{
@media only screen and (max-width:$value){
@mixin-content;
}
}
@define-mixin max-height $value
{
@media only screen and (max-height:$value){
@mixin-content;
}
}
@@ -0,0 +1,13 @@
@define-mixin font-smoothing $value: antialiased
{
@if $value == antialiased
{
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@else
{
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: auto;
}
}
@@ -0,0 +1,12 @@
@define-mixin image-2x $image, $width, $height
{
@media (min--moz-device-pixel-ratio: 1.3),
(-o-min-device-pixel-ratio: 2.6/2),
(-webkit-min-device-pixel-ratio: 1.3),
(min-device-pixel-ratio: 1.3),
(min-resolution: 1.3dppx)
{
background-image: url($image);
background-size: $width $height;
}
}
+13
View File
@@ -0,0 +1,13 @@
@define-mixin no-touch
{
html.features-no-touch & {
@mixin-content;
}
}
@define-mixin touch
{
html.features-touch & {
@mixin-content;
}
}