Debian Codegraph @

addons/hr_attendance/static/src/scss/kiosk/hr_attendance.scss

raw
1 :root {
2 @include media-breakpoint-up(lg) {
3 // Allow to handle root font size whether or not the website is installed
4 --bs-root-font-size: #{$o-attendance-font-size-root-lg};
5 --root-font-size: #{$o-attendance-font-size-root-lg};
6 }
7
8 @include media-breakpoint-up(xxl) {
9 --bs-root-font-size: #{$o-attendance-font-size-root-xxl};
10 --root-font-size: #{$o-attendance-font-size-root-xxl};
11 }
12
13 // UW
14 @media (min-width: 2560px) {
15 --bs-root-font-size: #{$o-attendance-font-size-root-uw};
16 --root-font-size: #{$o-attendance-font-size-root-uw};
17 }
18
19 //4K
20 @media screen and (min-width: 3839px), (min-height: 3839px) {
21 --bs-root-font-size: #{$o-attendance-font-size-root-4k};
22 --root-font-size: #{$o-attendance-font-size-root-4k};
23 }
24 }
25
26 .o_hr_attendance_kiosk_mode {
27 --kiosk-searchBar-height: 70px;
28 --kiosk-searchBar-height--mobile: 110px;
29 --kiosk-sidebar-width: 320px;
30 }
31
32 .o_hr_attendance_kiosk_company_image {
33 max-height: 10vh;
34 @include media-breakpoint-up(sm) {
35 max-height: 7 vh;
36 }
37 }
38
39 .o_mobile_barcode {
40 width: max-content;
41 top: -200%;
42 }
43
44 .o_hr_attendance_install_btn {
45 transform: scale(0.75);
46 left: 115%;
47 top: -200%;
48 }
49
50 .o_hr_kiosk_sidebar {
51 height: calc(100dvh - var(--kiosk-searchBar-height));
52 min-width: var(--kiosk-sidebar-width);
53 }
54
55 .o_hr_kiosk_manual_selection {
56 height: calc(100dvh - var(--kiosk-searchBar-height));
57 grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
58 grid-template-rows: max-content;
59
60 img {
61 width:4rem;
62 }
63
64 @include media-breakpoint-down(md) {
65 height: calc(100dvh - var(--kiosk-searchBar-height--mobile));
66 }
67 }
68
69
70 .o_hr_attendance_kiosk_card {
71 min-width: 75%;
72 @include media-breakpoint-up(md) {
73 min-width: 50%;
74 }
75 @include media-breakpoint-up(xl) {
76 min-width: 35%;
77 }
78 }
79
80 .o_hr_attendance_kiosk_mode {
81 .o_pager_counter {
82 min-width: max-content;
83 }
84 }
85
86 .o_hr_kiosk_url_media{
87 a{
88 width: 100% !important;
89 }
90 }
91 .o_attendance_form .o_content{
92 overflow: hidden !important;
93 }
94 // Shared with web client and login screen
95 .o_attendance_background{
96 background: {
97 size: cover;
98 attachment: fixed;
99 color: var(--homeMenu-bg-color, #{$o-gray-200});
100 image: var(--homeMenu-bg-image, url("/hr_attendance/static/img/background-light.svg"));
101 }
102 }
103
104 .o_hr_attendance_kiosk_body {
105 height: 100vh;
106 overflow: hidden;
107 }
108
109 .o_select_employee{
110 display: flex;
111 align-items: center;
112 gap: 0.5rem;
113 @include media-breakpoint-down(sm){
114 flex-direction: column;
115 align-items: stretch;
116 }
117 }
118
119 .o_select_employee_display {
120 display: flex;
121 align-items: center;
122 width: 100%;
123 cursor: pointer;
124
125 &:focus-within {
126 border-color: $input-focus-border-color;
127 box-shadow: 0 0 0 0.25rem rgba($primary, 0.25);
128 }
129
130 img {
131 width: 24px;
132 height: 24px;
133 border-radius: 50%;
134 object-fit: cover;
135 margin-right: 0.5rem;
136 }
137 }
138
139 .o_select_employee_option {
140 width: 100%;
141 position: relative;
142 .o-autocomplete--input {
143 width: 100%;
144 font-family: $input-font-family;
145 @include font-size($input-font-size);
146 font-weight: $input-font-weight;
147 line-height: $input-line-height;
148 color: $input-color;
149 border: 0px;
150 appearance: none;
151 @include transition($input-transition);
152
153 &:focus {
154 outline: none; // remove default blue outline
155 }
156 }
157
158 .o-autocomplete--dropdown-menu {
159 position: absolute !important;
160 width:110%;
161 left:-5% !important;
162 top:42px !important;
163 max-height: 300px!important;
164 overflow-y: auto;
165 .dropdown-item {
166 padding: map-get($spacers, 2);
167 font-size: $input-font-size;
168 }
169 }
170
171 .o-autocomplete--dropdown-item a[aria-selected="true"]{
172 background-color: #f0f0f0 !important;
173 }
174
175 .dropdown-caret-icon {
176 position: absolute;
177 right: 12px;
178 top: 50%;
179 transform: translateY(-50%);
180 pointer-events: none;
181 }
182 }