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.

251 lines
5.6 KiB

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