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.cssView source
- /**
- * @file
- * 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.
- */
-
- /* Narrow screens */
- .layout-region {
- box-sizing: border-box;
- }
-
- /* Wide screens */
- @media
- screen and (min-width: 780px),
- (orientation: landscape) and (min-device-height: 780px) {
-
- .layout-region-pricelist-main,
- .layout-region-pricelist-footer {
- float: left; /* LTR */
- width: 65%;
- padding-right: 2em; /* LTR */
- box-sizing: border-box;
- }
-
- [dir="rtl"] .layout-region-pricelist-main,
- [dir="rtl"] .layout-region-pricelist-footer {
- float: right;
- padding-left: 2em;
- padding-right: 0;
- }
-
- .layout-region-pricelist-secondary {
- float: right; /* LTR */
- width: 35%;
- }
-
- [dir="rtl"] .layout-region-pricelist-secondary {
- float: left;
- }
- }
-
- /**
- * The vertical toolbar mode gets triggered for narrow screens, which throws off
- * the intent of media queries written for the viewport width. When the vertical
- * toolbar is on, we need to suppress layout for the original media width + the
- * toolbar width (240px). In this case, 240px + 780px.
- */
- @media
- screen and (max-width: 1020px) {
-
- .toolbar-vertical.toolbar-tray-open .layout-region-pricelist-main,
- .toolbar-vertical.toolbar-tray-open .layout-region-pricelist-footer,
- .toolbar-vertical.toolbar-tray-open .layout-region-pricelist-secondary {
- float: none;
- width: auto;
- padding-right: 0;
- }
- }