Skip to content

Commit 0d73da8

Browse files
authored
Add export function and add arrows in subgoals
1 parent f894872 commit 0d73da8

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

src/pages/PageFour/index.less

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
.right {
21-
//flex-grow: 1;
21+
flex-grow: 1;
2222
width: 220px;
2323
}
2424

@@ -47,7 +47,7 @@ ul {
4747
.sub_title {
4848
background-color: rgb(235,235,235);
4949
text-align: center;
50-
padding: 6px;
50+
padding: 5px;
5151
font-weight: bold;
5252
//border: 1px solid red;
5353
display: flex;
@@ -70,7 +70,12 @@ ul {
7070
}
7171

7272
.sub_list {
73+
height: 460px;
74+
overflow-y: scroll;
75+
}
7376

77+
.sub_list::-webkit-scrollbar {
78+
display: none
7479
}
7580

7681
.sub_item {
@@ -81,17 +86,42 @@ ul {
8186
background-color: rgb(255, 255, 255);
8287
}
8388

89+
.sub_item:hover {
90+
background-color: #add8e6;
91+
}
92+
93+
// Add the arrow
94+
.sub_item::after{
95+
display: inline-block;
96+
padding-right: 0%;
97+
position: absolute;
98+
top: 20%;
99+
right: 5%;
100+
content: "";
101+
height: 7px;
102+
width: 7px;
103+
border: solid #bbb;
104+
border-width: 2px 2px 0 0;
105+
}
106+
107+
//Rotate the arrow
108+
.sub_item::after {
109+
-webkit-transform: rotate(135deg);
110+
transform: rotate(135deg);
111+
}
112+
84113
.highlight_item {
85114
background-color: rgb(2, 173, 2);
86115
}
87116

88117
.sub_item_menu {
89118
top: 22px;
90119
left: 0;
120+
text-align: center;
91121
position: absolute;
92122
background-color: rgb(246, 248, 246);
93123
z-index: 100;
94-
width: 220px;
124+
width: 99%;
95125
overflow-y: scroll;
96126
max-height: 180px;
97127
border-style: solid;
@@ -104,5 +134,5 @@ ul {
104134
}
105135

106136
.sub_item_menu_item:hover {
107-
background-color: #eee;
137+
background-color: #bbb;
108138
}

0 commit comments

Comments
 (0)