tag-it.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. ul.tagit {
  2. padding: 1px 5px;
  3. overflow: auto;
  4. margin-left: inherit; /* usually we don't want the regular ul margins. */
  5. margin-right: inherit;
  6. }
  7. ul.tagit li {
  8. display: block;
  9. float: left;
  10. margin: 2px 5px 2px 0;
  11. }
  12. ul.tagit li.tagit-choice {
  13. position: relative;
  14. line-height: inherit;
  15. }
  16. ul.tagit li.tagit-choice-read-only {
  17. padding: .2em .5em .2em .5em;
  18. }
  19. ul.tagit li.tagit-choice-editable {
  20. padding: .2em 18px .2em .5em;
  21. }
  22. ul.tagit li.tagit-new {
  23. padding: .25em 4px .25em 0;
  24. }
  25. ul.tagit li.tagit-choice a.tagit-label {
  26. cursor: pointer;
  27. text-decoration: none;
  28. }
  29. ul.tagit li.tagit-choice .tagit-close {
  30. cursor: pointer;
  31. position: absolute;
  32. right: .1em;
  33. top: 50%;
  34. margin-top: -8px;
  35. line-height: 17px;
  36. }
  37. /* used for some custom themes that don't need image icons */
  38. ul.tagit li.tagit-choice .tagit-close .text-icon {
  39. display: none;
  40. }
  41. ul.tagit li.tagit-choice input {
  42. display: block;
  43. float: left;
  44. margin: 2px 5px 2px 0;
  45. }
  46. ul.tagit input[type="text"] {
  47. -moz-box-sizing: border-box;
  48. -webkit-box-sizing: border-box;
  49. box-sizing: border-box;
  50. -moz-box-shadow: none;
  51. -webkit-box-shadow: none;
  52. box-shadow: none;
  53. border: none;
  54. margin: 0;
  55. padding: 0;
  56. width: inherit;
  57. background-color: inherit;
  58. outline: none;
  59. }
  60. /* Optional scoped theme for tag-it which mimics the zendesk widget. */
  61. ul.tagit {
  62. border-style: solid;
  63. border-width: 1px;
  64. border-color: #C6C6C6;
  65. background: inherit;
  66. }
  67. ul.tagit li.tagit-choice {
  68. -moz-border-radius: 6px;
  69. border-radius: 6px;
  70. -webkit-border-radius: 6px;
  71. border: 1px solid #CAD8F3;
  72. background: none;
  73. background-color: #DEE7F8;
  74. font-weight: normal;
  75. }
  76. ul.tagit li.tagit-choice .tagit-label:not(a) {
  77. color: #555;
  78. }
  79. ul.tagit li.tagit-choice a.tagit-close {
  80. text-decoration: none;
  81. }
  82. ul.tagit li.tagit-choice .tagit-close {
  83. right: .4em;
  84. }
  85. ul.tagit li.tagit-choice .ui-icon {
  86. display: none;
  87. }
  88. ul.tagit li.tagit-choice .tagit-close .text-icon {
  89. display: inline;
  90. font-family: arial, sans-serif;
  91. font-size: 16px;
  92. line-height: 16px;
  93. color: #777;
  94. }
  95. ul.tagit li.tagit-choice:hover, ul.tagit li.tagit-choice.remove {
  96. background-color: #bbcef1;
  97. border-color: #6d95e0;
  98. }
  99. ul.tagit li.tagit-choice a.tagLabel:hover,
  100. ul.tagit li.tagit-choice a.tagit-close .text-icon:hover {
  101. color: #222;
  102. }
  103. ul.tagit input[type="text"] {
  104. color: #333333;
  105. background: none;
  106. }
  107. .ui-widget {
  108. font-size: 1.1em;
  109. }