6
6
[ Releases history ] : https://github.com/yunusga/postcss-sort-media-queries/blob/master/CHANGELOG.md
7
7
8
8
[ ![ npm] ( https://img.shields.io/npm/v/postcss-sort-media-queries.svg )] ( https://www.npmjs.com/package/postcss-sort-media-queries ) [ ![ Node.js CI] ( https://github.com/yunusga/postcss-sort-media-queries/actions/workflows/test.yml/badge.svg?branch=main&event=status )] ( https://github.com/yunusga/postcss-sort-media-queries/actions/workflows/test.yml )
9
+ ![ license] ( https://img.shields.io/badge/License-MIT-orange.svg )
9
10
[ ![ npm] ( https://img.shields.io/npm/dt/postcss-sort-media-queries.svg )] ( https://www.npmjs.com/package/postcss-sort-media-queries )
10
11
11
12
<img src =" logo.svg?sanitize=true " align =" right " title =" PostCSS sort media queries logotype " width =" 100 " height =" 100 " >
@@ -61,7 +62,7 @@ Bu yerda: [onlayn demo](https://postcss-sort-media-queries.github.io)
61
62
@media screen and (min-width : 1280px ) {
62
63
.mobile-first { color : #cfcfcf }
63
64
}
64
- @media screen and (min- width: 640px ) {
65
+ @media screen and (width > 640px ) {
65
66
.mobile-first { color : #cfcfcf }
66
67
}
67
68
@media screen and (max-width : 640px ) {
@@ -72,7 +73,7 @@ Bu yerda: [onlayn demo](https://postcss-sort-media-queries.github.io)
72
73
** keyin**
73
74
74
75
``` css
75
- @media screen and (min- width: 640px ) {
76
+ @media screen and (width > 640px ) {
76
77
.mobile-first { color : #cfcfcf }
77
78
}
78
79
@media screen and (min-width : 1280px ) {
@@ -82,7 +83,7 @@ Bu yerda: [onlayn demo](https://postcss-sort-media-queries.github.io)
82
83
.footer { color : #cfcfcf }
83
84
}
84
85
@media screen and (max-width : 640px ) {
85
- /* birlashtirilgan */
86
+ /* combined */
86
87
.head { color : #cfcfcf }
87
88
.main { color : #cfcfcf }
88
89
.footer { color : #cfcfcf }
@@ -93,13 +94,13 @@ Bu yerda: [onlayn demo](https://postcss-sort-media-queries.github.io)
93
94
94
95
** oldin**
95
96
``` css
96
- @media screen and (max- width: 640px ) {
97
+ @media screen and (width < 640px ) {
97
98
.header { color : #cdcdcd }
98
99
}
99
100
@media screen and (min-width : 760px ) {
100
101
.desktop-first { color : #cdcdcd }
101
102
}
102
- @media screen and (max- width: 640px ) {
103
+ @media screen and (width < 640px ) {
103
104
.main { color : #cdcdcd }
104
105
}
105
106
@media screen and (min-width : 1280px ) {
@@ -119,7 +120,7 @@ Bu yerda: [onlayn demo](https://postcss-sort-media-queries.github.io)
119
120
@media screen and (max-width : 760px ) {
120
121
.footer { color : #cdcdcd }
121
122
}
122
- @media screen and (max- width: 640px ) {
123
+ @media screen and (width < 640px ) {
123
124
/* combined */
124
125
.header { color : #cdcdcd }
125
126
.main { color : #cdcdcd }
0 commit comments