You are here

style.css in Openlayers 7.2

CSS file for OpenLayers dark theme.

We include the default styles, then add some specificity to override certain elements like image references.

File

themes/default_dark/style.css
View source
  1. /**
  2. * @file
  3. * CSS file for OpenLayers dark theme.
  4. *
  5. * We include the default styles, then add
  6. * some specificity to override certain elements
  7. * like image references.
  8. */
  9. @import url(openlayers_style.css);
  10. .olControlOverviewMapExtentRectangle {
  11. border: none;
  12. }
  13. .olControlOverviewMapRectReplacement {
  14. background-image: url(img/overview_replacement.png);
  15. }
  16. /**
  17. * A few custom styles
  18. */
  19. .openlayers-popup {
  20. color: #EEEEEE;
  21. }
  22. .olImageLoadError,
  23. .openlayers-map .olImageLoadError {
  24. background-color: transparent;
  25. display: none !important;
  26. }
  27. /**
  28. * CSS fix, see #1646646
  29. */
  30. label.olButton {
  31. display: inline;
  32. margin-left: .5em;
  33. }
  34. /**
  35. * Improve placement of controls that overlap when both are enabled.
  36. */
  37. .openlayers_behavior_fullscreen_button_panelActive .olControlEditingToolbar {
  38. right: 30px;
  39. }
  40. .olControlMousePositionActive .olControlAttribution {
  41. bottom: 1.2em;
  42. right: 3px;
  43. }
  44. /**
  45. * Make the fullscreen behavior button match dark design.
  46. * The fullscreen button is added to the editing tool bar PNG to reduce
  47. * HTTP requests.
  48. */
  49. .openlayers_behavior_fullscreen_buttonItemInactive {
  50. background-image: url(img/editing_tool_bar.png);
  51. background-position: -153px -1px;
  52. width: 24px;
  53. height: 22px;
  54. }
  55. .openlayers_map_fullscreen .openlayers_behavior_fullscreen_buttonItemInactive {
  56. background-position: -153px -24px;
  57. }
  58. .openlayers-container {
  59. position: relative;
  60. }
  61. /**
  62. * The following are images that are not in
  63. * this theme (but should be).
  64. */
  65. /*
  66. .openlayers-map .olControlNavigationHistory {
  67. background-image: url("img/navigation_history.png");
  68. }
  69. */
  70. .openlayers-map .olControlOverviewMapRectReplacement {
  71. background-image: url("img/overview_replacement.gif");
  72. }
  73. .openlayers-map .olControlNavigationHistory {
  74. background-image: url("img/navigation_history.png");
  75. }
  76. .openlayers-map div.olControlSaveFeaturesItemActive {
  77. background-image: url("img/save_features_on.png");
  78. }
  79. div.olControlSaveFeaturesItemInactive {
  80. background-image: url("img/save_features_off.png");
  81. }
  82. .openlayers-map .olControlPanPanel div {
  83. background-image: url("img/pan-panel.png");
  84. }
  85. .openlayers-map .olPopupCloseBox {
  86. background: url("img/close.gif") no-repeat scroll 0 0 transparent;
  87. }
  88. .openlayers-map .olControlZoomPanel div {
  89. background-image: url("img/zoom-panel.png");
  90. }