form.css 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  1. /**
  2. * Form elements.
  3. */
  4. form {
  5. margin: 0;
  6. padding: 0;
  7. }
  8. fieldset:not(.fieldgroup) {
  9. display: flex;
  10. background-color: #f5f5f5;
  11. border: none;
  12. margin: 0 0 20px 0;
  13. padding: 55px 20px 20px 20px;
  14. min-width: 0;
  15. position: relative;
  16. }
  17. fieldset:not(.fieldgroup) .form-type-checkbox {
  18. margin-bottom: 10px;
  19. }
  20. fieldset:not(.fieldgroup) fieldset:not(.fieldgroup) {
  21. padding-left: 0;
  22. padding-right: 0;
  23. }
  24. fieldset:not(.fieldgroup) .fieldset-wrapper {
  25. width: 100%;
  26. }
  27. /**
  28. * We've temporarily added this Firefox specific rule here to fix fieldset
  29. * widths.
  30. * @todo remove once this Mozilla bug is fixed.
  31. * See https://bugzilla.mozilla.org/show_bug.cgi?id=504622
  32. */
  33. @-moz-document url-prefix() {
  34. fieldset:not(.fieldgroup) {
  35. display: table-cell;
  36. box-sizing: border-box;
  37. }
  38. }
  39. fieldset:not(.fieldgroup)>legend {
  40. font-size: 14px;
  41. color: #0678be;
  42. font-weight: 700;
  43. position: absolute;
  44. text-transform: uppercase;
  45. top: 15px;
  46. }
  47. .fieldgroup {
  48. min-width: 0;
  49. }
  50. /**
  51. * We've temporarily added this Firefox specific rule here to fix fieldset
  52. * widths.
  53. * @todo remove once this Mozilla bug is fixed.
  54. * See https://bugzilla.mozilla.org/show_bug.cgi?id=504622
  55. */
  56. @-moz-document url-prefix() {
  57. .fieldgroup {
  58. display: table-cell;
  59. box-sizing: border-box;
  60. }
  61. }
  62. .form-item {
  63. margin: 0 0 20px 0;
  64. max-width: 100%;
  65. box-sizing: border-box;
  66. }
  67. .form-item>.form-item {
  68. margin: 0;
  69. }
  70. table .form-item {
  71. margin: 0;
  72. }
  73. .form-type-checkbox {
  74. padding: 0;
  75. width: auto;
  76. }
  77. .form-type-checkbox label {
  78. font-weight: 400;
  79. }
  80. label {
  81. display: table;
  82. margin: 0 10px 5px 0;
  83. padding: 0;
  84. font-weight: 700;
  85. }
  86. label.error {
  87. color: #a51b00;
  88. }
  89. label[for] {
  90. cursor: pointer;
  91. }
  92. .form-actions {
  93. display: flex;
  94. flex-direction: column;
  95. margin-top: 20px;
  96. }
  97. .form-wrapper .form-actions {
  98. display: inline-block;
  99. }
  100. .views-form .form-actions,
  101. .form--inline .form-actions {
  102. margin: 0 0 0 0;
  103. position: relative;
  104. width: auto;
  105. border: none;
  106. padding: 0;
  107. z-index: 1;
  108. }
  109. table .form-actions {
  110. margin-top: 0;
  111. }
  112. @media screen and (min-width: 640px) {
  113. .form-actions {
  114. display: inline-flex;
  115. align-items: center;
  116. flex-direction: row;
  117. }
  118. .form-actions {
  119. padding: 20px;
  120. position: fixed;
  121. left: 0;
  122. bottom: 0;
  123. border-top: 1px solid #f5f5f5;
  124. width: 100%;
  125. z-index: 999;
  126. background-color: #fff;
  127. }
  128. .form-wrapper .form-actions {
  129. padding: 10px 0 0 0;
  130. position: relative;
  131. background: transparent;
  132. border-top: 0;
  133. }
  134. }
  135. .confirmation .form-actions {
  136. display: flex;
  137. margin-top: 10px;
  138. }
  139. .form-item label.option {
  140. text-transform: none;
  141. display: inline;
  142. margin-left: 5px;
  143. font-weight: 400;
  144. }
  145. .form-item label.option input {
  146. vertical-align: middle;
  147. }
  148. .form-disabled label {
  149. color: #686868;
  150. }
  151. .form-disabled input.form-text,
  152. .form-disabled input.form-tel,
  153. .form-disabled input.form-email,
  154. .form-disabled input.form-url,
  155. .form-disabled input.form-search,
  156. .form-disabled input.form-number,
  157. .form-disabled input.form-color,
  158. .form-disabled input.form-file,
  159. .form-disabled textarea.form-textarea,
  160. .form-disabled select.form-select {
  161. border-color: #d4d4d4;
  162. background-color: hsla(0, 0%, 0%, 0.08);
  163. box-shadow: none;
  164. color: #777;
  165. width: auto;
  166. }
  167. .form-item input.error,
  168. .form-item textarea.error,
  169. .form-item select.error {
  170. border-width: 1px;
  171. border-color: #e62600;
  172. background-color: hsla(15, 75%, 97%, 1);
  173. color: #a51b00;
  174. }
  175. .form-item input[type=checkbox]:checked.error {
  176. background: #0678be;
  177. box-shadow: inset 0 0 0 3px #fff;
  178. }
  179. .form-item textarea.error+.cke {
  180. border-width: 1px;
  181. border-color: #e62600;
  182. }
  183. .form-item input.error:focus,
  184. .form-item textarea.error:focus,
  185. .form-item select.error:focus {
  186. border-color: #e62600;
  187. outline: transparent;
  188. background-color: #fcf4f2;
  189. }
  190. .form-required::after {
  191. content: '*';
  192. color: #e32700;
  193. margin-left: 4px;
  194. }
  195. .form-item--error-message {
  196. margin-top: 0.15em;
  197. color: #e32700;
  198. }
  199. .fieldset-wrapper>.form-item--error-message {
  200. margin-top: 0;
  201. }
  202. .text-format-wrapper .form-item--error-message {
  203. border: solid #ccc;
  204. border-width: 0 1px;
  205. margin: 0;
  206. padding: 0.25em 0.666em 0;
  207. }
  208. /* Filter */
  209. ul.tips,
  210. .form-wrapper .description,
  211. .form-item .description {
  212. margin: 0;
  213. color: #333;
  214. font-size: 12px;
  215. line-height: 18px;
  216. padding-top: 5px;
  217. }
  218. .form-wrapper td.description {
  219. padding-top: 20px;
  220. }
  221. div.description {
  222. margin: 0;
  223. color: #333;
  224. }
  225. .form-item .description.error {
  226. margin-top: 0;
  227. color: #a51b00;
  228. }
  229. .form-item .description ul {
  230. margin: 0 0 0 20px;
  231. padding: 0;
  232. }
  233. .description .token-dialog {
  234. margin: 0;
  235. }
  236. .token-dialog {
  237. display: inline-flex;
  238. margin: 5px 10px 20px 0;
  239. }
  240. ul.tips li {
  241. margin: 0.25em 0 0.25em 1.5em;
  242. /* LTR */
  243. }
  244. [dir="rtl"] ul.tips li {
  245. margin: 0.25em 1.5em 0.25em 0;
  246. }
  247. table .form-type-radio,
  248. table .form-type-checkbox {
  249. padding-left: 0;
  250. }
  251. .form-type-radio,
  252. .form-type-checkbox {
  253. padding-left: 25px;
  254. }
  255. [dir="rtl"] .form-type-radio,
  256. [dir="rtl"] .form-type-checkbox {
  257. padding-left: 0;
  258. padding-right: 25px;
  259. }
  260. .form-type-checkbox .form-checkbox,
  261. .form-type-radio .form-radio,
  262. .form-type-checkbox .dummy-checkbox {
  263. margin-left: -25px;
  264. }
  265. table .form-type-checkbox .form-checkbox,
  266. table .form-type-radio .form-radio,
  267. table .form-type-checkbox .dummy-checkbox {
  268. margin-left: 0;
  269. }
  270. .text-summary-wrapper .form-textarea-wrapper {
  271. display: flex;
  272. }
  273. .text-summary {
  274. width: 100%;
  275. }
  276. .form-autocomplete,
  277. .form-text,
  278. .form-tel,
  279. .form-email,
  280. .form-url,
  281. .form-search,
  282. .form-number,
  283. .form-color,
  284. .form-file,
  285. .form-date,
  286. .form-time,
  287. .form-textarea,
  288. .form-select {
  289. box-sizing: border-box;
  290. padding: 10px 12px;
  291. border: 1px solid #d1d1d1;
  292. color: #333;
  293. background: #fcfcfa;
  294. min-height: 40px;
  295. -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
  296. transition: border linear 0.2s, box-shadow linear 0.2s;
  297. appearance: none;
  298. -webkit-appearance: none;
  299. -moz-appearance: none;
  300. border-radius: 0;
  301. min-width: 240px;
  302. width: 100%;
  303. font-size: 14px;
  304. line-height: 18px;
  305. }
  306. .form-select {
  307. cursor: pointer;
  308. background: #fcfcfa url(../../images/icons/787878/twistie-down.svg) no-repeat center right 10px;
  309. background-size: 11px;
  310. min-width: 280px;
  311. padding: 9px 28px 9px 12px;
  312. }
  313. .form-select[multiple] {
  314. background-image: none;
  315. }
  316. .tabledrag-hide .form-select {
  317. width: 60px;
  318. }
  319. .form-text:focus,
  320. .form-tel:focus,
  321. .form-email:focus,
  322. .form-url:focus,
  323. .form-search:focus,
  324. .form-number:focus,
  325. .form-color:focus,
  326. .form-file:focus,
  327. .form-textarea:focus,
  328. .form-date:focus,
  329. .form-time:focus,
  330. .form-select:focus {
  331. border-color: #40b6ff;
  332. outline: transparent;
  333. background-color: #fff;
  334. }
  335. .confirm-parent,
  336. .password-parent {
  337. overflow: visible;
  338. width: auto;
  339. }
  340. .form-item-options-group-info-identifier,
  341. .form-item-pass .description {
  342. clear: both;
  343. }
  344. .field-suffix {
  345. margin: 0;
  346. line-height: 38px;
  347. width: 100%;
  348. padding: 0;
  349. flex-shrink: 0;
  350. }
  351. .field-prefix {
  352. display: flex;
  353. align-items: center;
  354. margin-bottom: 5px;
  355. }
  356. .field-prefix span {
  357. margin: 0 5px;
  358. }
  359. .form-item-path {
  360. display: block;
  361. }
  362. .form-item-path label::after {
  363. content: ':';
  364. margin-left: 0;
  365. color: #333;
  366. }
  367. .field-weight,
  368. .menu-weight {
  369. min-width: 60px;
  370. width: 60px;
  371. }
  372. .field-ui-field-storage-add-form .field-prefix .field-suffix {
  373. display: none;
  374. }
  375. @media screen and (min-width: 640px) {
  376. .form-select {
  377. min-width: 280px;
  378. width: auto;
  379. }
  380. }
  381. @media screen and (max-width: 640px) {
  382. .form-actions input,
  383. .form-wrapper input[type="submit"] {
  384. margin-right: 0;
  385. width: 100%;
  386. }
  387. .form-actions input:first-child,
  388. .form-wrapper input[type="submit"]:first-child {
  389. margin-left: 0;
  390. }
  391. details summary {
  392. overflow: hidden;
  393. text-overflow: ellipsis;
  394. white-space: nowrap;
  395. box-sizing: border-box;
  396. }
  397. .password-strength {
  398. width: 100%;
  399. }
  400. .form-item .password-suggestions {
  401. float: none;
  402. }
  403. #dblog-filter-form .form-actions {
  404. float: none;
  405. padding: 0;
  406. }
  407. #edit-cancel {
  408. display: block;
  409. margin: 10px 0 0 0;
  410. }
  411. }
  412. /* Exceptions */
  413. #diff-inline-form select,
  414. div.filter-options select {
  415. padding: 0;
  416. }
  417. abbr.tabledrag-changed {
  418. border-bottom: none;
  419. text-decoration: none;
  420. margin: 0 2px;
  421. }
  422. .form-item-config-name {
  423. position: relative;
  424. }
  425. .form-item-config-name .ajax-progress {
  426. position: absolute;
  427. top: 15px;
  428. left: 300px;
  429. }
  430. /* confirmation form */
  431. .confirmation .item-list ul {
  432. margin-left: 0;
  433. padding-left: 20px;
  434. }
  435. /* uninastll form */
  436. .system-modules-uninstall table thead tr th:nth-child(2) {
  437. width: 20%;
  438. }
  439. /* In case the entity browser has it's own buttons */
  440. form.entity-browser-form {
  441. margin-bottom: 81px;
  442. }