salix/front/core/styles/responsive.scss

58 lines
1.2 KiB
SCSS
Raw Normal View History

2019-10-01 14:17:57 +00:00
@import "variables";
2019-01-25 22:02:29 +00:00
// Desktop - Laptop 1360x768
2019-01-25 22:02:29 +00:00
@media (max-resolution: 119dpi) and (min-device-width: 1340px) and (max-device-width: 1899px)
{
2020-04-02 12:08:38 +00:00
html { font-size: 10pt; }
2019-01-25 22:02:29 +00:00
}
// Mobile - Low DPI
2019-01-25 22:02:29 +00:00
@media
(min-resolution: 120dpi),
(-webkit-min-device-pixel-ratio: 1.5)
{
2020-04-02 12:08:38 +00:00
html { font-size: 9pt; }
2019-01-25 22:02:29 +00:00
}
@media
(min-resolution: 144dpi),
(-webkit-min-device-pixel-ratio: 1.5)
{
2020-04-02 12:08:38 +00:00
html { font-size: 11pt; }
2019-01-25 22:02:29 +00:00
}
// Mobile - Normal DPI
2019-01-25 22:02:29 +00:00
@media
(max-device-width: 383px) and (min-resolution: 192dpi),
(max-device-width: 383px) and (-webkit-min-device-pixel-ratio: 2)
{
2020-04-02 12:08:38 +00:00
html { font-size: 10pt; }
2019-01-25 22:02:29 +00:00
}
@media
(min-device-width: 384px) and (min-resolution: 192dpi),
(min-device-width: 384px) and (-webkit-min-device-pixel-ratio: 2)
{
2020-04-02 12:08:38 +00:00
html { font-size: 11pt; }
2019-01-25 22:02:29 +00:00
}
// Mobile - High DPI
2019-01-25 22:02:29 +00:00
@media
(max-device-width: 411px) and (min-resolution: 249dpi),
(max-device-width: 411px) and (-webkit-min-device-pixel-ratio: 3)
{
2020-04-02 12:08:38 +00:00
html { font-size: 10pt; }
2019-01-25 22:02:29 +00:00
}
@media
(min-device-width: 412px) and (min-resolution: 249dpi),
(min-device-width: 412px) and (-webkit-min-device-pixel-ratio: 3)
{
2020-04-02 12:08:38 +00:00
html { font-size: 11pt; }
2019-01-25 22:02:29 +00:00
}
2020-04-02 12:08:38 +00:00
2020-04-02 12:52:02 +00:00
html { font-size: 9pt; }
2019-10-01 14:17:57 +00:00
.vn-hide-narrow {
@media (max-width: $mobile-width) {
display: none;
}
}