forms.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  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. transform: rotate(40deg);
  319. -webkit-backface-visibility: hidden;
  320. backface-visibility: hidden;
  321. transform-origin: 100% 100%;
  322. }
  323. .button-link {
  324. background: #fff;
  325. background: linear-gradient(#fff, #f5f5f5);
  326. border-radius: 3px;
  327. box-sizing: border-box;
  328. -webkit-user-select: none;
  329. user-select: none;
  330. border: 1px solid #e3e3e3;
  331. border-bottom-color: #c2c2c2;
  332. cursor: pointer;
  333. display: block;
  334. font-weight: 700;
  335. height: 34px;
  336. margin-top: 6px;
  337. max-width: 300px;
  338. padding: 7px;
  339. position: relative;
  340. text-decoration: none;
  341. overflow: ellipsis;
  342. }
  343. .button-link .on {
  344. background: #48b512;
  345. background: linear-gradient(#48b512, #3d990f);
  346. border-radius: 3px;
  347. color: #fff;
  348. display: none;
  349. font-size: 12px;
  350. font-weight: 700;
  351. height: 17px;
  352. line-height: 17px;
  353. margin: 0;
  354. padding: 2px 4px;
  355. position: absolute;
  356. right: 5px;
  357. top: 5px;
  358. text-align: center;
  359. }
  360. .button-link.is-on {
  361. padding-right: 30px;
  362. max-width: 196px;
  363. }
  364. .button-link.is-on .on {
  365. display: block;
  366. }
  367. .button-link.inline {
  368. color: #666;
  369. padding: 2px 14px;
  370. margin-left: 4px;
  371. }
  372. .button-link.setting {
  373. height: 52px;
  374. float: left;
  375. position: relative;
  376. margin-top: 0;
  377. }
  378. .button-link.setting.disabled {
  379. background: #fff;
  380. border-color: #e9e9e9;
  381. color: #222;
  382. cursor: default;
  383. }
  384. .button-link.setting.disabled select {
  385. display: none;
  386. }
  387. .button-link.setting.disabled:hover .label {
  388. color: #222;
  389. }
  390. .button-link.setting.disabled,
  391. .button-link.setting.disabled:hover,
  392. .button-link.setting.disabled:active,
  393. .button-link.setting.disabled.primary,
  394. .button-link.setting.disabled.primary:hover,
  395. .button-link.setting.disabled.primary:active {
  396. background: #cfcfcf;
  397. border-color: #c2c2c2;
  398. border-bottom-color: #b5b5b5;
  399. cursor: default;
  400. box-shadow: none;
  401. color: #a8a8a8;
  402. }
  403. .button-link.setting .label {
  404. color: #222;
  405. display: block;
  406. font-size: 12px;
  407. line-height: 14px;
  408. margin-bottom: 0;
  409. }
  410. .button-link.setting:hover .label {
  411. color: #eee;
  412. }
  413. .button-link.setting .value {
  414. display: block;
  415. font-size: 18px;
  416. line-height: 24px;
  417. overflow: hidden;
  418. text-overflow: ellipsis;
  419. }
  420. .button-link.setting label {
  421. display: none;
  422. }
  423. .button-link.setting select {
  424. border: none;
  425. cursor: pointer;
  426. height: 50px;
  427. left: 0;
  428. margin: 0;
  429. opacity: 0;
  430. position: absolute;
  431. top: 0;
  432. z-index: 2;
  433. width: 100%;
  434. }
  435. .button-link:hover {
  436. background: #318ec4;
  437. background: linear-gradient(#318ec4, #2b7cab);
  438. border-color: #2e85b8;
  439. color: #fff;
  440. }
  441. .button-link:hover .on {
  442. background-image: none;
  443. background-color: rgba(255,255,255,0.3);
  444. border-color: transparent;
  445. }
  446. .button-link:active {
  447. background: #2e85b8;
  448. background: linear-gradient(#2e85b8, #28739f);
  449. border-color: #2b7cab;
  450. color: #fff;
  451. }
  452. .button-link .button-link.negate:hover {
  453. background: #990f0f;
  454. background: linear-gradient(#990f0f, #7d0c0c);
  455. border-color: linear-gradient(#990f0f, #7d0c0c);
  456. }
  457. .button-link .button-link.negate:active {
  458. background: #7d0c0c;
  459. border-color: #990f0f;
  460. }
  461. .button-link.primary {
  462. background: #48b512;
  463. background: linear-gradient(#48b512, #3d990f);
  464. border: 1px solid;
  465. border-color: #3d990f;
  466. color: #fff;
  467. }
  468. .button-link.primary:hover {
  469. background: #3d990f;
  470. background: linear-gradient(#3d990f, #327d0c);
  471. border-color: #3d990f;
  472. }
  473. .button-link.danger {
  474. background: #ba1212;
  475. background: linear-gradient(#ba1212, #8b0e0e);
  476. border: 1px solid;
  477. border-color: #a21010;
  478. color: #fff;
  479. }
  480. .button-link.danger:hover {
  481. background: #a21010;
  482. background: linear-gradient(#a21010, #740b0b);
  483. border-color: #8b0e0e;
  484. }
  485. button.quiet-button,
  486. button.loud-text-button {
  487. background: none;
  488. text-align: left;
  489. line-height: normal;
  490. border: none;
  491. box-shadow: none;
  492. }
  493. button.quiet-button:active,
  494. button.loud-text-button:active {
  495. color: #4d4d4d;
  496. background: #d3d3d3;
  497. box-shadow: none;
  498. }
  499. button.quiet-button {
  500. font-weight: 400;
  501. text-decoration: underline;
  502. }
  503. button.loud-text-button {
  504. width: 100%;
  505. }
  506. button.loud-text-button:hover {
  507. color: #111;
  508. }
  509. .emphasis-button,
  510. .quiet-button {
  511. border-radius: 3px;
  512. -webkit-user-select: none;
  513. user-select: none;
  514. color: #222;
  515. display: block;
  516. margin: 2px 0;
  517. padding: 6px 8px;
  518. position: relative;
  519. }
  520. .emphasis-button.w-img,
  521. .quiet-button.w-img {
  522. padding-left: 28px;
  523. }
  524. .emphasis-button:hover,
  525. .quiet-button:hover {
  526. color: #4d4d4d;
  527. background: #dcdcdc;
  528. }
  529. .emphasis-button:active,
  530. .quiet-button:active {
  531. color: #4d4d4d;
  532. background: #d3d3d3;
  533. }
  534. .quiet-button-large {
  535. padding: 16px 24px;
  536. }
  537. .emphasis-button {
  538. color: #74663e;
  539. background: #ecdfbb;
  540. }
  541. .emphasis-button:hover {
  542. color: #53492d;
  543. background: #e7d6a7;
  544. }
  545. .emphasis-button:active {
  546. color: #53492d;
  547. background: #e1cc93;
  548. }
  549. .is-editable {
  550. cursor: pointer;
  551. }
  552. .big-link {
  553. border-radius: 3px;
  554. display: block;
  555. margin: 6px 0 6px 40px;
  556. padding: 11px;
  557. position: relative;
  558. text-decoration: none;
  559. font-size: 16px;
  560. line-height: 20px;
  561. }
  562. .big-link .text {
  563. text-decoration: underline;
  564. }
  565. .big-link:hover {
  566. background: #dcdcdc;
  567. }
  568. .big-link.options {
  569. padding-right: 41px;
  570. }
  571. .big-link .option {
  572. height: 30px;
  573. width: 30px;
  574. position: absolute;
  575. right: 6px;
  576. top: 6px;
  577. }
  578. .big-link.none {
  579. color: #222;
  580. text-decoration: none;
  581. }
  582. .big-link.none:hover {
  583. background: transparent;
  584. }
  585. .big-link.avatar-changer {
  586. padding-right: 51px;
  587. }
  588. .big-link.avatar-changer .member {
  589. border: 1px solid #ccc;
  590. border-radius: 3px;
  591. height: 40px;
  592. width: 40px;
  593. position: absolute;
  594. right: 0;
  595. top: 0;
  596. }
  597. .big-link.avatar-changer .member .member-avatar {
  598. height: 40px;
  599. width: 40px;
  600. }
  601. .big-link.avatar-changer .member .member-initials {
  602. font-size: 16px;
  603. height: 40px;
  604. line-height: 40px;
  605. max-height: 40px;
  606. }
  607. .show-more {
  608. border-radius: 3px;
  609. color: #222;
  610. display: block;
  611. padding: 16px 8px 16px 40px;
  612. margin: 8px 0;
  613. }
  614. .show-more:hover {
  615. background: #dcdcdc;
  616. text-decoration: underline;
  617. }
  618. .show-more.compact {
  619. padding: 12px 8px;
  620. margin: 8px 0 0;
  621. text-align: center;
  622. }
  623. .board-widget .show-more {
  624. padding: 12px 8px 12px 40px;
  625. }
  626. .uploader {
  627. clear: both;
  628. cursor: pointer;
  629. position: relative;
  630. height: 34px;
  631. width: 100%;
  632. }
  633. .uploader .realfile {
  634. cursor: pointer;
  635. height: 34px;
  636. line-height: 34px;
  637. position: absolute;
  638. top: 0;
  639. left: 0;
  640. width: 100%;
  641. z-index: 2;
  642. font-size: 23px;
  643. }
  644. .uploader .realfile input[type="file"] {
  645. cursor: pointer;
  646. height: 34px;
  647. line-height: 34px;
  648. margin: 0;
  649. opacity: 0;
  650. padding: 0;
  651. width: 100%;
  652. z-index: 2;
  653. font-size: 23px;
  654. }
  655. .uploader:hover .fakefile {
  656. background: #318ec4;
  657. background: linear-gradient(#318ec4, #2b7cab);
  658. border-color: #2e85b8;
  659. color: #fff;
  660. }
  661. .dropdown-menu {
  662. border-radius: 2px;
  663. overflow: hidden;
  664. }
  665. .dropdown-menu li {
  666. border-top: none;
  667. }
  668. .dropdown-menu li a {
  669. padding: 4px 12px 4px 8px;
  670. }
  671. .dropdown-menu li a img {
  672. width: 18px;
  673. height: 18px;
  674. margin-right: 5px;
  675. vertical-align: middle;
  676. }
  677. .dropdown-menu li a .minicard-label {
  678. width: 11px;
  679. height: 11px;
  680. border-radius: 2px;
  681. margin: 2px 7px -2px -2px;
  682. display: inline-block;
  683. }
  684. .dropdown-menu li.active {
  685. background: #005377;
  686. }
  687. .dropdown-menu li.active a,
  688. .dropdown-menu li.active .quiet {
  689. color: #fff;
  690. }
  691. .material-toggle-switch {
  692. display: flex;
  693. }
  694. .toggle-label {
  695. position: relative;
  696. display: block;
  697. height: 20px;
  698. width: 44px;
  699. background-color: #a6a6a6;
  700. border-radius: 100px;
  701. cursor: pointer;
  702. transition: all 0.3s ease;
  703. }
  704. .toggle-label:after {
  705. position: absolute;
  706. left: -2px;
  707. top: -3px;
  708. display: block;
  709. width: 26px;
  710. height: 26px;
  711. border-radius: 100px;
  712. background-color: #fff;
  713. box-shadow: 0px 3px 3px rgba(0,0,0,0.05);
  714. content: '';
  715. transition: all 0.3s ease;
  716. }
  717. .toggle-label:active:after {
  718. transform: scale(1.15, 0.85);
  719. }
  720. .toggle-switch:checked ~ .toggle-label {
  721. background-color: #6fbeb5;
  722. }
  723. .toggle-switch:checked ~ .toggle-label:after {
  724. left: 20px;
  725. background-color: #179588;
  726. }
  727. .toggle-switch:checked:disabled ~ .toggle-label {
  728. background-color: #d5d5d5;
  729. pointer-events: none;
  730. }
  731. .toggle-switch:checked:disabled ~ .toggle-label:after {
  732. background-color: #bcbdbc;
  733. }
  734. .toggle-switch {
  735. display: none;
  736. }
  737. .toggle-switch-title {
  738. margin: 0 0.5em;
  739. display: flex;
  740. }
  741. @media screen and (max-width: 800px) {
  742. .edit-controls .fa-times-thin,
  743. .add-controls .fa-times-thin {
  744. margin: 3px 20px;
  745. }
  746. }