forms.css 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. @import url('widgets.css');
  2. /* FORM ROWS */
  3. .form-row {
  4. overflow: hidden;
  5. padding: 10px;
  6. font-size: 13px;
  7. border-bottom: 1px solid #eee;
  8. }
  9. .form-row img, .form-row input {
  10. vertical-align: middle;
  11. }
  12. .form-row label input[type="checkbox"] {
  13. margin-top: 0;
  14. vertical-align: 0;
  15. }
  16. form .form-row p {
  17. padding-left: 0;
  18. }
  19. .hidden {
  20. display: none;
  21. }
  22. /* FORM LABELS */
  23. label {
  24. font-weight: normal;
  25. color: #666;
  26. font-size: 13px;
  27. }
  28. .required label, label.required {
  29. font-weight: bold;
  30. color: #333;
  31. }
  32. /* RADIO BUTTONS */
  33. form ul.radiolist li {
  34. list-style-type: none;
  35. }
  36. form ul.radiolist label {
  37. float: none;
  38. display: inline;
  39. }
  40. form ul.radiolist input[type="radio"] {
  41. margin: -2px 4px 0 0;
  42. padding: 0;
  43. }
  44. form ul.inline {
  45. margin-left: 0;
  46. padding: 0;
  47. }
  48. form ul.inline li {
  49. float: left;
  50. padding-right: 7px;
  51. }
  52. /* ALIGNED FIELDSETS */
  53. .aligned label {
  54. display: block;
  55. padding: 4px 10px 0 0;
  56. float: left;
  57. width: 160px;
  58. word-wrap: break-word;
  59. line-height: 1;
  60. }
  61. .aligned label:not(.vCheckboxLabel):after {
  62. content: '';
  63. display: inline-block;
  64. vertical-align: middle;
  65. height: 26px;
  66. }
  67. .aligned label + p, .aligned label + div.help, .aligned label + div.readonly {
  68. padding: 6px 0;
  69. margin-top: 0;
  70. margin-bottom: 0;
  71. margin-left: 170px;
  72. }
  73. .aligned ul label {
  74. display: inline;
  75. float: none;
  76. width: auto;
  77. }
  78. .aligned .form-row input {
  79. margin-bottom: 0;
  80. }
  81. .colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField {
  82. width: 350px;
  83. }
  84. form .aligned ul {
  85. margin-left: 160px;
  86. padding-left: 10px;
  87. }
  88. form .aligned ul.radiolist {
  89. display: inline-block;
  90. margin: 0;
  91. padding: 0;
  92. }
  93. form .aligned p.help,
  94. form .aligned div.help {
  95. clear: left;
  96. margin-top: 0;
  97. margin-left: 160px;
  98. padding-left: 10px;
  99. }
  100. form .aligned label + p.help,
  101. form .aligned label + div.help {
  102. margin-left: 0;
  103. padding-left: 0;
  104. }
  105. form .aligned p.help:last-child,
  106. form .aligned div.help:last-child {
  107. margin-bottom: 0;
  108. padding-bottom: 0;
  109. }
  110. form .aligned input + p.help,
  111. form .aligned textarea + p.help,
  112. form .aligned select + p.help,
  113. form .aligned input + div.help,
  114. form .aligned textarea + div.help,
  115. form .aligned select + div.help {
  116. margin-left: 160px;
  117. padding-left: 10px;
  118. }
  119. form .aligned ul li {
  120. list-style: none;
  121. }
  122. form .aligned table p {
  123. margin-left: 0;
  124. padding-left: 0;
  125. }
  126. .aligned .vCheckboxLabel {
  127. float: none;
  128. width: auto;
  129. display: inline-block;
  130. vertical-align: -3px;
  131. padding: 0 0 5px 5px;
  132. }
  133. .aligned .vCheckboxLabel + p.help,
  134. .aligned .vCheckboxLabel + div.help {
  135. margin-top: -4px;
  136. }
  137. .colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField {
  138. width: 610px;
  139. }
  140. .checkbox-row p.help,
  141. .checkbox-row div.help {
  142. margin-left: 0;
  143. padding-left: 0;
  144. }
  145. fieldset .field-box {
  146. float: left;
  147. margin-right: 20px;
  148. }
  149. /* WIDE FIELDSETS */
  150. .wide label {
  151. width: 200px;
  152. }
  153. form .wide p,
  154. form .wide input + p.help,
  155. form .wide input + div.help {
  156. margin-left: 200px;
  157. }
  158. form .wide p.help,
  159. form .wide div.help {
  160. padding-left: 38px;
  161. }
  162. form div.help ul {
  163. padding-left: 0;
  164. margin-left: 0;
  165. }
  166. .colM fieldset.wide .vLargeTextField, .colM fieldset.wide .vXMLLargeTextField {
  167. width: 450px;
  168. }
  169. /* COLLAPSED FIELDSETS */
  170. fieldset.collapsed * {
  171. display: none;
  172. }
  173. fieldset.collapsed h2, fieldset.collapsed {
  174. display: block;
  175. }
  176. fieldset.collapsed {
  177. border: 1px solid #eee;
  178. border-radius: 4px;
  179. overflow: hidden;
  180. }
  181. fieldset.collapsed h2 {
  182. background: #f8f8f8;
  183. color: #666;
  184. }
  185. fieldset .collapse-toggle {
  186. color: #fff;
  187. }
  188. fieldset.collapsed .collapse-toggle {
  189. background: transparent;
  190. display: inline;
  191. color: #447e9b;
  192. }
  193. /* MONOSPACE TEXTAREAS */
  194. fieldset.monospace textarea {
  195. font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
  196. }
  197. /* SUBMIT ROW */
  198. .submit-row {
  199. padding: 12px 14px;
  200. margin: 0 0 20px;
  201. background: #f8f8f8;
  202. border: 1px solid #eee;
  203. border-radius: 4px;
  204. text-align: right;
  205. overflow: hidden;
  206. }
  207. body.popup .submit-row {
  208. overflow: auto;
  209. }
  210. .submit-row input {
  211. height: 35px;
  212. line-height: 15px;
  213. margin: 0 0 0 5px;
  214. }
  215. .submit-row input.default {
  216. margin: 0 0 0 8px;
  217. text-transform: uppercase;
  218. }
  219. .submit-row p {
  220. margin: 0.3em;
  221. }
  222. .submit-row p.deletelink-box {
  223. float: left;
  224. margin: 0;
  225. }
  226. .submit-row a.deletelink {
  227. display: block;
  228. background: #ba2121;
  229. border-radius: 4px;
  230. padding: 10px 15px;
  231. height: 15px;
  232. line-height: 15px;
  233. color: #fff;
  234. }
  235. .submit-row a.deletelink:focus,
  236. .submit-row a.deletelink:hover,
  237. .submit-row a.deletelink:active {
  238. background: #a41515;
  239. }
  240. /* CUSTOM FORM FIELDS */
  241. .vSelectMultipleField {
  242. vertical-align: top;
  243. }
  244. .vCheckboxField {
  245. border: none;
  246. }
  247. .vDateField, .vTimeField {
  248. margin-right: 2px;
  249. margin-bottom: 4px;
  250. }
  251. .vDateField {
  252. min-width: 6.85em;
  253. }
  254. .vTimeField {
  255. min-width: 4.7em;
  256. }
  257. .vURLField {
  258. width: 30em;
  259. }
  260. .vLargeTextField, .vXMLLargeTextField {
  261. width: 48em;
  262. }
  263. .flatpages-flatpage #id_content {
  264. height: 40.2em;
  265. }
  266. .module table .vPositiveSmallIntegerField {
  267. width: 2.2em;
  268. }
  269. .vTextField {
  270. width: 20em;
  271. }
  272. .vIntegerField {
  273. width: 5em;
  274. }
  275. .vBigIntegerField {
  276. width: 10em;
  277. }
  278. .vForeignKeyRawIdAdminField {
  279. width: 5em;
  280. }
  281. /* INLINES */
  282. .inline-group {
  283. padding: 0;
  284. margin: 0 0 30px;
  285. }
  286. .inline-group thead th {
  287. padding: 8px 10px;
  288. }
  289. .inline-group .aligned label {
  290. width: 160px;
  291. }
  292. .inline-related {
  293. position: relative;
  294. }
  295. .inline-related h3 {
  296. margin: 0;
  297. color: #666;
  298. padding: 5px;
  299. font-size: 13px;
  300. background: #f8f8f8;
  301. border-top: 1px solid #eee;
  302. border-bottom: 1px solid #eee;
  303. }
  304. .inline-related h3 span.delete {
  305. float: right;
  306. }
  307. .inline-related h3 span.delete label {
  308. margin-left: 2px;
  309. font-size: 11px;
  310. }
  311. .inline-related fieldset {
  312. margin: 0;
  313. background: #fff;
  314. border: none;
  315. width: 100%;
  316. }
  317. .inline-related fieldset.module h3 {
  318. margin: 0;
  319. padding: 2px 5px 3px 5px;
  320. font-size: 11px;
  321. text-align: left;
  322. font-weight: bold;
  323. background: #bcd;
  324. color: #fff;
  325. }
  326. .inline-group .tabular fieldset.module {
  327. border: none;
  328. }
  329. .inline-related.tabular fieldset.module table {
  330. width: 100%;
  331. }
  332. .last-related fieldset {
  333. border: none;
  334. }
  335. .inline-group .tabular tr.has_original td {
  336. padding-top: 2em;
  337. }
  338. .inline-group .tabular tr td.original {
  339. padding: 2px 0 0 0;
  340. width: 0;
  341. _position: relative;
  342. }
  343. .inline-group .tabular th.original {
  344. width: 0px;
  345. padding: 0;
  346. }
  347. .inline-group .tabular td.original p {
  348. position: absolute;
  349. left: 0;
  350. height: 1.1em;
  351. padding: 2px 9px;
  352. overflow: hidden;
  353. font-size: 9px;
  354. font-weight: bold;
  355. color: #666;
  356. _width: 700px;
  357. }
  358. .inline-group ul.tools {
  359. padding: 0;
  360. margin: 0;
  361. list-style: none;
  362. }
  363. .inline-group ul.tools li {
  364. display: inline;
  365. padding: 0 5px;
  366. }
  367. .inline-group div.add-row,
  368. .inline-group .tabular tr.add-row td {
  369. color: #666;
  370. background: #f8f8f8;
  371. padding: 8px 10px;
  372. border-bottom: 1px solid #eee;
  373. }
  374. .inline-group .tabular tr.add-row td {
  375. padding: 8px 10px;
  376. border-bottom: 1px solid #eee;
  377. }
  378. .inline-group ul.tools a.add,
  379. .inline-group div.add-row a,
  380. .inline-group .tabular tr.add-row td a {
  381. background: url(../img/icon-addlink.svg) 0 1px no-repeat;
  382. padding-left: 16px;
  383. font-size: 12px;
  384. }
  385. .empty-form {
  386. display: none;
  387. }
  388. /* RELATED FIELD ADD ONE / LOOKUP */
  389. .add-another, .related-lookup {
  390. margin-left: 5px;
  391. display: inline-block;
  392. vertical-align: middle;
  393. background-repeat: no-repeat;
  394. background-size: 14px;
  395. }
  396. .add-another {
  397. width: 16px;
  398. height: 16px;
  399. background-image: url(../img/icon-addlink.svg);
  400. }
  401. .related-lookup {
  402. width: 16px;
  403. height: 16px;
  404. background-image: url(../img/search.svg);
  405. }
  406. form .related-widget-wrapper ul {
  407. display: inline-block;
  408. margin-left: 0;
  409. padding-left: 0;
  410. }
  411. .clearable-file-input input {
  412. margin-top: 0;
  413. }