this.gui 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +191 -23
- package/dist/style.css +1 -1
- package/dist/this-gui.es.js +2879 -1945
- package/dist/this-gui.umd.js +24 -24
- package/package.json +3 -4
- package/src/App.jsx +19 -40
- package/src/CreatePage.jsx +61 -0
- package/src/MDXEditor.jsx +51 -0
- package/src/Page.jsx +28 -0
- package/src/PageDashboard.jsx +56 -0
- package/src/SiteBuilder.jsx +95 -26
- package/src/example.json +43 -0
- package/src/scripts/ComponentRegistry.js +70 -0
- package/src/scripts/postinstall.js +60 -10
- package/src/scripts/renderComponents.js +11 -0
- package/src/stories/Atoms/Badge/Badge.css +1 -0
- package/src/stories/Atoms/Badge/Badge.stories.jsx +1 -0
- package/src/stories/Atoms/Button/Button.css +259 -58
- package/src/stories/Atoms/Button/Button.jsx +8 -11
- package/src/stories/Atoms/Button/Button.stories.jsx +65 -40
- package/src/stories/Atoms/Container/Container.css +420 -39
- package/src/stories/Atoms/Container/Container.jsx +98 -36
- package/src/stories/Atoms/Container/Container.stories.jsx +120 -79
- package/src/stories/Atoms/Grid/Grid.css +160 -0
- package/src/stories/Atoms/Grid/Grid.jsx +43 -0
- package/src/stories/Atoms/Grid/Grid.stories.jsx +84 -0
- package/src/stories/Atoms/Link/Link.css +6 -26
- package/src/stories/Atoms/Link/Link.jsx +11 -21
- package/src/stories/Atoms/ProgressBar/ProgressBar.css +1 -1
- package/src/stories/Atoms/ProgressBar/ProgressBar.jsx +1 -1
- package/src/stories/Atoms/ProgressBar/ProgressBar.stories.jsx +1 -1
- package/src/stories/Atoms/Section/Section.css +268 -0
- package/src/stories/Atoms/Section/Section.jsx +63 -0
- package/src/stories/Atoms/Section/Section.stories.jsx +46 -0
- package/src/stories/Atoms/TextArea/TextArea.css +1 -0
- package/src/stories/Atoms/TextArea/TextArea.jsx +1 -0
- package/src/stories/Atoms/TextArea/TextArea.stories.jsx +1 -0
- package/src/stories/Atoms/TextInput/TextInput.css +1 -0
- package/src/stories/Atoms/TextInput/TextInput.jsx +1 -0
- package/src/stories/Atoms/TextInput/TextInput.stories.jsx +1 -0
- package/src/stories/Atoms/Toggle/Toggle.css +1 -0
- package/src/stories/Atoms/Toggle/Toggle.jsx +1 -0
- package/src/stories/Atoms/Toggle/Toggle.stories.jsx +1 -0
- package/src/stories/Atoms/Tooltip/Tooltip.css +1 -0
- package/src/stories/Atoms/Tooltip/Tooltip.jsx +1 -0
- package/src/stories/Atoms/Tooltip/Tooltip.stories.jsx +1 -0
- package/src/stories/Atoms/Video/Video.css +1 -0
- package/src/stories/Atoms/Video/Video.jsx +1 -0
- package/src/stories/Atoms/Video/Video.stories.jsx +1 -0
- package/src/stories/Atoms/index.js +4 -0
- package/src/stories/Atoms/meta_Atoms.js +4 -1
- package/src/stories/Layouts/Accordion/Accordion.css +285 -8
- package/src/stories/Layouts/Accordion/Accordion.jsx +62 -19
- package/src/stories/Layouts/Accordion/Accordion.stories.jsx +30 -19
- package/src/stories/Layouts/index.js +0 -6
- package/src/stories/Layouts/meta_Layouts.js +2 -5
- package/src/stories/Molecules/Accordion/Accordion.css +1 -1
- package/src/stories/Molecules/Accordion/Accordion.jsx +1 -1
- package/src/stories/Molecules/Accordion/Accordion.stories.jsx +1 -1
- package/src/stories/Molecules/AudioPlayer/AudioPlayer.css +95 -2
- package/src/stories/Molecules/AudioPlayer/AudioPlayer.jsx +232 -13
- package/src/stories/Molecules/AudioPlayer/AudioPlayer.stories.jsx +46 -11
- package/src/stories/Molecules/AvatarWithName/AvatarWithName.css +128 -2
- package/src/stories/Molecules/AvatarWithName/AvatarWithName.jsx +69 -14
- package/src/stories/Molecules/AvatarWithName/AvatarWithName.stories.jsx +12 -12
- package/src/stories/Molecules/Breadcrumbs/Breadcrumbs.css +145 -2
- package/src/stories/Molecules/Breadcrumbs/Breadcrumbs.jsx +39 -13
- package/src/stories/Molecules/Breadcrumbs/Breadcrumbs.stories.jsx +27 -11
- package/src/stories/Molecules/ButtonGroup/ButtonGroup.css +463 -2
- package/src/stories/Molecules/ButtonGroup/ButtonGroup.jsx +34 -12
- package/src/stories/Molecules/ButtonGroup/ButtonGroup.stories.jsx +36 -12
- package/src/stories/Molecules/Card/Card.css +39 -2
- package/src/stories/Molecules/Card/Card.jsx +80 -13
- package/src/stories/Molecules/Card/Card.stories.jsx +27 -13
- package/src/stories/Molecules/ComparisonTable/ComparisonTable.css +33 -2
- package/src/stories/Molecules/ComparisonTable/ComparisonTable.jsx +91 -12
- package/src/stories/Molecules/ComparisonTable/ComparisonTable.stories.jsx +73 -12
- package/src/stories/Molecules/Dropdown/Dropdown.css +192 -0
- package/src/stories/Molecules/Dropdown/Dropdown.jsx +96 -0
- package/src/stories/Molecules/Dropdown/Dropdown.stories.jsx +45 -0
- package/src/stories/Molecules/index.js +2 -1
- package/src/stories/Molecules/meta_Molecules.js +6 -3
- package/src/themes/styles/neurons/light.css +94 -204
- package/dist/Styles.md +0 -446
- package/dist/context.md +0 -942
- package/src/Theme.jsx +0 -28
- package/src/components/CodeBlock.jsx +0 -22
- package/src/components/ComponentFactory.jsx +0 -36
- package/src/components/ComponentRegistry.js +0 -21
- package/src/scripts/generateComponents.js +0 -166
- package/src/scripts/verifyLayouts.js +0 -175
- package/src/scripts/verifyMolecules.js +0 -158
- package/src/scripts/verifyTemplates.js +0 -154
- package/src/scripts/verify_and_install_atoms.js +0 -211
- package/src/stories/Layouts/DropdownMenu/DropdownMenu.css +0 -16
- package/src/stories/Layouts/DropdownMenu/DropdownMenu.jsx +0 -31
- package/src/stories/Layouts/DropdownMenu/DropdownMenu.stories.jsx +0 -28
- package/src/stories/Layouts/Grid/Grid.css +0 -4
- package/src/stories/Layouts/Grid/Grid.jsx +0 -13
- package/src/stories/Layouts/Grid/Grid.stories.jsx +0 -28
- package/src/stories/Layouts/Section/Section.css +0 -16
- package/src/stories/Layouts/Section/Section.jsx +0 -31
- package/src/stories/Layouts/Section/Section.stories.jsx +0 -28
- /package/src/themes/{README.md → README_Styles.md} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dropdown } from './Dropdown';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Molecules/Menus/Dropdown',
|
|
6
|
+
component: Dropdown,
|
|
7
|
+
argTypes: {
|
|
8
|
+
color: {
|
|
9
|
+
control: 'select',
|
|
10
|
+
options: [
|
|
11
|
+
'primary', 'secondary', 'info', 'warning', 'alert', 'success', 'neutral', 'dark',
|
|
12
|
+
'classy-color-1', 'classy-color-2', 'classy-color-3', 'classy-color-4', 'classy-color-5',
|
|
13
|
+
'small-switch-color-1', 'small-switch-color-2',
|
|
14
|
+
'natural-color-1', 'natural-color-2', 'natural-color-3',
|
|
15
|
+
'grey-friend-1', 'grey-friend-2', 'shade-1', 'shade-2', 'shade-3', 'shade-4',
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
variant: {
|
|
19
|
+
control: 'select',
|
|
20
|
+
options: ['primary', 'secondary'],
|
|
21
|
+
},
|
|
22
|
+
searchable: { control: 'boolean' },
|
|
23
|
+
showArrow: { control: 'boolean', defaultValue: true },
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const options = [
|
|
28
|
+
'Option 1', 'Option 2', 'Option 3', 'Option 4', 'Option 5'
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
export const BasicDropdown = (args) => <Dropdown {...args} options={options} />;
|
|
32
|
+
BasicDropdown.args = {
|
|
33
|
+
placeholder: 'Select an option',
|
|
34
|
+
searchable: false,
|
|
35
|
+
variant: 'primary',
|
|
36
|
+
color: 'primary',
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const SearchableDropdown = (args) => <Dropdown {...args} options={options} />;
|
|
40
|
+
SearchableDropdown.args = {
|
|
41
|
+
placeholder: 'Type to search...',
|
|
42
|
+
searchable: true,
|
|
43
|
+
variant: 'primary',
|
|
44
|
+
color: 'info',
|
|
45
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/stories/Molecules/index.js
|
|
2
|
-
|
|
3
2
|
// Import all components as named exports
|
|
4
3
|
import { Navbar } from './Navbar/Navbar';
|
|
5
4
|
import { Sidebar } from './Sidebar/Sidebar';
|
|
6
5
|
import { Breadcrumbs } from './Breadcrumbs/Breadcrumbs';
|
|
6
|
+
import { Dropdown } from './Dropdown/Dropdown';
|
|
7
7
|
import { InputGroup } from './InputGroup/InputGroup';
|
|
8
8
|
import { InputWithLabel } from './InputWithLabel/InputWithLabel';
|
|
9
9
|
import { SearchBar } from './SearchBar/SearchBar';
|
|
@@ -30,6 +30,7 @@ import { SelectTheme } from './SelectTheme/SelectTheme';
|
|
|
30
30
|
const Molecules = {
|
|
31
31
|
Navbar,
|
|
32
32
|
Sidebar,
|
|
33
|
+
Dropdown,
|
|
33
34
|
Breadcrumbs,
|
|
34
35
|
InputGroup,
|
|
35
36
|
InputWithLabel,
|
|
@@ -5,6 +5,9 @@ const Molecules = {
|
|
|
5
5
|
{ name: "Sidebar", paths: { css: "./Sidebar/Sidebar.css", globalCss: "styles/global.css", jsx: "./Sidebar/Sidebar.jsx", stories: "./Sidebar/Sidebar.stories.jsx" }},
|
|
6
6
|
{ name: "Breadcrumbs", paths: { css: "./Breadcrumbs/Breadcrumbs.css", globalCss: "styles/global.css", jsx: "./Breadcrumbs/Breadcrumbs.jsx", stories: "./Breadcrumbs/Breadcrumbs.stories.jsx" }},
|
|
7
7
|
],
|
|
8
|
+
"Menus": [
|
|
9
|
+
{ name: "Dropdown", paths: { css: "./Dropdown/Dropdown.css", globalCss: "styles/global.css", jsx: "./Layout/Dropdown/Dropdown.jsx", stories: "src/stories/Layout/Dropdown/Dropdown.stories.jsx" }},
|
|
10
|
+
],
|
|
8
11
|
"FormElements": [
|
|
9
12
|
{ name: "InputGroup ", paths: { css: "./InputGroup/InputGroup.css", globalCss: "styles/global.css", jsx: "./InputGroup/InputGroup.jsx", stories: "src/stories/Molecules/InputGroup/InputGroup.stories.jsx" }},
|
|
10
13
|
{ name: "InputWithLabel", paths: { css: "./InputWithLabel/InputWithLabel.css", globalCss: "styles/global.css", jsx: "./InputWithLabel/InputWithLabel.jsx", stories: "src/stories/Molecules/InputWithLabel/InputWithLabel.stories.jsx" }},
|
|
@@ -16,18 +19,18 @@ const Molecules = {
|
|
|
16
19
|
{ name: "IconButton", paths: { css: "./IconButton/IconButton.css", globalCss: "styles/global.css", jsx: "./IconButton/IconButton.jsx", stories: "src/stories/Molecules/IconButton/IconButton.stories.jsx" }},
|
|
17
20
|
{ name: "ButtonGroup", paths: { css: "./ButtonGroup/ButtonGroup.css", globalCss: "styles/global.css", jsx: "./ButtonGroup/ButtonGroup.jsx", stories: "src/stories/Molecules/ButtonGroup/ButtonGroup.stories.jsx" }},
|
|
18
21
|
],
|
|
19
|
-
"
|
|
22
|
+
"Media": [
|
|
20
23
|
{ name: "ImageWithCaption", paths: { css: "./ImageWithCaption/ImageWithCaption.css", globalCss: "styles/global.css", jsx: "./ImageWithCaption/ImageWithCaption.jsx", stories: "src/stories/Molecules/ImageWithCaption/ImageWithCaption.stories.jsx" }},
|
|
21
24
|
{ name: "VideoWithDescription", paths: { css: "./VideoWithDescription/VideoWithDescription.css", globalCss: "styles/global.css", jsx: "./VideoWithDescription/VideoWithDescription.jsx", stories: "src/stories/Molecules/VideoWithDescription/VideoWithDescription.stories.jsx" }},
|
|
22
|
-
{ name: "AvatarWithName", paths: { css: "./AvatarWithName/AvatarWithName.css", globalCss: "styles/global.css", jsx: "./AvatarWithName/AvatarWithName.jsx", stories: "src/stories/Molecules/AvatarWithName/AvatarWithName.stories.jsx" }},
|
|
23
25
|
{ name: "AudioPlayer", paths: { css: "./AudioPlayer/AudioPlayer.css", globalCss: "styles/global.css", jsx: "./AudioPlayer/AudioPlayer.jsx", stories: "src/stories/Molecules/AudioPlayer/AudioPlayer.stories.jsx" }},
|
|
24
26
|
],
|
|
25
|
-
"
|
|
27
|
+
"Display": [
|
|
26
28
|
{ name: "SelectTheme", paths: { css: "./SelectTheme/SelectTheme.css", globalCss: "styles/global.css", jsx: "./SelectTheme/SelectTheme.jsx", stories: "src/stories/Molecules/SelectTheme/SelectTheme.stories.jsx" }},
|
|
27
29
|
{ name: "Card", paths: { css: "./Card/Card.css", globalCss: "styles/global.css", jsx: "./Card/Card.jsx", stories: "./Card/Card.stories.jsx" }},
|
|
28
30
|
{ name: "MediaCard", paths: { css: "./MediaCard/MediaCard.css", globalCss: "styles/global.css", jsx: "./MediaCard/MediaCard.jsx", stories: "./MediaCard/MediaCard.stories.jsx" }},
|
|
29
31
|
{ name: "List", paths: { css: "./List/List.css", globalCss: "styles/global.css", jsx: "./List/List.jsx", stories: "./List/List.stories.jsx" }},
|
|
30
32
|
{ name: "Accordion", paths: { css: "./Accordion/Accordion.css", globalCss: "styles/global.css", jsx: "./Accordion/Accordion.jsx", stories: "./Accordion/Accordion.stories.jsx" }},
|
|
33
|
+
{ name: "AvatarWithName", paths: { css: "./AvatarWithName/AvatarWithName.css", globalCss: "styles/global.css", jsx: "./AvatarWithName/AvatarWithName.jsx", stories: "src/stories/Molecules/AvatarWithName/AvatarWithName.stories.jsx" }},
|
|
31
34
|
],
|
|
32
35
|
"FeedbackMolecules": [
|
|
33
36
|
{ name: "Notification", paths: { css: "./Notification/Notification.css", globalCss: "styles/global.css", jsx: "./Notification/Notification.jsx", stories: "src/stories/Molecules/Notification/Notification.stories.jsx" }},
|
|
@@ -1,124 +1,86 @@
|
|
|
1
1
|
/* src/themes/styles/neurons/light.css */
|
|
2
2
|
/* Design Tokens (CSS Variables) */
|
|
3
3
|
:root {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
/* Background and Text */
|
|
85
|
-
--background-color: #FFFFFF; /* Pure white background */
|
|
86
|
-
--muted-text-color: #555555; /* Muted text color */
|
|
87
|
-
|
|
88
|
-
/* Link Colors */
|
|
89
|
-
--link-color: #1F877D; /* Neurons teal */
|
|
90
|
-
--link-hover-color: #555555; /* Greyish color on hover */
|
|
91
|
-
|
|
92
|
-
/* Typography */
|
|
93
|
-
--font-family: 'Roboto', sans-serif;
|
|
94
|
-
--font-size-base: 17px; /* Slightly larger base font size */
|
|
95
|
-
--font-size-small: 15px;
|
|
96
|
-
--font-size-large: 19px;
|
|
97
|
-
--line-height: 1.6;
|
|
98
|
-
--font-weight-regular: 400; /* Normal font weight */
|
|
99
|
-
--font-weight-medium: 500; /* Medium font weight */
|
|
100
|
-
--font-weight-bold: 600; /* Less heavy bold weight */
|
|
101
|
-
--font-weight-heavy: 700; /* For headings */
|
|
102
|
-
|
|
103
|
-
/* Spacing */
|
|
104
|
-
--spacing-xs: 4px;
|
|
105
|
-
--spacing-sm: 8px;
|
|
106
|
-
--spacing-md: 16px;
|
|
107
|
-
--spacing-lg: 32px;
|
|
108
|
-
|
|
109
|
-
/* Borders */
|
|
110
|
-
--border-radius: 6px; /* Slightly more rounded corners */
|
|
111
|
-
--border-width: 1px;
|
|
112
|
-
|
|
113
|
-
/* Shadows */
|
|
114
|
-
--box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
|
|
115
|
-
|
|
116
|
-
/* Transitions */
|
|
117
|
-
--transition-speed: 0.3s;
|
|
118
|
-
|
|
119
|
-
/* Z-index */
|
|
120
|
-
--z-index-modal: 1000;
|
|
121
|
-
--z-index-tooltip: 1050;
|
|
4
|
+
/* Primary Colors */
|
|
5
|
+
--primary-color: #1F877D; /* Neurons teal */
|
|
6
|
+
--primary-color-hover: #16655C; /* Darker teal for hover effects */
|
|
7
|
+
/* Secondary Colors */
|
|
8
|
+
--secondary-color: #39a182; /* Bright teal */
|
|
9
|
+
--secondary-color-hover: #00877A; /* Darker teal for hover effects */
|
|
10
|
+
/* Link Colors */
|
|
11
|
+
--link-color: #1F877D; /* Neurons teal */
|
|
12
|
+
--link-hover-color: #008699; /* Greyish color on hover */
|
|
13
|
+
--link-visited-color: #555555; /* Optional: custom color for visited links */
|
|
14
|
+
/* onFocus Color */
|
|
15
|
+
--focus-color: #1E90FF; /* Dodger Blue */
|
|
16
|
+
/* Semantic Colors */
|
|
17
|
+
--info-color: #008699; /* Light teal */
|
|
18
|
+
--info-color-hover: #008799d; /* Adjusted color for hover */
|
|
19
|
+
--warning-color: #FF6F61; /* Soft coral (Orange) */
|
|
20
|
+
--warning-color-hover: #e65b54; /* Adjusted color for hover */
|
|
21
|
+
--alert-color: #ffcc00; /* Yellow */
|
|
22
|
+
--alert-color-hover: #F1C40F; /* Adjusted color for hover */
|
|
23
|
+
--success-color: #00B4B8; /* Deep gray (Blueish) */
|
|
24
|
+
--success-color-hover: #0095991; /* Darker blueish for hover */
|
|
25
|
+
--neutral-color: #a4a4a4; /* Light gray */
|
|
26
|
+
--neutral-color-hover: #CCCCCC; /* Medium gray for hover */
|
|
27
|
+
--dark-color: #2C2C2C; /* Deep gray */
|
|
28
|
+
--dark-color-hover: #1A1A1A; /* Darker gray for hover */
|
|
29
|
+
/* Classy Palette */
|
|
30
|
+
--classy-color-1: #16655c;
|
|
31
|
+
--classy-color-2: #96b1ac;
|
|
32
|
+
--classy-color-3: #637c78;
|
|
33
|
+
--classy-color-4: #405b83;
|
|
34
|
+
--classy-color-5: #738db8;
|
|
35
|
+
/* Small Switch Palette */
|
|
36
|
+
--small-switch-color-1: #deefe6;
|
|
37
|
+
--small-switch-color-2: #4e8a6e;
|
|
38
|
+
/* Natural Palette */
|
|
39
|
+
--natural-color-1: #00aa96;
|
|
40
|
+
--natural-color-2: #e8fefa;
|
|
41
|
+
--natural-color-3: #e7fefe;
|
|
42
|
+
/* Grey Friends */
|
|
43
|
+
--grey-friend-1: #344b47;
|
|
44
|
+
--grey-friend-2: #96b1ac;
|
|
45
|
+
/* Shades */
|
|
46
|
+
--shade-1: #3b847a;
|
|
47
|
+
--shade-2: #5da59a;
|
|
48
|
+
--shade-3: #7ec7bc;
|
|
49
|
+
--shade-4: #a0eade;
|
|
50
|
+
/* Typography */
|
|
51
|
+
--font-family: 'Roboto', sans-serif;
|
|
52
|
+
--font-size-base: 16px; /* Slightly larger base font size */
|
|
53
|
+
--font-size-small: 14px;
|
|
54
|
+
--font-size-large: 19px;
|
|
55
|
+
--line-height: 1.6;
|
|
56
|
+
--font-weight-regular: 400; /* Normal font weight */
|
|
57
|
+
--font-weight-medium: 500; /* Medium font weight */
|
|
58
|
+
--font-weight-bold: 600; /* Less heavy bold weight */
|
|
59
|
+
--font-weight-heavy: 700; /* For headings */
|
|
60
|
+
/* Text Colors */
|
|
61
|
+
--text-color: #2C2C2C; /* Dark text color for contrast */
|
|
62
|
+
--text-color-inverse: #FFFFFF; /* For buttons with dark backgrounds */
|
|
63
|
+
/* Background and Text */
|
|
64
|
+
--background-color: #FFFFFF; /* Pure white background */
|
|
65
|
+
--muted-text-color: #555555; /* Muted text color */
|
|
66
|
+
/* Spacing */
|
|
67
|
+
--spacing-xs: 6px;
|
|
68
|
+
--spacing-sm: 16px;
|
|
69
|
+
--spacing-md: 34px;
|
|
70
|
+
--spacing-lg: 55px;
|
|
71
|
+
/* Borders */
|
|
72
|
+
--border-radius: 8px; /* Slightly more rounded corners */
|
|
73
|
+
--border-width: 1px;
|
|
74
|
+
/* Border Colors */
|
|
75
|
+
--border-color: #DDDDDD; /* Light border color */
|
|
76
|
+
--secondary-border-color: var(--secondary-color); /* For secondary buttons */
|
|
77
|
+
/* Shadows */
|
|
78
|
+
--box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
|
|
79
|
+
/* Transitions */
|
|
80
|
+
--transition-speed: 0.3s;
|
|
81
|
+
/* Z-index */
|
|
82
|
+
--z-index-modal: 1000;
|
|
83
|
+
--z-index-tooltip: 1050;
|
|
122
84
|
}
|
|
123
85
|
|
|
124
86
|
/* Global Reset */
|
|
@@ -156,92 +118,23 @@ p {
|
|
|
156
118
|
color: var(--text-color);
|
|
157
119
|
}
|
|
158
120
|
|
|
159
|
-
/*
|
|
160
|
-
a {
|
|
121
|
+
/* Base link styles */
|
|
122
|
+
a, .link {
|
|
161
123
|
color: var(--link-color);
|
|
162
|
-
text-decoration: none;
|
|
163
|
-
transition: color var(--transition-speed) ease;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
a:hover {
|
|
167
|
-
color: var(--link-hover-color);
|
|
168
|
-
text-decoration: underline;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
/* Forms */
|
|
173
|
-
input, textarea, select {
|
|
174
|
-
padding: var(--spacing-sm);
|
|
175
|
-
border-radius: var(--border-radius);
|
|
176
|
-
border: var(--border-width) solid var(--border-color);
|
|
177
124
|
font-size: var(--font-size-base);
|
|
178
125
|
font-family: var(--font-family);
|
|
179
|
-
|
|
180
|
-
color: var(--text-color);
|
|
181
|
-
transition: border-color var(--transition-speed) ease;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
input:focus, textarea:focus, select:focus {
|
|
185
|
-
border-color: var(--primary-color);
|
|
186
|
-
outline: none;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/* Layout */
|
|
190
|
-
.container {
|
|
191
|
-
max-width: 1200px;
|
|
192
|
-
margin: 0 auto;
|
|
193
|
-
padding: var(--spacing-md);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.grid {
|
|
197
|
-
display: flex;
|
|
198
|
-
gap: var(--spacing-md);
|
|
199
|
-
flex-wrap: wrap;
|
|
126
|
+
transition: color var(--transition-speed) ease, text-decoration var(--transition-speed) ease;
|
|
200
127
|
}
|
|
201
128
|
|
|
202
|
-
.
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/* Sidebar */
|
|
208
|
-
.sidebar {
|
|
209
|
-
background-color: #F8F8F8; /* Very light gray */
|
|
210
|
-
padding: var(--spacing-md);
|
|
211
|
-
border-right: var(--border-width) solid var(--border-color); /* Consistent border */
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.sidebar__link {
|
|
215
|
-
display: block;
|
|
216
|
-
padding: var(--spacing-sm);
|
|
217
|
-
color: var(--text-color);
|
|
218
|
-
text-decoration: none;
|
|
219
|
-
font-weight: var(--font-weight-medium);
|
|
220
|
-
transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.sidebar__link:hover {
|
|
224
|
-
background-color: #EEEEEE; /* Slightly darker on hover */
|
|
225
|
-
color: var(--text-color);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/* Navbar */
|
|
229
|
-
.navbar {
|
|
230
|
-
background-color: #FFFFFF;
|
|
231
|
-
padding: var(--spacing-md);
|
|
232
|
-
border-bottom: var(--border-width) solid var(--border-color); /* Consistent border */
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.navbar__link {
|
|
236
|
-
color: var(--link-color);
|
|
237
|
-
text-decoration: none;
|
|
238
|
-
margin-right: var(--spacing-md);
|
|
239
|
-
font-weight: var(--font-weight-medium);
|
|
240
|
-
transition: color var(--transition-speed) ease;
|
|
129
|
+
a:hover, .link:hover {
|
|
130
|
+
color: var(--link-hover-color);
|
|
131
|
+
text-decoration: underline;
|
|
241
132
|
}
|
|
242
133
|
|
|
243
|
-
|
|
244
|
-
|
|
134
|
+
/* Accessibility - global */
|
|
135
|
+
a:focus, button:focus, .link:focus {
|
|
136
|
+
outline: 2px solid var(--focus-color);
|
|
137
|
+
outline-offset: 2px;
|
|
245
138
|
}
|
|
246
139
|
|
|
247
140
|
/* Utility Classes */
|
|
@@ -251,12 +144,6 @@ input:focus, textarea:focus, select:focus {
|
|
|
251
144
|
.d-flex { display: flex; }
|
|
252
145
|
.flex-column { flex-direction: column; }
|
|
253
146
|
|
|
254
|
-
/* Accessibility */
|
|
255
|
-
a:focus, button:focus {
|
|
256
|
-
outline: 2px solid var(--primary-color);
|
|
257
|
-
outline-offset: 2px;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
147
|
@media (prefers-reduced-motion: reduce) {
|
|
261
148
|
* {
|
|
262
149
|
animation: none;
|
|
@@ -277,4 +164,7 @@ a:focus, button:focus {
|
|
|
277
164
|
.navbar {
|
|
278
165
|
padding: var(--spacing-sm);
|
|
279
166
|
}
|
|
280
|
-
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|