You are here

civicrm_entity.form.css in CiviCRM Entity 8.3

Styles for the CiviCRM entity add/edit form.

Copied from node-module.css

File

css/civicrm_entity.form.css
View source
  1. /**
  2. * @file
  3. * Styles for the CiviCRM entity add/edit form.
  4. *
  5. * Copied from node-module.css
  6. */
  7. /* Narrow screens */
  8. .layout-region {
  9. box-sizing: border-box;
  10. }
  11. .layout-region-civicrm-entity-footer__content {
  12. border-top: 1px solid #bebfb9;
  13. padding-top: 0.5em;
  14. margin-top: 1.5em;
  15. }
  16. /* Wide screens */
  17. @media
  18. screen and (min-width: 780px),
  19. (orientation: landscape) and (min-device-height: 780px) {
  20. .layout-region-civicrm-entity-main,
  21. .layout-region-civicrm-entity-footer {
  22. float: left; /* LTR */
  23. width: 65%;
  24. padding-right: 2em; /* LTR */
  25. box-sizing: border-box;
  26. }
  27. .layout-region-civicrm-entity-footer__content {
  28. margin-top: 0.5em;
  29. }
  30. [dir="rtl"] .layout-region-civicrm-entity-main,
  31. [dir="rtl"] .layout-region-civicrm-entity-footer {
  32. float: right;
  33. padding-left: 2em;
  34. padding-right: 0;
  35. }
  36. .layout-region-civicrm-entity-secondary {
  37. float: right; /* LTR */
  38. width: 35%;
  39. }
  40. [dir="rtl"] .layout-region-civicrm-entity-secondary {
  41. float: left;
  42. }
  43. /* @todo File an issue to add a standard class to all text-like inputs */
  44. .layout-region-civicrm-entity-secondary .form-autocomplete,
  45. .layout-region-civicrm-entity-secondary .form-text,
  46. .layout-region-civicrm-entity-secondary .form-tel,
  47. .layout-region-civicrm-entity-secondary .form-email,
  48. .layout-region-civicrm-entity-secondary .form-url,
  49. .layout-region-civicrm-entity-secondary .form-search,
  50. .layout-region-civicrm-entity-secondary .form-number,
  51. .layout-region-civicrm-entity-secondary .form-color,
  52. .layout-region-civicrm-entity-secondary textarea {
  53. box-sizing: border-box;
  54. width: 100%;
  55. max-width: 100%;
  56. }
  57. }
  58. /**
  59. * The vertical toolbar mode gets triggered for narrow screens, which throws off
  60. * the intent of media queries written for the viewport width. When the vertical
  61. * toolbar is on, we need to suppress layout for the original media width + the
  62. * toolbar width (240px). In this case, 240px + 780px.
  63. */
  64. @media
  65. screen and (max-width: 1020px) {
  66. .toolbar-vertical.toolbar-tray-open .layout-region-civicrm-entity-main,
  67. .toolbar-vertical.toolbar-tray-open .layout-region-civicrm-entity-footer,
  68. .toolbar-vertical.toolbar-tray-open .layout-region-civicrm-entity-secondary {
  69. float: none;
  70. width: auto;
  71. padding-right: 0;
  72. }
  73. }