Skip to content

Commit

Permalink
style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielMant0 committed Nov 10, 2023
1 parent 7699e1a commit fdf5309
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/ComponentPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div :class="['d-flex', horizontal ? 'flex-row' : 'flex-column']">
<ComponentPreview v-for="c in cat" :key="c.key"
v-ripple
class="ma-1 clickable"
class="ma-1 clickable-wobble"
:data="c.values"
:title="c.title"
:width="100"
Expand Down
5 changes: 3 additions & 2 deletions src/components/LineChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import * as d3 from 'd3';
import { ref, watch, onMounted } from 'vue';
import { useApp } from '@/store/app'
import { DateTime } from 'luxon';
const props = defineProps({
data: {
Expand Down Expand Up @@ -121,7 +122,7 @@
const xAxis = svg.append("g")
.attr("transform", `translate(0,${props.height-25})`)
.call(d3.axisBottom(xScale).tickFormat(d3.timeFormat("%b")))
.call(d3.axisBottom(xScale).tickFormat(d3.timeFormat("%0d %b")))
const yAxis = svg.append("g")
.attr("transform", "translate(35,0)")
Expand All @@ -137,7 +138,7 @@
highlight(xz, yz);
xAxis.call(d3.axisBottom(xz).tickFormat(d3.timeFormat("%b")))
xAxis.call(d3.axisBottom(xz).tickFormat(d3.timeFormat("%0d %b")))
yAxis.call(d3.axisLeft(yz))
app.setLineChartZoom(transform);
Expand Down
1 change: 1 addition & 0 deletions src/components/TimeSeriesTitle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<div class="d-flex align-center justify-space-between">

<v-icon :icon="app.selectedTs === timeseries.id ? 'mdi-circle-slice-8' : 'mdi-circle-outline'"
:class="app.selectedTs !== timeseries.id ? 'clickable-blink' : 'not-clickable'"
@click="app.selectTimeSeries(timeseries.id)"
:color="tsColor"/>

Expand Down
27 changes: 25 additions & 2 deletions src/styles/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,37 @@
// $color-pack: false
// );

.clickable {
.clickable,
.clickable-wobble,
.clickable-blink {
cursor: pointer;
}

.clickable:hover {
.clickable-blink:hover {
animation: blink 800ms ease-in-out infinite;
}

.clickable-wobble:hover {
animation: wobble 400ms ease-in-out infinite;
}

.not-clickable {
cursor: default;
}

@keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
filter: hue-rotate(90deg);
}
100% {
opacity: 1;
}
}

@keyframes wobble {
0% {
transform: rotate(0deg);
Expand Down

0 comments on commit fdf5309

Please sign in to comment.