form.css 8.5 KB

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