InfoBox.css 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* packages/widgets/Source/InfoBox/InfoBox.css */
  2. .cesium-infoBox {
  3. display: block;
  4. position: absolute;
  5. top: 50px;
  6. right: 0;
  7. width: 40%;
  8. max-width: 480px;
  9. background: rgba(38, 38, 38, 0.95);
  10. color: #edffff;
  11. border: 1px solid #444;
  12. border-right: none;
  13. border-top-left-radius: 7px;
  14. border-bottom-left-radius: 7px;
  15. box-shadow: 0 0 10px 1px #000;
  16. transform: translate(100%, 0);
  17. visibility: hidden;
  18. opacity: 0;
  19. transition:
  20. visibility 0s 0.2s,
  21. opacity 0.2s ease-in,
  22. transform 0.2s ease-in;
  23. }
  24. .cesium-infoBox-visible {
  25. transform: translate(0, 0);
  26. visibility: visible;
  27. opacity: 1;
  28. transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  29. }
  30. .cesium-infoBox-title {
  31. display: block;
  32. height: 20px;
  33. padding: 5px 30px 5px 25px;
  34. background: rgba(84, 84, 84, 1);
  35. border-top-left-radius: 7px;
  36. text-align: center;
  37. text-overflow: ellipsis;
  38. white-space: nowrap;
  39. overflow: hidden;
  40. box-sizing: content-box;
  41. }
  42. .cesium-infoBox-bodyless .cesium-infoBox-title {
  43. border-bottom-left-radius: 7px;
  44. }
  45. button.cesium-infoBox-camera {
  46. display: block;
  47. position: absolute;
  48. top: 4px;
  49. left: 4px;
  50. width: 22px;
  51. height: 22px;
  52. background: transparent;
  53. border-color: transparent;
  54. border-radius: 3px;
  55. padding: 0 5px;
  56. margin: 0;
  57. }
  58. button.cesium-infoBox-close {
  59. display: block;
  60. position: absolute;
  61. top: 5px;
  62. right: 5px;
  63. height: 20px;
  64. background: transparent;
  65. border: none;
  66. border-radius: 2px;
  67. font-weight: bold;
  68. font-size: 16px;
  69. padding: 0 5px;
  70. margin: 0;
  71. color: #edffff;
  72. }
  73. button.cesium-infoBox-close:focus {
  74. background: rgba(238, 136, 0, 0.44);
  75. outline: none;
  76. }
  77. button.cesium-infoBox-close:hover {
  78. background: #888;
  79. color: #000;
  80. }
  81. button.cesium-infoBox-close:active {
  82. background: #a00;
  83. color: #000;
  84. }
  85. .cesium-infoBox-bodyless .cesium-infoBox-iframe {
  86. display: none;
  87. }
  88. .cesium-infoBox-iframe {
  89. border: none;
  90. width: 100%;
  91. width: calc(100% - 2px);
  92. }