You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

195 lines
5.1 KiB

11 years ago
11 years ago
11 years ago
11 years ago
  1. /*
  2. * # Semantic Input
  3. * http://github.com/quirkyinc/semantic
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: May 29 2013
  11. */
  12. /*******************************
  13. Standard
  14. *******************************/
  15. /*--------------------
  16. Inputs
  17. ---------------------*/
  18. .ui.input {
  19. display: inline-block;
  20. position: relative;
  21. }
  22. .ui.input input {
  23. width: 100%;
  24. font-family: "Helvetica Neue", "Helvetica", Arial;
  25. margin: 0em;
  26. padding: 0.85em 1.2em;
  27. font-size: 0.875em;
  28. background-color: #FFFFFF;
  29. border: 1px solid rgba(0, 0, 0, 0.15);
  30. outline: none;
  31. color: rgba(0, 0, 0, 0.7);
  32. -webkit-border-radius: 0.3125em;
  33. -moz-border-radius: 0.3125em;
  34. border-radius: 0.3125em;
  35. -webkit-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  36. -moz-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  37. -o-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  38. -ms-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  39. transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  40. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  41. -webkit-box-sizing: border-box;
  42. -moz-box-sizing: border-box;
  43. -ms-box-sizing: border-box;
  44. box-sizing: border-box;
  45. }
  46. /*--------------------
  47. Placeholder
  48. ---------------------*/
  49. /* browsers require these rules separate */
  50. .ui.input::-web inputkit-input-placeholder {
  51. color: #E0E0E0;
  52. }
  53. .ui.input::-moz input-placeholder {
  54. color: #E0E0E0;
  55. }
  56. /*******************************
  57. States
  58. *******************************/
  59. /*--------------------
  60. Active
  61. ---------------------*/
  62. .ui.input input:active,
  63. .ui.input.down input {
  64. border-color: rgba(0, 0, 0, 0.3);
  65. background-color: #FAFAFA;
  66. }
  67. /*--------------------
  68. Focus
  69. ---------------------*/
  70. .ui.input.focus input,
  71. .ui.input input:focus {
  72. border-color: rgba(0, 0, 0, 0.2);
  73. color: rgba(0, 0, 0, 0.85);
  74. }
  75. .ui.input.focus input input::-webkit-input-placeholder,
  76. .ui.input input:focus input::-webkit-input-placeholder {
  77. color: #AAAAAA;
  78. }
  79. .ui.input.focus input input::-moz-placeholder,
  80. .ui.input input:focus input::-moz-placeholder {
  81. color: #AAAAAA;
  82. }
  83. /*--------------------
  84. Error
  85. ---------------------*/
  86. .ui.input.error input {
  87. background-color: #FFFAFA;
  88. border-color: #E7BEBE;
  89. color: #EF4D6D;
  90. }
  91. /* Error Placeholder */
  92. .ui.input.error input ::-webkit-input-placeholder {
  93. color: rgba(255, 80, 80, 0.4);
  94. }
  95. .ui.input.error input ::-moz-placeholder {
  96. color: rgba(255, 80, 80, 0.4);
  97. }
  98. .ui.input.error input :focus::-webkit-input-placeholder {
  99. color: rgba(255, 80, 80, 0.7);
  100. }
  101. .ui.input.error input :focus::-moz-placeholder {
  102. color: rgba(255, 80, 80, 0.7);
  103. }
  104. /*******************************
  105. Variations
  106. *******************************/
  107. /*--------------------
  108. Transparent
  109. ---------------------*/
  110. .ui.transparent.input input {
  111. border: none;
  112. background-color: transparent;
  113. }
  114. /*--------------------
  115. Icon
  116. ---------------------*/
  117. .ui.icon.input > .icon {
  118. position: absolute;
  119. opacity: 0.5;
  120. top: 1px;
  121. right: 1px;
  122. margin: 0em;
  123. width: 2.5em;
  124. height: 2.5em;
  125. padding-top: 0.75em;
  126. text-align: center;
  127. -webkit-border-radius: 0.2em 0em 0em 0.2em;
  128. -moz-border-radius: 0.2em 0em 0em 0.2em;
  129. border-radius: 0.2em 0em 0em 0.2em;
  130. -webkit-box-sizing: border-box;
  131. -moz-box-sizing: border-box;
  132. -ms-box-sizing: border-box;
  133. box-sizing: border-box;
  134. -webkit-transition: opacity 0.3s ease-out;
  135. -moz-transition: opacity 0.3s ease-out;
  136. -o-transition: opacity 0.3s ease-out;
  137. -ms-transition: opacity 0.3s ease-out;
  138. transition: opacity 0.3s ease-out;
  139. }
  140. .ui.icon.input input {
  141. padding-right: 3em !important;
  142. }
  143. .ui.left.icon.input .icon {
  144. right: auto;
  145. left: 1px;
  146. }
  147. .ui.left.icon.input input {
  148. padding-left: 3em !important;
  149. padding-right: 1.2em !important;
  150. }
  151. .ui.icon.input input:focus ~ .icon {
  152. opacity: 1;
  153. }
  154. /*--------------------
  155. Labeled
  156. ---------------------*/
  157. .ui.labeled.input .corner.label {
  158. top: 1px;
  159. right: 1px;
  160. font-size: 0.7em;
  161. -webkit-border-top-right-radius: 0.3125em;
  162. -moz-border-top-right-radius: 0.3125em;
  163. border-top-right-radius: 0.3125em;
  164. }
  165. .ui.labeled.input input {
  166. padding-right: 2.5em !important;
  167. }
  168. /*--------------------
  169. Action
  170. ---------------------*/
  171. .ui.action.input {
  172. display: table;
  173. }
  174. .ui.action.input > input {
  175. display: table-cell;
  176. border-top-right-radius: 0px !important;
  177. border-bottom-right-radius: 0px !important;
  178. border-right: none;
  179. }
  180. .ui.action.input > .button {
  181. display: table-cell;
  182. opacity: 0.9;
  183. border-top-left-radius: 0px;
  184. border-bottom-left-radius: 0px;
  185. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  186. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  187. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  188. white-space: nowrap;
  189. }
  190. .ui.action.input > input:focus ~ .button {
  191. opacity: 1;
  192. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  193. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  194. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  195. }