More cleanup to use CSS variables

pull/4615/head
Cagatay Civici 2023-10-14 22:30:59 +03:00
parent 41eaec613e
commit 021dc01b89
5 changed files with 10 additions and 55 deletions

View File

@ -107,6 +107,8 @@
font-size: 1rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
font-style: normal; font-style: normal;
background-color: var(--doc-highlight-text-bg);
color: var(---doc-highlight-text-color);
} }
a { a {
@ -120,28 +122,6 @@
} }
} }
.layout-light {
.doc-section-description {
> p {
i {
background-color: var(--primary-100);
color: var(--primary-900);
}
}
}
}
.layout-dark {
.doc-section-description {
> p {
i {
background-color: var(--highlight-bg);
color: var(--highlight-text-color);
}
}
}
}
.doc-section-nav { .doc-section-nav {
position: sticky; position: sticky;
top: 6rem; top: 6rem;

View File

@ -46,22 +46,6 @@
} }
} }
.layout-light,
.layout-dark {
.DocSearch-Button {
background: var(--surface-card);
border-color: var(--surface-border);
&:hover {
border-color: var(--primary-color);
}
.DocSearch-Search-Icon {
color: var(--text-700);
}
}
}
.layout-sidebar { .layout-sidebar {
top: 0; top: 0;
left: 0; left: 0;

View File

@ -8,6 +8,7 @@
border-bottom: 1px solid var(--topbar-border); border-bottom: 1px solid var(--topbar-border);
&.layout-topbar-sticky { &.layout-topbar-sticky {
background-color: var(--topbar-sticky-bg);
backdrop-filter: blur(8px); backdrop-filter: blur(8px);
} }
} }
@ -54,19 +55,3 @@
display: none; display: none;
} }
} }
.layout-light {
.layout-topbar {
&.layout-topbar-sticky {
background-color: rgba(255,255,255,.7);
}
}
}
.layout-dark {
.layout-topbar {
&.layout-topbar-sticky {
background-color: rgba(0,0,0,.3);
}
}
}

View File

@ -1,4 +1,5 @@
.layout-wrapper.layout-dark { .layout-wrapper.layout-dark {
--topbar-sticky-bg:rgba(0,0,0,.3);
--card-border: 0 none; --card-border: 0 none;
--card-bg: var(--surface-card); --card-bg: var(--surface-card);
--glow-image: url(https://www.primefaces.org/cdn/primevue/images/layout/top-pattern-light.png); --glow-image: url(https://www.primefaces.org/cdn/primevue/images/layout/top-pattern-light.png);
@ -8,4 +9,6 @@
--demo-code-button-color: var(--surface-400); --demo-code-button-color: var(--surface-400);
--demo-code-button-hover-bg: rgba(255,255,255,.1); --demo-code-button-hover-bg: rgba(255,255,255,.1);
--demo-code-button-hover-color: var(--surface-500); --demo-code-button-hover-color: var(--surface-500);
--doc-highlight-text-bg: var(--highlight-bg);
--doc-highlight-text-color: var(--highlight-text-color);
} }

View File

@ -1,4 +1,5 @@
.layout-wrapper.layout-light { .layout-wrapper.layout-light {
--topbar-sticky-bg:rgba(255,255,255,.7);
--card-border: 1px solid var(--surface-border); --card-border: 1px solid var(--surface-border);
--card-bg: var(--surface-card); --card-bg: var(--surface-card);
--glow-image: url(https://www.primefaces.org/cdn/primevue/images/layout/top-pattern-light.png); --glow-image: url(https://www.primefaces.org/cdn/primevue/images/layout/top-pattern-light.png);
@ -8,4 +9,6 @@
--demo-code-button-color: var(--surface-400); --demo-code-button-color: var(--surface-400);
--demo-code-button-hover-bg: rgba(255,255,255,.1); --demo-code-button-hover-bg: rgba(255,255,255,.1);
--demo-code-button-hover-color: var(--surface-300); --demo-code-button-hover-color: var(--surface-300);
--doc-highlight-text-bg: var(--primary-100);
--doc-highlight-text-color: var(--primary-900);
} }