Template:Character Relationship Box/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
LordSkorne7 (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| (17 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
/* Character Relationship Box Style */ |
|||
.character-relationship-box { |
.character-relationship-box { |
||
position: relative; |
|||
display: flex; |
|||
| ⚫ | |||
align-items: center; |
|||
border: 2px solid transparent; |
|||
| ⚫ | |||
| ⚫ | |||
border: 2px solid var(--border-color, #df0049); |
|||
box-shadow: 0 0 12px var(--template-arg-border-color); |
|||
| ⚫ | |||
| ⚫ | |||
padding: 15px; |
|||
background-clip: padding-box; |
|||
margin: 20px 0; |
|||
padding: var(--space-md); |
|||
| ⚫ | |||
font-family: 'Varela Round', sans-serif; |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
margin-block: var(--space-sm); |
|||
} |
} |
||
.character-relationship- |
.character-relationship-box::after { |
||
position: absolute; |
|||
flex: 1; |
|||
top: -2px; |
|||
bottom: -2px; |
|||
left: -2px; |
|||
right: -2px; |
|||
background: var(--template-arg-border-image, var(--template-arg-border-color)); |
|||
content: ''; |
|||
z-index: -1; |
|||
| ⚫ | |||
} |
} |
||
| ⚫ | |||
.character-relationship- |
.character-relationship-box { |
||
font-size: 1.8em; |
|||
width: 100%; |
|||
| ⚫ | |||
} |
|||
margin-bottom: 8px; |
|||
| ⚫ | |||
} |
} |
||
.character-relationship- |
.character-relationship-box > p:first-of-type { |
||
margin-block-start: 0; |
|||
font-size: 0.95em; |
|||
margin-bottom: 10px; |
|||
line-height: 1.4em; |
|||
} |
} |
||
.character-relationship- |
.character-relationship-box > p:last-of-type { |
||
margin-block-end: 0; |
|||
font-size: 1em; |
|||
| ⚫ | |||
line-height: 1.5em; |
|||
} |
} |
||
.character-relationship- |
.character-relationship-box-hearts { |
||
font-size: var(--font-size-x-large); |
|||
| ⚫ | |||
| ⚫ | |||
color: var(--template-arg-heart-color); |
|||
} |
} |
||
.character-relationship- |
.character-relationship-box-label { |
||
font-weight: bold; |
|||
width: var(--image-size, 100px); |
|||
color: var(--template-arg-section-color); |
|||
| ⚫ | |||
} |
|||
.character-relationship-box-description { |
|||
color: var(--color-base); |
|||
} |
} |
||
Latest revision as of 19:34, May 24, 2025
.character-relationship-box {
position: relative;
color: var(--template-arg-color);
border: 2px solid transparent;
border-radius: 16px;
box-shadow: 0 0 12px var(--template-arg-border-color);
background: var(--template-arg-background);
background-clip: padding-box;
padding: var(--space-md);
width: 80%;
margin-left: auto;
margin-right: auto;
margin-block: var(--space-sm);
}
.character-relationship-box::after {
position: absolute;
top: -2px;
bottom: -2px;
left: -2px;
right: -2px;
background: var(--template-arg-border-image, var(--template-arg-border-color));
content: '';
z-index: -1;
border-radius: 16px;
}
@media (max-width: 639px) {
.character-relationship-box {
width: 100%;
}
}
.character-relationship-box > p:first-of-type {
margin-block-start: 0;
}
.character-relationship-box > p:last-of-type {
margin-block-end: 0;
}
.character-relationship-box-hearts {
font-size: var(--font-size-x-large);
font-weight: bold;
color: var(--template-arg-heart-color);
}
.character-relationship-box-label {
font-weight: bold;
color: var(--template-arg-section-color);
}
.character-relationship-box-description {
color: var(--color-base);
}