InfoBox.css 1.9 KB

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