forms.css 14 KB

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