highlighter.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. .highlighter-container {
  5. pointer-events: none;
  6. }
  7. .highlighter-controls {
  8. position: absolute;
  9. top: 0;
  10. left: 0;
  11. }
  12. .highlighter-outline-container {
  13. overflow: hidden;
  14. position: relative;
  15. }
  16. .highlighter-outline {
  17. position: absolute;
  18. }
  19. .highlighter-outline[hidden] {
  20. opacity: 0;
  21. pointer-events: none;
  22. display: -moz-box;
  23. }
  24. .highlighter-outline:not([disable-transitions]) {
  25. transition-property: opacity, top, left, width, height;
  26. transition-duration: 0.1s;
  27. transition-timing-function: linear;
  28. }
  29. /*
  30. * Node Infobar
  31. */
  32. .highlighter-nodeinfobar-container {
  33. position: absolute;
  34. max-width: 95%;
  35. }
  36. .highlighter-nodeinfobar-container[hidden] {
  37. opacity: 0;
  38. pointer-events: none;
  39. display: -moz-box;
  40. }
  41. .highlighter-nodeinfobar-container:not([disable-transitions]),
  42. .highlighter-nodeinfobar-container[disable-transitions][force-transitions] {
  43. transition-property: transform, opacity, top, left;
  44. transition-duration: 0.1s;
  45. transition-timing-function: linear;
  46. }
  47. .highlighter-nodeinfobar-text {
  48. overflow: hidden;
  49. white-space: nowrap;
  50. text-overflow: ellipsis;
  51. direction: ltr;
  52. }
  53. .highlighter-nodeinfobar-button > .toolbarbutton-text {
  54. display: none;
  55. }
  56. .highlighter-nodeinfobar-container:not([locked]):not(:hover) > .highlighter-nodeinfobar > .highlighter-nodeinfobar-button {
  57. visibility: hidden;
  58. }
  59. .highlighter-nodeinfobar-container[locked] > .highlighter-nodeinfobar,
  60. .highlighter-nodeinfobar-container:not([locked]):hover > .highlighter-nodeinfobar {
  61. pointer-events: auto;
  62. }
  63. html|*.highlighter-nodeinfobar-id,
  64. html|*.highlighter-nodeinfobar-classes,
  65. html|*.highlighter-nodeinfobar-pseudo-classes,
  66. html|*.highlighter-nodeinfobar-tagname {
  67. -moz-user-select: text;
  68. -moz-user-focus: normal;
  69. cursor: text;
  70. }
  71. .highlighter-nodeinfobar-arrow {
  72. display: none;
  73. }
  74. .highlighter-nodeinfobar-container[position="top"]:not([hide-arrow]) > .highlighter-nodeinfobar-arrow-bottom {
  75. display: block;
  76. }
  77. .highlighter-nodeinfobar-container[position="bottom"]:not([hide-arrow]) > .highlighter-nodeinfobar-arrow-top {
  78. display: block;
  79. }
  80. .highlighter-nodeinfobar-container[disabled] {
  81. visibility: hidden;
  82. }
  83. html|*.highlighter-nodeinfobar-tagname {
  84. text-transform: lowercase;
  85. }