2017-08-13 01:23:24 +02:00
|
|
|
<template>
|
|
|
|
<progress :value="value" :max="max">
|
|
|
|
{{ value }}
|
|
|
|
</progress>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'Progress',
|
|
|
|
|
|
|
|
props: {
|
|
|
|
value: { type: [String, Number], default: () => 0 },
|
|
|
|
max: { type: [String, Number], default: () => 100 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2019-03-20 23:19:13 +01:00
|
|
|
@import "~@/styles/colors";
|
|
|
|
@import "~@/styles/layout";
|
2017-08-13 01:23:24 +02:00
|
|
|
|
|
|
|
progress[value] {
|
|
|
|
appearance: none;
|
|
|
|
width: 100%;
|
2017-08-27 00:50:47 +02:00
|
|
|
height: 60px;
|
2017-08-13 15:44:03 +02:00
|
|
|
background: $dark-blue;
|
|
|
|
color: $yellow;
|
|
|
|
border: none;
|
|
|
|
border-radius: $border-radius;
|
2017-08-13 01:23:24 +02:00
|
|
|
|
|
|
|
&::-webkit-progress-bar {
|
|
|
|
background: $dark-blue;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-progress-value {
|
2017-08-27 00:50:47 +02:00
|
|
|
background: $button-background-primary;
|
2017-08-13 01:23:24 +02:00
|
|
|
border-radius: $border-radius;
|
2017-08-27 00:50:47 +02:00
|
|
|
box-shadow: $button-shadow;
|
2017-08-13 01:23:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|