mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-02 13:48:15 +02:00
remove fixed pixel sizes and inline styling
This commit is contained in:
parent
63e2791a8b
commit
d7e0b506a8
@ -8,8 +8,8 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 32px;
|
width: 2rem;
|
||||||
height: 32px;
|
height: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Action icon styles */
|
/* Action icon styles */
|
||||||
@ -31,11 +31,30 @@
|
|||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Rainbow mode container */
|
||||||
|
.quick-access-bar-main.rainbow-mode {
|
||||||
|
background-color: var(--bg-muted);
|
||||||
|
width: 5rem;
|
||||||
|
min-width: 5rem;
|
||||||
|
max-width: 5rem;
|
||||||
|
position: relative;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
/* Header padding */
|
/* Header padding */
|
||||||
.quick-access-header {
|
.quick-access-header {
|
||||||
padding: 1rem 0.5rem 0.5rem 0.5rem;
|
padding: 1rem 0.5rem 0.5rem 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-header {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: 0;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
/* Nav header divider */
|
/* Nav header divider */
|
||||||
.nav-header-divider {
|
.nav-header-divider {
|
||||||
width: 3.75rem;
|
width: 3.75rem;
|
||||||
@ -126,10 +145,15 @@
|
|||||||
font-synthesis: none;
|
font-synthesis: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Font size utility */
|
||||||
|
.font-size-20 {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Hide scrollbar by default, show on scroll (Webkit browsers - Chrome, Safari, Edge) */
|
/* Hide scrollbar by default, show on scroll (Webkit browsers - Chrome, Safari, Edge) */
|
||||||
.quick-access-bar::-webkit-scrollbar {
|
.quick-access-bar::-webkit-scrollbar {
|
||||||
width: 8px;
|
width: 0.5rem;
|
||||||
height: 8px;
|
height: 0.5rem;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -141,7 +165,7 @@
|
|||||||
|
|
||||||
.quick-access-bar::-webkit-scrollbar-thumb {
|
.quick-access-bar::-webkit-scrollbar-thumb {
|
||||||
background: rgba(0, 0, 0, 0.2);
|
background: rgba(0, 0, 0, 0.2);
|
||||||
border-radius: 4px;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-access-bar::-webkit-scrollbar-track {
|
.quick-access-bar::-webkit-scrollbar-track {
|
||||||
@ -152,4 +176,4 @@
|
|||||||
.quick-access-bar {
|
.quick-access-bar {
|
||||||
scrollbar-width: auto;
|
scrollbar-width: auto;
|
||||||
scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
|
scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
|
||||||
}
|
}
|
@ -45,7 +45,7 @@ function NavHeader({
|
|||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="flex flex-row items-center justify-center mb-0" style={{ gap: '0.5rem' }}>
|
<div className="nav-header">
|
||||||
<Tooltip label="User Profile" position="right">
|
<Tooltip label="User Profile" position="right">
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
size="md"
|
size="md"
|
||||||
@ -90,7 +90,7 @@ function NavHeader({
|
|||||||
className={activeButton === 'tools' ? 'activeIconScale' : ''}
|
className={activeButton === 'tools' ? 'activeIconScale' : ''}
|
||||||
>
|
>
|
||||||
<span className="iconContainer">
|
<span className="iconContainer">
|
||||||
<AppsIcon sx={{ fontSize: 26 }} />
|
<AppsIcon sx={{ fontSize: "1.75rem" }} />
|
||||||
</span>
|
</span>
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
<span className={`all-tools-text ${activeButton === 'tools' ? 'active' : 'inactive'}`}>
|
<span className={`all-tools-text ${activeButton === 'tools' ? 'active' : 'inactive'}`}>
|
||||||
@ -120,7 +120,7 @@ const QuickAccessBar = ({
|
|||||||
{
|
{
|
||||||
id: 'read',
|
id: 'read',
|
||||||
name: 'Read',
|
name: 'Read',
|
||||||
icon: <MenuBookIcon sx={{ fontSize: 20 }} />,
|
icon: <MenuBookIcon sx={{ fontSize: "1.5rem" }} />,
|
||||||
tooltip: 'Read documents',
|
tooltip: 'Read documents',
|
||||||
size: 'lg',
|
size: 'lg',
|
||||||
isRound: false,
|
isRound: false,
|
||||||
@ -133,7 +133,7 @@ const QuickAccessBar = ({
|
|||||||
id: 'sign',
|
id: 'sign',
|
||||||
name: 'Sign',
|
name: 'Sign',
|
||||||
icon:
|
icon:
|
||||||
<span className="material-symbols-rounded" style={{ fontSize: 20 }}>
|
<span className="material-symbols-rounded font-size-20">
|
||||||
signature
|
signature
|
||||||
</span>,
|
</span>,
|
||||||
tooltip: 'Sign your document',
|
tooltip: 'Sign your document',
|
||||||
@ -144,7 +144,7 @@ const QuickAccessBar = ({
|
|||||||
{
|
{
|
||||||
id: 'automate',
|
id: 'automate',
|
||||||
name: 'Automate',
|
name: 'Automate',
|
||||||
icon: <AutoAwesomeIcon sx={{ fontSize: 20 }} />,
|
icon: <AutoAwesomeIcon sx={{ fontSize: "1.5rem" }} />,
|
||||||
tooltip: 'Automate workflows',
|
tooltip: 'Automate workflows',
|
||||||
size: 'lg',
|
size: 'lg',
|
||||||
isRound: false,
|
isRound: false,
|
||||||
@ -153,7 +153,7 @@ const QuickAccessBar = ({
|
|||||||
{
|
{
|
||||||
id: 'files',
|
id: 'files',
|
||||||
name: 'Files',
|
name: 'Files',
|
||||||
icon: <FolderIcon sx={{ fontSize: 20 }} />,
|
icon: <FolderIcon sx={{ fontSize: "1.5rem" }} />,
|
||||||
tooltip: 'Manage files',
|
tooltip: 'Manage files',
|
||||||
isRound: true,
|
isRound: true,
|
||||||
size: 'lg',
|
size: 'lg',
|
||||||
@ -163,7 +163,7 @@ const QuickAccessBar = ({
|
|||||||
id: 'activity',
|
id: 'activity',
|
||||||
name: 'Activity',
|
name: 'Activity',
|
||||||
icon:
|
icon:
|
||||||
<span className="material-symbols-rounded" style={{ fontSize: 20 }}>
|
<span className="material-symbols-rounded font-size-20">
|
||||||
vital_signs
|
vital_signs
|
||||||
</span>,
|
</span>,
|
||||||
tooltip: 'View activity and analytics',
|
tooltip: 'View activity and analytics',
|
||||||
@ -174,7 +174,7 @@ const QuickAccessBar = ({
|
|||||||
{
|
{
|
||||||
id: 'config',
|
id: 'config',
|
||||||
name: 'Config',
|
name: 'Config',
|
||||||
icon: <SettingsIcon sx={{ fontSize: 16 }} />,
|
icon: <SettingsIcon sx={{ fontSize: "1rem" }} />,
|
||||||
tooltip: 'Configure settings',
|
tooltip: 'Configure settings',
|
||||||
size: 'lg',
|
size: 'lg',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
@ -213,7 +213,7 @@ const QuickAccessBar = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`h-screen flex flex-col w-20 quick-access-bar-main ${isRainbowMode ? rainbowStyles.rainbowPaper : ''}`}
|
className={`h-screen flex flex-col w-20 quick-access-bar-main ${isRainbowMode ? 'rainbow-mode' : ''}`}
|
||||||
>
|
>
|
||||||
{/* Fixed header outside scrollable area */}
|
{/* Fixed header outside scrollable area */}
|
||||||
<div className="quick-access-header">
|
<div className="quick-access-header">
|
||||||
@ -297,7 +297,7 @@ const QuickAccessBar = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span className="iconContainer">
|
<span className="iconContainer">
|
||||||
<SettingsIcon sx={{ fontSize: 16 }} />
|
<SettingsIcon sx={{ fontSize: "1rem" }} />
|
||||||
</span>
|
</span>
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
<span className="config-button-text">
|
<span className="config-button-text">
|
||||||
|
Loading…
Reference in New Issue
Block a user