mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-08-02 02:52:40 +08:00
website: move into monorepo
This commit is contained in:
173
apps/website/src/css/custom.css
Executable file
173
apps/website/src/css/custom.css
Executable file
@ -0,0 +1,173 @@
|
||||
@font-face {
|
||||
font-family: 'Inter var';
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
font-named-instance: 'Regular';
|
||||
src: url('./fonts/Inter-roman-latin.var.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter var';
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
font-named-instance: 'Italic';
|
||||
src: url('./fonts/Inter-italic-latin.var.woff2') format('woff2');
|
||||
}
|
||||
|
||||
:root {
|
||||
--ifm-color-primary: #6565d5;
|
||||
--ifm-color-primary-dark: #5959d2;
|
||||
--ifm-color-primary-darker: #4c4cce;
|
||||
--ifm-color-primary-darkest: #4040cb;
|
||||
--ifm-color-primary-light: #7e7edc;
|
||||
--ifm-color-primary-lighter: #8a8adf;
|
||||
--ifm-color-primary-lightest: #afafe9;
|
||||
|
||||
--ifm-font-family-base: 'Inter var', -apple-system, BlinkMacSystemFont,
|
||||
'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
|
||||
'Droid Sans', 'Helvetica Neue', sans-serif;
|
||||
--ifm-font-size-base: 16px;
|
||||
|
||||
--ifm-footer-padding-vertical: 3rem;
|
||||
}
|
||||
|
||||
html[data-theme='dark'] {
|
||||
--ifm-color-primary: #7f7ff0;
|
||||
--ifm-color-primary-dark: rgb(114, 114, 216);
|
||||
--ifm-color-primary-darker: rgb(108, 108, 204);
|
||||
--ifm-color-primary-darkest: rgb(89, 89, 168);
|
||||
--ifm-color-primary-light: rgb(146, 146, 242);
|
||||
--ifm-color-primary-lighter: rgb(165, 165, 245);
|
||||
--ifm-color-primary-lightest: rgb(191, 191, 248);
|
||||
}
|
||||
|
||||
.navbar__items {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.footer__links {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.footer__copyright {
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
.markdown h1:first-child {
|
||||
--ifm-h1-font-size: 1.5em;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.markdown h1:first-child {
|
||||
--ifm-h1-font-size: 2.25em;
|
||||
}
|
||||
}
|
||||
|
||||
.markdown h2 {
|
||||
--ifm-h2-font-size: 1.375em;
|
||||
margin-top: 2em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.markdown h2 {
|
||||
--ifm-h2-font-size: 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
.markdown h3 {
|
||||
--ifm-h3-font-size: 1.25em;
|
||||
font-weight: 600;
|
||||
margin-top: 1.8em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.markdown h4 {
|
||||
font-size: 1.15em;
|
||||
font-weight: 600;
|
||||
margin-top: 1.6em;
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
|
||||
.markdown h5 {
|
||||
font-size: 1em;
|
||||
font-weight: 600;
|
||||
margin-top: 1.4em;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
.markdown blockquote {
|
||||
border-left-color: var(--ifm-color-emphasis-200);
|
||||
border-left-width: 0.5rem;
|
||||
color: var(--ifm-color-emphasis-600);
|
||||
}
|
||||
|
||||
.markdown ul blockquote {
|
||||
font-size: 0.9em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
:root {
|
||||
--ifm-font-size-base: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
div[class^='announcementBar_'] {
|
||||
background-color: var(--ifm-color-primary);
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.menu {
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.table-of-contents {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.theme-doc-markdown {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
.theme-doc-markdown details {
|
||||
--ifm-alert-background-color: transparent;
|
||||
border: 1px solid var(--ifm-color-primary);
|
||||
}
|
||||
|
||||
.theme-doc-markdown details h2,
|
||||
.theme-doc-markdown details h3,
|
||||
.theme-doc-markdown details h4,
|
||||
.theme-doc-markdown details h5,
|
||||
.theme-doc-markdown details h6 {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.navbar-icon {
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
height: 32px;
|
||||
width: 32px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 12px;
|
||||
padding: 0;
|
||||
transition: background var(--ifm-transition-fast);
|
||||
}
|
||||
|
||||
.navbar-icon:hover {
|
||||
background: var(--ifm-color-emphasis-200);
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.theme-doc-markdown .theme-admonition {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.admonition-heading h5 {
|
||||
margin-top: 0;
|
||||
}
|
BIN
apps/website/src/css/fonts/Inter-italic-latin.var.woff2
Normal file
BIN
apps/website/src/css/fonts/Inter-italic-latin.var.woff2
Normal file
Binary file not shown.
BIN
apps/website/src/css/fonts/Inter-roman-latin.var.woff2
Normal file
BIN
apps/website/src/css/fonts/Inter-roman-latin.var.woff2
Normal file
Binary file not shown.
Reference in New Issue
Block a user