forms.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. select,
  2. textarea,
  3. input:not([type=file]),
  4. button {
  5. box-sizing: border-box;
  6. background-color: #ebebeb;
  7. border: 1px solid #ccc;
  8. border-radius: 3px;
  9. display: block;
  10. margin-bottom: 12px;
  11. min-height: 34px;
  12. padding: 7px;
  13. }
  14. select.full,
  15. textarea.full,
  16. input:not([type=file]).full,
  17. button.full {
  18. width: 100%;
  19. }
  20. select.input-error,
  21. textarea.input-error,
  22. input:not([type=file]).input-error,
  23. button.input-error {
  24. background-color: #ece9e9;
  25. border-color: #ba1212;
  26. }
  27. select:focus,
  28. textarea:focus,
  29. input:not([type=file]):focus,
  30. button:focus {
  31. outline: 0;
  32. }
  33. input[type="file"] {
  34. margin-bottom: 16px;
  35. }
  36. input[type="radio"] {
  37. -webkit-appearance: radio;
  38. min-height: inherit;
  39. }
  40. input[type="text"],
  41. input[type="password"],
  42. input[type="email"] {
  43. transition: background 85ms ease-in, border-color 85ms ease-in;
  44. width: 250px;
  45. }
  46. input[type="text"].inline-input,
  47. input[type="password"].inline-input,
  48. input[type="email"].inline-input {
  49. background: none;
  50. border: 0;
  51. margin: 0;
  52. padding: 2px;
  53. min-height: 0;
  54. height: 18px;
  55. width: 200px;
  56. }
  57. input[type="text"].full-line,
  58. input[type="password"].full-line,
  59. input[type="email"].full-line {
  60. width: 100%;
  61. }
  62. input[type="email"]:invalid {
  63. box-shadow: none;
  64. }
  65. input[type="text"]:hover,
  66. input[type="password"]:hover,
  67. input[type="email"]:hover,
  68. textarea:hover {
  69. border-color: #999;
  70. }
  71. input[type="text"]:hover.input-error,
  72. input[type="password"]:hover.input-error,
  73. input[type="email"]:hover.input-error,
  74. textarea:hover.input-error {
  75. border-color: #ba1212;
  76. }
  77. input[type="text"]:focus,
  78. input[type="password"]:focus,
  79. input[type="email"]:focus,
  80. textarea:focus {
  81. background: #fff;
  82. border-color: #318ec4;
  83. box-shadow: 0 0 2px #318ec4;
  84. }
  85. input[type="text"]:focus.input-error,
  86. input[type="password"]:focus.input-error,
  87. input[type="email"]:focus.input-error,
  88. textarea:focus.input-error {
  89. background-color: #f8f7f7;
  90. border-color: #ba1212;
  91. box-shadow: 0 0 2px #d11515;
  92. }
  93. input[type="text"]:disabled,
  94. input[type="password"]:disabled,
  95. input[type="email"]:disabled,
  96. textarea:disabled {
  97. background-color: #dcdcdc;
  98. border-color: #bfbfbf;
  99. color: #8c8c8c;
  100. -webkit-touch-callout: none;
  101. user-select: none;
  102. }
  103. select {
  104. max-height: 300px;
  105. width: 256px;
  106. margin-bottom: 8px;
  107. }
  108. select.inline {
  109. width: 100%;
  110. }
  111. option[disabled] {
  112. color: #8c8c8c;
  113. }
  114. textarea {
  115. height: 150px;
  116. transition: background 85ms ease-in, border-color 85ms ease-in;
  117. resize: vertical;
  118. width: 100%;
  119. }
  120. textarea.editor {
  121. resize: none;
  122. padding-bottom: 22px;
  123. }
  124. .button {
  125. border-radius: 3px;
  126. text-decoration: none;
  127. position: relative;
  128. }
  129. input[type="submit"],
  130. button {
  131. background: #cfcfcf;
  132. background: linear-gradient(#cfcfcf, #c2c2c2);
  133. border: none;
  134. cursor: pointer;
  135. display: inline-block;
  136. font-weight: 700;
  137. line-height: 22px;
  138. padding: 7px 20px;
  139. text-align: center;
  140. }
  141. input[type="submit"] .wide,
  142. button .wide {
  143. padding-left: 30px;
  144. padding-right: 30px;
  145. }
  146. input[type="submit"]:hover,
  147. button:hover,
  148. input[type="submit"]:focus,
  149. button:focus {
  150. background: #c2c2c2;
  151. background: linear-gradient(#c2c2c2, #b5b5b5);
  152. }
  153. input[type="submit"]:active,
  154. button:active {
  155. background: #b5b5b5;
  156. background: linear-gradient(#b5b5b5, #a8a8a8);
  157. box-shadow: inset 0 3px 6px rgba(0,0,0,0.1);
  158. }
  159. input[type="submit"]:active:hover,
  160. button:active:hover,
  161. input[type="submit"]:active:focus,
  162. button:active:focus,
  163. input[type="submit"]:active:active,
  164. button:active:active {
  165. background: #e6e6e6;
  166. background: linear-gradient(#e6e6e6, #e6e6e6);
  167. }
  168. input[type="submit"].primary,
  169. button.primary {
  170. background: #005377;
  171. box-shadow: 0 1px 0 #4d4d4d;
  172. color: #fff;
  173. }
  174. input[type="submit"].primary:hover,
  175. button.primary:hover,
  176. input[type="submit"].primary:focus,
  177. button.primary:focus {
  178. background: #004766;
  179. }
  180. input[type="submit"].primary:active,
  181. button.primary:active {
  182. background: #01628c;
  183. }
  184. input[type="submit"].negate:hover,
  185. button.negate:hover,
  186. input[type="submit"].negate:focus,
  187. button.negate:focus {
  188. background: #990f0f;
  189. background: linear-gradient(#990f0f, #7d0c0c);
  190. box-shadow: 0 1px 0 #4d4d4d;
  191. color: #fff;
  192. }
  193. input[type="submit"].negate:active,
  194. button.negate:active {
  195. background: #7d0c0c;
  196. box-shadow: 0 1px 0 #4d4d4d;
  197. color: #fff;
  198. }
  199. input[type="submit"] i.fa,
  200. button i.fa {
  201. margin-right: 10px;
  202. }
  203. input[type="submit"].disabled,
  204. input[type="submit"]:disabled,
  205. input[type="button"].disabled,
  206. button.disabled,
  207. .button.disabled,
  208. input[type="submit"].disabled:hover,
  209. input[type="submit"]:disabled:hover,
  210. input[type="button"].disabled:hover,
  211. button.disabled:hover,
  212. .button.disabled:hover,
  213. input[type="submit"].disabled:active,
  214. input[type="submit"]:disabled:active,
  215. input[type="button"].disabled:active,
  216. button.disabled:active,
  217. .button.disabled:active {
  218. background: #cfcfcf;
  219. cursor: default;
  220. box-shadow: none;
  221. color: #a8a8a8;
  222. }
  223. fieldset {
  224. border: 1px solid #bfbfbf;
  225. padding: 15px;
  226. margin-bottom: 15px;
  227. }
  228. input[type="hidden"] {
  229. display: none;
  230. }
  231. .radio-div,
  232. .check-div {
  233. display: block;
  234. margin: 0 0 4px 20px;
  235. min-height: 20px;
  236. position: relative;
  237. }
  238. .radio-div input,
  239. .check-div input {
  240. left: -18px;
  241. min-height: 0;
  242. margin: 0;
  243. padding: 0;
  244. position: absolute;
  245. top: 2px;
  246. }
  247. .radio-div label,
  248. .check-div label {
  249. font-weight: 400;
  250. }
  251. label {
  252. display: block;
  253. font-weight: 700;
  254. margin-bottom: 4px;
  255. }
  256. label.form-error {
  257. color: #ba1212;
  258. }
  259. input::-webkit-input-placeholder,
  260. textarea::-webkit-input-placeholder,
  261. input::-moz-placeholder,
  262. textarea::-moz-placeholder {
  263. color: #8c8c8c;
  264. }
  265. .edit-controls,
  266. .add-controls {
  267. display: flex;
  268. align-items: center;
  269. margin-top: 0px;
  270. margin-bottom: 12px;
  271. }
  272. @media print {
  273. .add-controls {
  274. display: none;
  275. }
  276. }
  277. .edit-controls button[type=submit],
  278. .add-controls button[type=submit],
  279. .edit-controls input[type=button],
  280. .add-controls input[type=button] {
  281. float: left;
  282. height: 32px;
  283. margin-bottom: 0px;
  284. }
  285. .edit-controls .fa-times-thin,
  286. .add-controls .fa-times-thin {
  287. font-size: 26px;
  288. margin: 3px 10px;
  289. }
  290. [type="checkbox"]:not(:checked),
  291. [type="checkbox"]:checked {
  292. position: absolute;
  293. left: -9999px;
  294. visibility: hidden;
  295. display: none;
  296. }
  297. .materialCheckBox {
  298. position: relative;
  299. width: 13px;
  300. height: 13px;
  301. z-index: 0;
  302. border: 2px solid #5a5a5a;
  303. border-radius: 1px;
  304. transition: 0.2s;
  305. margin: 0;
  306. cursor: pointer;
  307. }
  308. .materialCheckBox.is-checked {
  309. top: -4px;
  310. left: -3px;
  311. width: 7px;
  312. height: 15px;
  313. margin-right: 6px;
  314. border-top: 2px solid transparent;
  315. border-left: 2px solid transparent;
  316. transform: rotate(40deg);
  317. -webkit-backface-visibility: hidden;
  318. transform-origin: 100% 100%;
  319. }
  320. .button-link {
  321. background: #fff;
  322. background: linear-gradient(#fff, #f5f5f5);
  323. border-radius: 3px;
  324. box-sizing: border-box;
  325. user-select: none;
  326. border: 1px solid #e3e3e3;
  327. border-bottom-color: #c2c2c2;
  328. cursor: pointer;
  329. display: block;
  330. font-weight: 700;
  331. height: 34px;
  332. margin-top: 6px;
  333. max-width: 300px;
  334. padding: 7px;
  335. position: relative;
  336. text-decoration: none;
  337. overflow: ellipsis;
  338. }
  339. .button-link .on {
  340. background: #48b512;
  341. background: linear-gradient(#48b512, #3d990f);
  342. border-radius: 3px;
  343. color: #fff;
  344. display: none;
  345. font-size: 12px;
  346. font-weight: 700;
  347. height: 17px;
  348. line-height: 17px;
  349. margin: 0;
  350. padding: 2px 4px;
  351. position: absolute;
  352. right: 5px;
  353. top: 5px;
  354. text-align: center;
  355. }
  356. .button-link.is-on {
  357. padding-right: 30px;
  358. max-width: 196px;
  359. }
  360. .button-link.is-on .on {
  361. display: block;
  362. }
  363. .button-link.inline {
  364. color: #666;
  365. padding: 2px 14px;
  366. margin-left: 4px;
  367. }
  368. .button-link.setting {
  369. height: 52px;
  370. float: left;
  371. position: relative;
  372. margin-top: 0;
  373. }
  374. .button-link.setting.disabled {
  375. background: #fff;
  376. border-color: #e9e9e9;
  377. color: #8c8c8c;
  378. cursor: default;
  379. }
  380. .button-link.setting.disabled select {
  381. display: none;
  382. }
  383. .button-link.setting.disabled:hover .label {
  384. color: #8c8c8c;
  385. }
  386. .button-link.setting.disabled,
  387. .button-link.setting.disabled:hover,
  388. .button-link.setting.disabled:active,
  389. .button-link.setting.disabled.primary,
  390. .button-link.setting.disabled.primary:hover,
  391. .button-link.setting.disabled.primary:active {
  392. background: #cfcfcf;
  393. border-color: #c2c2c2;
  394. border-bottom-color: #b5b5b5;
  395. cursor: default;
  396. box-shadow: none;
  397. color: #a8a8a8;
  398. }
  399. .button-link.setting .label {
  400. color: #8c8c8c;
  401. display: block;
  402. font-size: 12px;
  403. line-height: 14px;
  404. margin-bottom: 0;
  405. }
  406. .button-link.setting:hover .label {
  407. color: #eee;
  408. }
  409. .button-link.setting .value {
  410. display: block;
  411. font-size: 18px;
  412. line-height: 24px;
  413. overflow: hidden;
  414. text-overflow: ellipsis;
  415. }
  416. .button-link.setting label {
  417. display: none;
  418. }
  419. .button-link.setting select {
  420. border: none;
  421. cursor: pointer;
  422. height: 50px;
  423. left: 0;
  424. margin: 0;
  425. opacity: 0;
  426. position: absolute;
  427. top: 0;
  428. z-index: 2;
  429. width: 100%;
  430. }
  431. .button-link:hover {
  432. background: #318ec4;
  433. background: linear-gradient(#318ec4, #2b7cab);
  434. border-color: #2e85b8;
  435. color: #fff;
  436. }
  437. .button-link:hover .on {
  438. background-image: none;
  439. background-color: rgba(255,255,255,0.3);
  440. border-color: transparent;
  441. }
  442. .button-link:active {
  443. background: #2e85b8;
  444. background: linear-gradient(#2e85b8, #28739f);
  445. border-color: #2b7cab;
  446. color: #fff;
  447. }
  448. .button-link .button-link.negate:hover {
  449. background: #990f0f;
  450. background: linear-gradient(#990f0f, #7d0c0c);
  451. border-color: linear-gradient(#990f0f, #7d0c0c);
  452. }
  453. .button-link .button-link.negate:active {
  454. background: #7d0c0c;
  455. border-color: #990f0f;
  456. }
  457. .button-link.primary {
  458. background: #48b512;
  459. background: linear-gradient(#48b512, #3d990f);
  460. border: 1px solid;
  461. border-color: #3d990f;
  462. color: #fff;
  463. }
  464. .button-link.primary:hover {
  465. background: #3d990f;
  466. background: linear-gradient(#3d990f, #327d0c);
  467. border-color: #3d990f;
  468. }
  469. .button-link.danger {
  470. background: #ba1212;
  471. background: linear-gradient(#ba1212, #8b0e0e);
  472. border: 1px solid;
  473. border-color: #a21010;
  474. color: #fff;
  475. }
  476. .button-link.danger:hover {
  477. background: #a21010;
  478. background: linear-gradient(#a21010, #740b0b);
  479. border-color: #8b0e0e;
  480. }
  481. button.quiet-button,
  482. button.loud-text-button {
  483. background: none;
  484. text-align: left;
  485. line-height: normal;
  486. border: none;
  487. box-shadow: none;
  488. }
  489. button.quiet-button:active,
  490. button.loud-text-button:active {
  491. color: #4d4d4d;
  492. background: #d3d3d3;
  493. box-shadow: none;
  494. }
  495. button.quiet-button {
  496. font-weight: 400;
  497. text-decoration: underline;
  498. }
  499. button.loud-text-button {
  500. width: 100%;
  501. }
  502. button.loud-text-button:hover {
  503. color: #111;
  504. }
  505. .emphasis-button,
  506. .quiet-button {
  507. border-radius: 3px;
  508. user-select: none;
  509. color: #8c8c8c;
  510. display: block;
  511. margin: 2px 0;
  512. padding: 6px 8px;
  513. position: relative;
  514. }
  515. .emphasis-button.w-img,
  516. .quiet-button.w-img {
  517. padding-left: 28px;
  518. }
  519. .emphasis-button:hover,
  520. .quiet-button:hover {
  521. color: #4d4d4d;
  522. background: #dcdcdc;
  523. }
  524. .emphasis-button:active,
  525. .quiet-button:active {
  526. color: #4d4d4d;
  527. background: #d3d3d3;
  528. }
  529. .quiet-button-large {
  530. padding: 16px 24px;
  531. }
  532. .emphasis-button {
  533. color: #74663e;
  534. background: #ecdfbb;
  535. }
  536. .emphasis-button:hover {
  537. color: #53492d;
  538. background: #e7d6a7;
  539. }
  540. .emphasis-button:active {
  541. color: #53492d;
  542. background: #e1cc93;
  543. }
  544. .is-editable {
  545. cursor: pointer;
  546. }
  547. .big-link {
  548. border-radius: 3px;
  549. display: block;
  550. margin: 6px 0 6px 40px;
  551. padding: 11px;
  552. position: relative;
  553. text-decoration: none;
  554. font-size: 16px;
  555. line-height: 20px;
  556. }
  557. .big-link .text {
  558. text-decoration: underline;
  559. }
  560. .big-link:hover {
  561. background: #dcdcdc;
  562. }
  563. .big-link.options {
  564. padding-right: 41px;
  565. }
  566. .big-link .option {
  567. height: 30px;
  568. width: 30px;
  569. position: absolute;
  570. right: 6px;
  571. top: 6px;
  572. }
  573. .big-link.none {
  574. color: #8c8c8c;
  575. text-decoration: none;
  576. }
  577. .big-link.none:hover {
  578. background: transparent;
  579. }
  580. .big-link.avatar-changer {
  581. padding-right: 51px;
  582. }
  583. .big-link.avatar-changer .member {
  584. border: 1px solid #ccc;
  585. border-radius: 3px;
  586. height: 40px;
  587. width: 40px;
  588. position: absolute;
  589. right: 0;
  590. top: 0;
  591. }
  592. .big-link.avatar-changer .member .member-avatar {
  593. height: 40px;
  594. width: 40px;
  595. }
  596. .big-link.avatar-changer .member .member-initials {
  597. font-size: 16px;
  598. height: 40px;
  599. line-height: 40px;
  600. max-height: 40px;
  601. }
  602. .show-more {
  603. border-radius: 3px;
  604. color: #8c8c8c;
  605. display: block;
  606. padding: 16px 8px 16px 40px;
  607. margin: 8px 0;
  608. }
  609. .show-more:hover {
  610. background: #dcdcdc;
  611. text-decoration: underline;
  612. }
  613. .show-more.compact {
  614. padding: 12px 8px;
  615. margin: 8px 0 0;
  616. text-align: center;
  617. }
  618. .board-widget .show-more {
  619. padding: 12px 8px 12px 40px;
  620. }
  621. .uploader {
  622. clear: both;
  623. cursor: pointer;
  624. position: relative;
  625. height: 34px;
  626. width: 100%;
  627. }
  628. .uploader .realfile {
  629. cursor: pointer;
  630. height: 34px;
  631. line-height: 34px;
  632. position: absolute;
  633. top: 0;
  634. left: 0;
  635. width: 100%;
  636. z-index: 2;
  637. font-size: 23px;
  638. }
  639. .uploader .realfile input[type="file"] {
  640. cursor: pointer;
  641. height: 34px;
  642. line-height: 34px;
  643. margin: 0;
  644. opacity: 0;
  645. padding: 0;
  646. width: 100%;
  647. z-index: 2;
  648. font-size: 23px;
  649. }
  650. .uploader:hover .fakefile {
  651. background: #318ec4;
  652. background: linear-gradient(#318ec4, #2b7cab);
  653. border-color: #2e85b8;
  654. color: #fff;
  655. }
  656. .dropdown-menu {
  657. border-radius: 2px;
  658. overflow: hidden;
  659. }
  660. .dropdown-menu li {
  661. border-top: none;
  662. }
  663. .dropdown-menu li a {
  664. padding: 4px 12px 4px 8px;
  665. }
  666. .dropdown-menu li a img {
  667. width: 18px;
  668. height: 18px;
  669. margin-right: 5px;
  670. vertical-align: middle;
  671. }
  672. .dropdown-menu li a .minicard-label {
  673. width: 11px;
  674. height: 11px;
  675. border-radius: 2px;
  676. margin: 2px 7px -2px -2px;
  677. display: inline-block;
  678. }
  679. .dropdown-menu li.active {
  680. background: #005377;
  681. }
  682. .dropdown-menu li.active a,
  683. .dropdown-menu li.active .quiet {
  684. color: #fff;
  685. }
  686. .material-toggle-switch {
  687. display: flex;
  688. }
  689. .toggle-label {
  690. position: relative;
  691. display: block;
  692. height: 20px;
  693. width: 44px;
  694. background-color: #a6a6a6;
  695. border-radius: 100px;
  696. cursor: pointer;
  697. transition: all 0.3s ease;
  698. }
  699. .toggle-label:after {
  700. position: absolute;
  701. left: -2px;
  702. top: -3px;
  703. display: block;
  704. width: 26px;
  705. height: 26px;
  706. border-radius: 100px;
  707. background-color: #fff;
  708. box-shadow: 0px 3px 3px rgba(0,0,0,0.05);
  709. content: '';
  710. transition: all 0.3s ease;
  711. }
  712. .toggle-label:active:after {
  713. transform: scale(1.15, 0.85);
  714. }
  715. .toggle-switch:checked ~ .toggle-label {
  716. background-color: #6fbeb5;
  717. }
  718. .toggle-switch:checked ~ .toggle-label:after {
  719. left: 20px;
  720. background-color: #179588;
  721. }
  722. .toggle-switch:checked:disabled ~ .toggle-label {
  723. background-color: #d5d5d5;
  724. pointer-events: none;
  725. }
  726. .toggle-switch:checked:disabled ~ .toggle-label:after {
  727. background-color: #bcbdbc;
  728. }
  729. .toggle-switch {
  730. display: none;
  731. }
  732. .toggle-switch-title {
  733. margin: 0 0.5em;
  734. display: flex;
  735. }
  736. @media screen and (max-width: 800px) {
  737. .edit-controls .fa-times-thin,
  738. .add-controls .fa-times-thin {
  739. margin: 3px 20px;
  740. }
  741. }