toggle.css 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. /**************************************************************
  14. TAIPY TOGGLE
  15. ***************************************************************/
  16. /*************************************************
  17. OVERRIDES / NORMALIZATION
  18. **************************************************/
  19. .taipy-toggle {
  20. display: inline-flex;
  21. z-index: 10;
  22. min-height: 48px;
  23. align-items: center;
  24. gap: 0.3em;
  25. }
  26. .taipy-toggle .MuiToggleButtonGroup-root[aria-label='Theme mode'] {
  27. background-color: var(--color-background);
  28. }
  29. /*************************************************
  30. MODIFIER CLASSES
  31. **************************************************/
  32. /* relative : Reset the theme toggle position to fit page flow */
  33. .taipy-toggle.relative {
  34. position: relative;
  35. top: auto;
  36. left: auto;
  37. }
  38. /* nolabel : remove toggle label */
  39. .taipy-toggle.nolabel .MuiTypography-root {
  40. display: none;
  41. }
  42. .taipy-toggle.toggle-navbar .MuiButtonBase-root {
  43. border: 0;
  44. border-radius: 0;
  45. border-bottom: 1px solid;
  46. border-color: var(--color-contrast);
  47. color: var(--color-contrast);
  48. background-color: transparent;
  49. }
  50. .taipy-toggle.toggle-navbar .MuiButtonBase-root.Mui-selected {
  51. border-color: var(--color-primary);
  52. border-bottom: 2px solid;
  53. color: var(--color-primary);
  54. }