Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit a2c032f

Browse files
author
z
committed
onhover effects
1 parent 4add6f6 commit a2c032f

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

components/learn/subject-marked.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ const Marked = styled.div`
1010
border-collapse: collapse;
1111
text-align: center;
1212
}
13-
td:first-child {
14-
text-align: right;
13+
td,
14+
tr,
15+
table th th {
16+
text-align: center;
1517
}
1618
th {
1719
background: #f5f5f5;
@@ -20,7 +22,7 @@ const Marked = styled.div`
2022
}
2123
td,
2224
th {
23-
padding: 6px;
25+
padding: 15px;
2426
border: 1px solid #ccc;
2527
text-align: center;
2628
}
@@ -33,7 +35,7 @@ const Marked = styled.div`
3335
tr {
3436
display: block;
3537
text-align: center;
36-
margin-bottom: 10px;
38+
margin-bottom: 30px;
3739
}
3840
thead tr {
3941
position: absolute;
@@ -49,22 +51,21 @@ const Marked = styled.div`
4951
border-bottom: 1px solid #eee;
5052
position: relative;
5153
padding-left: 50%;
54+
text-align: center;
5255
}
5356
td:before {
57+
text-align: center;
5458
position: absolute;
55-
top: 6px;
5659
left: 6px;
5760
width: 30%;
58-
padding-right: 5px;
59-
white-space: normal;
60-
font-size: 12px;
61-
text-align: center;
61+
font-size: 0.7rem;
6262
}
6363
td:nth-of-type(1):before {
6464
content: 'Concept';
6565
}
6666
td:nth-of-type(1) {
6767
background: #f4f6fb;
68+
text-align: center;
6869
}
6970
td:nth-of-type(2):before {
7071
content: 'Best video';
@@ -76,7 +77,7 @@ const Marked = styled.div`
7677
content: 'Duration';
7778
}
7879
td:nth-of-type(5):before {
79-
content: 'Prereq';
80+
content: 'Prereq.';
8081
}
8182
}
8283
`;

components/learn/syllabus-tree/syllabus-tree-container.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ export default class SyllabusTree extends React.Component {
2222
const Container = styled.div`
2323
& .node {
2424
transition: all 0.5s;
25-
border-radius: 3px;
2625
}
2726
2827
& .node:hover,
2928
& .info:hover {
30-
background-color: rgb(220, 245, 243);
29+
background-color: #f5f5f5;
30+
border-left: 1px solid #374355;
3131
cursor: pointer;
3232
}
3333
3434
& .info,
3535
& .node {
36-
padding: 2px 10px 2px 5px;
36+
padding: 5px 10px 5px 5px;
3737
font: 14px Helvetica, Arial, sans-serif;
3838
user-select: none;
3939
}

0 commit comments

Comments
 (0)