Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
b40dac56
Commit
b40dac56
authored
Apr 01, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:优化样式
parent
1daa523e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletions
+29
-1
src/modules/home/Home.jsx
+4
-0
src/modules/home/Home.less
+25
-1
No files found.
src/modules/home/Home.jsx
View file @
b40dac56
...
@@ -522,6 +522,10 @@ class Home extends React.Component {
...
@@ -522,6 +522,10 @@ class Home extends React.Component {
<
div
>
人均学习时长(分钟)
</
div
>
<
div
>
人均学习时长(分钟)
</
div
>
</
div
>
</
div
>
<
div
id=
"chart-id"
></
div
>
<
div
id=
"chart-id"
></
div
>
<
div
className=
"chart-bottom-tip"
>
<
div
className=
"tip-item"
style=
{
{
marginRight
:
100
}
}
><
span
className=
"student-dot"
></
span
>
学习人数
</
div
>
<
div
className=
"tip-item"
><
span
className=
"time-dot"
></
span
>
人均学习时长
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
)
)
...
...
src/modules/home/Home.less
View file @
b40dac56
...
@@ -285,10 +285,11 @@
...
@@ -285,10 +285,11 @@
}
}
.study-chart {
.study-chart {
width: 100%;
width: 100%;
height:
396
px;
height:
432
px;
background: #fff;
background: #fff;
padding: 16px;
padding: 16px;
margin-top: 16px;
margin-top: 16px;
padding-bottom: 32px;
.study-title {
.study-title {
font-size: 16px;
font-size: 16px;
color: #333;
color: #333;
...
@@ -318,6 +319,29 @@
...
@@ -318,6 +319,29 @@
}
}
}
}
}
}
.chart-bottom-tip {
display: flex;
justify-content: center;
.tip-item {
display: flex;
align-items: center;
color: #666;
.student-dot {
background: #5289FA;
height: 8px;
width: 8px;
border-radius: 50%;
margin-right: 8px;
}
.time-dot {
background: #FEB613;
height: 8px;
width: 8px;
border-radius: 50%;
margin-right: 8px;
}
}
}
}
}
}
}
...
...
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