Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
zh_zcb-ems
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chen.yiwen
zh_zcb-ems
Commits
03558732
Commit
03558732
authored
Sep 11, 2023
by
wu.hui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加小数点
parent
3a9ce1ba
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
300 additions
and
289 deletions
+300
-289
stat-bar.css
src/css/stat-bar.css
+14
-7
index.js
src/js/index.js
+271
-275
stat-bar.less
src/less/stat-bar.less
+15
-7
No files found.
src/css/stat-bar.css
View file @
03558732
@font-face
{
@font-face
{
font-family
:
"DigifaceWide"
;
font-family
:
'DigifaceWide'
;
src
:
url(
"../font/DIGIFACEWIDE REGULAR.TTF")
format
(
"truetype"
);
src
:
url(
'../font/DIGIFACEWIDE REGULAR.TTF')
format
(
'truetype'
);
/* Safari, Android, iOS */
/* Safari, Android, iOS */
}
}
.stat-bar
{
.stat-bar
{
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
.stat-bar
.stat-item
.tit
{
.stat-bar
.stat-item
.tit
{
font-size
:
20px
;
font-size
:
20px
;
color
:
#52ccff
;
color
:
#52ccff
;
font-family
:
"Source Han Sans CN"
;
font-family
:
'Source Han Sans CN'
;
}
}
.stat-bar
.stat-item
.scroll-box
{
.stat-bar
.stat-item
.scroll-box
{
display
:
-webkit-box
;
display
:
-webkit-box
;
...
@@ -46,7 +46,6 @@
...
@@ -46,7 +46,6 @@
display
:
-ms-flexbox
;
display
:
-ms-flexbox
;
display
:
flex
;
display
:
flex
;
margin-left
:
10px
;
margin-left
:
10px
;
min-width
:
215px
;
}
}
.stat-bar
.stat-item
.scroll-num
{
.stat-bar
.stat-item
.scroll-num
{
width
:
39px
;
width
:
39px
;
...
@@ -55,15 +54,23 @@
...
@@ -55,15 +54,23 @@
text-align
:
center
;
text-align
:
center
;
font-size
:
41px
;
font-size
:
41px
;
color
:
#01fff6
;
color
:
#01fff6
;
font-family
:
"DigifaceWide"
;
font-family
:
'DigifaceWide'
;
border-radius
:
3px
;
border-radius
:
3px
;
background
:
url(
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAyCAYAAADfuMIdAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAABAxJREFUeJzFmb2rXFUUxdc+X9e8JEQyEf8AE00nIoigRQqtrCyiEsEyWog2dnba+h9YCHZiEaIggjam0comIJJU4gck4T1DwvuYmXvPdu1z7515/gPZb/hx7rx5MIu1197n3PsC7EdVcE0fx4+6wA96xg37ftNhevgTmrhrOMurAa/Iv3hVHrph3286TE8T95126Ll+8u4Rnr8a3TEd/ajLnOtw9++K3VX8H+VkwuJCcWH3jqBiJ2BJlYe7ETs7acP5ix1OPlmwfy+4sDyYMpchWK0jDg5SQ7oCrQm3/gj482Fy4f4/1PNAAigH6xxPl5IM7Jwpp+7txVMlJS9wqAm9hIA13evv52GJxokTKQ8y5CGsixeoq3xMXI6aUmrUPuvyMCsL7gVEEgYT11FcXWfd0UYdUFRKVlE3cLTOCEcxIDJzskqcydlgcbkOFJjcQJids7IuKWhFQUalcwhkcAPDstCwaJtFQMl0LufGquco6Tuo+CFabLxZ/AJ0yAm1GD33higpR5bYC55E2BRhck6HPGcuVZmcgyMhY91HG8IUV6k2FEN1mDLnB6dHQe7C6Nw6ZO3RGYDwD3g9+EH32BCzc7WnoNpA5RHKTipx8KOyY/uB4pSTLooFsDSAYqM5sGu8gEaaNCS6ZqdhTuYwdAbf88Nq+4Yf1q2pTJmrWiKDaGjQrmXOEVSas1qmMXPm3PRBUOaOTYHqyGbOWeboHH8xYSKFJfZj7NYax8wpysZSDsHQHNTHvOCRyQZxslMJtbBbtxO6tNXc9MLKGu1U0pyrJYg0eNtjZWVj0EkntmW1zNE5pVuGzblKgW0Qe2Hiap3K2joUIzpuYa7YaVhkagjL3HHltLaKusGzuWUv2h1/NBtrkIbUmoWhFJ48vaAmMjvHslojGFTtm7dt5uKYuWBq55rrNn9uUE9MYbPxb3cIO8+xe3ntRStrc85e0hQ3S7XqdO3ZsZweUSZxlRs/N1ytc1m94X1r61ZtTzc3ZRVFFr537dbWsTGMO4S0Z025YUJ1Wr2wIQzLnPDFBuBSZO7WWagXm7KGuawb1xLX5OoclEdgCWPmlG/mMI7qi29ZmznByjrNudk5Cm3uqR8qtk7d2t5sLLXHEklF3DjunD253n5orrljDs6ZE7NSraRZqFporSe0iyclmZ2TyCUZY94kulLH563z3VfchFGOXXshJrK2st7F4ly/Ud2Ettnnx2IxYP9gL+AAP+OFF/+qi3MrYBbmV9J69okezz53B7/cuBnwhuyhdJ/2H3x0c/XypTurCxf31089/eg5/8z+6qVLu/17H97C7duf599/ezD+v/U1uYF4+gpev/wZrr7/tb71zjf65tvfPlIuX7nOCn6Jn77/OH/1xa/MnPwHoi9Z08sHR4EAAAAASUVORK5CYII="
)
no-repeat
0
0
;
background
:
url(
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAyCAYAAADfuMIdAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAABAxJREFUeJzFmb2rXFUUxdc+X9e8JEQyEf8AE00nIoigRQqtrCyiEsEyWog2dnba+h9YCHZiEaIggjam0comIJJU4gck4T1DwvuYmXvPdu1z7515/gPZb/hx7rx5MIu1197n3PsC7EdVcE0fx4+6wA96xg37ftNhevgTmrhrOMurAa/Iv3hVHrph3286TE8T95126Ll+8u4Rnr8a3TEd/ajLnOtw9++K3VX8H+VkwuJCcWH3jqBiJ2BJlYe7ET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71zjf65tvfPlIuX7nOCn6Jn77/OH/1xa/MnPwHoi9Z08sHR4EAAAAASUVORK5CYII='
)
no-repeat
0
0
;
background-size
:
cover
;
background-size
:
cover
;
overflow
:
hidden
;
overflow
:
hidden
;
margin-right
:
4px
;
margin-right
:
4px
;
}
}
.stat-bar
.stat-item
.dot
{
background-color
:
#01fff6
;
width
:
6px
;
height
:
6px
;
border-radius
:
100%
;
margin-top
:
36px
;
margin-right
:
4px
;
}
.stat-bar
.stat-item
.suffix
{
.stat-bar
.stat-item
.suffix
{
font-size
:
16px
;
font-size
:
16px
;
color
:
#758094
;
color
:
#758094
;
font-family
:
"Source Han Sans CN"
;
font-family
:
'Source Han Sans CN'
;
}
}
src/js/index.js
View file @
03558732
This diff is collapsed.
Click to expand it.
src/less/stat-bar.less
View file @
03558732
@font-face {
@font-face {
font-family:
"DigifaceWide"
;
font-family:
'DigifaceWide'
;
src: url(
"../font/DIGIFACEWIDE REGULAR.TTF") format("truetype"
); /* Safari, Android, iOS */
src: url(
'../font/DIGIFACEWIDE REGULAR.TTF') format('truetype'
); /* Safari, Android, iOS */
}
}
.stat-bar {
.stat-bar {
...
@@ -27,12 +27,12 @@
...
@@ -27,12 +27,12 @@
.tit {
.tit {
font-size: 20px;
font-size: 20px;
color: #52ccff;
color: #52ccff;
font-family:
"Source Han Sans CN"
;
font-family:
'Source Han Sans CN'
;
}
}
.scroll-box {
.scroll-box {
display: flex;
display: flex;
margin-left: 10px;
margin-left: 10px;
min-width: 215px;
//
min-width: 215px;
}
}
.scroll-num {
.scroll-num {
width: 39px;
width: 39px;
...
@@ -41,19 +41,27 @@
...
@@ -41,19 +41,27 @@
text-align: center;
text-align: center;
font-size: 41px;
font-size: 41px;
color: #01fff6;
color: #01fff6;
font-family:
"DigifaceWide"
;
font-family:
'DigifaceWide'
;
border-radius: 3px;
border-radius: 3px;
//background: url('../images/digital-bg.png') no-repeat 0 0;
//background: url('../images/digital-bg.png') no-repeat 0 0;
background: url(
"data:image/png;base64,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Tzc3ZRVFFr537dbWsTGMO4S0Z025YUJ1Wr2wIQzLnPDFBuBSZO7WWagXm7KGuawb1xLX5OoclEdgCWPmlG/mMI7qi29ZmznByjrNudk5Cm3uqR8qtk7d2t5sLLXHEklF3DjunD253n5orrljDs6ZE7NSraRZqFporSe0iyclmZ2TyCUZY94kulLH563z3VfchFGOXXshJrK2st7F4ly/Ud2Ettnnx2IxYP9gL+AAP+OFF/+qi3MrYBbmV9J69okezz53B7/cuBnwhuyhdJ/2H3x0c/XypTurCxf31089/eg5/8z+6qVLu/17H97C7duf599/ezD+v/U1uYF4+gpev/wZrr7/tb71zjf65tvfPlIuX7nOCn6Jn77/OH/1xa/MnPwHoi9Z08sHR4EAAAAASUVORK5CYII="
)
background: url(
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAyCAYAAADfuMIdAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAABAxJREFUeJzFmb2rXFUUxdc+X9e8JEQyEf8AE00nIoigRQqtrCyiEsEyWog2dnba+h9YCHZiEaIggjam0comIJJU4gck4T1DwvuYmXvPdu1z7515/gPZb/hx7rx5MIu1197n3PsC7EdVcE0fx4+6wA96xg37ftNhevgTmrhrOMurAa/Iv3hVHrph3286TE8T95126Ll+8u4Rnr8a3TEd/ajLnOtw9++K3VX8H+VkwuJCcWH3jqBiJ2BJlYe7ETs7acP5ix1OPlmwfy+4sDyYMpchWK0jDg5SQ7oCrQm3/gj482Fy4f4/1PNAAigH6xxPl5IM7Jwpp+7txVMlJS9wqAm9hIA13evv52GJxokTKQ8y5CGsixeoq3xMXI6aUmrUPuvyMCsL7gVEEgYT11FcXWfd0UYdUFRKVlE3cLTOCEcxIDJzskqcydlgcbkOFJjcQJids7IuKWhFQUalcwhkcAPDstCwaJtFQMl0LufGquco6Tuo+CFabLxZ/AJ0yAm1GD33higpR5bYC55E2BRhck6HPGcuVZmcgyMhY91HG8IUV6k2FEN1mDLnB6dHQe7C6Nw6ZO3RGYDwD3g9+EH32BCzc7WnoNpA5RHKTipx8KOyY/uB4pSTLooFsDSAYqM5sGu8gEaaNCS6ZqdhTuYwdAbf88Nq+4Yf1q2pTJmrWiKDaGjQrmXOEVSas1qmMXPm3PRBUOaOTYHqyGbOWeboHH8xYSKFJfZj7NYax8wpysZSDsHQHNTHvOCRyQZxslMJtbBbtxO6tNXc9MLKGu1U0pyrJYg0eNtjZWVj0EkntmW1zNE5pVuGzblKgW0Qe2Hiap3K2joUIzpuYa7YaVhkagjL3HHltLaKusGzuWUv2h1/NBtrkIbUmoWhFJ48vaAmMjvHslojGFTtm7dt5uKYuWBq55rrNn9uUE9MYbPxb3cIO8+xe3ntRStrc85e0hQ3S7XqdO3ZsZweUSZxlRs/N1ytc1m94X1r61ZtTzc3ZRVFFr537dbWsTGMO4S0Z025YUJ1Wr2wIQzLnPDFBuBSZO7WWagXm7KGuawb1xLX5OoclEdgCWPmlG/mMI7qi29ZmznByjrNudk5Cm3uqR8qtk7d2t5sLLXHEklF3DjunD253n5orrljDs6ZE7NSraRZqFporSe0iyclmZ2TyCUZY94kulLH563z3VfchFGOXXshJrK2st7F4ly/Ud2Ettnnx2IxYP9gL+AAP+OFF/+qi3MrYBbmV9J69okezz53B7/cuBnwhuyhdJ/2H3x0c/XypTurCxf31089/eg5/8z+6qVLu/17H97C7duf599/ezD+v/U1uYF4+gpev/wZrr7/tb71zjf65tvfPlIuX7nOCn6Jn77/OH/1xa/MnPwHoi9Z08sHR4EAAAAASUVORK5CYII='
)
no-repeat 0 0;
no-repeat 0 0;
background-size: cover;
background-size: cover;
overflow: hidden;
overflow: hidden;
margin-right: 4px;
margin-right: 4px;
}
}
.dot {
background-color: #01fff6;
width: 6px;
height: 6px;
border-radius: 100%;
margin-top: 36px;
margin-right: 4px;
}
.suffix {
.suffix {
font-size: 16px;
font-size: 16px;
color: #758094;
color: #758094;
font-family:
"Source Han Sans CN"
;
font-family:
'Source Han Sans CN'
;
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment