commit 946678fa17a3196133c98449f09f92d6e7a07df8
parent 531d9e1872c6099f203224765989fed007cc14c4
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Tue, 3 Dec 2019 23:54:17 +0100
fix style lint errors
Diffstat:
10 files changed, 48 insertions(+), 78 deletions(-)
diff --git a/src/lib/clipboardCopy/style.css b/src/lib/clipboardCopy/style.css
@@ -5,6 +5,6 @@
padding: 0.5em 0.7em;
position: absolute;
z-index: 100000;
- font-family: Hevetica, arial;
+ font-family: Hevetica, arial, sans-serif;
font-size: 11px;
}
diff --git a/src/lib/controls-styles/controls-styles.css b/src/lib/controls-styles/controls-styles.css
@@ -20,17 +20,11 @@
background-position: 50% 50%;
background-repeat: no-repeat;
display: inline-block;
- height: 26px;
border-radius: 4px 4px 4px 4px;
border: 1px solid #ccc;
cursor: pointer;
}
-.leaflet-control .image-button:hover,
-.leaflet-control .text-button:hover {
- background-color: #f4f4f4;
-}
-
.leaflet-control .text-button {
display: inline-block;
height: 26px;
@@ -43,6 +37,11 @@
color: #333;
}
+.leaflet-control .image-button:hover,
+.leaflet-control .text-button:hover {
+ background-color: #f4f4f4;
+}
+
.leaflet-control-button {
display: inline-block;
width: 26px;
@@ -97,16 +96,13 @@
background-position: 50% 50%;
background-repeat: no-repeat;
margin: 5px;
+ display: none;
}
.leaflet-control.minimized {
padding: 0;
}
-.leaflet-control-button-toggle {
- display: none;
-}
-
.leaflet-control.minimized .leaflet-control-content {
display: none;
}
diff --git a/src/lib/leaflet.control.elevation-profile/elevation-profile.css b/src/lib/leaflet.control.elevation-profile/elevation-profile.css
@@ -20,14 +20,15 @@
.elevation-profile-properties table {
border-collapse: collapse;
}
-.elevation-profile-properties .start-group td{
- border-top: 1px solid #c3c3c3;
-}
.elevation-profile-properties td {
white-space: nowrap;
}
+.elevation-profile-properties .start-group td{
+ border-top: 1px solid #c3c3c3;
+}
+
.elevation-profile-properties-selected {
background-color: #dfeef4;
}
@@ -36,10 +37,6 @@
padding-left: 4px;
}
-.elevation-profile-properties td {
- /*border-bottom: 1px solid #ddd;*/
-}
-
.elevation-profile-left-axis {
position: relative;
height: 100%;
@@ -56,7 +53,7 @@
}
.elevation-profile-grid-label {
- font-family: Arial sans-serif;
+ font-family: Arial, sans-serif;
font-size: 12px;
line-height: 12px;
margin-top: -6px;
@@ -84,7 +81,7 @@
position: absolute;
pointer-events: none;
top: 8px;
- font-family: Arial sans-serif;
+ font-family: Arial, sans-serif;
font-size: 12px;
line-height: 16px;
padding-left: 8px;
diff --git a/src/lib/leaflet.control.layers.configure/index.js b/src/lib/leaflet.control.layers.configure/index.js
@@ -282,7 +282,7 @@ function enableConfig(control, {layers, customLayersOrder}) {
};
const formHtml = `
-<p><a href="http://leafletjs.com/reference-1.0.2.html#tilelayer" target="_blank">See Leaflet TileLayer documentation for url format</a></p>
+<p><a class="doc-link" href="http://leafletjs.com/reference-1.0.2.html#tilelayer" target="_blank">See Leaflet TileLayer documentation for url format</a></p>
<label>Layer name<br/><input data-bind="value: name"/></label><br/>
<label>Tile url template<br/><textarea data-bind="value: url" style="width: 100%"></textarea></label><br/>
<label><input type="radio" name="overlay" data-bind="checked: isOverlay, checkedValue: false">Base layer</label><br/>
diff --git a/src/lib/leaflet.control.layers.configure/style.css b/src/lib/leaflet.control.layers.configure/style.css
@@ -2,7 +2,6 @@
cursor: pointer;
width: 18px;
height: 18px;
- margin-right: auto;
border-radius: 4px;
border: 1px solid #ccc;
@@ -71,7 +70,8 @@
display: block;
}
-.leaflet-layers-select-window .button {
+.leaflet-layers-select-window .button,
+.custom-layers-window .button {
display: inline-block;
height: 26px;
border-radius: 4px;
@@ -126,19 +126,6 @@
box-sizing: border-box;
}
-.custom-layers-window .button {
- display: inline-block;
- height: 26px;
- border-radius: 4px 4px 4px 4px;
- border: 1px solid #ccc;
- cursor: pointer;
- margin-right: 6px;
- padding: 0 1em;
- line-height: 26px;
- font-weight: bold;
- color: #333;
-}
-
.custom-layers-window .button:hover {
background-color: #f4f4f4;
}
@@ -153,7 +140,7 @@
cursor: pointer;
}
-.custom-layers-window a {
+.custom-layers-window .doc-link {
color: #777;
}
diff --git a/src/lib/leaflet.control.printPages/control.css b/src/lib/leaflet.control.printPages/control.css
@@ -54,22 +54,17 @@
padding: 0;
}
-.control-print-pages td {
+.control-print-pages .layout > tbody > tr > td {
border-top: 1px solid #eee;
padding-top: 1.5mm;
padding-bottom: 1mm;
}
-.control-print-pages tr:first-child td {
- border: 0;
-}
-
-.control-print-pages td:nth-child(2) {
+.control-print-pages .layout > tbody > tr > td:nth-child(2) {
padding-left: 2mm;
}
-.control-print-pages .margins td {
- padding: 0;
+.control-print-pages .layout > tbody > tr:first-child td {
border: 0;
}
@@ -78,7 +73,7 @@
margin-left: 3mm;
}
-.control-print-pages tr:last-child td {
+.control-print-pages .layout > tbody > tr:last-child > td {
text-align: center;
}
diff --git a/src/lib/leaflet.control.track-list/track-list.css b/src/lib/leaflet.control.track-list/track-list.css
@@ -14,6 +14,7 @@
overflow-y: auto;
overflow-x: hidden;
padding: 0 3px 0 0;
+ margin-top: 2px;
}
.leaflet-control-tracklist .hint {
@@ -39,13 +40,6 @@
vertical-align: middle;
}
-.leaflet-control-tracklist .button:hover,
-.leaflet-control-tracklist .button-length:hover,
-.leaflet-control-tracklist .button-add-track:hover,
-.leaflet-control-tracklist .button-add-point:hover {
- background-color: #f4f4f4;
-}
-
.leaflet-control-tracklist .button-add-point.active {
background-color: #ccc;
}
@@ -167,6 +161,13 @@
}
+.leaflet-control-tracklist .button:hover,
+.leaflet-control-tracklist .button-length:hover,
+.leaflet-control-tracklist .button-add-track:hover,
+.leaflet-control-tracklist .button-add-point:hover {
+ background-color: #f4f4f4;
+}
+
.leaflet-control-tracklist .ticks-enabled {
color: #333;
border-color: #333;
@@ -258,9 +259,6 @@
cursor: default;
}
-.tracks-rows-wrapper {
- margin-top: 2px;
-}
.leaflet-control-tracklist .hover,
.leaflet-control-tracklist tr:hover {
diff --git a/src/lib/leaflet.layer.soviet-topomaps-grid/style.css b/src/lib/leaflet.layer.soviet-topomaps-grid/style.css
@@ -5,7 +5,7 @@
margin-top: -25px;
text-align: center;
line-height: 50px;
- font-family: "Times New Roman";
+ font-family: Times, serif;
font-weight: bold;
outline: none;
diff --git a/src/lib/leaflet.layer.westraPasses/westraPasses.css b/src/lib/leaflet.layer.westraPasses/westraPasses.css
@@ -102,48 +102,45 @@
border-collapse: collapse;
}
-.pass-details td {
+.pass-details > tbody > tr > td {
border-bottom: 1px solid #ccc;
padding: 1mm 0;
}
-.pass-details td:last-child {
+.pass-details > tbody > tr > td:last-child {
padding-left: 1em;
}
-.pass-details td:first-child {
- /*white-space: nowrap;*/
+.pass-details > tbody > tr:last-child > td {
+ border-bottom: none;
}
-.pass-details tr:last-child td {
- border: none;
-}
-
-.westra-passes-description-coords {
+.pass-details .coords {
border-collapse: collapse;
}
-.pass-details .westra-passes-description-coords td {
- border: none;
- padding: 0 0 0 1em;
+.pass-details .coords > tbody > tr > td {
+ padding: 0;
+ padding-left: 1em;
}
+.pass-details .coords td:first-child {
+ padding-left: 0;
+}
-.pass-details .westra-passes-description-coords td:first-child {
- padding: 0;
+.pass-details .coords .header {
+ color: #999;
+ font-size: 9px;
}
-.westra-passes-description-coords a {
+
+.pass-details .coords a {
color: #000;
border-bottom: 1px dashed #000;
text-decoration: none;
cursor: pointer;
}
-.westra-passes-description-coords tr:first-child td {
- color: #999;
- font-size: 9px;
-}
.westra-passes-description-comment {
diff --git a/src/lib/leaflet.layer.westraPasses/westraPassesMarkers.js b/src/lib/leaflet.layer.westraPasses/westraPassesMarkers.js
@@ -206,8 +206,8 @@ const WestraPassesMarkers = L.Layer.CanvasMarkers.extend({
<tr>
<td>Координаты</td>
<td>
- <table class="westra-passes-description-coords">
- <tr>
+ <table class="coords">
+ <tr class="header">
<td>Широта</td>
<td>Долгота</td>
</tr>