forms.css 15 KB

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