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.

307 lines
5.5 KiB

11 years ago
11 years ago
  1. /*
  2. * # Semantic - Input
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Standard
  13. *******************************/
  14. /*--------------------
  15. Inputs
  16. ---------------------*/
  17. .ui.input {
  18. display: inline-block;
  19. position: relative;
  20. color: rgba(0, 0, 0, 0.7);
  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. border-radius: 0.3125em;
  33. -webkit-transition: background-color 0.3s ease-out, -webkit-box-shadow 0.2s ease, border-color 0.2s ease;
  34. transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  35. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  36. -webkit-box-sizing: border-box;
  37. -moz-box-sizing: border-box;
  38. -ms-box-sizing: border-box;
  39. box-sizing: border-box;
  40. }
  41. /*--------------------
  42. Placeholder
  43. ---------------------*/
  44. /* browsers require these rules separate */
  45. .ui.input::-webkit-input-placeholder {
  46. color: #BBBBBB;
  47. }
  48. .ui.input::-moz-placeholder {
  49. color: #BBBBBB;
  50. }
  51. /*******************************
  52. States
  53. *******************************/
  54. /*--------------------
  55. Active
  56. ---------------------*/
  57. .ui.input input:active,
  58. .ui.input.down input {
  59. border-color: rgba(0, 0, 0, 0.3);
  60. background-color: #FAFAFA;
  61. }
  62. /*--------------------
  63. Loading
  64. ---------------------*/
  65. .ui.loading.input > .icon {
  66. background: url(../images/loader-mini.gif) no-repeat 50% 50%;
  67. }
  68. .ui.loading.input > .icon:before,
  69. .ui.loading.input > .icon:after {
  70. display: none;
  71. }
  72. /*--------------------
  73. Focus
  74. ---------------------*/
  75. .ui.input.focus input,
  76. .ui.input input:focus {
  77. border-color: rgba(0, 0, 0, 0.2);
  78. color: rgba(0, 0, 0, 0.85);
  79. }
  80. .ui.input.focus input input::-webkit-input-placeholder,
  81. .ui.input input:focus input::-webkit-input-placeholder {
  82. color: #AAAAAA;
  83. }
  84. .ui.input.focus input input::-moz-placeholder,
  85. .ui.input input:focus input::-moz-placeholder {
  86. color: #AAAAAA;
  87. }
  88. /*--------------------
  89. Error
  90. ---------------------*/
  91. .ui.input.error input {
  92. background-color: #FFFAFA;
  93. border-color: #E7BEBE;
  94. color: #D95C5C;
  95. }
  96. /* Error Placeholder */
  97. .ui.input.error input ::-webkit-input-placeholder {
  98. color: rgba(255, 80, 80, 0.4);
  99. }
  100. .ui.input.error input ::-moz-placeholder {
  101. color: rgba(255, 80, 80, 0.4);
  102. }
  103. .ui.input.error input :focus::-webkit-input-placeholder {
  104. color: rgba(255, 80, 80, 0.7);
  105. }
  106. .ui.input.error input :focus::-moz-placeholder {
  107. color: rgba(255, 80, 80, 0.7);
  108. }
  109. /*******************************
  110. Variations
  111. *******************************/
  112. /*--------------------
  113. Transparent
  114. ---------------------*/
  115. .ui.transparent.input input {
  116. border: none;
  117. background-color: transparent;
  118. }
  119. /*--------------------
  120. Icon
  121. ---------------------*/
  122. .ui.icon.input > .icon {
  123. cursor: default;
  124. position: absolute;
  125. opacity: 0.5;
  126. top: 0px;
  127. right: 0px;
  128. margin: 0em;
  129. width: 2.6em;
  130. height: 100%;
  131. padding-top: 0.82em;
  132. text-align: center;
  133. border-radius: 0em 0.3125em 0.3125em 0em;
  134. -webkit-box-sizing: border-box;
  135. -moz-box-sizing: border-box;
  136. -ms-box-sizing: border-box;
  137. box-sizing: border-box;
  138. -webkit-transition: opacity 0.3s ease-out;
  139. transition: opacity 0.3s ease-out;
  140. }
  141. .ui.icon.input > .link.icon {
  142. cursor: pointer;
  143. }
  144. .ui.icon.input input {
  145. padding-right: 3em !important;
  146. }
  147. .ui.icon.input > .circular.icon {
  148. top: 0.35em;
  149. right: 0.5em;
  150. }
  151. /* Left Side */
  152. .ui.left.icon.input > .icon {
  153. right: auto;
  154. left: 1px;
  155. border-radius: 0.3125em 0em 0em 0.3125em;
  156. }
  157. .ui.left.icon.input > .circular.icon {
  158. right: auto;
  159. left: 0.5em;
  160. }
  161. .ui.left.icon.input > input {
  162. padding-left: 3em !important;
  163. padding-right: 1.2em !important;
  164. }
  165. /* Focus */
  166. .ui.icon.input > input:focus ~ .icon {
  167. opacity: 1;
  168. }
  169. /*--------------------
  170. Labeled
  171. ---------------------*/
  172. .ui.labeled.input .corner.label {
  173. font-size: 0.7em;
  174. border-top-right-radius: 0.3125em;
  175. }
  176. .ui.labeled.input input {
  177. padding-right: 2.5em !important;
  178. }
  179. /* Spacing with corner label */
  180. .ui.labeled.icon.input:not(.left) > input {
  181. padding-right: 3.25em !important;
  182. }
  183. .ui.labeled.icon.input:not(.left) > .icon {
  184. margin-right: 1.25em;
  185. }
  186. /*--------------------
  187. Action
  188. ---------------------*/
  189. .ui.action.input {
  190. display: table;
  191. }
  192. .ui.action.input > input {
  193. display: table-cell;
  194. border-top-right-radius: 0px !important;
  195. border-bottom-right-radius: 0px !important;
  196. border-right: none;
  197. }
  198. .ui.action.input > .button,
  199. .ui.action.input > .buttons {
  200. display: table-cell;
  201. border-top-left-radius: 0px;
  202. border-bottom-left-radius: 0px;
  203. white-space: nowrap;
  204. }
  205. .ui.action.input > .button > .icon,
  206. .ui.action.input > .buttons > .button > .icon {
  207. display: inline;
  208. vertical-align: top;
  209. }
  210. .ui.fluid.action.input {
  211. display: table;
  212. width: 100%;
  213. }
  214. .ui.fluid.action.input > .button {
  215. width: 0.01%;
  216. }
  217. /*--------------------
  218. Fluid
  219. ---------------------*/
  220. .ui.fluid.input {
  221. display: block;
  222. }
  223. /*--------------------
  224. Size
  225. ---------------------*/
  226. .ui.mini.input {
  227. font-size: 0.8125rem;
  228. }
  229. .ui.small.input {
  230. font-size: 0.875rem;
  231. }
  232. .ui.input {
  233. font-size: 1rem;
  234. }
  235. .ui.large.input {
  236. font-size: 1.125rem;
  237. }
  238. .ui.big.input {
  239. font-size: 1.25rem;
  240. }
  241. .ui.huge.input {
  242. font-size: 1.375rem;
  243. }
  244. .ui.massive.input {
  245. font-size: 1.5rem;
  246. }