Skip to content
Snippets Groups Projects
Commit 46568236 authored by Eric Rosenbaum's avatar Eric Rosenbaum
Browse files

Clean up radar CSS

parent 2d7bf7dd
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ import {FormattedMessage} from 'react-intl'; ...@@ -2,6 +2,7 @@ import {FormattedMessage} from 'react-intl';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import React from 'react'; import React from 'react';
import keyMirror from 'keymirror'; import keyMirror from 'keymirror';
import classNames from 'classnames';
import Box from '../box/box.jsx'; import Box from '../box/box.jsx';
import Dots from './dots.jsx'; import Dots from './dots.jsx';
...@@ -28,7 +29,7 @@ const AutoScanningStep = props => ( ...@@ -28,7 +29,7 @@ const AutoScanningStep = props => (
{props.phase === PHASES.prescan && ( {props.phase === PHASES.prescan && (
<React.Fragment> <React.Fragment>
<img <img
className={styles.radarStatic} className={styles.radarBig}
src={radarIcon} src={radarIcon}
/> />
<img <img
...@@ -40,7 +41,7 @@ const AutoScanningStep = props => ( ...@@ -40,7 +41,7 @@ const AutoScanningStep = props => (
{props.phase === PHASES.pressbutton && ( {props.phase === PHASES.pressbutton && (
<React.Fragment> <React.Fragment>
<img <img
className={styles.radarBig} className={classNames(styles.radarBig, styles.radarSpin)}
src={radarIcon} src={radarIcon}
/> />
<img <img
......
...@@ -107,30 +107,27 @@ ...@@ -107,30 +107,27 @@
background-color: $pen-primary; background-color: $pen-primary;
} }
.radar { .radar-small {
width: 40px; width: 40px;
height: 40px; height: 40px;
margin-right: 0.5rem; margin-right: 0.5rem;
animation: spin 4s linear infinite;
} }
@keyframes spin { .radar-big {
100% {
transform: rotate(360deg);
}
}
.radar-static {
width: 120px; width: 120px;
height: 120px; height: 120px;
} }
.radar-big { .radar-spin {
width: 120px;
height: 120px;
animation: spin 4s linear infinite; animation: spin 4s linear infinite;
} }
@keyframes spin {
100% {
transform: rotate(360deg);
}
}
.device-activity { .device-activity {
position: relative; position: relative;
} }
......
import {FormattedMessage} from 'react-intl'; import {FormattedMessage} from 'react-intl';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import React from 'react'; import React from 'react';
import classNames from 'classnames';
import Box from '../box/box.jsx'; import Box from '../box/box.jsx';
import DeviceTile from './device-tile.jsx'; import DeviceTile from './device-tile.jsx';
...@@ -19,7 +20,7 @@ const ScanningStep = props => ( ...@@ -19,7 +20,7 @@ const ScanningStep = props => (
<div className={styles.activityAreaInfo}> <div className={styles.activityAreaInfo}>
<div className={styles.centeredRow}> <div className={styles.centeredRow}>
<img <img
className={styles.radar} className={classNames(styles.radarSmall, styles.radarSpin)}
src={radarIcon} src={radarIcon}
/> />
<FormattedMessage <FormattedMessage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment