Skip to content

Commit ca8c7fe

Browse files
authored
Seperates gtt icon namespace, fixes #41 (#42)
Signed-off-by: Daniel Kastl <[email protected]>
1 parent 7281d1b commit ca8c7fe

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

assets/javascripts/app.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ var App = (function ($, publ) {
196196

197197
// Control button
198198
var maximizeCtrl = new ol.control.Button({
199-
html: '<i class="icon-maximize" ></i>',
199+
html: '<i class="gtt-icon-maximize" ></i>',
200200
title: "Maximize",
201201
handleClick: function () {
202202
publ.zoomToExtent(true);
@@ -602,7 +602,7 @@ var App = (function ($, publ) {
602602

603603
// Control button
604604
var geolocationCtrl = new ol.control.Toggle({
605-
html: '<i class="icon-compass" ></i>',
605+
html: '<i class="gtt-icon-compass" ></i>',
606606
title: "Geolocation",
607607
active: false,
608608
onToggle: function (active) {
@@ -739,7 +739,7 @@ var App = (function ($, publ) {
739739

740740
// Control button
741741
var geocodingCtrl = new ol.control.Toggle({
742-
html: '<i class="icon-info" ></i>',
742+
html: '<i class="gtt-icon-info" ></i>',
743743
title: "Geocoding",
744744
className: "ctl-geocoding",
745745
onToggle: function (active) {
@@ -821,7 +821,7 @@ var App = (function ($, publ) {
821821
});
822822

823823
var control = new ol.control.Toggle({
824-
html: '<i class="icon-' + type.toLowerCase() + '" ></i>',
824+
html: '<i class="gtt-icon-' + type.toLowerCase() + '" ></i>',
825825
title: type,
826826
interaction: draw
827827
});
@@ -830,7 +830,7 @@ var App = (function ($, publ) {
830830

831831
// Upload button
832832
editbar.addControl(new ol.control.Button({
833-
html: '<i class="icon-book" ></i>',
833+
html: '<i class="gtt-icon-book" ></i>',
834834
title: 'Upload GeoJSON',
835835
handleClick: function () {
836836
var data = prompt("Please paste a GeoJSON geometry here");

assets/stylesheets/fonts.css

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
font-weight: normal;
1010
font-style: normal;
1111
}
12-
[class^='icon-']:before{
12+
[class^='gtt-icon-']:before{
1313
display: inline-block;
1414
font-family: 'Redmine';
1515
font-style: normal;
@@ -21,23 +21,23 @@
2121
-moz-osx-font-smoothing: grayscale;
2222
}
2323

24-
.icon-point:before{content:'\0041';}
25-
.icon-linestring:before{content:'\0042';}
26-
.icon-polygon:before{content:'\0043';}
27-
.icon-shutter:before{content:'\0044';}
28-
.icon-camera:before{content:'\0045';}
29-
.icon-book:before{content:'\0046';}
30-
.icon-download:before{content:'\0047';}
31-
.icon-upload:before{content:'\0048';}
32-
.icon-home:before{content:'\0049';}
33-
.icon-layer:before{content:'\004a';}
34-
.icon-info:before{content:'\004b';}
35-
.icon-compass:before{content:'\004c';}
36-
.icon-move:before{content:'\004d';}
37-
.icon-maximize:before{content:'\004e';}
38-
.icon-trash:before{content:'\004f';}
39-
.icon-target:before{content:'\0050';}
40-
.icon-modify:before{content:'\0051';}
24+
.gtt-icon-point:before{content:'\0041';}
25+
.gtt-icon-linestring:before{content:'\0042';}
26+
.gtt-icon-polygon:before{content:'\0043';}
27+
.gtt-icon-shutter:before{content:'\0044';}
28+
.gtt-icon-camera:before{content:'\0045';}
29+
.gtt-icon-book:before{content:'\0046';}
30+
.gtt-icon-download:before{content:'\0047';}
31+
.gtt-icon-upload:before{content:'\0048';}
32+
.gtt-icon-home:before{content:'\0049';}
33+
.gtt-icon-layer:before{content:'\004a';}
34+
.gtt-icon-info:before{content:'\004b';}
35+
.gtt-icon-compass:before{content:'\004c';}
36+
.gtt-icon-move:before{content:'\004d';}
37+
.gtt-icon-maximize:before{content:'\004e';}
38+
.gtt-icon-trash:before{content:'\004f';}
39+
.gtt-icon-target:before{content:'\0050';}
40+
.gtt-icon-modify:before{content:'\0051';}
4141

4242
@font-face {
4343
font-family: "mcr-icons";

0 commit comments

Comments
 (0)