splitters.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. /* This file is loaded by both browser.xul and toolbox.xul. Therefore, rules
  5. defined here can not rely on toolbox.xul variables. */
  6. /* Splitters */
  7. :root {
  8. /* Define the widths of the draggable areas on each side of a splitter. top
  9. and bottom widths are used for horizontal splitters, inline-start and
  10. inline-end for side splitters.*/
  11. --devtools-splitter-top-width: 2px;
  12. --devtools-splitter-bottom-width: 2px;
  13. /* Small draggable area on inline-start to avoid overlaps on scrollbars.*/
  14. --devtools-splitter-inline-start-width: 1px;
  15. --devtools-splitter-inline-end-width: 4px;
  16. }
  17. :root[devtoolstheme="light"] {
  18. /* These variables are used in browser.xul but inside the toolbox they are overridden by --theme-splitter-color */
  19. --devtools-splitter-color: #dde1e4;
  20. }
  21. :root[devtoolstheme="dark"],
  22. :root[devtoolstheme="firebug"] {
  23. --devtools-splitter-color: #42484f;
  24. }
  25. .devtools-horizontal-splitter,
  26. .devtools-side-splitter {
  27. -moz-appearance: none;
  28. background-image: none;
  29. border: 0;
  30. border-style: solid;
  31. border-color: transparent;
  32. background-color: var(--devtools-splitter-color);
  33. background-clip: content-box;
  34. position: relative;
  35. box-sizing: border-box;
  36. /* Positive z-index positions the splitter on top of its siblings and makes
  37. it clickable on both sides. */
  38. z-index: 1;
  39. }
  40. .devtools-horizontal-splitter {
  41. min-height: calc(var(--devtools-splitter-top-width) +
  42. var(--devtools-splitter-bottom-width) + 1px);
  43. border-top-width: var(--devtools-splitter-top-width);
  44. border-bottom-width: var(--devtools-splitter-bottom-width);
  45. margin-top: calc(-1 * var(--devtools-splitter-top-width) - 1px);
  46. margin-bottom: calc(-1 * var(--devtools-splitter-bottom-width));
  47. cursor: n-resize;
  48. }
  49. .devtools-side-splitter {
  50. min-width: calc(var(--devtools-splitter-inline-start-width) +
  51. var(--devtools-splitter-inline-end-width) + 1px);
  52. border-inline-start-width: var(--devtools-splitter-inline-start-width);
  53. border-inline-end-width: var(--devtools-splitter-inline-end-width);
  54. margin-inline-start: calc(-1 * var(--devtools-splitter-inline-start-width) - 1px);
  55. margin-inline-end: calc(-1 * var(--devtools-splitter-inline-end-width));
  56. cursor: e-resize;
  57. }
  58. .devtools-horizontal-splitter.disabled,
  59. .devtools-side-splitter.disabled {
  60. pointer-events: none;
  61. }