User:Wecury/Sandbox/styles.css
来自Vocawiki
更多操作
< User:Wecury | Sandbox
/* 搜索框样式 */
.mainpage-search {
width: 59%;
margin: 0 auto;
line-height: 37px;
text-align: center;
background: #fff;
cursor: pointer;
border-radius: 8px;
box-shadow: 0 0 5px rgba(57, 197, 187, .5);
white-space: nowrap;
transition: filter 0.2s ease; /* 增加平滑过渡 */
}
body:not(.main-sm) .mainpage-search {
width: calc(100% - 16px);
margin: 0 8px;
}
.mainpage-search:hover,
.mainpage-search:focus {
filter: brightness(0.97);
}
.mainpage-search:active {
filter: brightness(0.94);
}
/* 链接列表样式 */
.mainpage-link > ol {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin: 0 !important;
padding: 0;
}
.mainpage-link li {
flex-grow: 1;
display: block;
min-width: 6em;
max-width: 100%;
margin: 0 !important;
}
.mainpage-link a {
display: flex;
justify-content: center; /* JS未加载时有用 */
align-items: center;
box-sizing: border-box;
height: 32px;
padding: 0 8px;
color: #333;
background: #fff;
border: 1px solid #dde;
border-radius: 6px;
text-decoration: none !important;
white-space: nowrap;
overflow: hidden;
transition: filter 0.2s ease; /* 增加平滑过渡 */
}
.mainpage-link a:hover,
.mainpage-link a:focus {
filter: brightness(0.97);
}
.mainpage-link a:active {
filter: brightness(0.94);
}