Skip to content

Commit

Permalink
Update home.component.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
jzy-chitong56 authored Sep 25, 2024
1 parent a6cbaed commit d7b7a82
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion Electron/src/app/home/home.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,32 @@
transform: translateX(100%);
margin-left: -1px;
}
}

.radio-group {
display: flex; /* 使按钮在同一行显示 */
align-items: center; /* 垂直居中 */
gap: 4px; /* 按钮间隔 */
}

.radio-btn {
display: inline-block;
padding: 4px 40px; /* 内边距,根据需要调整 */
border-radius: 12px; /* 圆角 */
background-color: #ccc; /* 未选中时背景色 */
cursor: pointer; /* 鼠标悬停时显示指针 */
position: relative; /* 用于后续可能需要的定位 */
transition: background-color 0.3s; /* 背景色变化过渡效果 */
}

/* 鼠标悬停样式 */
.radio-btn:hover {
color: #FFFFFF; /* 选中时文字颜色 */
background-color: #75BDFF; /* 选中时背景色 */
}

input[type="radio"]:checked + .radio-btn {
background-color: #007bff; /* 选中时背景色 */
color: #FFFFFF; /* 选中时文字颜色 */
}

}

0 comments on commit d7b7a82

Please sign in to comment.