Skip to content

Commit f634fec

Browse files
committed
refactor: 修改侧边栏样式为'::before'
1 parent 22d733e commit f634fec

3 files changed

Lines changed: 15 additions & 30 deletions

File tree

assets/css/main.css

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,6 @@ mark {
919919
display: block;
920920
}
921921

922-
923922
.faq-item .faq-title.open + .faq-answer{
924923
max-height: 600px;
925924
}
@@ -946,8 +945,6 @@ mark {
946945
position: relative;
947946
margin: 0px !important;
948947
padding-right: 30px !important;
949-
/* width: 500px; */
950-
/* overflow-x: auto; */
951948
}
952949

953950

@@ -956,7 +953,6 @@ mark {
956953
position: fixed;
957954
top: 28%;
958955
left: 5px;
959-
/* right:70%; */
960956
display: -webkit-flex;
961957
display: flex;
962958
flex-direction:column;
@@ -968,46 +964,35 @@ mark {
968964
display: -webkit-flex;
969965
display: flex;
970966
flex-direction: row;
971-
height: 40px;/*33*/
972-
width: 160px;/*160*/
973-
padding: 6px 0px;/*字的位置*/
967+
height: 40px;
968+
width: 160px;
969+
padding: 6px 0px;
974970
text-decoration: none;
975971
outline: none;
976972
cursor: pointer;
977973
border: none;
978-
/* border-top-right-radius: 5px;
979-
border-bottom-right-radius: 5px; */
980974
color: #fff !important;
981975
font-size: 16px;
982976
line-height: 1.2;
983977
transition: all .3s ease;
984-
/* background-color: rgb(97, 160, 202); */
985-
/* box-shadow: 0 10px 30px 0 rgba(51,51,51,.5);
986-
-moz-box-shadow: 0 10px 30px 0 rgba(51,51,51,.5);
987-
-webkit-box-shadow: 0 10px 30px 0 rgba(51,51,51,.5); */
988978
margin-top: 0px;
979+
position: relative;
980+
justify-content: center;
981+
align-items: center;
989982
}
990983

991984
.anchor-box > a:hover {
992985
width: 190px;
993-
/* background-color: rgb(15, 93, 237) !important; */
994-
/* background-image: url("https://heltec.org/wp-content/uploads/2019/03/logo-tab-1.png");
995-
background-repeat: no-repeat; */
996-
background:url("../image/arrows.png") no-repeat;
997-
background-position:0% 50%;
998-
/* box-shadow: 0 10px 30px 0 rgba(255,75,90,.5) !important;
999-
-moz-box-shadow: 0 10px 30px 0 rgba(255,75,90,.5) !important;
1000-
-webkit-box-shadow: 0 10px 30px 0 rgba(255,75,90,.5) !important; */
1001-
}
1002-
1003-
.anchor-box span {
1004-
width: 160px;
1005-
text-align: center;
1006-
transition: all .3s ease;
986+
justify-content: flex-end;
1007987
}
1008-
.anchor-box span:hover {
1009-
width: 190px;
1010-
text-align: right;
988+
.anchor-box >
989+
a:hover::before {
990+
content:'>>';
991+
font-size: 25px;
992+
font-weight: 700;
993+
position: absolute;
994+
top: 4px;
995+
left: 4px;
1011996
}
1012997

1013998
.anchor-box a:first-child {

assets/image/arrows.png

-2.26 KB
Binary file not shown.

assets/image/ht_m01s.jpg

-579 KB
Binary file not shown.

0 commit comments

Comments
 (0)