mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-10-31 23:15:05 +01:00
Tweak styling due to Vitepress rc5 changes
This commit is contained in:
parent
52f8e921c9
commit
16223c09dc
@ -49,15 +49,7 @@ html:not(.dark) {
|
|||||||
* -------------------------------------------------------------------------- */
|
* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--vp-button-brand-border: var(--vp-c-brand-light)
|
--vp-button-brand-bg: var(--vp-c-brand-darker)
|
||||||
--vp-button-brand-text: var(--vp-c-black)
|
|
||||||
--vp-button-brand-bg: var(--vp-c-brand)
|
|
||||||
--vp-button-brand-hover-border: var(--vp-c-brand-light)
|
|
||||||
--vp-button-brand-hover-text: var(--vp-c-black)
|
|
||||||
--vp-button-brand-hover-bg: var(--vp-c-brand-light)
|
|
||||||
--vp-button-brand-active-border: var(--vp-c-brand-light)
|
|
||||||
--vp-button-brand-active-text: var(--vp-c-black)
|
|
||||||
--vp-button-brand-active-bg: var(--vp-button-brand-bg)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -125,24 +117,36 @@ html:not(.dark) {
|
|||||||
* Component: Image Figure
|
* Component: Image Figure
|
||||||
* -------------------------------------------------------------------------- */
|
* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
figure:has(img) {
|
// Shitty method to give elevation to image - TO BE REPLACED
|
||||||
position: relative
|
main > div > div > figure:has(img) img {
|
||||||
display: flex
|
box-shadow: 2px 2px 8px 4px var(--vp-c-bg-alt)
|
||||||
flex-direction: column
|
|
||||||
width: auto
|
|
||||||
text-align: center
|
|
||||||
transition: transform var(--vp-tt)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
figure:has(img) img {
|
figure {
|
||||||
overflow: hidden
|
&:has(img) {
|
||||||
margin: 0 auto
|
position: relative
|
||||||
border-radius: 8px
|
display: flex
|
||||||
}
|
flex-direction: column
|
||||||
|
width: auto
|
||||||
|
text-align: center
|
||||||
|
transition: transform var(--vp-tt)
|
||||||
|
|
||||||
figure:has(img) img[tabindex]:hover,
|
img {
|
||||||
figure:has(img) img[tabindex]:focus {
|
overflow: hidden
|
||||||
box-shadow: 2px 2px 10px 0 var(--card-shadow)
|
margin: 0 auto
|
||||||
|
border-radius: 8px
|
||||||
|
}
|
||||||
|
|
||||||
|
figcaption {
|
||||||
|
display: inline-block
|
||||||
|
margin: 6px auto
|
||||||
|
font-size: 0.8rem
|
||||||
|
}
|
||||||
|
|
||||||
|
& > a .external-link-icon {
|
||||||
|
display: none
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
@ -151,13 +155,11 @@ figure:has(img) img[tabindex]:focus {
|
|||||||
content: ""
|
content: ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.vp-doc a {
|
||||||
|
text-decoration: none
|
||||||
|
|
||||||
figure:has(img)>a .external-link-icon {
|
&:hover {
|
||||||
display: none
|
text-decoration: underline
|
||||||
}
|
text-underline-offset: 2px
|
||||||
|
}
|
||||||
figure:has(img) figcaption {
|
|
||||||
display: inline-block
|
|
||||||
margin: 6px auto
|
|
||||||
font-size: 0.8rem
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user