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.

264 lines
6.5 KiB

  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. -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. Loading
  69. ---------------------*/
  70. .ui.loading.input > .icon {
  71. background: url(../images/loader-mini.gif) no-repeat 50% 50%;
  72. }
  73. .ui.loading.input > .icon:before,
  74. .ui.loading.input > .icon:after {
  75. display: none;
  76. }
  77. /*--------------------
  78. Focus
  79. ---------------------*/
  80. .ui.input.focus input,
  81. .ui.input input:focus {
  82. border-color: rgba(0, 0, 0, 0.2);
  83. color: rgba(0, 0, 0, 0.85);
  84. }
  85. .ui.input.focus input input::-webkit-input-placeholder,
  86. .ui.input input:focus input::-webkit-input-placeholder {
  87. color: #AAAAAA;
  88. }
  89. .ui.input.focus input input::-moz-placeholder,
  90. .ui.input input:focus input::-moz-placeholder {
  91. color: #AAAAAA;
  92. }
  93. /*--------------------
  94. Error
  95. ---------------------*/
  96. .ui.input.error input {
  97. background-color: #FFFAFA;
  98. border-color: #E7BEBE;
  99. color: #D95C5C;
  100. }
  101. /* Error Placeholder */
  102. .ui.input.error input ::-webkit-input-placeholder {
  103. color: rgba(255, 80, 80, 0.4);
  104. }
  105. .ui.input.error input ::-moz-placeholder {
  106. color: rgba(255, 80, 80, 0.4);
  107. }
  108. .ui.input.error input :focus::-webkit-input-placeholder {
  109. color: rgba(255, 80, 80, 0.7);
  110. }
  111. .ui.input.error input :focus::-moz-placeholder {
  112. color: rgba(255, 80, 80, 0.7);
  113. }
  114. /*******************************
  115. Variations
  116. *******************************/
  117. /*--------------------
  118. Transparent
  119. ---------------------*/
  120. .ui.transparent.input input {
  121. border: none;
  122. background-color: transparent;
  123. }
  124. /*--------------------
  125. Icon
  126. ---------------------*/
  127. .ui.icon.input > .icon {
  128. cursor: default;
  129. position: absolute;
  130. opacity: 0.5;
  131. top: 0px;
  132. right: 0px;
  133. margin: 0em;
  134. width: 2.6em;
  135. height: 100%;
  136. padding-top: 0.82em;
  137. text-align: center;
  138. -webkit-border-radius: 0em 0.3125em 0.3125em 0em;
  139. -moz-border-radius: 0em 0.3125em 0.3125em 0em;
  140. border-radius: 0em 0.3125em 0.3125em 0em;
  141. -webkit-box-sizing: border-box;
  142. -moz-box-sizing: border-box;
  143. -ms-box-sizing: border-box;
  144. box-sizing: border-box;
  145. -webkit-transition: opacity 0.3s ease-out;
  146. -moz-transition: opacity 0.3s ease-out;
  147. -o-transition: opacity 0.3s ease-out;
  148. -ms-transition: opacity 0.3s ease-out;
  149. transition: opacity 0.3s ease-out;
  150. }
  151. .ui.icon.input > .link.icon {
  152. cursor: pointer;
  153. }
  154. .ui.icon.input input {
  155. padding-right: 3em !important;
  156. }
  157. .ui.icon.input > .circular.icon {
  158. top: 0.35em;
  159. right: 0.5em;
  160. }
  161. /* Left Side */
  162. .ui.left.icon.input > .icon {
  163. right: auto;
  164. left: 1px;
  165. -webkit-border-radius: 0.3125em 0em 0em 0.3125em;
  166. -moz-border-radius: 0.3125em 0em 0em 0.3125em;
  167. border-radius: 0.3125em 0em 0em 0.3125em;
  168. }
  169. .ui.left.icon.input > .circular.icon {
  170. right: auto;
  171. left: 0.5em;
  172. }
  173. .ui.left.icon.input > input {
  174. padding-left: 3em !important;
  175. padding-right: 1.2em !important;
  176. }
  177. /* Focus */
  178. .ui.icon.input > input:focus ~ .icon {
  179. opacity: 1;
  180. }
  181. /*--------------------
  182. Labeled
  183. ---------------------*/
  184. .ui.labeled.input .corner.label {
  185. top: 1px;
  186. right: 1px;
  187. -webkit-border-top-right-radius: 0.3125em;
  188. -moz-border-top-right-radius: 0.3125em;
  189. border-top-right-radius: 0.3125em;
  190. }
  191. .ui.labeled.input input {
  192. padding-right: 2.5em !important;
  193. }
  194. /* Spacing with corner label */
  195. .ui.labeled.icon.input:not(.left) > input {
  196. padding-right: 3.25em !important;
  197. }
  198. .ui.labeled.icon.input:not(.left) > .icon {
  199. margin-right: 0.75em;
  200. }
  201. /*--------------------
  202. Action
  203. ---------------------*/
  204. .ui.action.input {
  205. display: table;
  206. }
  207. .ui.action.input > input {
  208. display: table-cell;
  209. border-top-right-radius: 0px !important;
  210. border-bottom-right-radius: 0px !important;
  211. border-right: none;
  212. }
  213. .ui.action.input > .button {
  214. display: table-cell;
  215. opacity: 0.9;
  216. border-top-left-radius: 0px;
  217. border-bottom-left-radius: 0px;
  218. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  219. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  220. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  221. white-space: nowrap;
  222. }
  223. .ui.action.input > .button > .icon {
  224. display: inline;
  225. }
  226. .ui.action.input > input:focus ~ .button {
  227. opacity: 1;
  228. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  229. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  230. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  231. }
  232. /*--------------------
  233. Fluid
  234. ---------------------*/
  235. .ui.fluid.input {
  236. display: block;
  237. }
  238. /*--------------------
  239. Size
  240. ---------------------*/
  241. .ui.mini.input {
  242. font-size: 0.8125rem;
  243. }
  244. .ui.tiny.input {
  245. font-size: 0.875rem;
  246. }
  247. .ui.small.input {
  248. font-size: 0.875rem;
  249. }
  250. .ui.input {
  251. font-size: 1rem;
  252. }
  253. .ui.large.input {
  254. font-size: 1.125rem;
  255. }
  256. .ui.big.input {
  257. font-size: 1.25rem;
  258. }
  259. .ui.huge.input {
  260. font-size: 1.375rem;
  261. }
  262. .ui.massive.input {
  263. font-size: 1.5rem;
  264. }