Refactor pointer cursor

This commit is contained in:
2022-04-22 19:11:50 +02:00
parent a131f49b74
commit f02551eb80
7 changed files with 20 additions and 20 deletions

View File

@@ -885,10 +885,10 @@ function getPost(asPost) {
.append($('<p>').addIcon('fa-time', true).append(sAbsTime)) .append($('<p>').addIcon('fa-time', true).append(sAbsTime))
.append(bTimeDiff?$('<p>').addIcon('fa-timezone', true).append(oSpot.lang('local_time', getRelativeTime(sAbsTimeLocal, asPost.day_offset))):'') .append(bTimeDiff?$('<p>').addIcon('fa-timezone', true).append(oSpot.lang('local_time', getRelativeTime(sAbsTimeLocal, asPost.day_offset))):'')
.append($('<a>', {'class':'drill'}) .append($('<a>', {'class':'drill'})
.append((!asPost.weather_icon || asPost.weather_icon=='unknown')?'':$('<span>', {'class':'weather', 'title':oSpot.lang(asPost.weather_cond)}).addIcon('fa-'+asPost.weather_icon).append($('<span>').text(asPost.weather_temp+'°C'))) .append((!asPost.weather_icon || asPost.weather_icon=='unknown')?'':$('<span>', {'class':'weather clickable', 'title':oSpot.lang(asPost.weather_cond)}).addIcon('fa-'+asPost.weather_icon).append($('<span>').text(asPost.weather_temp+'°C')))
.append($('<img>', {'class':'staticmap', title: oSpot.lang('click_zoom'), src: asPost.static_img_url})) .append($('<img>', {'class':'staticmap clickable', title: oSpot.lang('click_zoom'), src: asPost.static_img_url}))
.append($('<span>', {'class': 'drill-icon fa-stack'}) .append($('<span>', {'class': 'drill-icon fa-stack'})
.addIcon('fa-message fa-stack-2x') .addIcon('fa-message fa-stack-2x clickable')
.addIcon('fa-message-in fa-stack-1x fa-rotate-270') .addIcon('fa-message-in fa-stack-1x fa-rotate-270')
) )
.click(function(){ .click(function(){
@@ -1013,7 +1013,8 @@ function getMediaLink(asData, sType) {
'src': asData.thumb_path, 'src': asData.thumb_path,
'width': asData.width, //set image ratio so that the required space can be reserved 'width': asData.width, //set image ratio so that the required space can be reserved
'height': asData.height, 'height': asData.height,
'title': oSpot.lang((asData.subtype == 'video')?'click_watch':'click_zoom') 'title': oSpot.lang((asData.subtype == 'video')?'click_watch':'click_zoom'),
'class':'clickable'
}) })
) )
.append($('<span>', {'class': 'drill-icon'}).addIcon('fa-drill-'+asData.subtype)); .append($('<span>', {'class': 'drill-icon'}).addIcon('fa-drill-'+asData.subtype));

View File

@@ -72,6 +72,14 @@
outline: 0px none transparent; outline: 0px none transparent;
} }
[title]:not(a):not(.clickable) {
cursor: default;
}
.clickable {
cursor: pointer;
}
textarea:focus, input:focus { textarea:focus, input:focus {
outline: 1px solid #CCC; outline: 1px solid #CCC;
} }
@@ -92,7 +100,7 @@ a.button {
} }
button, a.button { button, a.button {
cursor: pointer; @extend .clickable;
font-weight: bold; font-weight: bold;
color: #000; color: #000;
background: #eee; background: #eee;

View File

@@ -31,7 +31,7 @@ $stroke-width-axis : 2;
} }
.leaflet-control.spot-control, .leaflet-control.heightgraph .heightgraph-toggle { .leaflet-control.spot-control, .leaflet-control.heightgraph .heightgraph-toggle {
cursor: pointer; @extend .clickable;
width: 44px; width: 44px;
height: 44px; height: 44px;
text-align: center; text-align: center;

View File

@@ -201,14 +201,10 @@
.lb-details { .lb-details {
float: none; float: none;
.lb-caption-line { .lb-caption-line:first-child {
cursor: default;
&:first-child {
margin-top: 0; margin-top: 0;
} }
} }
}
.lb-closeContainer .lb-close { .lb-closeContainer .lb-close {
@include lightbox-icon(close); @include lightbox-icon(close);

View File

@@ -338,7 +338,6 @@ $legend-color: $post-color;
i { i {
transition: color 0.3s; transition: color 0.3s;
cursor: pointer;
} }
} }
} }
@@ -487,7 +486,6 @@ $legend-color: $post-color;
span { span {
display: inline-block; display: inline-block;
cursor: default;
font-size: 0.8em; font-size: 0.8em;
padding: $elem-spacing 0px; padding: $elem-spacing 0px;
@@ -579,7 +577,6 @@ $legend-color: $post-color;
position: absolute; position: absolute;
top: $block-spacing; top: $block-spacing;
right: $block-spacing; right: $block-spacing;
cursor: pointer;
.fa { .fa {
font-size: 1.3em; font-size: 1.3em;
@@ -603,7 +600,6 @@ $legend-color: $post-color;
.staticmap { .staticmap {
width: 100%; width: 100%;
border-radius: $block-radius; border-radius: $block-radius;
cursor: pointer;
} }
} }
@@ -722,7 +718,6 @@ $legend-color: $post-color;
font-size: 0.8em; font-size: 0.8em;
margin: 0; margin: 0;
color: $subtitle-color; color: $subtitle-color;
cursor: default;
transform: translateX(calc(-0.5 * (12px + 0.5em))); //icon width + margin right transform: translateX(calc(-0.5 * (12px + 0.5em))); //icon width + margin right
span { span {
@@ -784,7 +779,7 @@ $legend-color: $post-color;
label { label {
margin-bottom: .3em; margin-bottom: .3em;
display: block; display: block;
cursor: pointer; @extend .clickable;
& > div { & > div {
@include no-text-overflow(); @include no-text-overflow();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long