base.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright 2021-2024 Avaiga Private Limited
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
  5. * the License. You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
  10. * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
  11. * specific language governing permissions and limitations under the License.
  12. */
  13. html,
  14. body {
  15. min-height: 100%;
  16. }
  17. #root {
  18. height: 100%;
  19. margin: var(--root-margin, 0) !important;
  20. }
  21. /* Color mode body */
  22. .taipy-dark,
  23. .taipy-light {
  24. min-height: 100%;
  25. }
  26. #root main {
  27. min-width: 0;
  28. }
  29. .main {
  30. min-width: 0;
  31. max-width: 100%;
  32. }
  33. /*************************************************
  34. CUSTOM SCROLLBAR
  35. **************************************************/
  36. * {
  37. -webkit-overflow-scrolling: touch;
  38. /* Firefox scrollbar */
  39. scrollbar-width: thin;
  40. scrollbar-color: var(--custom-scrollbar-thumb-color) var(--custom-scrollbar-rail-color);
  41. }
  42. /* Webkit scrollbar */
  43. *::-webkit-scrollbar {
  44. width: var(--custom-scrollbar-width);
  45. }
  46. *::-webkit-scrollbar-track {
  47. background: var(--custom-scrollbar-rail-color);
  48. }
  49. *::-webkit-scrollbar-thumb {
  50. background-color: var(--custom-scrollbar-thumb-color);
  51. border-radius: 20px;
  52. border: none;
  53. }
  54. /*************************************************
  55. TABLES
  56. **************************************************/
  57. table {
  58. max-width: 100%;
  59. }