Debian Codegraph @

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

raw
1 .max-width-325px {
2 max-width: 325px;
3 }
4
5 .numpad-4-cols {
6 grid-template-columns: repeat(4, 1fr);
7 }
8
9 .modal-body .numpad-button {
10 @include media-breakpoint-down(xl) {
11 padding: map-get($spacers, 2) 0;
12 }
13 }
14
15 .numpad-button {
16 @include media-breakpoint-down(xl) {
17 padding: 0;
18 }
19 background-color: var(--bg, var(--btn-bg));
20 border: $border-width solid var(--hover-bg, var(--border-color));
21
22 &::after {
23 content: '';
24 position: absolute;
25 top: 0;
26 left: 0px;
27 right: 0;
28 bottom: 0;
29 border: $border-width * .5 solid var(--border-color);
30 pointer-events: none;
31 border-radius: inherit;
32 }
33
34 &:where(:not(.modal-body .numpad-button, .table-selector .numpad-button)) {
35 &:first-child {
36 border-radius: $btn-border-radius 0 0 0 !important;
37 }
38
39 &:nth-child(4) {
40 border-radius: 0 $btn-border-radius 0 0 !important;
41 }
42
43 &:nth-last-child(4) {
44 border-radius: 0 0 0 $btn-border-radius !important;
45 }
46
47 &:last-child {
48 border-radius: 0 0 $btn-border-radius 0 !important;
49 }
50 }
51
52 &:hover:where(:not(.active)) {
53 background-color: var(--hover-bg, var(--btn-hover-bg));
54 }
55
56 &.active, &:active {
57 --border-color: var(--hover-bg, #{$o-component-active-border});
58 --btn-active-bg: var(--bg, #{$o-component-active-bg});
59 }
60
61 &:disabled {
62 opacity: 1;
63 background-color: $o-gray-200;
64 }
65 }
66
67 .numpad-3-cols {
68 grid-template-columns: repeat(3, 1fr);
69 }