STYLE: Primary Page ScrollBar
This commit is contained in:
@@ -9,21 +9,21 @@
|
|||||||
|
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 10px;
|
width: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
::-webkit-scrollbar-track {
|
||||||
background: hsl(242, 100%, 10%);
|
background: transparent;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
background: #d5d5d5;
|
background: var(--scrollbar-color);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
::-webkit-scrollbar-thumb:hover {
|
||||||
background: #555;
|
background: var(--scrollbar-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -33,6 +33,8 @@ body[data-theme="light"] {
|
|||||||
|
|
||||||
/*Global Background Colour*/
|
/*Global Background Colour*/
|
||||||
background: linear-gradient(to top right, #2043ba, #0026a6, #63007a);
|
background: linear-gradient(to top right, #2043ba, #0026a6, #63007a);
|
||||||
|
--scrollbar-color: white;
|
||||||
|
--scrollbar-hover: rgb(144, 144, 144);
|
||||||
|
|
||||||
--sideBar-bg: rgb(255, 255, 255);
|
--sideBar-bg: rgb(255, 255, 255);
|
||||||
--sideBar-text: black;
|
--sideBar-text: black;
|
||||||
@@ -85,6 +87,8 @@ body[data-theme="light"] {
|
|||||||
body[data-theme="dark"] {
|
body[data-theme="dark"] {
|
||||||
/*Global Background Colour*/
|
/*Global Background Colour*/
|
||||||
background: linear-gradient(to top right, #737787, #0d1e55, #567419);
|
background: linear-gradient(to top right, #737787, #0d1e55, #567419);
|
||||||
|
--scrollbar-color: rgb(255, 255, 255);
|
||||||
|
--scrollbar-hover: rgb(255, 255, 255);
|
||||||
|
|
||||||
--bg-color: black;
|
--bg-color: black;
|
||||||
--text-color: white;
|
--text-color: white;
|
||||||
@@ -144,6 +148,9 @@ body[data-theme="blue"] {
|
|||||||
|
|
||||||
/*Global Background Colour*/
|
/*Global Background Colour*/
|
||||||
background: linear-gradient(to top right, #223b3b, #3e7bff, #170055);
|
background: linear-gradient(to top right, #223b3b, #3e7bff, #170055);
|
||||||
|
--scrollbar-color: white;
|
||||||
|
--scrollbar-hover: rgb(144, 144, 144);
|
||||||
|
|
||||||
|
|
||||||
--sideBar-bg: #eefafffb;
|
--sideBar-bg: #eefafffb;
|
||||||
--sideBar-text: #002147;
|
--sideBar-text: #002147;
|
||||||
@@ -197,6 +204,9 @@ body[data-theme="green"] {
|
|||||||
|
|
||||||
/*Global Background Colour*/
|
/*Global Background Colour*/
|
||||||
background: linear-gradient(to top right, #2a0d0d, #183f29, #16631e);
|
background: linear-gradient(to top right, #2a0d0d, #183f29, #16631e);
|
||||||
|
--scrollbar-color: white;
|
||||||
|
--scrollbar-hover: rgb(144, 144, 144);
|
||||||
|
|
||||||
|
|
||||||
--bg-color: #e8f5e9;
|
--bg-color: #e8f5e9;
|
||||||
--text-color: #2e7d32;
|
--text-color: #2e7d32;
|
||||||
@@ -254,7 +264,8 @@ body[data-theme="orange"] {
|
|||||||
|
|
||||||
/*Global Background Colour*/
|
/*Global Background Colour*/
|
||||||
background: linear-gradient(to top right, #074a84, #a17e1c, #4f2b61);
|
background: linear-gradient(to top right, #074a84, #a17e1c, #4f2b61);
|
||||||
|
--scrollbar-color: white;
|
||||||
|
--scrollbar-hover: rgb(144, 144, 144);
|
||||||
|
|
||||||
--bg-color: #ffe0b2;
|
--bg-color: #ffe0b2;
|
||||||
--text-color: #e65100;
|
--text-color: #e65100;
|
||||||
|
|||||||
@@ -24,12 +24,19 @@ const DynamicPageContent: React.FC<DynamicPageContentProps> = ({
|
|||||||
className={`${className} bg-[url(/images/background-pattern.svg)]`}
|
className={`${className} bg-[url(/images/background-pattern.svg)]`}
|
||||||
style={style}
|
style={style}
|
||||||
>
|
>
|
||||||
|
{/* Hide Scrollbar for WebKit-based Browsers
|
||||||
|
<style>
|
||||||
|
{`
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
`}
|
||||||
|
</style> */}
|
||||||
<Navbar variant={navbarVariant} />
|
<Navbar variant={navbarVariant} />
|
||||||
<div
|
<div
|
||||||
id="content"
|
id="content"
|
||||||
className={`flex-grow min-w-[850px] ${
|
className={`flex-grow min-w-[850px] ${showSideBar ? "w-[85vw] translate-x-[15vw]" : "w-[100vw]"
|
||||||
showSideBar ? "w-[85vw] translate-x-[15vw]" : "w-[100vw]"
|
} items-start transition-all duration-[500ms] ease-in-out ${contentClassName}`}
|
||||||
} items-start transition-all duration-[500ms] ease-in-out ${contentClassName}`}
|
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user