mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-08-29 12:08:25 +02:00
322 lines
6.0 KiB
CSS
322 lines
6.0 KiB
CSS
:root {
|
|
--vp-c-brand: #f56565;
|
|
--vp-c-brand-light: #f67373;
|
|
--vp-c-brand-lighter: #f89191;
|
|
--vp-c-brand-dark: #dc5a5a;
|
|
--vp-c-brand-darker: #c45050;
|
|
|
|
--vp-c-brand-1: #f67373;
|
|
--vp-c-brand-2: #ff7070;
|
|
--vp-c-brand-3: #f56565;
|
|
--vp-c-brand-4: #dc5a5a;
|
|
--vp-c-brand-5: #c45050;
|
|
|
|
--vp-c-bg-alt-up: #fff;
|
|
--vp-c-bg-alt-down: #fff;
|
|
|
|
--vp-code-editor-plain: #24292e;
|
|
--vp-code-editor-comment: #6a737d;
|
|
--vp-code-editor-keyword: #d73a49;
|
|
--vp-code-editor-tag: #22863a;
|
|
--vp-code-editor-punctuation: #24292e;
|
|
--vp-code-editor-definition: #6f42c1;
|
|
--vp-code-editor-property: #005cc5;
|
|
--vp-code-editor-static: #f78c6c;
|
|
--vp-code-editor-string: #032f62;
|
|
|
|
--vp-c-text-4: rgba(60, 60, 67, 0.32);
|
|
--vp-home-hero-name-color: var(--vp-c-text);
|
|
|
|
--vp-a11y-danger: var(--vp-c-danger-3);
|
|
--vp-a11y-success: var(--vp-c-success-3);
|
|
--vp-a11y-warning: #da9200;
|
|
|
|
--vp-sidebar-input: var(--vp-c-gray-3);
|
|
}
|
|
|
|
.dark {
|
|
--vp-c-bg-alt-up: #1b1b1d;
|
|
--vp-c-bg-alt-down: #0f0f10;
|
|
|
|
--vp-code-editor-plain: #e1e4e8;
|
|
--vp-code-editor-comment: #6a737d;
|
|
--vp-code-editor-keyword: #f97583;
|
|
--vp-code-editor-tag: #85e89d;
|
|
--vp-code-editor-punctuation: #9ecbff;
|
|
--vp-code-editor-definition: #b392f0;
|
|
--vp-code-editor-property: #79b8ff;
|
|
--vp-code-editor-static: #f78c6c;
|
|
--vp-code-editor-string: #9ecbff;
|
|
|
|
--vp-c-text-1: #dfdfd6;
|
|
--vp-c-text-4: rgba(235, 235, 245, 0.16);
|
|
|
|
--vp-a11y-danger: var(--vp-c-danger-2);
|
|
--vp-a11y-success: var(--vp-c-success-2);
|
|
--vp-a11y-warning: var(--vp-c-warning-2);
|
|
|
|
--vp-sidebar-input: var(--vp-c-bg-soft);
|
|
}
|
|
|
|
@view-transition {
|
|
navigation: auto;
|
|
}
|
|
|
|
/* ::view-transition-old(icons-search-box),
|
|
::view-transition-new(icons-search-box) {
|
|
animation: .3s transition 0s ease;
|
|
} */
|
|
|
|
html {
|
|
scrollbar-gutter: stable;
|
|
}
|
|
|
|
.VPHome {
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.VPNavBarTitle .logo {
|
|
height: 36px;
|
|
width: 36px;
|
|
}
|
|
|
|
.VPNavBarTitle .title {
|
|
font-size: 21px;
|
|
}
|
|
|
|
.VPHomeHero > .container {
|
|
gap: 24px;
|
|
}
|
|
|
|
.VPHomeHero .image-container {
|
|
transform: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.VPHomeHero .name::first-line {
|
|
color: var(--vp-c-brand);
|
|
}
|
|
|
|
.VPHomeHero .container .image {
|
|
margin: 0;
|
|
order: 2;
|
|
/* margin-top: 32px; */
|
|
}
|
|
|
|
.VPHomeHero .container .image-container {
|
|
height: auto;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.VPFeature .icon {
|
|
background-color: var(--vp-c-bg);
|
|
}
|
|
|
|
.vp-doc[class*=' _icons_'] > div {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.VPDoc:has(.vp-doc[class*=' _icons_']) > .container > .content {
|
|
padding-right: 0;
|
|
padding-left: 0;
|
|
}
|
|
|
|
.overview-container.icon-drawer-open {
|
|
padding-bottom: 288px;
|
|
}
|
|
|
|
.VPHomeHero .container {
|
|
flex-direction: column-reverse;
|
|
}
|
|
|
|
@media (min-width: 960px) {
|
|
.VPHomeHero .container .image {
|
|
order: 1;
|
|
margin-bottom: auto;
|
|
margin-top: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.VPHomeHero .container .main {
|
|
width: 50%;
|
|
}
|
|
|
|
.VPHomeHero .container .image {
|
|
width: 50%;
|
|
}
|
|
|
|
.VPHomeHero .container .image-container {
|
|
display: block;
|
|
}
|
|
|
|
.VPHomeHero .container {
|
|
flex-direction: row;
|
|
}
|
|
}
|
|
|
|
.VPNavBarHamburger .container > span {
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.package-lucide-logo {
|
|
margin: 0 auto 48px;
|
|
max-width: 480px;
|
|
}
|
|
|
|
.VPSidebar {
|
|
/* Hide Scrollbar */
|
|
-ms-overflow-style: none;
|
|
scrollbar-width: none;
|
|
scrollbar-width: thin; /* can also be normal, or none, to not render scrollbar */
|
|
scrollbar-color: var(--vp-c-text-4) transparent; /* foreground background */
|
|
}
|
|
.VPSidebar::-webkit-scrollbar {
|
|
width: 0;
|
|
display: none;
|
|
}
|
|
|
|
.VPSidebar::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.VPSidebar::-webkit-scrollbar-thumb {
|
|
background: transparent;
|
|
border: none;
|
|
}
|
|
|
|
.custom-block.success {
|
|
border-color: transparent;
|
|
color: var(--vp-c-text-1);
|
|
background-color: var(--vp-c-success-soft);
|
|
}
|
|
/* Example guidance blocks */
|
|
.example-block {
|
|
margin: 32px 0;
|
|
}
|
|
|
|
.example-block__title {
|
|
margin: 0 0 12px;
|
|
font-size: 20px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.example-block > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.example-block > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.example-block__content > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.example-block__content > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.example-guidance__image {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
background-color: var(--vp-c-bg-soft);
|
|
border-bottom: 4px solid var(--vp-c-divider);
|
|
border-top-left-radius: 16px;
|
|
border-top-right-radius: 16px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.example-guidance__image--raw svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.example-guidance__text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 160px;
|
|
padding: 24px;
|
|
background-color: var(--vp-c-bg-alt);
|
|
border-bottom: 1px solid var(--vp-c-divider);
|
|
border-top-left-radius: 16px;
|
|
border-top-right-radius: 16px;
|
|
color: var(--vp-c-text-1);
|
|
font-size: 20px;
|
|
line-height: 1.4;
|
|
text-align: center;
|
|
}
|
|
|
|
.example-guidance__text svg.lucide {
|
|
flex-shrink: 0;
|
|
display: inline-block;
|
|
vertical-align: -6px;
|
|
}
|
|
|
|
.example-guidance__caption {
|
|
color: var(--vp-c-text-1);
|
|
}
|
|
|
|
.example-guidance__caption > p {
|
|
margin: 0;
|
|
padding: 0 16px 16px;
|
|
}
|
|
|
|
.example-guidance__label {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
margin: 0 0 16px;
|
|
background-color: var(--example-guidance-label-bg);
|
|
color: var(--vp-c-neutral-inverse);
|
|
border-bottom-left-radius: 16px;
|
|
border-bottom-right-radius: 16px;
|
|
}
|
|
|
|
.example-guidance--do {
|
|
--example-guidance-label-bg: var(--vp-c-success-1);
|
|
}
|
|
|
|
.example-guidance--dont {
|
|
--example-guidance-label-bg: var(--vp-c-danger-1);
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.example-block {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 24px;
|
|
}
|
|
|
|
.example-block__content {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.example-guidance {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 960px) {
|
|
.example-block {
|
|
grid-template-columns: minmax(0, 0.9fr) repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.example-block--guidance-only {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.example-block__content {
|
|
grid-column: 1;
|
|
}
|
|
|
|
.example-guidance {
|
|
grid-column: auto;
|
|
grid-row: auto;
|
|
}
|
|
}
|