You are here

subscription.form.css in Commerce Recurring Framework 8

Styles for the subscription add/edit form.

Copied from node-module.css

File

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