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.

inputs.css 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. /* INPUTS */
  2. /* specifically override browser styles */
  3. input, textarea, select, button {
  4. font-family: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
  5. }
  6. .select2-container-multi .select2-choices .select2-search-field input,
  7. .select2-search input,
  8. .ui-widget {
  9. font-family: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif !important;
  10. }
  11. input[type="text"],
  12. input[type="password"],
  13. input[type="search"],
  14. input[type="number"],
  15. input[type="email"],
  16. input[type="tel"],
  17. input[type="url"],
  18. input[type="time"],
  19. input[type="date"],
  20. textarea,
  21. select,
  22. button, .button,
  23. input[type="submit"],
  24. input[type="button"],
  25. #quota,
  26. .pager li a {
  27. width: 130px;
  28. margin: 3px 3px 3px 0;
  29. padding: 7px 6px 5px;
  30. font-size: 13px;
  31. background-color: #fff;
  32. color: #333;
  33. border: 1px solid #ddd;
  34. outline: none;
  35. border-radius: 3px;
  36. }
  37. input[type="hidden"] {
  38. height: 0;
  39. width: 0;
  40. }
  41. input[type="text"],
  42. input[type="password"],
  43. input[type="search"],
  44. input[type="number"],
  45. input[type="email"],
  46. input[type="tel"],
  47. input[type="url"],
  48. input[type="time"],
  49. textarea {
  50. background: #fff;
  51. color: #555;
  52. cursor: text;
  53. font-family: inherit; /* use default ownCloud font instead of default textarea monospace */
  54. }
  55. input[type="text"],
  56. input[type="password"],
  57. input[type="search"],
  58. input[type="number"],
  59. input[type="email"],
  60. input[type="tel"],
  61. input[type="url"],
  62. input[type="time"] {
  63. -webkit-appearance:textfield;
  64. -moz-appearance:textfield;
  65. box-sizing:content-box;
  66. }
  67. input[type="text"]:hover, input[type="text"]:focus, input[type="text"]:active,
  68. input[type="password"]:hover, input[type="password"]:focus, input[type="password"]:active,
  69. input[type="number"]:hover, input[type="number"]:focus, input[type="number"]:active,
  70. input[type="search"]:hover, input[type="search"]:focus, input[type="search"]:active,
  71. input[type="email"]:hover, input[type="email"]:focus, input[type="email"]:active,
  72. input[type="tel"]:hover, input[type="tel"]:focus, input[type="tel"]:active,
  73. input[type="url"]:hover, input[type="url"]:focus, input[type="url"]:active,
  74. input[type="time"]:hover, input[type="time"]:focus, input[type="time"]:active,
  75. textarea:hover, textarea:focus, textarea:active {
  76. color: #333;
  77. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  78. opacity: 1;
  79. }
  80. input[type="checkbox"].checkbox {
  81. position: absolute;
  82. left:-10000px;
  83. top: auto;
  84. width: 1px;
  85. height: 1px;
  86. overflow: hidden;
  87. }
  88. input[type="checkbox"].checkbox + label:before {
  89. content: "";
  90. display: inline-block;
  91. height: 20px;
  92. width: 20px;
  93. vertical-align: middle;
  94. background: url('../img/actions/checkbox.svg') left top no-repeat;
  95. }
  96. input[type="checkbox"].checkbox:disabled +label:before { opacity: .6; }
  97. input[type="checkbox"].checkbox.u-left +label:before { float: left; }
  98. input[type="checkbox"].checkbox.u-hidden + label:before { display: none; }
  99. input[type="checkbox"].checkbox:checked + label:before {
  100. background-image: url('../img/actions/checkbox-checked.svg');
  101. }
  102. input[type="checkbox"].checkbox:indeterminate + label:before {
  103. background-image: url('../img/actions/checkbox-mixed.svg');
  104. }
  105. input[type="checkbox"].checkbox:disabled + label:before {
  106. background-image: url('../img/actions/checkbox-disabled.svg');
  107. }
  108. input[type="checkbox"].checkbox:checked:disabled + label:before {
  109. background-image: url('../img/actions/checkbox-checked-disabled.svg');
  110. }
  111. input[type="checkbox"].checkbox:indeterminate:disabled + label:before {
  112. background-image: url('../img/actions/checkbox-mixed-disabled.svg');
  113. }
  114. input[type="checkbox"].checkbox--white + label:before {
  115. background-image: url('../img/actions/checkbox-white.svg');
  116. }
  117. input[type="checkbox"].checkbox--white:checked + label:before {
  118. background-image: url('../img/actions/checkbox-checked-white.svg');
  119. }
  120. input[type="checkbox"].checkbox--white:indeterminate + label:before {
  121. background-image: url('../img/actions/checkbox-mixed-white.svg');
  122. }
  123. input[type="checkbox"].checkbox--white:disabled + label:before {
  124. background-image: url('../img/actions/checkbox-disabled-white.svg');
  125. }
  126. input[type="checkbox"].checkbox--white:checked:disabled + label:before {
  127. background-image: url('../img/actions/checkbox-checked-disabled.svg');
  128. }
  129. input[type="checkbox"].checkbox--white:indeterminate:disabled + label:before {
  130. background-image: url('../img/actions/checkbox-mixed-disabled.svg');
  131. }
  132. input[type="checkbox"].checkbox:hover+label:before, input[type="checkbox"]:focus+label:before {
  133. color:#111 !important;
  134. }
  135. input[type="radio"].radio {
  136. position: absolute;
  137. left:-10000px;
  138. top: auto;
  139. width: 1px;
  140. height: 1px;
  141. overflow: hidden;
  142. }
  143. input[type="radio"].radio + label:before {
  144. content: "";
  145. display: inline-block;
  146. height: 20px;
  147. width: 20px;
  148. vertical-align: middle;
  149. background: url('../img/actions/radio.svg') left top no-repeat;
  150. }
  151. input[type="radio"].radio:checked + label:before {
  152. background-image: url('../img/actions/radio-checked.svg');
  153. }
  154. input[type="radio"].radio:disabled + label:before {
  155. background-image: url('../img/actions/radio-disabled.svg');
  156. }
  157. input[type="radio"].radio:checked:disabled + label:before {
  158. background-image: url('../img/actions/radio-checked-disabled.svg');
  159. }
  160. input[type="radio"].radio--white + label:before {
  161. background-image: url('../img/actions/radio-white.svg');
  162. }
  163. input[type="radio"].radio--white:checked + label:before {
  164. background-image: url('../img/actions/radio-checked-white.svg');
  165. }
  166. input[type="radio"].radio--white:disabled + label:before {
  167. background-image: url('../img/actions/radio-disabled.svg');
  168. }
  169. input[type="radio"].radio--white:checked:disabled + label:before {
  170. background-image: url('../img/actions/radio-checked-disabled.svg');
  171. }
  172. input[type="time"] {
  173. width: initial;
  174. height: 31px;
  175. box-sizing: border-box;
  176. }
  177. select {
  178. -webkit-appearance: none;
  179. -moz-appearance: none;
  180. appearance: none;
  181. background: url('../../core/img/actions/triangle-s.svg') no-repeat right 8px center rgba(240, 240, 240, 0.90);
  182. outline: 0;
  183. padding-right: 24px !important;
  184. }
  185. select:hover {
  186. background-color: #fefefe;
  187. }
  188. /* select2 adjustments */
  189. .select2-container {
  190. margin: 3px 3px 3px 0 !important;
  191. }
  192. #select2-drop {
  193. margin-top: -4px;
  194. }
  195. .select2-container .select2-choice,
  196. .select2-container .select2-default {
  197. border: none !important;
  198. border-radius: 0;
  199. background: transparent !important;
  200. box-shadow: none !important;
  201. line-height: 32px !important;
  202. padding-left: 38px;
  203. background-color: transparent;
  204. }
  205. .select2-selected {
  206. display: list-item !important;
  207. background-color: #f8f8f8 !important;
  208. }
  209. .select2-highlighted,
  210. .select2-selected.select2-highlighted {
  211. background: #f8f8f8 !important;
  212. color: #000 !important;
  213. }
  214. .select2-result {
  215. position: relative !important;
  216. }
  217. .select2-results {
  218. max-height: 220px !important;
  219. margin: 0 !important;
  220. padding: 0 !important;
  221. }
  222. .select2-results .select2-result-label {
  223. padding: 12px !important;
  224. }
  225. .select2-choices {
  226. white-space: nowrap !important;
  227. text-overflow: ellipsis !important;
  228. background: #fff !important;
  229. color: #555 !important;
  230. box-sizing: content-box !important;
  231. border-radius: 3px !important;
  232. border: 1px solid #ddd !important;
  233. margin: 0 !important;
  234. padding: 2px 0 !important;
  235. min-height: auto !important;
  236. }
  237. .select2-dropdown-open .select2-choices {
  238. border-bottom-left-radius: 0 !important;
  239. border-bottom-right-radius: 0 !important;
  240. }
  241. .select2-search {
  242. padding: 0 !important;
  243. }
  244. .select2-search input {
  245. background-position: 100% -21px !important;
  246. padding: 12px !important;
  247. border-radius: 0 !important;
  248. border: none !important;
  249. }
  250. .select2-choices .select2-search-choice {
  251. line-height: 20px !important;
  252. padding-left: 5px !important;
  253. }
  254. .select2-choices .select2-search-choice-close {
  255. display: none !important;
  256. }
  257. .select2-choices .select2-search-field input {
  258. line-height: 20px !important;
  259. }
  260. .select2-container-multi .select2-choices .select2-search-choice {
  261. background-color: #f8f8f8 !important;
  262. border-color: #f8f8f8 !important;
  263. box-shadow: none !important;
  264. background-image: none !important;
  265. }
  266. .select2-results .select2-highlighted {
  267. background-color: #f8f8f8 !important;
  268. color: #000 !important;
  269. }
  270. .select2-container-multi.select2-container-active .select2-choices,
  271. .select2-drop-active {
  272. border-color: #ddd !important;
  273. }
  274. .select2-container-multi.select2-container-active .select2-choices {
  275. -webkit-box-shadow: none !important;
  276. box-shadow: none !important;
  277. }
  278. #select2-drop .avatar,
  279. .select2-chosen .avatar {
  280. display: inline-block;
  281. margin-right: 8px;
  282. vertical-align: middle;
  283. }
  284. .select2-results .select2-no-results,
  285. .select2-results .select2-searching,
  286. .select2-results .select2-selection-limit {
  287. background: #fff !important;
  288. padding: 12px !important;
  289. }
  290. /* jQuery UI fixes */
  291. .ui-menu {
  292. padding: 0 !important;
  293. }
  294. .ui-menu .ui-menu-item a.ui-state-focus, .ui-menu .ui-menu-item a.ui-state-active {
  295. font-weight: inherit !important;
  296. margin: 0 !important;
  297. }
  298. .ui-widget-content {
  299. background: #fff !important;
  300. border-top: none !important;
  301. }
  302. .ui-corner-all {
  303. border-radius: 0 !important;
  304. border-bottom-left-radius: 3px !important;
  305. border-bottom-right-radius: 3px !important;
  306. }
  307. .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus {
  308. border: none !important;
  309. background: #f8f8f8 !important;
  310. }
  311. /* correctly align images inside of buttons */
  312. input img, button img, .button img {
  313. vertical-align: text-bottom;
  314. }
  315. input[type="submit"].enabled {
  316. background-color: #66f866;
  317. border: 1px solid #5e5;
  318. }
  319. .input-button-inline {
  320. position: absolute !important;
  321. right: 0;
  322. background-color: transparent !important;
  323. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
  324. opacity: .3;
  325. }
  326. /* BUTTONS */
  327. input[type="submit"], input[type="button"],
  328. button, .button,
  329. #quota, select, .pager li a {
  330. width: auto;
  331. min-width: 25px;
  332. padding: 5px;
  333. background-color: rgba(240,240,240,.9);
  334. font-weight: 600;
  335. color: #555;
  336. border: 1px solid rgba(240,240,240,.9);
  337. cursor: pointer;
  338. }
  339. select, .button.multiselect {
  340. font-weight: 400;
  341. }
  342. input[type="submit"]:hover, input[type="submit"]:focus,
  343. input[type="button"]:hover, input[type="button"]:focus,
  344. button:hover, button:focus,
  345. .button:hover, .button:focus,
  346. .button a:focus,
  347. select:hover, select:focus, select:active {
  348. background-color: rgba(255, 255, 255, .95);
  349. color: #111;
  350. }
  351. input[type="submit"] img, input[type="button"] img, button img, .button img { cursor:pointer; }
  352. #header .button {
  353. border: none;
  354. box-shadow: none;
  355. }
  356. /* disabled input fields and buttons */
  357. input:disabled, input:disabled:hover, input:disabled:focus,
  358. button:disabled, button:disabled:hover, button:disabled:focus,
  359. .button:disabled, .button:disabled:hover, .button:disabled:focus,
  360. a.disabled, a.disabled:hover, a.disabled:focus,
  361. textarea:disabled {
  362. background-color: rgba(230,230,230,.9);
  363. color: #999;
  364. cursor: default;
  365. }
  366. input:disabled+label, input:disabled:hover+label, input:disabled:focus+label {
  367. color: #999 !important;
  368. cursor: default;
  369. }
  370. /* Primary action button, use sparingly */
  371. .primary, input[type="submit"].primary, input[type="button"].primary, button.primary, .button.primary {
  372. border: 1px solid #0082c9;
  373. background-color: #00a2e9;
  374. color: #fff;
  375. }
  376. .primary:hover, input[type="submit"].primary:hover, input[type="button"].primary:hover, button.primary:hover, .button.primary:hover,
  377. .primary:focus, input[type="submit"].primary:focus, input[type="button"].primary:focus, button.primary:focus, .button.primary:focus {
  378. background-color: #0092d9;
  379. color: #fff;
  380. }
  381. .primary:active, input[type="submit"].primary:active, input[type="button"].primary:active, button.primary:active, .button.primary:active,
  382. .primary:disabled, input[type="submit"].primary:disabled, input[type="button"].primary:disabled, button.primary:disabled, .button.primary:disabled,
  383. .primary:disabled:hover, input[type="submit"].primary:disabled:hover, input[type="button"].primary:disabled:hover, button.primary:disabled:hover, .button.primary:disabled:hover,
  384. .primary:disabled:focus, input[type="submit"].primary:disabled:focus, input[type="button"].primary:disabled:focus, button.primary:disabled:focus, .button.primary:disabled:focus {
  385. background-color: #00a2e9;
  386. color: #bbb;
  387. }
  388. @keyframes shake {
  389. 0% { transform: translate(-5px, 0); }
  390. 20% { transform: translate(5px, 0); }
  391. 40% { transform: translate(-5px, 0); }
  392. 60% { transform: translate(5px, 0); }
  393. 80% { transform: translate(-5px, 0); }
  394. 100% { transform: translate(5px, 0); }
  395. }
  396. .shake {
  397. animation-name: shake;
  398. animation-duration: .3s;
  399. animation-timing-function: ease-out;
  400. }