Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
refactor(macTagAutocomplete): Namespacing tag autocomplete css classes
Browse files Browse the repository at this point in the history
BREAKING CHANGE: For people using custom css for MacGyver, class names for mac-tag-autocomplete are now namespaced with `mac-`
  • Loading branch information
adrianlee44 committed May 22, 2014
1 parent 8494dd9 commit 035084a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/css/tag_autocomplete.styl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
margin 0
padding 0

.tag-list
.mac-tag-list
margin 0px
padding-left 0px

.tag
.mac-tag
padding 3px 20px 3px 5px
margin 3px
position relative
Expand All @@ -20,21 +20,21 @@
line-height 13px
border-radius 3px

&.label
&.mac-label
background linear-gradient(top,#eaf0ff,#dee8ff)
border 1px solid #bfc9e1
text-shadow none
color #000
font-weight normal
box-shadow 0px 0px 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05)

.tag-close
.mac-tag-close
position absolute
right 6px
color #9da6b7
cursor pointer

&.input-tag
&.mac-input-tag
white-space nowrap
padding 0

Expand Down
8 changes: 4 additions & 4 deletions src/template/tag_autocomplete.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.mac-tag-autocomplete(ng-click="focusTextInput()")
ul.tag-list
li.tag.label(ng-repeat="tag in selected")
.tag-close(ng-click="selected.splice($index, 1)") ×
ul.mac-tag-list
li.mac-tag.mac-label(ng-repeat="tag in selected")
.mac-tag-close(ng-click="selected.splice($index, 1)") ×
span.tag-label {{getTagLabel(tag)}}
li.tag.input-tag(ng-class="{'fullwidth': !selected.length}")
li.mac-tag.mac-input-tag(ng-class="{'fullwidth': !selected.length}")
mac-autocomplete.text-input.mac-autocomplete(
ng-model = "textInput"
mac-autocomplete-disabled = "disabled"
Expand Down

0 comments on commit 035084a

Please sign in to comment.