1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
| <template>
| <div class="time-content">
| <div class="time-number-wrapper">
| <div class="time-number">{{value}}</div>
| </div>
| </div>
| </template>
|
| <script>
| export default {
| name: "TimeNumber",
| props: {
| value: {
| type: [Number,String],
| default: 0
| }
| }
| }
| </script>
|
| <style scoped>
| .time-content {
| display: inline-block;
| margin-left: 8px;
| }
|
| .time-number-wrapper {
| position: relative;
| }
|
| .time-number-wrapper:before,
| .time-number-wrapper:after {
| content: "";
| position: absolute;
| display: block;
| width: 100%;
| height: 50%;
| box-sizing: border-box;
| z-index: 0;
| }
|
| .time-number-wrapper:before {
| top: 0;
| background-color: #29A0C5;
| }
|
| .time-number-wrapper:after {
| bottom: 0;
| background-color: #40C3F3;
| }
|
| .time-number {
| position: relative;
| padding: 4px 8px;
| font-size: 46px;
| color: #FFF100;
| font-weight: bold;
| text-align: center;
| z-index: 1;
| }
| .mini-size .time-content {
| margin-left: 6px;
| }
|
| .mini-size .time-number {
| padding: 3px 3px;
| font-size: 24px;
| }
| </style>
|
|