mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 18:25:41 +03:00
44 lines
813 B
SCSS
44 lines
813 B
SCSS
/*============================================================================
|
|
Media queries
|
|
==============================================================================*/
|
|
|
|
$phone-width: 375px;
|
|
$tablet-width: 768px;
|
|
$desktop-width: 1024px;
|
|
|
|
@mixin phone {
|
|
@media (max-width: #{$phone-width}) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin phone-and-up {
|
|
@media (min-width: #{$phone-width}) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin phone-to-tablet {
|
|
@media (min-width: #{$phone-width}) and (max-width: #{$tablet-width - 1px}) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin tablet {
|
|
@media (min-width: #{$tablet-width}) and (max-width: #{$desktop-width - 1px}) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin tablet-and-up {
|
|
@media (min-width: #{$tablet-width}) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin desktop {
|
|
@media (min-width: #{$desktop-width}) {
|
|
@content;
|
|
}
|
|
}
|