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.

329 lines
6.4 KiB

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