@unsass/selector 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4
4
 
5
+ ## [1.0.0-beta.2](https://github.com/unsass/selector/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2022-08-27)
6
+
7
+
8
+ ### Features
9
+
10
+ * add `media` mixin ([2ce8316](https://github.com/unsass/selector/commit/2ce8316b44004a38f3c77c663b536510bf435983))
11
+
5
12
  ## 1.0.0-beta.1 (2022-08-26)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsass/selector",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "description": "Sass functions and mixins to manage CSS selectors.",
5
5
  "scripts": {
6
6
  "lint:css": "stylelint --fix \"**/*.scss\"",
package/src/_mixins.scss CHANGED
@@ -111,3 +111,26 @@
111
111
  }
112
112
  }
113
113
 
114
+ ///
115
+ /// @example - scss
116
+ /// .foo {
117
+ /// @include selector.media("screen") {
118
+ /// color: darkcyan;
119
+ /// }
120
+ /// }
121
+ ///
122
+ /// @example - css
123
+ /// @media screen {
124
+ /// .foo {
125
+ /// color: darkcyan;
126
+ /// }
127
+ /// }
128
+ ///
129
+ /// @access public
130
+ ///
131
+ @mixin media($args) {
132
+ @media #{$args} {
133
+ @content;
134
+ }
135
+ }
136
+