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.

286 lines
5.7 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: 1px;
  151. right: 1px;
  152. margin: 0em;
  153. width: 2.5em;
  154. height: 2.5em;
  155. padding-top: 0.75em;
  156. text-align: center;
  157. -webkit-border-radius: 0.2em 0em 0em 0.2em;
  158. -moz-border-radius: 0.2em 0em 0em 0.2em;
  159. border-radius: 0.2em 0em 0em 0.2em;
  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.left.icon.input .icon {
  174. right: auto;
  175. left: 1px;
  176. }
  177. .ui.left.icon.input input {
  178. padding-left: 3em !important;
  179. padding-right: 1.2em !important;
  180. }
  181. /* Focus */
  182. .ui.icon.input input:focus ~ .icon {
  183. opacity: 1;
  184. }
  185. /*--------------------
  186. Labeled
  187. ---------------------*/
  188. .ui.labeled.input .corner.label {
  189. top: 1px;
  190. right: 1px;
  191. font-size: 0.7em;
  192. -webkit-border-top-right-radius: 0.3125em;
  193. -moz-border-top-right-radius: 0.3125em;
  194. border-top-right-radius: 0.3125em;
  195. }
  196. .ui.labeled.input input {
  197. padding-right: 2.5em !important;
  198. }
  199. /* Spacing with corner label */
  200. .ui.labeled.icon.input:not(.left) input {
  201. padding-right: 3.25em !important;
  202. }
  203. .ui.labeled.icon.input:not(.left) .icon {
  204. margin-right: 0.75em;
  205. }
  206. /*--------------------
  207. Action
  208. ---------------------*/
  209. .ui.action.input {
  210. display: table;
  211. }
  212. .ui.action.input > input {
  213. display: table-cell;
  214. border-top-right-radius: 0px !important;
  215. border-bottom-right-radius: 0px !important;
  216. border-right: none;
  217. }
  218. .ui.action.input > .button {
  219. display: table-cell;
  220. opacity: 0.9;
  221. border-top-left-radius: 0px;
  222. border-bottom-left-radius: 0px;
  223. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  224. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  225. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  226. white-space: nowrap;
  227. }
  228. .ui.action.input > input:focus ~ .button {
  229. opacity: 1;
  230. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  231. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  232. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  233. }