Move default yellow to var, add in list UI
This commit is contained in:
@@ -63,7 +63,10 @@ export default class MapComponent extends Component {
|
|||||||
|
|
||||||
const bookmarkStyleFunction = (feature) => {
|
const bookmarkStyleFunction = (feature) => {
|
||||||
const originalPlace = feature.get('originalPlace');
|
const originalPlace = feature.get('originalPlace');
|
||||||
let color = '#ffcc33'; // Default Yellow
|
let color =
|
||||||
|
getComputedStyle(document.documentElement)
|
||||||
|
.getPropertyValue('--default-list-color')
|
||||||
|
.trim() || '#000000'; // Fallback to black if variable is missing to make error obvious
|
||||||
|
|
||||||
if (
|
if (
|
||||||
originalPlace &&
|
originalPlace &&
|
||||||
|
|||||||
@@ -71,7 +71,8 @@ export default class PlaceListsManager extends Component {
|
|||||||
checked={{this.isSaved}}
|
checked={{this.isSaved}}
|
||||||
{{on "change" this.toggleSaved}}
|
{{on "change" this.toggleSaved}}
|
||||||
/>
|
/>
|
||||||
<span class="list-name">Saved</span>
|
<span class="list-color"></span>
|
||||||
|
<span class="list-name">Saved places</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
/* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */
|
/* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--default-list-color: #ffcc33;
|
||||||
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -1031,6 +1035,7 @@ button.create-place {
|
|||||||
.place-lists-manager .list-color {
|
.place-lists-manager .list-color {
|
||||||
width: 12px;
|
width: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
|
background-color: var(--default-list-color);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
border: 1px solid rgb(0 0 0 / 10%);
|
border: 1px solid rgb(0 0 0 / 10%);
|
||||||
|
|||||||
Reference in New Issue
Block a user