toggle.css 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. }
  23. .taipy-toggle .MuiToggleButtonGroup-root[aria-label='Theme mode'] {
  24. background-color: var(--color-background);
  25. }
  26. /*************************************************
  27. MODIFIER CLASSES
  28. **************************************************/
  29. /* relative : Reset the theme toggle position to fit page flow */
  30. .taipy-toggle.relative {
  31. position: relative;
  32. top: auto;
  33. left: auto;
  34. }
  35. /* nolabel : remove toggle label */
  36. .taipy-toggle.nolabel .MuiTypography-root {
  37. display: none;
  38. }
  39. .taipy-toggle.toggle-navbar .MuiButtonBase-root {
  40. border: 0;
  41. border-radius: 0;
  42. border-bottom: 1px solid;
  43. border-color: var(--color-contrast);
  44. color: var(--color-contrast);
  45. background-color: transparent;
  46. }
  47. .taipy-toggle.toggle-navbar .MuiButtonBase-root.Mui-selected {
  48. border-color: var(--color-primary);
  49. border-bottom: 2px solid;
  50. color: var(--color-primary);
  51. }