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.

252 lines
6.2 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: 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. position: absolute;
  129. opacity: 0.5;
  130. top: 0px;
  131. right: 0px;
  132. margin: 0em;
  133. width: 2.6em;
  134. height: 100%;
  135. padding-top: 0.85em;
  136. text-align: center;
  137. -webkit-border-radius: 0em 0.3125em 0.3125em 0em;
  138. -moz-border-radius: 0em 0.3125em 0.3125em 0em;
  139. border-radius: 0em 0.3125em 0.3125em 0em;
  140. -webkit-box-sizing: border-box;
  141. -moz-box-sizing: border-box;
  142. -ms-box-sizing: border-box;
  143. box-sizing: border-box;
  144. -webkit-transition: opacity 0.3s ease-out;
  145. -moz-transition: opacity 0.3s ease-out;
  146. -o-transition: opacity 0.3s ease-out;
  147. -ms-transition: opacity 0.3s ease-out;
  148. transition: opacity 0.3s ease-out;
  149. }
  150. .ui.icon.input input {
  151. padding-right: 3em !important;
  152. }
  153. .ui.icon.input > .circular.icon {
  154. top: 0.35em;
  155. right: 0.5em;
  156. }
  157. /* Left Side */
  158. .ui.left.icon.input > .icon {
  159. right: auto;
  160. left: 1px;
  161. -webkit-border-radius: 0.3125em 0em 0em 0.3125em;
  162. -moz-border-radius: 0.3125em 0em 0em 0.3125em;
  163. border-radius: 0.3125em 0em 0em 0.3125em;
  164. }
  165. .ui.left.icon.input > .circular.icon {
  166. right: auto;
  167. left: 0.5em;
  168. }
  169. .ui.left.icon.input > input {
  170. padding-left: 3em !important;
  171. padding-right: 1.2em !important;
  172. }
  173. /* Focus */
  174. .ui.icon.input > input:focus ~ .icon {
  175. opacity: 1;
  176. }
  177. /*--------------------
  178. Labeled
  179. ---------------------*/
  180. .ui.labeled.input .corner.label {
  181. top: 1px;
  182. right: 1px;
  183. font-size: 0.7em;
  184. -webkit-border-top-right-radius: 0.3125em;
  185. -moz-border-top-right-radius: 0.3125em;
  186. border-top-right-radius: 0.3125em;
  187. }
  188. .ui.labeled.input input {
  189. padding-right: 2.5em !important;
  190. }
  191. /* Spacing with corner label */
  192. .ui.labeled.icon.input:not(.left) > input {
  193. padding-right: 3.25em !important;
  194. }
  195. .ui.labeled.icon.input:not(.left) > .icon {
  196. margin-right: 0.75em;
  197. }
  198. /*--------------------
  199. Action
  200. ---------------------*/
  201. .ui.action.input {
  202. display: table;
  203. }
  204. .ui.action.input > input {
  205. display: table-cell;
  206. border-top-right-radius: 0px !important;
  207. border-bottom-right-radius: 0px !important;
  208. border-right: none;
  209. }
  210. .ui.action.input > .button {
  211. display: table-cell;
  212. opacity: 0.9;
  213. border-top-left-radius: 0px;
  214. border-bottom-left-radius: 0px;
  215. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  216. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  217. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  218. white-space: nowrap;
  219. }
  220. .ui.action.input > input:focus ~ .button {
  221. opacity: 1;
  222. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  223. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  224. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  225. }
  226. /*--------------------
  227. Size
  228. ---------------------*/
  229. .ui.mini.input {
  230. font-size: 0.8125rem;
  231. }
  232. .ui.tiny.input {
  233. font-size: 0.875rem;
  234. }
  235. .ui.small.input {
  236. font-size: 0.875rem;
  237. }
  238. .ui.input {
  239. font-size: 1rem;
  240. }
  241. .ui.large.input {
  242. font-size: 1.125rem;
  243. }
  244. .ui.big.input {
  245. font-size: 1.25rem;
  246. }
  247. .ui.huge.input {
  248. font-size: 1.375rem;
  249. }
  250. .ui.massive.input {
  251. font-size: 1.5rem;
  252. }