diff --git a/bower.json b/bower.json index fccf96b..a9dc975 100644 --- a/bower.json +++ b/bower.json @@ -1,8 +1,8 @@ { "name": "sass-bem", - "version": "2.5.1", + "version": "2.5.2", "main": "_bem.scss", - "description": "Collection of BEM Mixins & Helpers", + "description": "Amazing package for sass to write bem classes, with namespaces and more advanced features.", "authors": [ "zgabievi " ], diff --git a/helpers/_states-selector.scss b/helpers/_states-selector.scss index b9e0e66..1cf7b44 100644 --- a/helpers/_states-selector.scss +++ b/helpers/_states-selector.scss @@ -36,6 +36,30 @@ @return unquote("&:active"); } +/// Pseudo selector with end of link. +/// +/// @access private +/// +/// @returns {String} - &:link +/// +/// @see {mixin} link + +@function link-selector() { + @return unquote("&:link"); +} + +/// Pseudo selector with end of visited. +/// +/// @access private +/// +/// @returns {String} - &:visited +/// +/// @see {mixin} visited + +@function visited-selector() { + @return unquote("&:visited"); +} + /// Pseudo selector with end of checked. /// /// @access private @@ -89,4 +113,4 @@ @function editable-selector() { @return contenteditable-selector(); -} \ No newline at end of file +} diff --git a/mixins/_states.scss b/mixins/_states.scss index 15aae06..891a7fe 100644 --- a/mixins/_states.scss +++ b/mixins/_states.scss @@ -58,6 +58,46 @@ } } +/// Pseudo selector with end of link. +/// +/// @example scss - Usage +/// @include b('list') { +/// @include link { +/// color: black; +/// } +/// } +/// +/// @example css - Output +/// .list:link { +/// color: black; +/// } + +@mixin link { + &:link { + @content; + } +} + +/// Pseudo selector with end of visited. +/// +/// @example scss - Usage +/// @include b('list') { +/// @include visited { +/// color: black; +/// } +/// } +/// +/// @example css - Output +/// .list:visited { +/// color: black; +/// } + +@mixin visited { + &:visited { + @content; + } +} + /// Pseudo selector with end of checked. /// /// @example scss - Usage @@ -144,4 +184,4 @@ @include contenteditable { @content; } -} \ No newline at end of file +} diff --git a/package.json b/package.json index de445f4..ea82b83 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sass-bem", - "version": "2.5.1", - "description": "Collection of BEM Mixins & Helpers", + "version": "2.5.2", + "description": "Amazing package for sass to write bem classes, with namespaces and more advanced features.", "main": "_bem.scss", "repository": { "type": "git",