| 1 |
/* --- Fonts --- */ |
| 2 |
|
| 3 |
@font-face{ |
| 4 |
font-family: 'Inconsolata'; |
| 5 |
src: url(../fonts/Inconsolata.otf); |
| 6 |
} |
| 7 |
|
| 8 |
button { |
| 9 |
transition: all 150ms linear; |
| 10 |
} |
| 11 |
|
| 12 |
select > option { |
| 13 |
background: $light; |
| 14 |
} |
| 15 |
|
| 16 |
.navbar-menu { |
| 17 |
:not(.btn-check) + .btn:active, .btn:first-child:active{ |
| 18 |
--btn-active-border-color: transparent; |
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
.btn-light { |
| 23 |
--btn-hover-bg: #{$o-gray-100}; |
| 24 |
--btn-hover-border-color: transparent; |
| 25 |
--btn-active-bg: #{$o-gray-300}; |
| 26 |
--btn-color: #{$o-gray-900}; |
| 27 |
--btn-active-border-color: transparent; |
| 28 |
} |
| 29 |
|
| 30 |
.btn-secondary { |
| 31 |
--btn-bg: #F4F4F4; |
| 32 |
--btn-border-color: #cccccc; |
| 33 |
--btn-color: #{$o-gray-900}; |
| 34 |
--btn-disabled-bg: var(--btn-bg); |
| 35 |
--btn-disabled-color: #{$o-gray-700}; |
| 36 |
--btn-disabled-border-color: var(--btn-border-color); |
| 37 |
&:disabled, &.disabled { |
| 38 |
filter: saturate(0); |
| 39 |
} |
| 40 |
} |
| 41 |
|
| 42 |
.bg-secondary { |
| 43 |
--background-color: #F4F4F4; |
| 44 |
} |
| 45 |
|
| 46 |
[type="text"], [type="password"], [type="number"], [type="email"], [type="tel"], textarea, select { |
| 47 |
width: 100%; |
| 48 |
display: block; |
| 49 |
outline: none; |
| 50 |
} |
| 51 |
|
| 52 |
.form-select { |
| 53 |
background-color: $body-bg; |
| 54 |
} |
| 55 |
|
| 56 |
.text-large { |
| 57 |
font-size: large; |
| 58 |
} |
| 59 |
|
| 60 |
/* --- Display --- */ |
| 61 |
|
| 62 |
.z-1000 { |
| 63 |
z-index: 1000; |
| 64 |
} |
| 65 |
|
| 66 |
.h-inherit { |
| 67 |
height: inherit; |
| 68 |
} |
| 69 |
|
| 70 |
/* ********* The leftpane contains the order, numpad and paypad ********* */ |
| 71 |
|
| 72 |
.leftpane { |
| 73 |
width: $pos-left-pane-width; |
| 74 |
max-width: $pos-left-pane-width; |
| 75 |
|
| 76 |
@include media-breakpoint-down(xl) { |
| 77 |
width: $pos-left-pane-width-tablet; |
| 78 |
max-width: $pos-left-pane-width-tablet; |
| 79 |
} |
| 80 |
} |
| 81 |
|
| 82 |
|
| 83 |
@media screen and (max-width: 992px) { |
| 84 |
.order, |
| 85 |
.leftpane { |
| 86 |
max-width: inherit; |
| 87 |
border-right: none; |
| 88 |
} |
| 89 |
} |
| 90 |
|
| 91 |
.pos .numpad { |
| 92 |
/*rtl:ignore*/ |
| 93 |
direction: ltr; |
| 94 |
} |
| 95 |
.o_mobile_overscroll { |
| 96 |
overscroll-behavior: none; |
| 97 |
} |
| 98 |
|
| 99 |
.pos .button.validation.load-order-button { |
| 100 |
height: calc(var(--btn-height-size) * 2); |
| 101 |
} |
| 102 |
|
| 103 |
@media screen and (max-width: 992px) { |
| 104 |
.pos .button.validation.load-order-button { |
| 105 |
height: 70px; |
| 106 |
} |
| 107 |
} |
| 108 |
|
| 109 |
/* ********* The Webkit Scrollbar ********* */ |
| 110 |
|
| 111 |
.pos.big-scrollbars *::-webkit-scrollbar{ |
| 112 |
width: 40px; |
| 113 |
height: 40px; |
| 114 |
} |
| 115 |
.pos.big-scrollbars *::-webkit-scrollbar-track{ |
| 116 |
background: $gray-200; |
| 117 |
border-left: none; |
| 118 |
} |
| 119 |
.pos.big-scrollbars *::-webkit-scrollbar-thumb{ |
| 120 |
background: rgb(168,168,168); |
| 121 |
min-height: 40px; |
| 122 |
border-radius: 3px; |
| 123 |
} |
| 124 |
.pos.big-scrollbars *::-webkit-scrollbar-button{ |
| 125 |
width: 40px; |
| 126 |
height: 40px; |
| 127 |
border-radius: 3px; |
| 128 |
background: rgb(210,210,210); |
| 129 |
background-size: cover; |
| 130 |
} |
| 131 |
.pos.big-scrollbars *::-webkit-scrollbar-button:decrement{ |
| 132 |
background-image: url('../img/scroll-up.png'); |
| 133 |
} |
| 134 |
.pos.big-scrollbars *::-webkit-scrollbar-button:increment{ |
| 135 |
background-image: url('../img/scroll-down.png'); |
| 136 |
} |
| 137 |
|
| 138 |
/* Fade */ |
| 139 |
|
| 140 |
.o-fade { |
| 141 |
transition: opacity .2s; |
| 142 |
} |
| 143 |
|
| 144 |
.o-fade-enter, .o-fade-leave { |
| 145 |
opacity: 0; |
| 146 |
} |
| 147 |
|
| 148 |
/* |
| 149 |
We block the top-header when a temp screen is displayed. |
| 150 |
Similar to blocking the whole ui when a popup is displayed. |
| 151 |
*/ |
| 152 |
/* .pos .block-top-header { |
| 153 |
position: absolute; |
| 154 |
left: 0; |
| 155 |
top: 0; |
| 156 |
width: 100%; |
| 157 |
height:100%; |
| 158 |
background-color: rgba(0,0,0,0.5); |
| 159 |
z-index:1000; |
| 160 |
} */ |
| 161 |
|
| 162 |
/* Debug */ |
| 163 |
|
| 164 |
.drag-handle { |
| 165 |
/* See o-grab-cursor mixin */ |
| 166 |
cursor: url(/web/static/img/openhand.cur), grab; |
| 167 |
} |
| 168 |
|
| 169 |
.drag-handle:active { |
| 170 |
cursor: grabbing; |
| 171 |
} |
| 172 |
.pos .button.validation.with-more-button { |
| 173 |
height: calc(var(--btn-height-size) * 2); |
| 174 |
} |
| 175 |
|
| 176 |
// Set all the colors but the "no-color" one |
| 177 |
@for $size from 2 through length($o-colors) { |
| 178 |
.o_colorlist_item_color_transparent_#{$size - 1} { |
| 179 |
$-border-color: adjust-color(nth($o-colors, $size), $lightness: 15%, $saturation: 5%); |
| 180 |
$-background-color: adjust-color(nth($o-colors, $size), $lightness: 25%, $saturation: 5%); |
| 181 |
--bg: #{$-background-color}; |
| 182 |
--hover-bg: #{darken($-background-color, 5%)}; |
| 183 |
--border-color: #{$-border-color}; |
| 184 |
} |
| 185 |
|
| 186 |
.o_colorlist_item_numpad_color_#{$size - 1} { |
| 187 |
$-border-color: adjust-color(nth($o-colors, $size), $lightness: 15%, $saturation: 5%); |
| 188 |
$-background-color: adjust-color(nth($o-colors, $size), $lightness: 25%, $saturation: 5%); |
| 189 |
--bg: #{$-background-color}; |
| 190 |
--border-color: #{$-border-color}; |
| 191 |
--hover-bg: #{darken($-background-color, 5%)}; |
| 192 |
} |
| 193 |
|
| 194 |
.o_colorlist_item_color_#{$size - 1} { |
| 195 |
$-bg: adjust-color(nth($o-colors, $size), $lightness: 25%, $saturation: 15%); |
| 196 |
$-color: adjust-color(nth($o-colors, $size), $lightness: -40%, $saturation: -15%); |
| 197 |
@include o-print-color($-bg, background-color, bg-opacity); |
| 198 |
@include o-print-color($-color, color, text-opacity); |
| 199 |
border-color: #{darken(nth($o-colors, $size), 20%)}; |
| 200 |
&:hover { |
| 201 |
border-color: #{darken(nth($o-colors, $size), 20%)}; |
| 202 |
} |
| 203 |
} |
| 204 |
|
| 205 |
.o_colorlist_item_wo_border_color_#{$size - 1} { |
| 206 |
$-bg: adjust-color(nth($o-colors, $size), $lightness: 25%, $saturation: 15%); |
| 207 |
$-color: adjust-color(nth($o-colors, $size), $lightness: -40%, $saturation: -15%); |
| 208 |
@include o-print-color($-bg, background-color, bg-opacity); |
| 209 |
@include o-print-color($-color, color, text-opacity); |
| 210 |
} |
| 211 |
} |
| 212 |
|
| 213 |
// this is to override the property in `web/static/src/webclient/webclient_layout.scss' |
| 214 |
body.modal-open { |
| 215 |
position: initial !important; |
| 216 |
} |
| 217 |
|
| 218 |
// External CSS to wrap long notes coming from another component (TagsList) |
| 219 |
.pos .internal-note-container span { |
| 220 |
text-align: start; |
| 221 |
} |
| 222 |
|
| 223 |
.pos .internal-note-container span > div { |
| 224 |
white-space: normal; |
| 225 |
} |