Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
feat(icons): allow icons to have modifiers
Browse files Browse the repository at this point in the history
used to display additional icons that augment the meaning, e.g. 'add' a filter or 'remove' a filter

closes #806
  • Loading branch information
gyoshev authored and joneff committed Dec 26, 2017
1 parent 1d56f99 commit 91f8204
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scss/common/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
}
}

.k-icon-with-modifier {
position: relative;
margin: .25em;
}

.k-icon-modifier {
position: absolute;
font-size: .5em;
bottom: 0;
right: 0;
margin: 0 -.5em -.5em 0;
}

.k-i-none::before {
content: "";
display: none;
Expand Down
17 changes: 17 additions & 0 deletions tests/fixtures/icons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<title>Document</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../../dist/all.css" />
</head>
<body>

<div class="test-area">
<span id="icon" class="k-icon k-i-custom"></span>
<span id="modified-icon" class="k-icon k-i-filter"><span class="k-icon-modifier k-i-add"></span></span>
</div>

</body>
</html>

0 comments on commit 91f8204

Please sign in to comment.