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.

213 lines
5.5 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: 1px;
  131. right: 1px;
  132. margin: 0em;
  133. width: 2.5em;
  134. height: 2.5em;
  135. padding-top: 0.75em;
  136. text-align: center;
  137. -webkit-border-radius: 0.2em 0em 0em 0.2em;
  138. -moz-border-radius: 0.2em 0em 0em 0.2em;
  139. border-radius: 0.2em 0em 0em 0.2em;
  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.left.icon.input .icon {
  154. right: auto;
  155. left: 1px;
  156. }
  157. .ui.left.icon.input input {
  158. padding-left: 3em !important;
  159. padding-right: 1.2em !important;
  160. }
  161. /* Focus */
  162. .ui.icon.input input:focus ~ .icon {
  163. opacity: 1;
  164. }
  165. /*--------------------
  166. Labeled
  167. ---------------------*/
  168. .ui.labeled.input .corner.label {
  169. top: 1px;
  170. right: 1px;
  171. font-size: 0.7em;
  172. -webkit-border-top-right-radius: 0.3125em;
  173. -moz-border-top-right-radius: 0.3125em;
  174. border-top-right-radius: 0.3125em;
  175. }
  176. .ui.labeled.input input {
  177. padding-right: 2.5em !important;
  178. }
  179. /* Spacing with corner label */
  180. .ui.labeled.icon.input:not(.left) input {
  181. padding-right: 3.25em !important;
  182. }
  183. .ui.labeled.icon.input:not(.left) .icon {
  184. margin-right: 0.75em;
  185. }
  186. /*--------------------
  187. Action
  188. ---------------------*/
  189. .ui.action.input {
  190. display: table;
  191. }
  192. .ui.action.input > input {
  193. display: table-cell;
  194. border-top-right-radius: 0px !important;
  195. border-bottom-right-radius: 0px !important;
  196. border-right: none;
  197. }
  198. .ui.action.input > .button {
  199. display: table-cell;
  200. opacity: 0.9;
  201. border-top-left-radius: 0px;
  202. border-bottom-left-radius: 0px;
  203. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  204. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  205. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  206. white-space: nowrap;
  207. }
  208. .ui.action.input > input:focus ~ .button {
  209. opacity: 1;
  210. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  211. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  212. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
  213. }