Skip to content

Commit 3d77e04

Browse files
committed
docs(readme): slim down samples and add values
1 parent a37cee8 commit 3d77e04

File tree

1 file changed

+5
-29
lines changed

1 file changed

+5
-29
lines changed

README.md

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -100,46 +100,22 @@ theme_name.lg:
100100
@custom-media --Themename-small-mediaQuery (only screen and (max-width: 47.9375rem));
101101
@custom-media --Themename-small-resolution (resolution: 2x);
102102
@custom-media --Themename-small-maxWidth (max-width: 47.9375rem);
103-
@custom-media --Themename-medium-mediaQuery (only screen and (min-width: 48rem) and (max-width: 63.9375rem));
104-
@custom-media --Themename-medium-resolution (resolution: 2x);
105-
@custom-media --Themename-medium-minWidth (min-width: 48rem);
106-
@custom-media --Themename-medium-maxWidth (max-width: 63.9375rem);
107-
@custom-media --Themename-large-mediaQuery (only screen and (min-width: 64rem) and (max-width: 89.9375rem));
108-
@custom-media --Themename-large-resolution (resolution: 2x);
109-
@custom-media --Themename-large-minWidth (min-width: 64rem);
110-
@custom-media --Themename-large-maxWidth (max-width: 89.9375rem);
111103

112104
:root {
113105
--ThemeName-small-mediaQuery: "only screen and (max-width: 47.9375rem)";
114-
--ThemeName-small-resolution: "resolution: 2x";
115-
--ThemeName-small-maxWidth: "max-width: 47.9375rem";
116-
--ThemeName-medium-mediaQuery: "only screen and (min-width: 48rem) and (max-width: 63.9375rem)";
117-
--ThemeName-medium-resolution: "resolution: 2x";
118-
--ThemeName-medium-minWidth: "min-width: 48rem";
119-
--ThemeName-medium-maxWidth: "max-width: 63.9375rem";
120-
--ThemeName-Group-large-mediaQuery: "only screen and (min-width: 64rem) and (max-width: 89.9375rem)";
121-
--ThemeName-Group-large-resolution: "resolution: 2x";
122-
--ThemeName-Group-large-minWidth: "min-width: 64rem";
123-
--ThemeName-Group-large-maxWidth: "max-width: 89.9375rem";
106+
--ThemeName-small-resolution: "2x";
107+
--ThemeName-small-maxWidth: "47.9375rem";
124108
}
125109
```
126110

127111
```js
128112
// Generated JS file
129113
const BREAKPOINTS = {
130-
"ThemeName-small-mediaQuery": "only screen and (max-width: 47.9375rem)",
114+
"ThemeName-small-mediaQuery--raw": "only screen and (max-width: 47.9375rem)",
115+
"ThemeName-small-resolution--raw": "2x",
131116
"ThemeName-small-resolution": "resolution: 2x",
117+
"ThemeName-small-maxWidth--raw": "47.9375rem",
132118
"ThemeName-small-maxWidth": "max-width: 47.9375rem",
133-
"ThemeName-medium-mediaQuery":
134-
"only screen and (min-width: 48rem) and (max-width: 63.9375rem)",
135-
"ThemeName-medium-resolution": "resolution: 2x",
136-
"ThemeName-medium-minWidth": "min-width: 48rem",
137-
"ThemeName-medium-maxWidth": "max-width: 63.9375rem",
138-
"ThemeName-Group-large-mediaQuery":
139-
"only screen and (min-width: 64rem) and (max-width: 89.9375rem)",
140-
"ThemeName-Group-large-resolution": "resolution: 2x",
141-
"ThemeName-Group-large-minWidth": "min-width: 64rem",
142-
"ThemeName-Group-large-maxWidth": "max-width: 89.9375rem",
143119
};
144120
export default BREAKPOINTS;
145121
```

0 commit comments

Comments
 (0)