You are here

openlayers_plus.css in OpenLayers Plus 7

Same filename and directory in other branches
  1. 7.3 theme/openlayers_plus.css
  2. 7.2 theme/openlayers_plus.css
/**
 * Legend =============================================================
 */
.openlayers-legends {
  position:absolute;
  left:5px;
  bottom:5px;
  z-index:3000;
  }

.openlayers-legends .legend {
  background:#fff;
  -moz-border-radius:3px;
  -webkit-border-radius:3px;
  }

.openlayers-legends .swatch {
  float:left;
  display:block;
  width:15px;
  height:15px;
  margin-right:5px;
  }

/**
 * Blockswitcher ======================================================
 */
.openlayers-blockswitcher span.key {
  display:block;
  float:left;
  height:20px;
  width:20px;
  margin-right:5px;
  }

.openlayers-blockswitcher input.form-radio,
.openlayers-blockswitcher input.form-checkbox { margin-right:5px; }

div.openlayers-map .openlayers_plus-blockswitcher {
  position:absolute;
  z-index:3000;
  background:#fff;
  width:auto;
  }

  div.openlayers-map .openlayers_plus-blockswitcher.ne { top:0px; right:0px; }
  div.openlayers-map .openlayers_plus-blockswitcher.nw { top:0px; left:0px; }
  div.openlayers-map .openlayers_plus-blockswitcher.se { bottom:0px; right:0px; }
  div.openlayers-map .openlayers_plus-blockswitcher.sw { bottom:0px; left:0px; }

 .openlayers_plus-blockswitcher h2.block-title { cursor:pointer; }
 .openlayers_plus-blockswitcher div.block-content { display:none; }

 .openlayers_plus-blockswitcher div.radio {
  background: #fff url('inactive.png');
  background-repeat: no-repeat;
  padding: 3px 0 3px 25px;
}

 .openlayers_plus-blockswitcher div.activated {
  background: #fff url('active.png');
  background-repeat: no-repeat;
  padding: 3px 0 3px 25px;
}

/**
 * Blocktoggle ========================================================
 */
div.openlayers-map .block-openlayers_plus-blocktoggle {
  position:absolute;
  z-index:3001;
  background:transparent;
  width:auto;
  padding: 0;
  -moz-border-radius:3px;
  -webkit-border-radius:3px;
  }

  div.openlayers-map .block-openlayers_plus-blocktoggle.ne { top:0px; right:0px; }
  div.openlayers-map .block-openlayers_plus-blocktoggle.nw { top:0px; left:0px; }
  div.openlayers-map .block-openlayers_plus-blocktoggle.se { bottom:0px; right:0px; }
  div.openlayers-map .block-openlayers_plus-blocktoggle.sw { bottom:0px; left:0px; }

.block-openlayers_plus-blocktoggle h2.block-title { display:none; }

.block-openlayers_plus-blocktoggle .openlayers-blocktoggle-a,
.block-openlayers_plus-blocktoggle .openlayers-blocktoggle-b {
  float:left;
  color:#666;
  background:url('point-button.png') #fff 5px 50% no-repeat;
  padding:0px 5px 0px 20px;
  line-height:20px;
  width:50px;
  cursor:pointer;
  }

.block-openlayers_plus-blocktoggle .openlayers-blocktoggle-a {
  -moz-border-radius: 3px 0 0 3px;
  -webkit-border-radius: 3px 0 0 3px;
  border-right:1px solid #ccc;
  }

.block-openlayers_plus-blocktoggle .openlayers-blocktoggle-b {
  -moz-border-radius: 0 3px 3px 0;
  -webkit-border-radius: 0 3px 3px 0;
  background-image:url('point-choro.png');
  }

.block-openlayers_plus-blocktoggle .activated {
  background-color:#eee;
  color:#222;
  }

/**  
 * Sample themeregion css. You probably want to override this *
 */
 
 .openlayers_plus-themeregion {
  z-index: 1000; /* this is tricky, the layers are 999, the first OpenLayers control is 1001 */
  position: absolute; /* We do this in code, too, as some themes position the region by ID, so we lose */
}

/*
** For sample purposes, place the selected region at the top of the map
** If you select more regions, that wont work too well. 
*/
 .openlayers_plus-themeregion.olControlNoSelect {
   top:0px; right:0px;
 }

File

theme/openlayers_plus.css
View source
  1. /**
  2. * Legend =============================================================
  3. */
  4. .openlayers-legends {
  5. position:absolute;
  6. left:5px;
  7. bottom:5px;
  8. z-index:3000;
  9. }
  10. .openlayers-legends .legend {
  11. background:#fff;
  12. -moz-border-radius:3px;
  13. -webkit-border-radius:3px;
  14. }
  15. .openlayers-legends .swatch {
  16. float:left;
  17. display:block;
  18. width:15px;
  19. height:15px;
  20. margin-right:5px;
  21. }
  22. /**
  23. * Blockswitcher ======================================================
  24. */
  25. .openlayers-blockswitcher span.key {
  26. display:block;
  27. float:left;
  28. height:20px;
  29. width:20px;
  30. margin-right:5px;
  31. }
  32. .openlayers-blockswitcher input.form-radio,
  33. .openlayers-blockswitcher input.form-checkbox { margin-right:5px; }
  34. div.openlayers-map .openlayers_plus-blockswitcher {
  35. position:absolute;
  36. z-index:3000;
  37. background:#fff;
  38. width:auto;
  39. }
  40. div.openlayers-map .openlayers_plus-blockswitcher.ne { top:0px; right:0px; }
  41. div.openlayers-map .openlayers_plus-blockswitcher.nw { top:0px; left:0px; }
  42. div.openlayers-map .openlayers_plus-blockswitcher.se { bottom:0px; right:0px; }
  43. div.openlayers-map .openlayers_plus-blockswitcher.sw { bottom:0px; left:0px; }
  44. .openlayers_plus-blockswitcher h2.block-title { cursor:pointer; }
  45. .openlayers_plus-blockswitcher div.block-content { display:none; }
  46. .openlayers_plus-blockswitcher div.radio {
  47. background: #fff url('inactive.png');
  48. background-repeat: no-repeat;
  49. padding: 3px 0 3px 25px;
  50. }
  51. .openlayers_plus-blockswitcher div.activated {
  52. background: #fff url('active.png');
  53. background-repeat: no-repeat;
  54. padding: 3px 0 3px 25px;
  55. }
  56. /**
  57. * Blocktoggle ========================================================
  58. */
  59. div.openlayers-map .block-openlayers_plus-blocktoggle {
  60. position:absolute;
  61. z-index:3001;
  62. background:transparent;
  63. width:auto;
  64. padding: 0;
  65. -moz-border-radius:3px;
  66. -webkit-border-radius:3px;
  67. }
  68. div.openlayers-map .block-openlayers_plus-blocktoggle.ne { top:0px; right:0px; }
  69. div.openlayers-map .block-openlayers_plus-blocktoggle.nw { top:0px; left:0px; }
  70. div.openlayers-map .block-openlayers_plus-blocktoggle.se { bottom:0px; right:0px; }
  71. div.openlayers-map .block-openlayers_plus-blocktoggle.sw { bottom:0px; left:0px; }
  72. .block-openlayers_plus-blocktoggle h2.block-title { display:none; }
  73. .block-openlayers_plus-blocktoggle .openlayers-blocktoggle-a,
  74. .block-openlayers_plus-blocktoggle .openlayers-blocktoggle-b {
  75. float:left;
  76. color:#666;
  77. background:url('point-button.png') #fff 5px 50% no-repeat;
  78. padding:0px 5px 0px 20px;
  79. line-height:20px;
  80. width:50px;
  81. cursor:pointer;
  82. }
  83. .block-openlayers_plus-blocktoggle .openlayers-blocktoggle-a {
  84. -moz-border-radius: 3px 0 0 3px;
  85. -webkit-border-radius: 3px 0 0 3px;
  86. border-right:1px solid #ccc;
  87. }
  88. .block-openlayers_plus-blocktoggle .openlayers-blocktoggle-b {
  89. -moz-border-radius: 0 3px 3px 0;
  90. -webkit-border-radius: 0 3px 3px 0;
  91. background-image:url('point-choro.png');
  92. }
  93. .block-openlayers_plus-blocktoggle .activated {
  94. background-color:#eee;
  95. color:#222;
  96. }
  97. /**
  98. * Sample themeregion css. You probably want to override this *
  99. */
  100. .openlayers_plus-themeregion {
  101. z-index: 1000; /* this is tricky, the layers are 999, the first OpenLayers control is 1001 */
  102. position: absolute; /* We do this in code, too, as some themes position the region by ID, so we lose */
  103. }
  104. /*
  105. ** For sample purposes, place the selected region at the top of the map
  106. ** If you select more regions, that wont work too well.
  107. */
  108. .openlayers_plus-themeregion.olControlNoSelect {
  109. top:0px; right:0px;
  110. }