Skip to content

Commit

Permalink
link & visited
Browse files Browse the repository at this point in the history
  • Loading branch information
zgabievi committed Apr 8, 2016
1 parent f680dd6 commit 34bdb9c
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
],
Expand Down
26 changes: 25 additions & 1 deletion helpers/_states-selector.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -89,4 +113,4 @@

@function editable-selector() {
@return contenteditable-selector();
}
}
42 changes: 41 additions & 1 deletion mixins/_states.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -144,4 +184,4 @@
@include contenteditable {
@content;
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 34bdb9c

Please sign in to comment.