forms.css 14 KB

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