style: more codacy fixes

This commit is contained in:
David Ralph
2021-04-16 12:39:51 +01:00
parent 1ac6f418bf
commit cae2c5ef71
22 changed files with 72 additions and 73 deletions

View File

@@ -88,4 +88,4 @@
.MuiSvgIcon-root {
cursor: initial;
}
}
}

View File

@@ -34,4 +34,4 @@
to {
opacity: 1;
}
}
}

View File

@@ -23,7 +23,7 @@
margin: 0.5rem;
filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
cursor: pointer;
transition: .2s ease;
transition: 0.2s ease;
&:hover {
color: map-get($theme-colours, 'main-text-color');

View File

@@ -111,7 +111,7 @@ export default class QuickLinks extends React.PureComponent {
this.addLink();
e.preventDefault();
}
}
};
}
render() {

View File

@@ -79,7 +79,7 @@ textarea {
img {
height: 32px;
width: auto;
transition: transform .2s;
transition: transform 0.2s;
user-select: none;
&:hover {

View File

@@ -23,12 +23,10 @@ export default class Quote extends React.PureComponent {
copy: '',
quoteLanguage: ''
};
this.buttons = {
tweet: <TwitterIcon className='copyButton' onClick={this.tweetQuote} />,
copy: <FileCopy className='copyButton' onClick={this.copyQuote} />
}
};
this.language = window.language.widgets.quote;
}

View File

@@ -22,7 +22,7 @@
&:focus {
width: 400px;
background-color: rgba(0, 0, 0, .5);
background-color: rgba(0, 0, 0, 0.5);
user-select: text;
}
}

View File

@@ -22,11 +22,12 @@
user-select: none;
}
.react-clock__hand__body, .react-clock__mark__body {
.react-clock__hand__body,
.react-clock__mark__body {
background: map-get($theme-colours, 'main') !important;
box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}
.clock-container {
margin-top: 13px;
}
}

View File

@@ -3,4 +3,4 @@
user-select: none;
text-transform: capitalize;
font-weight: bold;
}
}

View File

@@ -42,7 +42,7 @@ export default class Weather extends React.PureComponent {
humidity: this.state.weather.humidity,
pressure: this.state.weather.pressure
}
}
};
if (!this.state.weather.temp) {
data = await (await fetch (window.constants.WEATHER_URL + `?city=${this.state.location}`)).json();