Skip to content

Commit

Permalink
Added icon.
Browse files Browse the repository at this point in the history
Added nowrap.
Added user-select none to disabled.
  • Loading branch information
sjohnsonaz committed Feb 16, 2019
1 parent 71b8652 commit 252d904
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/styl/core/mixins.styl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ relative() {
border-style: solid;
}

&.disabled {
.disabled {
filter: contrast(40%) brightness(110%);
cursor: default;
user-select: none;
}

.nowrap {
white-space: nowrap;
}
1 change: 1 addition & 0 deletions src/styl/icon/icon-settings.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@require "../settings.styl";
8 changes: 8 additions & 0 deletions src/styl/icon/icon.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@require 'icon-settings.styl';

.icon
& > svg
display: inline-block;
width: 1em;
height: 1em;
vertical-align: -0.125em;
1 change: 1 addition & 0 deletions src/styl/main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
@require "form/form.styl";
@require "grid/container.styl";
@require "grid/grid.styl";
@require "icon/icon.styl";
@require "input/input.styl";
@require "input/button.styl";
@require "input/button-group.styl";
Expand Down

0 comments on commit 252d904

Please sign in to comment.