You are here

pricelist.form.css in Commerce Pricelist 8.2

Styles for the price list add/edit form.

Copied from node.module.css

@todo Make a generic version in Entity API so we can stop copying it.

File

css/pricelist.form.css
View source
  1. /**
  2. * @file
  3. * Styles for the price list add/edit form.
  4. *
  5. * Copied from node.module.css
  6. *
  7. * @todo Make a generic version in Entity API so we can stop copying it.
  8. */
  9. /* Narrow screens */
  10. .layout-region {
  11. box-sizing: border-box;
  12. }
  13. /* Wide screens */
  14. @media
  15. screen and (min-width: 780px),
  16. (orientation: landscape) and (min-device-height: 780px) {
  17. .layout-region-pricelist-main,
  18. .layout-region-pricelist-footer {
  19. float: left; /* LTR */
  20. width: 65%;
  21. padding-right: 2em; /* LTR */
  22. box-sizing: border-box;
  23. }
  24. [dir="rtl"] .layout-region-pricelist-main,
  25. [dir="rtl"] .layout-region-pricelist-footer {
  26. float: right;
  27. padding-left: 2em;
  28. padding-right: 0;
  29. }
  30. .layout-region-pricelist-secondary {
  31. float: right; /* LTR */
  32. width: 35%;
  33. }
  34. [dir="rtl"] .layout-region-pricelist-secondary {
  35. float: left;
  36. }
  37. }
  38. /**
  39. * The vertical toolbar mode gets triggered for narrow screens, which throws off
  40. * the intent of media queries written for the viewport width. When the vertical
  41. * toolbar is on, we need to suppress layout for the original media width + the
  42. * toolbar width (240px). In this case, 240px + 780px.
  43. */
  44. @media
  45. screen and (max-width: 1020px) {
  46. .toolbar-vertical.toolbar-tray-open .layout-region-pricelist-main,
  47. .toolbar-vertical.toolbar-tray-open .layout-region-pricelist-footer,
  48. .toolbar-vertical.toolbar-tray-open .layout-region-pricelist-secondary {
  49. float: none;
  50. width: auto;
  51. padding-right: 0;
  52. }
  53. }