@media (max-width: 767px) {
}
@media (min-width: 768px)
and (max-width: 1299px) {
}
@media (min-width: 1300px) {
}
@media screen and (max-width: 1368px) {
// включает в себя (max-width: 768px)
}
@media screen and (max-width: 768px) {
}
.box {
width: 100px;
height: 100px;
background-color: red;
text-transform: lowercase;
font-size: 50px;
}
@media screen and (max-width: 1368px) {
.box {
height: 80px;
background-color: green;
text-transform: uppercase;
font-size: 24px;
}
}
@media screen and (max-width: 768px) {
.box {
height: 80px;
font-size: 20px;
}
}
.icon-block
width: 112px
height: 100px
display: flex
justify-content: flex-start
align-items: center
margin-bottom: 30px
+max-width($tablet)
margin-bottom: 20px
+max-width($mobail)
width: 90px
height: 77px
margin-bottom: 15px
+max-width($sm-mobail)
justify-content: center
.s-product-card {
$self: &;
$transition-time: .2s;
$gap: 10px;
$indicator-gutter: 10%;
$country-item-gap: .5em;
$sale-tag-height: 24px;
$sale-tag-angle-width: 10px;
height: 100%;
color: #000;
font-size: 14px;
position: relative;
display: flex;
flex-flow: column;
transition: transform $transition-time;
@include no-touch-glow-mobile();
// Зона наверху
@at-root #{$self}__quick-view {
padding: 10px 10px 5px 10px;
opacity: 0;
visibility: hidden;
overflow: hidden;
transition: opacity $transition-time;
@at-root #{$self}__quick-view-btn {
transform: translateY(-10px);
font-size: 15px;
height: 36px;
// Вот №1
@include media(">phone-all", "<=table-portrait") {
font-size: 11px;
padding-left: 0;
padding-right: 0;
}
// Вот №2
@include media(">table-portrait", "<=tablet-landscape") {
font-size: 12px;
}
// Вот №3
@include media(">tablet-landscape", "<desktop") {
font-size: 13px;
}
// Вот №4
@include media("print") {
display: none;
}
}
}
//
// Там ещё 1300 строк кода, поэтому их тут нет
//
}
/* на всех разрешениях больше 1368рх 28px; */
.title {
font-size: 28px;
}
/* на разрешении от 1368рх до 769px будет шрифт 24px; */
@media screen and (max-width: 1368px) {
.title {
font-size: 24px;
}
}
/* на разрешении от 768px и ниже будет шрифт 20px; */
@media screen and (max-width: 768px) {
.title {
font-size: 20px;
}
}
.title {
font-size: 20px;
}
@media screen and (min-width: 768px) {
.title {
font-size: 24px;
}
}
@media screen and (min-width: 1368px) {
.title {
font-size: 28px;
}
}