模板:用户页快捷模板/styles.css
来自CalcWiki
更多操作
/* 用户页快捷模板样式 - 深色模式兼容 */
.user-quick-card {
margin: 1em auto;
max-width: 800px;
border: 1px solid #a2a9b1;
background: #f8f9fa;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
font-family: sans-serif;
}
.user-quick-card-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
padding: 1.2em 1.5em;
background: linear-gradient(145deg, #eaf3ff, #ffffff);
border-bottom: 1px solid #c8ccd1;
border-radius: 8px 8px 0 0;
}
.user-quick-card-title {
font-size: 1.8em;
font-weight: 600;
color: #202122;
}
.user-quick-timezone {
margin-left: 12px;
background: #eaecf0;
padding: 4px 10px;
border-radius: 20px;
font-size: 0.85em;
color: #54595d;
}
.user-quick-button {
padding: 5px 14px;
border-radius: 20px;
border: 1px solid;
display: inline-block;
}
.user-quick-button-contrib {
background: #eaf3ff;
border-color: #a7d7f9;
}
.user-quick-button-talk {
background: #f8eccf;
border-color: #f0c68c;
}
.user-quick-button-email {
background: #fee7e6;
border-color: #f39c9c;
}
.user-quick-section {
background: white;
border: 1px solid #eaecf0;
border-radius: 8px;
padding: 1.2em;
}
.user-quick-section-title {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 15px;
border-bottom: 2px solid #36c;
padding-bottom: 8px;
font-weight: 600;
color: #1d2c4a;
font-size: 1.1em;
}
.user-quick-section-title-about {
border-bottom-color: #2a4b8c;
}
.user-quick-label {
min-width: 85px;
color: #36c;
font-weight: 500;
}
.user-quick-item {
display: flex;
margin-bottom: 10px;
padding: 5px 0;
}
.user-quick-about {
margin: 0;
line-height: 1.5em;
color: #2c3e50;
}
.user-quick-toolbox {
margin-top: 20px;
}
.user-quick-toolbox-title {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 12px;
color: #54595d;
border-bottom: 1px dashed #c8ccd1;
padding-bottom: 5px;
font-weight: 500;
}
.user-quick-tool {
background: #f8f9fa;
border: 1px solid #c8ccd1;
border-radius: 16px;
padding: 4px 12px;
font-size: 0.9em;
display: inline-block;
margin: 0 4px 4px 0;
}
.user-quick-footer {
background: #f0f4fc;
padding: 0.7em 1.5em;
border-top: 1px solid #c8ccd1;
border-radius: 0 0 8px 8px;
display: flex;
justify-content: space-between;
align-items: center;
}
.user-quick-footer-left {
color: #36c;
}
.user-quick-footer-right {
color: #54595d;
font-size: 0.9em;
}
/* 深色模式 */
@media (prefers-color-scheme: dark) {
.user-quick-card {
border-color: #404244;
background: #1e1f20;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.user-quick-card-header {
background: linear-gradient(145deg, #1a2a3a, #1e1f20);
border-bottom-color: #404244;
}
.user-quick-card-title {
color: #e0e2e5;
}
.user-quick-timezone {
background: #2a2c2e;
color: #c8ccd1;
}
.user-quick-button-contrib {
background: #1a2a3a;
border-color: #3366cc;
}
.user-quick-button-talk {
background: #3a3220;
border-color: #e6b873;
}
.user-quick-button-email {
background: #3a2020;
border-color: #e67e7e;
}
.user-quick-section {
background: #1e1f20;
border-color: #404244;
}
.user-quick-section-title {
color: #b9d0f0;
border-bottom-color: #6699ff;
}
.user-quick-label {
color: #88aaff;
}
.user-quick-about {
color: #d0d4d8;
}
.user-quick-toolbox-title {
color: #c8ccd1;
border-bottom-color: #404244;
}
.user-quick-tool {
background: #2a2c2e;
border-color: #54595d;
}
.user-quick-footer {
background: #1a2a3a;
border-top-color: #404244;
}
.user-quick-footer-left {
color: #88aaff;
}
.user-quick-footer-right {
color: #c8ccd1;
}
}
/* 窄屏适配 */
@media (max-width: 600px) {
.user-quick-card-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.user-quick-timezone {
margin-left: 0;
margin-top: 5px;
}
.user-quick-item {
flex-direction: column;
}
.user-quick-label {
margin-bottom: 4px;
}
}