tree.css 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. // Copyright (C) 2021 The Syncthing Authors.
  3. //
  4. // This Source Code Form is subject to the terms of the Mozilla Public
  5. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  6. // You can obtain one at https://mozilla.org/MPL/2.0/.
  7. */
  8. .fancytree-container {
  9. cursor: pointer;
  10. width: 100%;
  11. }
  12. .fancytree-hide {
  13. visibility: collapse;
  14. }
  15. /* Node needs to be block, and expander, icon and title
  16. inline-block to properly wrap unbreakable text. */
  17. .fancytree-node {
  18. display: block;
  19. white-space: nowrap;
  20. /* expander 16px + icon 16px + title padding 8px */
  21. padding-right: 40px;
  22. }
  23. .fancytree-expander,
  24. .fancytree-icon,
  25. .fancytree-title {
  26. display: inline-block;
  27. }
  28. .fancytree-expander,
  29. .fancytree-icon {
  30. margin-top: 4px;
  31. vertical-align: top;
  32. width: 16px;
  33. }
  34. .fancytree-childcounter {
  35. background: #777;
  36. border-radius: 10px;
  37. border: 1px solid gray;
  38. color: #fff;
  39. font-size: 13px;
  40. opacity: .75;
  41. padding: 2px 3px;
  42. position: relative;
  43. right: 8px;
  44. top: -9px;
  45. user-select: none;
  46. }
  47. .fancytree-title {
  48. padding-left: 8px;
  49. white-space: normal;
  50. word-break: break-all;
  51. }