Files
blog/css/shuoshuoshouye.css
2026-02-23 08:41:34 +08:00

140 lines
2.6 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* maintop */
#main_top {
display: flex;
justify-content: center;
z-index: 1;
max-width: 1400px;
margin: 20px auto;
width: 100%;
padding: 0 15px;
margin-top: 40px;
margin-bottom: 0px;
}
.hide-aside #main_top {
width: 80%;
}
.hide-aside #main_top #bber-talk {
max-width: 936px;
}
@media screen and (min-width: 2000px) {
.hide-aside #main_top #bber-talk {
max-width: 80%;
}
#main_top {
max-width: 70%;
}
}
@media screen and (max-width: 1210px) {
.hide-aside #main_top {
padding: 0 12px;
}
}
@media screen and (max-width: 900px) {
.hide-aside #main_top {
width: 100%;
padding: 0 15px;
}
}
@media screen and (max-width: 768px) {
.hide-aside #main_top {
padding: 0 5px;
}
div#main_top {
margin-top: 20px;
padding: 0 5px;
}
}
/* 重点修改bber-talk 的磨砂玻璃背景 */
#bber-talk {
/* 统一磨砂玻璃效果 */
background: linear-gradient(-45deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .8), rgba(255, 255, 255, .8), rgba(255, 255, 255, .7)) !important;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 12px; /* 给哔哔栏加一点圆角,更符合玻璃质感 */
border: 1px solid rgba(255, 255, 255, 0.3); /* 增加边缘高光 */
box-sizing: border-box;
cursor: pointer;
width: 100%;
min-height: 50px;
padding: .5rem 1rem;
display: flex;
align-items: center;
overflow: hidden;
font-weight: 700;
transition: all .3s ease-in-out;
}
/* 暗黑模式适配 */
[data-theme=dark] #bber-talk {
background: linear-gradient(-45deg, rgba(24, 40, 72, .7), rgba(35, 37, 58, .8), rgba(35, 37, 58, .8), rgba(24, 40, 72, .7)) !important;
border: 1px solid rgba(255, 255, 255, 0.1);
}
#bber-talk:hover {
transform: translateY(-2px); /* 悬停微动,增加交互感 */
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
#bber-talk,
#bber-talk a {
color: var(--font-color);
}
#bber-talk svg.icon {
width: 1em;
height: 1em;
vertical-align: -.15em;
fill: currentColor;
overflow: hidden;
font-size: 20px;
}
#bber-talk .item i {
margin-left: 5px;
}
#bber-talk > i {
font-size: 1.1rem;
}
#bber-talk .talk-list {
flex: 1;
max-height: 32px;
font-size: 16px;
padding: 0;
margin: 0;
overflow: hidden;
}
#bber-talk .talk-list:hover {
color: var(--default-bg-color);
transition: all .2s ease-in-out;
}
#bber-talk .talk-list li {
list-style: none;
width: 100%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
margin-left: 10px;
}
@media screen and (min-width: 770px) {
#bber-talk .talk-list {
text-align: center;
margin-right: 20px;
}
}