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.

306 lines
5.4 KiB

11 years ago
11 years ago
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::-web inputkit-input-placeholder {
  46. color: #BBBBBB;
  47. }
  48. .ui.input::-moz input-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. left: 0px;
  128. margin: 0em;
  129. width: 2.6em;
  130. height: 100%;
  131. padding-top: 0.82em;
  132. text-align: center;
  133. border-radius: 0.3125em 0em 0em 0.3125em;
  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-left: 3em !important;
  146. }
  147. .ui.icon.input > .circular.icon {
  148. top: 0.35em;
  149. left: 0.5em;
  150. }
  151. /* Left Side */
  152. .ui.left.icon.input > .icon {
  153. left: auto;
  154. right: 1px;
  155. border-radius: 0em 0.3125em 0.3125em 0em;
  156. }
  157. .ui.left.icon.input > .circular.icon {
  158. left: auto;
  159. right: 0.5em;
  160. }
  161. .ui.left.icon.input > input {
  162. padding-right: 3em !important;
  163. padding-left: 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. top: 1px;
  174. left: 1px;
  175. font-size: 0.55em;
  176. border-top-left-radius: 0.3125em;
  177. }
  178. .ui.labeled.input .corner.label > .icon {
  179. margin: 0.4em 2em 0em 0em;
  180. }
  181. .ui.labeled.input input {
  182. padding-left: 2.5em !important;
  183. }
  184. /* Spacing with corner label */
  185. .ui.labeled.icon.input:not(.left) > input {
  186. padding-left: 3.25em !important;
  187. }
  188. .ui.labeled.icon.input:not(.left) > .icon {
  189. margin-left: 0.75em;
  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-left-radius: 0px !important;
  200. border-bottom-left-radius: 0px !important;
  201. border-left: none;
  202. }
  203. .ui.action.input > .button {
  204. display: table-cell;
  205. border-top-right-radius: 0px;
  206. border-bottom-right-radius: 0px;
  207. white-space: nowrap;
  208. }
  209. .ui.action.input > .button > .icon {
  210. display: inline;
  211. vertical-align: top;
  212. }
  213. /*--------------------
  214. Fluid
  215. ---------------------*/
  216. .ui.fluid.input {
  217. display: block;
  218. }
  219. /*--------------------
  220. Size
  221. ---------------------*/
  222. .ui.mini.input {
  223. font-size: 0.8125rem;
  224. }
  225. .ui.tiny.input {
  226. font-size: 0.875rem;
  227. }
  228. .ui.small.input {
  229. font-size: 0.875rem;
  230. }
  231. .ui.input {
  232. font-size: 1rem;
  233. }
  234. .ui.large.input {
  235. font-size: 1.125rem;
  236. }
  237. .ui.big.input {
  238. font-size: 1.25rem;
  239. }
  240. .ui.huge.input {
  241. font-size: 1.375rem;
  242. }
  243. .ui.massive.input {
  244. font-size: 1.5rem;
  245. }