更多操作
无编辑摘要 |
小 添加鼠标悬浮图片时放大的过渡动画效果 |
||
(未显示2个用户的9个中间版本) | |||
第1行: | 第1行: | ||
.infobox { | .infobox { | ||
overflow: visible; | overflow: visible; | ||
第80行: | 第75行: | ||
} | } | ||
.infobox-image th{ | .infobox-image th { | ||
padding: 0; | padding: 0; | ||
} | } | ||
.infobox-image--light | .infobox-image--light img { | ||
background: #eaecf0; | background: #eaecf0; | ||
} | } | ||
.infobox-image--dark | .infobox-image--dark img { | ||
background: #2b2f36; | background: #2b2f36; | ||
} | } | ||
.infobox-image | .infobox-image img:hover { | ||
transform: scale( 1.1 ); | transform: scale( 1.1 ); | ||
} | } | ||
.infobox- | .infobox-image img { | ||
display: block; | display: block; | ||
max-width: | width: 100% !important; | ||
max-width: 400px !important; | |||
height: auto !important; | |||
background: var( --background-color-quiet--hover ); | background: var( --background-color-quiet--hover ); | ||
transition: transform .3s cubic-bezier(0, .5, 0, 1) | |||
} | } | ||
第113行: | 第111行: | ||
font-size: 1.4rem; | font-size: 1.4rem; | ||
line-height: 1.4; | line-height: 1.4; | ||
} | |||
.infobox .infobox-title span img { | |||
position: relative; | |||
margin-top: -4px; | |||
margin-right: 4px; | |||
} | } | ||
2025年5月23日 (五) 23:53的最新版本
.infobox {
overflow: visible;
width: 100%;
max-width: 400px;
margin-top: 0;
margin-bottom: 1.6rem!important;
background: var(--color-surface-2);
border-radius: 8px;
border-spacing: 0;
box-shadow: var(--box-shadow-card);
font-size: 0.875rem;
text-align: left;
}
.infobox tbody {
display: flex;
flex-wrap: wrap;
}
.infobox tr {
display: flex;
box-sizing: border-box;
flex-direction: column;
padding: 0 10px;
margin-top: 10px;
}
.infobox th,
.infobox td {
padding: 0 5px;
}
.infobox .infobox-nocol {
width: 100%;
flex-direction: row;
}
.infobox .infobox-nocol th {
width: 30%;
}
.infobox .infobox-nocol td {
width: 70%;
}
.infobox .infobox-col1 {
width: 100%;
}
.infobox .infobox-col2 {
width: 50%;
}
.infobox .infobox-col3 {
width: calc( 100% / 3 );
}
.infobox .infobox-col4 {
width: 25%;
}
.infobox-data {
min-width: 25%;
}
.infobox .infobox-image {
overflow: hidden;
padding: 0;
margin-top: 0;
border-radius: 8px 8px 0 0;
}
.infobox-image td {
padding: 0;
}
.infobox-image th {
padding: 0;
}
.infobox-image--light img {
background: #eaecf0;
}
.infobox-image--dark img {
background: #2b2f36;
}
.infobox-image img:hover {
transform: scale( 1.1 );
}
.infobox-image img {
display: block;
width: 100% !important;
max-width: 400px !important;
height: auto !important;
background: var( --background-color-quiet--hover );
transition: transform .3s cubic-bezier(0, .5, 0, 1)
}
.infobox-image .image img[ src$='.svg' ] {
background: #eaecf0;
}
.infobox .infobox-title {
width: 100%;
margin-top: 20px;
margin-bottom: 5px;
color: var( --color-base--emphasized );
font-size: 1.4rem;
line-height: 1.4;
}
.infobox .infobox-title span img {
position: relative;
margin-top: -4px;
margin-right: 4px;
}
.infobox .infobox-indicator {
margin-top: 0;
padding: 0;
}
.infobox .infobox-subtitle {
margin-top: -5px;
margin-bottom: 5px;
}
.infobox .infobox-indicator th,
.infobox .infobox-subtitle th {
display: none;
}
.infobox .infobox-header {
width: 100%;
padding-top: 15px;
border-top: 1px solid;
border-color: var( --border-color-base );
margin-top: 15px;
color: var( --color-base--emphasized );
font-size: 1rem;
}
.infobox-data th {
color: var( --color-base--subtle );
font-size: 0.8125rem;
font-weight: normal;
letter-spacing: 0.75px;
}
.infobox-data td {
font-weight: 600;
}
.infobox-data ul,
.infobox-data ol {
margin-top: 0;
}
.infobox .infobox-button-bar {
width: 100%;
padding: 0;
margin-top: 25px;
text-align: center;
}
.infobox-button-bar th {
padding: 0;
}
.infobox tr:first-of-type .mw-collapsible-toggle {
position: relative;
display: none;
float: none;
}
.infobox tr:first-of-type .mw-collapsible-toggle .mw-collapsible-text {
position: absolute;
right: 0;
display: block;
padding: 5px 15px;
background: var( --color-destructive );
border-radius: 0 var( --border-radius--medium );
color: #fff;
}
.infobox tr:first-of-type .mw-collapsible-toggle .mw-collapsible-text:hover {
background: var( --color-destructive--hover );
}
.infobox tr:first-of-type .mw-collapsible-toggle .mw-collapsible-text:active {
background: var( --color-destructive--active );
}
.infobox tr:first-of-type .mw-collapsible-toggle-collapsed .mw-collapsible-text {
background: var( --color-primary );
}
.infobox tr:first-of-type .mw-collapsible-toggle-collapsed .mw-collapsible-text:hover {
background: var( --color-primary--hover );
}
.infobox tr:first-of-type .mw-collapsible-toggle-collapsed .mw-collapsible-text:active {
background: var( --color-primary--active );
}
.infobox tr:first-of-type .mw-collapsible-toggle:before,
.infobox tr:first-of-type .mw-collapsible-toggle:after {
content: none;
}
@media only screen and ( max-width: 720px ) {
.infobox {
margin-right: auto;
margin-left: auto;
}
.infobox tr:first-of-type .mw-collapsible-toggle {
display: block;
}
}
.floatright:disabled {
margin: 0;
}
.card-button a:hover {
text-decoration: unset!important;
}