kitty/docs/_static/custom.css

95 lines
1.6 KiB
CSS

/*
* custom.css
* Copyright (C) 2018 Kovid Goyal
*
* Distributed under terms of the MIT license.
*/
.italic {
font-style: italic;
}
.sidebar-logo {
height: 128px;
}
.major-features li {
margin-bottom: 0.75ex;
margin-top: 0.75ex;
}
.sidebar-tree a.current {
font-style: italic;
}
details > summary {
color: var(--color-link);
cursor: pointer;
text-decoration-color: var(--color-link-underline);
text-decoration-line: underline;
}
/* pygments adds an underline to some white-space, this is particularly visible in
* dark mode. Remove it. */
.highlight .w {
text-decoration: none
}
/* Custom shader demo cards */
.shader-demo-card {
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shader-demo-card:hover {
transform: translateY(-2px);
}
/* Video modal overlay */
.shader-modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.85);
z-index: 10000;
align-items: center;
justify-content: center;
}
.shader-modal-overlay.active {
display: flex;
}
html.shader-modal-open {
overflow: hidden;
}
.shader-modal-container {
position: relative;
max-width: 90vw;
max-height: 90vh;
}
.shader-modal-close {
position: absolute;
top: -2rem;
right: 0;
background: transparent;
border: none;
color: #fff;
font-size: 2rem;
line-height: 1;
cursor: pointer;
padding: 0;
opacity: 0.8;
}
.shader-modal-close:hover {
opacity: 1;
}
.shader-modal-video {
display: block;
max-width: 90vw;
max-height: 85vh;
border-radius: 4px;
}