Debian Codegraph @

addons/point_of_sale/static/src/app/components/orderline/orderline.scss

raw
1 .orderline {
2 border-top: $border-width solid transparent;
3 border-bottom: $border-width solid transparent;
4 transition: $transition-base;
5
6 &:hover {
7 background-color: $o-gray-200;
8 }
9
10 @media (hover: none) {
11 &:hover {
12 background-color: $white;
13 }
14 }
15
16 &.selected {
17 background-color: var(--orderline-selected, #{$o-component-active-bg});
18 }
19
20 &.has-change::before {
21 content: "";
22 position: absolute;
23 top: -1px;
24 bottom: -1px;
25 width: 6px;
26 background-color: $o-brand-primary;
27 }
28
29 &.has-change:first-child::before, &.has-change:not(.has-change + .has-change)::before {
30 /* First has-change*/
31 top: 0;
32 border-top-left-radius: 3px;
33 border-top-right-radius: 3px;
34 }
35
36 &.has-change:not(:has(+ .has-change))::before, &.has-change:has(+ .orderline-combo)::before{
37 /* Last has-change*/
38 bottom: 0;
39 border-bottom-left-radius: 3px;
40 border-bottom-right-radius: 3px;
41 }
42 }
43
44
45 .orderline-combo {
46 &.has-change::before {
47 left: -3px;
48 }
49 &.has-change:not(:has(+ .has-change))::before{
50 border-radius: 3px;
51 }
52 }