diff --git a/sass/css/_shop.scss b/sass/css/_shop.scss index 02dfa5db..5c71fbc1 100644 --- a/sass/css/_shop.scss +++ b/sass/css/_shop.scss @@ -201,22 +201,6 @@ button { width: 50%; padding-right: 30px; } - .crate-mode { - text-align: right; - width: 50%; - - a { - cursor: pointer; - margin-right: 1rem; - color: inherit; - text-decoration: none; - padding-bottom: 5px; - } - a.active { - font-weight: 700; - border-bottom: 3px solid $btn-primary-2; - } - } } .summary { @@ -555,6 +539,41 @@ button { .crate-info { padding: 1rem 0 0; } + + .crate-bar { + width: 100%; + + .crate-mode { + text-align: left; + width: 75%; + display: inline; + + a { + cursor: pointer; + margin-right: 1rem; + color: inherit; + text-decoration: none; + padding-bottom: 5px; + } + a.active { + font-weight: 700; + border-bottom: 3px solid $btn-primary-2; + } + } + .delete-crate { + text-decoration: none; + cursor: pointer; + text-align: right; + display: inline-flex; + width: 25%; + color: inherit; + img { + margin-left: 1rem; + align-self: center; + } + } + } + } } diff --git a/static/css/order-hardware.css b/static/css/order-hardware.css index 433172d0..d7c4ea33 100644 --- a/static/css/order-hardware.css +++ b/static/css/order-hardware.css @@ -61,6 +61,26 @@ text-decoration: none; } +#accordion_crates #accordion_crates_add .accordion-button:after { + background-image: url("/images/shop/icon-add.svg"); +} + +#accordion_crates .accordion-header button { + font-weight: bold; +} + +#accordion_crates, +#accordion_crates .accordion-header, +#accordion_crates .accordion-button, +#accordion_crates .accordion-item { + background-color: inherit; +} + +#accordion_crates .accordion-button:not(.collapsed) { + background-color: rgba(26, 109, 147, 0.1); +} + + /* ##Device = Tablets, Ipads (portrait) ##Screen = B/w 768px to 1024px @@ -108,11 +128,11 @@ } #root-shop .panel .control > .description, - #root-shop .panel .control > .crate-mode { + #root-shop .crate-mode { width: 100%; } - #root-shop .panel .control > .crate-mode { + #root-shop .crate-mode { text-align: left; } @@ -308,11 +328,11 @@ } #root-shop .panel .control > .description, - #root-shop .panel .control > .crate-mode { + #root-shop .crate-mode { width: 100%; } - #root-shop .panel .control > .crate-mode { + #root-shop .crate-mode { text-align: left; } diff --git a/static/js/shop/Crate.jsx b/static/js/shop/Crate.jsx index e5f8a37a..b59ca3ee 100644 --- a/static/js/shop/Crate.jsx +++ b/static/js/shop/Crate.jsx @@ -20,13 +20,12 @@ export function Crate({crate_index}) { return (