mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 03:11:22 +00:00
137 lines
2.6 KiB
SCSS
137 lines
2.6 KiB
SCSS
// slim scroll bar for windows based web browsers - works on firefox
|
|
* {
|
|
scrollbar-color: var(--vp-c-divider-light) var(--vp-button-alt-bg);
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
// slim scroll bar for windows based web browsers - works on chrome, edge, and safari
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
// scrolling handle
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--vp-c-mute);
|
|
}
|
|
|
|
// handle on hover
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--vp-button-alt-hover-bg);
|
|
}
|
|
|
|
// scrolling track/backgronund color
|
|
::-webkit-scrollbar-track {
|
|
background: var(--vp-button-alt-bg);
|
|
}
|
|
|
|
// tweak for removing webkit scrollbar's small corner square at the right buttom
|
|
::-webkit-scrollbar-corner {
|
|
background: transparent;
|
|
}
|
|
// slim scrollbar styles end
|
|
|
|
// responsible katex style with horizontal scroll on small screen devices
|
|
// fix katex display overflowing on small screen devices with horizontal scrollbar for viewing full formulas
|
|
.katex {
|
|
font-size: 1.05em;
|
|
direction: ltr;
|
|
}
|
|
|
|
.katex-display {
|
|
overflow: auto hidden;
|
|
-webkit-overflow-scrolling: touch;
|
|
padding-top: 0.2em;
|
|
padding-bottom: 0.2em;
|
|
|
|
&::-webkit-scrollbar {
|
|
height: 3px;
|
|
}
|
|
|
|
.katex {
|
|
font-size: 1.21em;
|
|
}
|
|
}
|
|
|
|
.katex-error {
|
|
color: #f00;
|
|
}
|
|
/* katex styles end */
|
|
|
|
/* custom responsive medium zoom component style */
|
|
.medium-zoom-overlay {
|
|
z-index: 20;
|
|
}
|
|
|
|
.medium-zoom-image {
|
|
z-index: 21;
|
|
}
|
|
|
|
.medium-zoom-image {
|
|
/* border-radius: 5px; */
|
|
align-items: center;
|
|
}
|
|
/* medium zoom style ends */
|
|
|
|
/* global border radius style for image within article container */
|
|
.VPDoc .content-container img {
|
|
border-radius: 5px;
|
|
}
|
|
/* image style ends */
|
|
|
|
/* fontawesome heart pumping styles */
|
|
.heart {
|
|
animation: heart 5s ease infinite;
|
|
color: red;
|
|
}
|
|
|
|
@keyframes heart {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
5% {
|
|
transform: scale(1.25);
|
|
}
|
|
20% {
|
|
transform: scale(1);
|
|
}
|
|
30% {
|
|
transform: scale(1);
|
|
}
|
|
35% {
|
|
transform: scale(1.25);
|
|
}
|
|
50% {
|
|
transform: scale(1);
|
|
}
|
|
55% {
|
|
transform: scale(1.25);
|
|
}
|
|
70% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
/* font awesome heart pumping style ends */
|
|
|
|
/* glonal code font styles */
|
|
pre,
|
|
code,
|
|
kbd,
|
|
samp {
|
|
font-family: var(--vp-font-family-mono);
|
|
}
|
|
/* global code font styles ends */
|
|
|
|
// specify vitepress home hero image's width to 300 px for preventing image overlapping on text
|
|
img.VPImage.image-src {
|
|
width: 300px;
|
|
}
|
|
// hero image sytles ends
|
|
|
|
// aligning homepage team member section vertically in straight line
|
|
.vp-doc > div {
|
|
width: 100%;
|
|
}
|
|
// team member section styles end
|
|
|
|
// |