MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 364: | Line 364: | ||
} | } | ||
} | } | ||
.icon { | |||
. | |||
display: inline-block; | display: inline-block; | ||
position: | width: 14px; | ||
vertical-align: middle; | height: 14px; | ||
background-repeat: no-repeat; | |||
background-position: center; | |||
background-size: contain; | |||
vertical-align: middle; | |||
} | } | ||
. | /* Your icons */ | ||
.icon-copy { | |||
background-image: url('/images/copy.svg'); | |||
} | } | ||
. | .icon-commentary { | ||
background-image: url('/images/commentary.svg'); | |||
background: | |||
} | } | ||
.verse- | /* Optional polish */ | ||
.verse-action-btn { | |||
cursor: pointer; | |||
opacity: 0.7; | |||
transition: opacity 0.2s ease; | |||
} | } | ||
.verse- | .verse-action-btn:hover { | ||
opacity: 1; | |||
} | |||
/* Hide actions by default */ | |||
.verse-actions { | |||
opacity: 0; | |||
transition: opacity 0.2s ease; | |||
} | } | ||
.verse- | /* Show on hover of verse */ | ||
.verse-block:hover .verse-actions { | |||
opacity: 1; | |||
} | |||
.shloka-line { | |||
display: flex; | display: flex; | ||
align-items: | align-items: baseline; | ||
justify-content: space-between; | |||
} | |||
/* Keep text natural */ | |||
.shloka-line > *:first-child { | |||
flex: 1; | |||
} | } | ||
.verse- | /* Actions aligned nicely */ | ||
.verse-actions { | |||
display: inline-flex; | |||
align-items: center; | |||
gap: 6px; | |||
margin-left: 8px; | |||
} | } | ||
. | /* Icon tuning */ | ||
.icon { | |||
width: 14px; | |||
height: 14px; | |||
transform: translateY(1px); /* subtle baseline fix */ | |||
} | } | ||