this.gui 1.0.15 → 1.0.17
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 +178 -49
- package/dist/style.css +1 -1
- package/dist/this-gui.es.js +4645 -1922
- package/dist/this-gui.umd.js +34 -22
- package/package.json +14 -14
- package/src/App.jsx +53 -21
- package/src/Page.jsx +28 -0
- package/src/SiteBuilder.jsx +39 -0
- package/src/example.json +43 -0
- package/src/index.mdx +10 -0
- package/src/main.jsx +11 -14
- package/src/scripts/ComponentRegistry.js +70 -0
- package/src/scripts/postinstall.js +40 -1
- package/src/scripts/renderComponents.js +11 -0
- package/src/stories/Atoms/Alert/Alert.css +196 -14
- package/src/stories/Atoms/Alert/Alert.jsx +43 -28
- package/src/stories/Atoms/Alert/Alert.stories.jsx +154 -28
- package/src/stories/Atoms/Audio/Audio.css +246 -16
- package/src/stories/Atoms/Audio/Audio.jsx +204 -29
- package/src/stories/Atoms/Audio/Audio.stories.jsx +178 -28
- package/src/stories/Atoms/Badge/Badge.css +235 -15
- package/src/stories/Atoms/Badge/Badge.jsx +44 -31
- package/src/stories/Atoms/Badge/Badge.stories.jsx +109 -29
- package/src/stories/Atoms/Button/Button.css +106 -45
- package/src/stories/Atoms/Button/Button.jsx +31 -82
- package/src/stories/Atoms/Button/Button.stories.jsx +170 -40
- package/src/stories/Atoms/Caption/Caption.css +156 -16
- package/src/stories/Atoms/Caption/Caption.jsx +62 -31
- package/src/stories/Atoms/Caption/Caption.stories.jsx +194 -28
- package/src/stories/Atoms/Checkbox/Checkbox.css +168 -15
- package/src/stories/Atoms/Checkbox/Checkbox.jsx +73 -31
- package/src/stories/Atoms/Checkbox/Checkbox.stories.jsx +98 -27
- package/src/stories/Atoms/Container/Container.css +75 -15
- package/src/stories/Atoms/Container/Container.jsx +41 -28
- package/src/stories/Atoms/Container/Container.stories.jsx +92 -29
- package/src/stories/Atoms/Divider/Divider.css +131 -13
- package/src/stories/Atoms/Divider/Divider.jsx +54 -33
- package/src/stories/Atoms/Divider/Divider.stories.jsx +93 -29
- 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/Heading/Heading.css +99 -16
- package/src/stories/Atoms/Heading/Heading.jsx +57 -29
- package/src/stories/Atoms/Heading/Heading.stories.jsx +117 -28
- package/src/stories/Atoms/Icon/Icon.css +219 -27
- package/src/stories/Atoms/Icon/Icon.jsx +67 -38
- package/src/stories/Atoms/Icon/Icon.stories.jsx +156 -51
- package/src/stories/Atoms/Image/Image.css +231 -15
- package/src/stories/Atoms/Image/Image.jsx +166 -32
- package/src/stories/Atoms/Image/Image.stories.jsx +319 -28
- package/src/stories/Atoms/Label/Label.css +158 -16
- package/src/stories/Atoms/Label/Label.jsx +61 -31
- package/src/stories/Atoms/Label/Label.stories.jsx +167 -28
- package/src/stories/Atoms/Link/Link.css +58 -16
- package/src/stories/Atoms/Link/Link.jsx +73 -32
- package/src/stories/Atoms/Link/Link.stories.jsx +141 -29
- package/src/stories/Atoms/Loader/Loader.css +93 -16
- package/src/stories/Atoms/Loader/Loader.jsx +47 -30
- package/src/stories/Atoms/Loader/Loader.stories.jsx +86 -28
- package/src/stories/Atoms/Logo/Logo.css +94 -0
- package/src/stories/Atoms/Logo/Logo.jsx +53 -0
- package/src/stories/Atoms/Logo/Logo.stories.jsx +120 -0
- package/src/stories/Atoms/Paragraph/Paragraph.css +167 -16
- package/src/stories/Atoms/Paragraph/Paragraph.jsx +67 -31
- package/src/stories/Atoms/Paragraph/Paragraph.stories.jsx +130 -28
- package/src/stories/Atoms/ProgressBar/ProgressBar.css +115 -17
- package/src/stories/Atoms/ProgressBar/ProgressBar.jsx +30 -31
- package/src/stories/Atoms/ProgressBar/ProgressBar.stories.jsx +72 -27
- package/src/stories/Atoms/RadioButton/RadioButton.css +118 -17
- package/src/stories/Atoms/RadioButton/RadioButton.jsx +77 -31
- package/src/stories/Atoms/RadioButton/RadioButton.stories.jsx +99 -27
- package/src/stories/Atoms/Range/Range.css +169 -0
- package/src/stories/Atoms/Range/Range.jsx +87 -0
- package/src/stories/Atoms/Range/Range.stories.jsx +110 -0
- 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/Select/Select.css +74 -16
- package/src/stories/Atoms/Select/Select.jsx +62 -30
- package/src/stories/Atoms/Select/Select.stories.jsx +95 -27
- package/src/stories/Atoms/Slider/Slider.css +77 -16
- package/src/stories/Atoms/Slider/Slider.jsx +119 -31
- package/src/stories/Atoms/Slider/Slider.stories.jsx +77 -28
- package/src/stories/Atoms/Snackbar/Snackbar.css +297 -13
- package/src/stories/Atoms/Snackbar/Snackbar.jsx +62 -31
- package/src/stories/Atoms/Snackbar/Snackbar.stories.jsx +63 -26
- package/src/stories/Atoms/Spacer/Spacer.css +101 -16
- package/src/stories/Atoms/Spacer/Spacer.jsx +26 -32
- package/src/stories/Atoms/Spacer/Spacer.stories.jsx +50 -30
- package/src/stories/Atoms/Spinner/Spinner.css +97 -16
- package/src/stories/Atoms/Spinner/Spinner.jsx +50 -26
- package/src/stories/Atoms/Spinner/Spinner.stories.jsx +47 -30
- package/src/stories/Atoms/Tag/Tag.css +97 -14
- package/src/stories/Atoms/Tag/Tag.jsx +58 -24
- package/src/stories/Atoms/Tag/Tag.stories.jsx +55 -29
- package/src/stories/Atoms/TextArea/TextArea.css +85 -15
- package/src/stories/Atoms/TextArea/TextArea.jsx +108 -31
- package/src/stories/Atoms/TextArea/TextArea.stories.jsx +25 -30
- package/src/stories/Atoms/TextInput/TextInput.css +90 -17
- package/src/stories/Atoms/TextInput/TextInput.jsx +119 -27
- package/src/stories/Atoms/TextInput/TextInput.stories.jsx +53 -25
- package/src/stories/Atoms/Toggle/Toggle.css +106 -17
- package/src/stories/Atoms/Toggle/Toggle.jsx +56 -28
- package/src/stories/Atoms/Toggle/Toggle.stories.jsx +24 -30
- package/src/stories/Atoms/Tooltip/Tooltip.css +368 -14
- package/src/stories/Atoms/Tooltip/Tooltip.jsx +33 -28
- package/src/stories/Atoms/Tooltip/Tooltip.stories.jsx +42 -31
- package/src/stories/Atoms/Video/Video.css +28 -18
- package/src/stories/Atoms/Video/Video.jsx +66 -29
- package/src/stories/Atoms/Video/Video.stories.jsx +30 -30
- package/src/stories/Atoms/index.js +9 -2
- package/src/stories/Atoms/meta_Atoms.js +6 -1
- package/src/stories/Layouts/Accordion/Accordion.css +293 -0
- package/src/stories/Layouts/Accordion/Accordion.jsx +74 -0
- package/src/stories/Layouts/Accordion/Accordion.stories.jsx +39 -0
- package/src/stories/Layouts/Flexbox/Flexbox.css +16 -0
- package/src/stories/Layouts/Flexbox/Flexbox.jsx +11 -0
- package/src/stories/Layouts/Flexbox/Flexbox.stories.jsx +28 -0
- package/src/stories/Layouts/Footer/Footer.css +16 -0
- package/src/stories/Layouts/Footer/Footer.jsx +31 -0
- package/src/stories/Layouts/Footer/Footer.stories.jsx +28 -0
- package/src/stories/Layouts/Header/Header.css +16 -0
- package/src/stories/Layouts/Header/Header.jsx +31 -0
- package/src/stories/Layouts/Header/Header.stories.jsx +28 -0
- package/src/stories/Layouts/HeroBanner/HeroBanner.css +16 -0
- package/src/stories/Layouts/HeroBanner/HeroBanner.jsx +31 -0
- package/src/stories/Layouts/HeroBanner/HeroBanner.stories.jsx +28 -0
- package/src/stories/Layouts/HeroImageVideo/HeroImageVideo.css +16 -0
- package/src/stories/Layouts/HeroImageVideo/HeroImageVideo.jsx +31 -0
- package/src/stories/Layouts/HeroImageVideo/HeroImageVideo.stories.jsx +28 -0
- package/src/stories/Layouts/Pagination/Pagination.css +16 -0
- package/src/stories/Layouts/Pagination/Pagination.jsx +31 -0
- package/src/stories/Layouts/Pagination/Pagination.stories.jsx +28 -0
- package/src/stories/Layouts/Sidebar/Sidebar.css +16 -0
- package/src/stories/Layouts/Sidebar/Sidebar.jsx +71 -0
- package/src/stories/Layouts/Sidebar/Sidebar.stories.jsx +28 -0
- package/src/stories/Layouts/Tabs/Tabs.css +16 -0
- package/src/stories/Layouts/Tabs/Tabs.jsx +31 -0
- package/src/stories/Layouts/Tabs/Tabs.stories.jsx +28 -0
- package/src/stories/Layouts/index.js +25 -0
- package/src/stories/Layouts/meta_Layouts.js +28 -0
- 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/Navbar/Navbar.css +63 -59
- package/src/stories/Molecules/Navbar/Navbar.jsx +43 -48
- package/src/stories/Molecules/Navbar/Navbar.stories.jsx +58 -8
- package/src/stories/Molecules/SearchBar/SearchBar.css +66 -1
- package/src/stories/Molecules/SearchBar/SearchBar.jsx +59 -11
- package/src/stories/Molecules/SearchBar/SearchBar.stories.jsx +16 -7
- package/src/stories/Molecules/SelectTheme/SelectTheme.jsx +16 -38
- package/src/stories/Molecules/SelectTheme/SelectTheme.stories.jsx +1 -2
- package/src/stories/Molecules/Sidebar/Sidebar.css +65 -2
- package/src/stories/Molecules/Sidebar/Sidebar.jsx +66 -11
- package/src/stories/Molecules/Sidebar/Sidebar.stories.jsx +20 -5
- package/src/stories/Molecules/index.js +2 -1
- package/src/stories/Molecules/{Molecules.js → meta_Molecules.js} +6 -3
- package/src/stories/Templates/AdminDashboard/AdminDashboard.css +7 -0
- package/src/stories/Templates/AdminDashboard/AdminDashboard.jsx +24 -0
- package/src/stories/Templates/AdminDashboard/AdminDashboard.stories.jsx +20 -0
- package/src/stories/Templates/CallToAction/CallToAction.css +7 -0
- package/src/stories/Templates/CallToAction/CallToAction.jsx +24 -0
- package/src/stories/Templates/CallToAction/CallToAction.stories.jsx +20 -0
- package/src/stories/Templates/FeaturesList/FeaturesList.css +7 -0
- package/src/stories/Templates/FeaturesList/FeaturesList.jsx +24 -0
- package/src/stories/Templates/FeaturesList/FeaturesList.stories.jsx +20 -0
- package/src/stories/Templates/FormSection/FormSection.css +7 -0
- package/src/stories/Templates/FormSection/FormSection.jsx +24 -0
- package/src/stories/Templates/FormSection/FormSection.stories.jsx +20 -0
- package/src/stories/Templates/HeroSection/HeroSection.css +7 -0
- package/src/stories/Templates/HeroSection/HeroSection.jsx +24 -0
- package/src/stories/Templates/HeroSection/HeroSection.stories.jsx +20 -0
- package/src/stories/Templates/LocationInfo/LocationInfo.css +7 -0
- package/src/stories/Templates/LocationInfo/LocationInfo.jsx +24 -0
- package/src/stories/Templates/LocationInfo/LocationInfo.stories.jsx +20 -0
- package/src/stories/Templates/ProductPage/ProductPage.css +7 -0
- package/src/stories/Templates/ProductPage/ProductPage.jsx +24 -0
- package/src/stories/Templates/ProductPage/ProductPage.stories.jsx +20 -0
- package/src/stories/Templates/RegistrationPage/RegistrationPage.css +7 -0
- package/src/stories/Templates/RegistrationPage/RegistrationPage.jsx +24 -0
- package/src/stories/Templates/RegistrationPage/RegistrationPage.stories.jsx +20 -0
- package/src/stories/Templates/ShoppingCart/ShoppingCart.css +7 -0
- package/src/stories/Templates/ShoppingCart/ShoppingCart.jsx +24 -0
- package/src/stories/Templates/ShoppingCart/ShoppingCart.stories.jsx +20 -0
- package/src/stories/Templates/SidebarTopNav/SidebarTopNav.css +7 -0
- package/src/stories/Templates/SidebarTopNav/SidebarTopNav.jsx +24 -0
- package/src/stories/Templates/SidebarTopNav/SidebarTopNav.stories.jsx +20 -0
- package/src/stories/Templates/SignInPage/SignInPage.css +7 -0
- package/src/stories/Templates/SignInPage/SignInPage.jsx +24 -0
- package/src/stories/Templates/SignInPage/SignInPage.stories.jsx +20 -0
- package/src/stories/Templates/SocialMediaLinks/SocialMediaLinks.css +7 -0
- package/src/stories/Templates/SocialMediaLinks/SocialMediaLinks.jsx +24 -0
- package/src/stories/Templates/SocialMediaLinks/SocialMediaLinks.stories.jsx +20 -0
- package/src/stories/Templates/Testimonials/Testimonials.css +7 -0
- package/src/stories/Templates/Testimonials/Testimonials.jsx +24 -0
- package/src/stories/Templates/Testimonials/Testimonials.stories.jsx +20 -0
- package/src/stories/Templates/index.js +33 -0
- package/src/stories/Templates/{Templates.js → meta_Templates.js} +3 -1
- package/src/stories/assets/logo.png +0 -0
- package/src/stories/assets/logo.svg +106 -0
- package/src/stories/assets/test.svg +3 -0
- package/src/themes/README_Styles.md +301 -0
- package/src/themes/ThemeProvider.jsx +47 -22
- package/src/themes/styles/dracula/dark.css +0 -0
- package/src/themes/styles/dracula/light.css +0 -0
- package/src/themes/styles/github/dark.css +0 -0
- package/src/themes/styles/github/light.css +0 -0
- package/src/themes/styles/neurons/dark.css +247 -0
- package/src/themes/styles/neurons/light.css +280 -0
- package/dist/Styles.md +0 -446
- package/dist/context.md +0 -942
- package/dist/github-3688a83a.js +0 -5
- package/dist/gothic-94a7ecd6.js +0 -5
- package/dist/newsprint-32bf94d9.js +0 -5
- package/dist/night-4a954853.js +0 -5
- package/dist/pixyll-94de4610.js +0 -5
- package/dist/whitey-db68723e.js +0 -5
- package/src/MDXEditor.jsx +0 -32
- 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/verifyMolecules.js +0 -158
- package/src/scripts/verify_and_install_atoms.js +0 -211
- package/src/stories/Atoms/RangeInput/RangeInput.css +0 -29
- package/src/stories/Atoms/RangeInput/RangeInput.jsx +0 -41
- package/src/stories/Atoms/RangeInput/RangeInput.stories.jsx +0 -41
- package/src/stories/Components.md +0 -189
- package/src/stories/Layouts/Grid/Grid.css +0 -4
- package/src/stories/Layouts/Grid/Grid.jsx +0 -15
- package/src/stories/Layouts/Grid/Grid.stories.jsx +0 -26
- package/src/stories/Layouts/Layout.js +0 -28
- package/src/styles/Header.modules.css +0 -32
- package/src/styles/global.css +0 -59
- package/src/themes/Themes.js +0 -44
- package/src/themes/dark.js +0 -22
- package/src/themes/light.js +0 -22
- package/src/themes/typ/Readme.md +0 -4
- package/src/themes/typ/github/open-sans-v17-latin-ext_latin-700.woff2 +0 -0
- package/src/themes/typ/github/open-sans-v17-latin-ext_latin-700italic.woff2 +0 -0
- package/src/themes/typ/github/open-sans-v17-latin-ext_latin-italic.woff2 +0 -0
- package/src/themes/typ/github/open-sans-v17-latin-ext_latin-regular.woff2 +0 -0
- package/src/themes/typ/github.css +0 -416
- package/src/themes/typ/gothic/GUST e-foundry License.txt +0 -29
- package/src/themes/typ/gothic/didact-gothic-c-ext.woff2 +0 -0
- package/src/themes/typ/gothic/didact-gothic-c.woff2 +0 -0
- package/src/themes/typ/gothic/texgyreadventor-bold.woff +0 -0
- package/src/themes/typ/gothic/texgyreadventor-bolditalic.woff +0 -0
- package/src/themes/typ/gothic/texgyreadventor-italic.woff +0 -0
- package/src/themes/typ/gothic/texgyreadventor-regular.woff +0 -0
- package/src/themes/typ/gothic.css +0 -410
- package/src/themes/typ/newsprint/pt-serif-v11-latin-700.woff2 +0 -0
- package/src/themes/typ/newsprint/pt-serif-v11-latin-700italic.woff2 +0 -0
- package/src/themes/typ/newsprint/pt-serif-v11-latin-italic.woff2 +0 -0
- package/src/themes/typ/newsprint/pt-serif-v11-latin-regular.woff2 +0 -0
- package/src/themes/typ/newsprint.css +0 -622
- package/src/themes/typ/night/codeblock.dark.css +0 -113
- package/src/themes/typ/night/credit.html +0 -1
- package/src/themes/typ/night/cursor.png +0 -0
- package/src/themes/typ/night/cursor@2x.png +0 -0
- package/src/themes/typ/night/mermaid.dark.css +0 -7
- package/src/themes/typ/night/sourcemode.dark.css +0 -38
- package/src/themes/typ/night.css +0 -1032
- package/src/themes/typ/pixyll/lato-v14-latin-300.woff +0 -0
- package/src/themes/typ/pixyll/lato-v14-latin-300italic.woff +0 -0
- package/src/themes/typ/pixyll/lato-v14-latin-900.woff +0 -0
- package/src/themes/typ/pixyll/lato-v14-latin-900italic.woff +0 -0
- package/src/themes/typ/pixyll/merriweather-v19-latin-300.woff +0 -0
- package/src/themes/typ/pixyll/merriweather-v19-latin-300italic.woff +0 -0
- package/src/themes/typ/pixyll/merriweather-v19-latin-700.woff +0 -0
- package/src/themes/typ/pixyll/merriweather-v19-latin-700italic.woff +0 -0
- package/src/themes/typ/pixyll.css +0 -528
- package/src/themes/typ/whitey.css +0 -299
- /package/src/stories/Organisms/{Organisms.js → meta_Organisms.js} +0 -0
|
@@ -1,29 +1,383 @@
|
|
|
1
|
+
/*this.GUI/src/stories/Atoms/Tooltip/Tooltip.css*/
|
|
2
|
+
/* Base Tooltip Styles */
|
|
3
|
+
.tooltip-wrapper {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-block;
|
|
6
|
+
}
|
|
1
7
|
|
|
2
8
|
.tooltip {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
position: absolute;
|
|
10
|
+
visibility: hidden;
|
|
11
|
+
opacity: 0;
|
|
12
|
+
background-color: var(--tooltip-background-color, #333);
|
|
13
|
+
color: var(--tooltip-text-color, #fff);
|
|
14
|
+
text-align: center;
|
|
15
|
+
padding: 8px;
|
|
16
|
+
border-radius: 4px;
|
|
17
|
+
transition: opacity 0.3s ease, visibility 0.3s ease;
|
|
18
|
+
z-index: 999;
|
|
19
|
+
font-size: var(--font-size-base, 14px);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tooltip--visible {
|
|
23
|
+
visibility: visible;
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Arrow */
|
|
28
|
+
.tooltip__arrow {
|
|
29
|
+
position: absolute;
|
|
30
|
+
width: 0;
|
|
31
|
+
height: 0;
|
|
32
|
+
border-style: solid;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Tooltip Position Variants */
|
|
36
|
+
.tooltip--top {
|
|
37
|
+
bottom: 100%;
|
|
38
|
+
left: 50%;
|
|
39
|
+
transform: translateX(-50%);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.tooltip--top .tooltip__arrow {
|
|
43
|
+
top: 100%;
|
|
44
|
+
left: 50%;
|
|
45
|
+
border-width: 6px 6px 0 6px;
|
|
46
|
+
border-color: var(--tooltip-background-color) transparent transparent transparent;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.tooltip--bottom {
|
|
50
|
+
top: 100%;
|
|
51
|
+
left: 50%;
|
|
52
|
+
transform: translateX(-50%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.tooltip--bottom .tooltip__arrow {
|
|
56
|
+
bottom: 100%;
|
|
57
|
+
left: 50%;
|
|
58
|
+
border-width: 0 6px 6px 6px;
|
|
59
|
+
border-color: transparent transparent var(--tooltip-background-color) transparent;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tooltip--left {
|
|
63
|
+
right: 100%;
|
|
64
|
+
top: 50%;
|
|
65
|
+
transform: translateY(-50%);
|
|
7
66
|
}
|
|
8
67
|
|
|
68
|
+
.tooltip--left .tooltip__arrow {
|
|
69
|
+
right: -6px;
|
|
70
|
+
top: 50%;
|
|
71
|
+
border-width: 6px 6px 6px 0;
|
|
72
|
+
border-color: transparent var(--tooltip-background-color) transparent transparent;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.tooltip--right {
|
|
76
|
+
left: 100%;
|
|
77
|
+
top: 50%;
|
|
78
|
+
transform: translateY(-50%);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.tooltip--right .tooltip__arrow {
|
|
82
|
+
left: -6px;
|
|
83
|
+
top: 50%;
|
|
84
|
+
border-width: 6px 0 6px 6px;
|
|
85
|
+
border-color: transparent transparent transparent var(--tooltip-background-color);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Custom Variants: North, South, East, West */
|
|
89
|
+
.tooltip--north {
|
|
90
|
+
top: -120%;
|
|
91
|
+
left: 50%;
|
|
92
|
+
transform: translateX(-50%);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.tooltip--south {
|
|
96
|
+
bottom: -120%;
|
|
97
|
+
left: 50%;
|
|
98
|
+
transform: translateX(-50%);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.tooltip--east {
|
|
102
|
+
left: 120%;
|
|
103
|
+
top: 50%;
|
|
104
|
+
transform: translateY(-50%);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.tooltip--west {
|
|
108
|
+
right: 120%;
|
|
109
|
+
top: 50%;
|
|
110
|
+
transform: translateY(-50%);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Colors for Primary and Secondary Variants */
|
|
9
114
|
.tooltip--primary {
|
|
10
|
-
background-color: #
|
|
11
|
-
|
|
115
|
+
background-color: var(--primary-color, #1F877D);
|
|
116
|
+
color: #fff;
|
|
12
117
|
}
|
|
13
118
|
|
|
14
119
|
.tooltip--secondary {
|
|
15
|
-
background-color:
|
|
16
|
-
border-color
|
|
120
|
+
background-color: transparent;
|
|
121
|
+
border: 2px solid var(--primary-color, #1F877D);
|
|
122
|
+
color: var(--primary-color, #1F877D);
|
|
17
123
|
}
|
|
18
124
|
|
|
19
|
-
|
|
20
|
-
|
|
125
|
+
/* Primary Colors (Background) */
|
|
126
|
+
.tooltip--primary-primary {
|
|
127
|
+
background-color: var(--primary-color, #1F877D);
|
|
128
|
+
color: #fff;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.tooltip--primary-secondary {
|
|
132
|
+
background-color: var(--secondary-color, #39a182);
|
|
133
|
+
color: #fff;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.tooltip--primary-info {
|
|
137
|
+
background-color: var(--info-color, #008699);
|
|
138
|
+
color: #fff;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.tooltip--primary-warning {
|
|
142
|
+
background-color: var(--warning-color, #FF6F61);
|
|
143
|
+
color: #fff;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.tooltip--primary-alert {
|
|
147
|
+
background-color: var(--alert-color, #ffcc00);
|
|
148
|
+
color: #fff;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.tooltip--primary-success {
|
|
152
|
+
background-color: var(--success-color, #00B4B8);
|
|
153
|
+
color: #fff;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.tooltip--primary-neutral {
|
|
157
|
+
background-color: var(--neutral-color, #a4a4a4);
|
|
158
|
+
color: #fff;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.tooltip--primary-dark {
|
|
162
|
+
background-color: var(--dark-color, #2C2C2C);
|
|
163
|
+
color: #fff;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* Classy Palette */
|
|
167
|
+
.tooltip--primary-classy-color-1 {
|
|
168
|
+
background-color: var(--classy-color-1, #16655c);
|
|
169
|
+
color: #fff;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.tooltip--primary-classy-color-2 {
|
|
173
|
+
background-color: var(--classy-color-2, #96b1ac);
|
|
174
|
+
color: #fff;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.tooltip--primary-classy-color-3 {
|
|
178
|
+
background-color: var(--classy-color-3, #637c78);
|
|
179
|
+
color: #fff;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.tooltip--primary-classy-color-4 {
|
|
183
|
+
background-color: var(--classy-color-4, #405b83);
|
|
184
|
+
color: #fff;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.tooltip--primary-classy-color-5 {
|
|
188
|
+
background-color: var(--classy-color-5, #738db8);
|
|
189
|
+
color: #fff;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Small Switch Colors */
|
|
193
|
+
.tooltip--primary-small-switch-color-1 {
|
|
194
|
+
background-color: var(--small-switch-color-1, #deefe6);
|
|
195
|
+
color: #000;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.tooltip--primary-small-switch-color-2 {
|
|
199
|
+
background-color: var(--small-switch-color-2, #4e8a6e);
|
|
200
|
+
color: #fff;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* Natural Palette */
|
|
204
|
+
.tooltip--primary-natural-color-1 {
|
|
205
|
+
background-color: var(--natural-color-1, #00aa96);
|
|
206
|
+
color: #fff;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.tooltip--primary-natural-color-2 {
|
|
210
|
+
background-color: var(--natural-color-2, #e8fefa);
|
|
211
|
+
color: #000;
|
|
21
212
|
}
|
|
22
213
|
|
|
23
|
-
.tooltip--
|
|
24
|
-
|
|
214
|
+
.tooltip--primary-natural-color-3 {
|
|
215
|
+
background-color: var(--natural-color-3, #e7fefe);
|
|
216
|
+
color: #000;
|
|
25
217
|
}
|
|
26
218
|
|
|
27
|
-
|
|
28
|
-
|
|
219
|
+
/* Grey Friends */
|
|
220
|
+
.tooltip--primary-grey-friend-1 {
|
|
221
|
+
background-color: var(--grey-friend-1, #344b47);
|
|
222
|
+
color: #fff;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.tooltip--primary-grey-friend-2 {
|
|
226
|
+
background-color: var(--grey-friend-2, #96b1ac);
|
|
227
|
+
color: #fff;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* Shades */
|
|
231
|
+
.tooltip--primary-shade-1 {
|
|
232
|
+
background-color: var(--shade-1, #3b847a);
|
|
233
|
+
color: #fff;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.tooltip--primary-shade-2 {
|
|
237
|
+
background-color: var(--shade-2, #5da59a);
|
|
238
|
+
color: #fff;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.tooltip--primary-shade-3 {
|
|
242
|
+
background-color: var(--shade-3, #7ec7bc);
|
|
243
|
+
color: #fff;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.tooltip--primary-shade-4 {
|
|
247
|
+
background-color: var(--shade-4, #a0eade);
|
|
248
|
+
color: #fff;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* Secondary Colors (Outlined with Text Colored) */
|
|
252
|
+
.tooltip--secondary {
|
|
253
|
+
background-color: transparent;
|
|
254
|
+
border: 2px solid var(--primary-color, #1F877D);
|
|
255
|
+
color: var(--primary-color, #1F877D);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.tooltip--secondary-secondary {
|
|
259
|
+
border-color: var(--secondary-color, #39a182);
|
|
260
|
+
color: var(--secondary-color, #39a182);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.tooltip--secondary-info {
|
|
264
|
+
border-color: var(--info-color, #008699);
|
|
265
|
+
color: var(--info-color, #008699);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.tooltip--secondary-warning {
|
|
269
|
+
border-color: var(--warning-color, #FF6F61);
|
|
270
|
+
color: var(--warning-color, #FF6F61);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.tooltip--secondary-alert {
|
|
274
|
+
border-color: var(--alert-color, #ffcc00);
|
|
275
|
+
color: var(--alert-color, #ffcc00);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.tooltip--secondary-success {
|
|
279
|
+
border-color: var(--success-color, #00B4B8);
|
|
280
|
+
color: var(--success-color, #00B4B8);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.tooltip--secondary-neutral {
|
|
284
|
+
border-color: var(--neutral-color, #a4a4a4);
|
|
285
|
+
color: var(--neutral-color, #a4a4a4);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.tooltip--secondary-dark {
|
|
289
|
+
border-color: var(--dark-color, #2C2C2C);
|
|
290
|
+
color: var(--dark-color, #2C2C2C);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* Classy Palette (Outlined) */
|
|
294
|
+
.tooltip--secondary-classy-color-1 {
|
|
295
|
+
border-color: var(--classy-color-1, #16655c);
|
|
296
|
+
color: var(--classy-color-1, #16655c);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.tooltip--secondary-classy-color-2 {
|
|
300
|
+
border-color: var(--classy-color-2, #96b1ac);
|
|
301
|
+
color: var(--classy-color-2, #96b1ac);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.tooltip--secondary-classy-color-3 {
|
|
305
|
+
border-color: var(--classy-color-3, #637c78);
|
|
306
|
+
color: var(--classy-color-3, #637c78);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.tooltip--secondary-classy-color-4 {
|
|
310
|
+
border-color: var(--classy-color-4, #405b83);
|
|
311
|
+
color: var(--classy-color-4, #405b83);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.tooltip--secondary-classy-color-5 {
|
|
315
|
+
border-color: var(--classy-color-5, #738db8);
|
|
316
|
+
color: var(--classy-color-5, #738db8);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* Small Switch Palette (Outlined) */
|
|
320
|
+
.tooltip--secondary-small-switch-color-1 {
|
|
321
|
+
border-color: var(--small-switch-color-1, #deefe6);
|
|
322
|
+
color: var(--small-switch-color-1, #deefe6);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.tooltip--secondary-small-switch-color-2 {
|
|
326
|
+
border-color: var(--small-switch-color-2, #4e8a6e);
|
|
327
|
+
color: var(--small-switch-color-2, #4e8a6e);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* Natural Palette (Outlined) */
|
|
331
|
+
.tooltip--secondary-natural-color-1 {
|
|
332
|
+
border-color: var(--natural-color-1, #00aa96);
|
|
333
|
+
color: var(--natural-color-1, #00aa96);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.tooltip--secondary-natural-color-2 {
|
|
337
|
+
border-color: var(--natural-color-2, #e8fefa);
|
|
338
|
+
color: var(--natural-color-2, #e8fefa);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.tooltip--secondary-natural-color-3 {
|
|
342
|
+
border-color: var(--natural-color-3, #e7fefe);
|
|
343
|
+
color: var(--natural-color-3, #e7fefe);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/* Grey Friends (Outlined) */
|
|
347
|
+
.tooltip--secondary-grey-friend-1 {
|
|
348
|
+
border-color: var(--grey-friend-1, #344b47);
|
|
349
|
+
color: var(--grey-friend-1, #344b47);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.tooltip--secondary-grey-friend-2 {
|
|
353
|
+
border-color: var(--grey-friend-2, #96b1ac);
|
|
354
|
+
color: var(--grey-friend-2, #96b1ac);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* Shades (Outlined) */
|
|
358
|
+
.tooltip--secondary-shade-1 {
|
|
359
|
+
border-color: var(--shade-1, #3b847a);
|
|
360
|
+
color: var(--shade-1, #3b847a);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.tooltip--secondary-shade-2 {
|
|
364
|
+
border-color: var(--shade-2, #5da59a);
|
|
365
|
+
color: var(--shade-2, #5da59a);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.tooltip--secondary-shade-3 {
|
|
369
|
+
border-color: var(--shade-3, #7ec7bc);
|
|
370
|
+
color: var(--shade-3, #7ec7bc);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.tooltip--secondary-shade-4 {
|
|
374
|
+
border-color: var(--shade-4, #a0eade);
|
|
375
|
+
color: var(--shade-4, #a0eade);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
/* Hover Behavior */
|
|
380
|
+
.tooltip-wrapper:hover .tooltip {
|
|
381
|
+
visibility: visible;
|
|
382
|
+
opacity: 1;
|
|
29
383
|
}
|
|
@@ -1,41 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
//this.GUI/src/stories/Atoms/Tooltip/Tooltip.jsx
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import './Tooltip.css';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
export const Tooltip = ({
|
|
7
|
+
content,
|
|
8
|
+
position = 'top',
|
|
9
|
+
variant = 'primary',
|
|
10
|
+
color = 'primary', // Ensure default color is "primary"
|
|
11
|
+
showArrow = true,
|
|
12
|
+
children,
|
|
13
|
+
...props
|
|
14
|
+
}) => {
|
|
15
|
+
const tooltipClasses = `
|
|
16
|
+
tooltip
|
|
17
|
+
tooltip--${position}
|
|
18
|
+
tooltip--${variant}
|
|
19
|
+
tooltip--primary-${color}
|
|
20
|
+
${variant === 'secondary' ? `tooltip--secondary-${color}` : ''}
|
|
21
|
+
`.trim(); // Ensuring the correct color class is applied
|
|
22
|
+
|
|
11
23
|
return (
|
|
12
|
-
<div
|
|
13
|
-
className={['tooltip', `tooltip--${size}`, mode].join(' ')}
|
|
14
|
-
{...props}
|
|
15
|
-
>
|
|
24
|
+
<div className="tooltip-wrapper" {...props}>
|
|
16
25
|
{children}
|
|
26
|
+
<div className={tooltipClasses}>
|
|
27
|
+
{content}
|
|
28
|
+
{showArrow && <div className="tooltip__arrow"></div>}
|
|
29
|
+
</div>
|
|
17
30
|
</div>
|
|
18
31
|
);
|
|
19
32
|
};
|
|
20
33
|
|
|
21
34
|
Tooltip.propTypes = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
*/
|
|
35
|
+
content: PropTypes.node.isRequired,
|
|
36
|
+
position: PropTypes.oneOf(['top', 'bottom', 'left', 'right', 'north', 'south', 'east', 'west']),
|
|
37
|
+
variant: PropTypes.oneOf(['primary', 'secondary']),
|
|
38
|
+
color: PropTypes.oneOf([
|
|
39
|
+
'primary', 'info', 'warning', 'alert', 'success', 'neutral', 'dark',
|
|
40
|
+
'classy-color-1', 'classy-color-2', 'classy-color-3', 'classy-color-4', 'classy-color-5',
|
|
41
|
+
'small-switch-color-1', 'small-switch-color-2', 'natural-color-1', 'natural-color-2', 'natural-color-3',
|
|
42
|
+
'grey-friend-1', 'grey-friend-2', 'shade-1', 'shade-2', 'shade-3', 'shade-4'
|
|
43
|
+
]),
|
|
44
|
+
showArrow: PropTypes.bool,
|
|
33
45
|
children: PropTypes.node.isRequired,
|
|
34
46
|
};
|
|
35
|
-
|
|
36
|
-
Tooltip.defaultProps = {
|
|
37
|
-
primary: false,
|
|
38
|
-
size: 'medium',
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export default Tooltip;
|
|
@@ -1,41 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
//this.GUI/src/stories/Atoms/Tooltip/Tooltip.stories.jsx
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { Tooltip } from './Tooltip';
|
|
3
4
|
|
|
4
|
-
// Storybook configuration for Tooltip component
|
|
5
5
|
export default {
|
|
6
|
-
title: 'Atoms/
|
|
6
|
+
title: 'Atoms/Interactive/Tooltip',
|
|
7
7
|
component: Tooltip,
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: 'centered',
|
|
10
|
-
},
|
|
11
8
|
argTypes: {
|
|
12
|
-
|
|
9
|
+
content: { control: 'text', defaultValue: 'Tooltip Content' },
|
|
10
|
+
position: {
|
|
11
|
+
control: { type: 'select', options: ['top', 'bottom', 'left', 'right', 'north', 'south', 'east', 'west'] },
|
|
12
|
+
defaultValue: 'top'
|
|
13
|
+
},
|
|
14
|
+
color: {
|
|
15
|
+
control: { type: 'select', options: [
|
|
16
|
+
'primary', 'info', 'warning', 'alert', 'success', 'neutral', 'dark',
|
|
17
|
+
'classy-color-1', 'classy-color-2', 'classy-color-3', 'classy-color-4', 'classy-color-5'
|
|
18
|
+
]},
|
|
19
|
+
defaultValue: 'primary'
|
|
20
|
+
},
|
|
21
|
+
variant: { control: { type: 'select', options: ['primary', 'secondary'] }, defaultValue: 'primary' },
|
|
22
|
+
showArrow: { control: 'boolean', defaultValue: true },
|
|
13
23
|
},
|
|
14
24
|
};
|
|
15
25
|
|
|
16
|
-
export const Primary = {
|
|
17
|
-
args: {
|
|
18
|
-
primary: true,
|
|
19
|
-
children: 'This is a primary Tooltip',
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
26
|
|
|
23
|
-
export const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
27
|
+
export const ColorVariants = () => (
|
|
28
|
+
<div style={{ padding: '50px', display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: '20px' }}>
|
|
29
|
+
{['primary', 'info', 'warning', 'alert', 'success', 'neutral', 'dark'].map((color) => (
|
|
30
|
+
<Tooltip key={color} content={`This is ${color}`} color={color}>
|
|
31
|
+
<button>Hover for {color}</button>
|
|
32
|
+
</Tooltip>
|
|
33
|
+
))}
|
|
34
|
+
</div>
|
|
35
|
+
);
|
|
28
36
|
|
|
29
|
-
export const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
export const InteractiveTooltip = (args) => (
|
|
38
|
+
<div style={{ padding: '100px', display: 'flex', justifyContent: 'space-around', alignItems: 'center' }}>
|
|
39
|
+
<Tooltip {...args} position="top">
|
|
40
|
+
<button>Hover Top</button>
|
|
41
|
+
</Tooltip>
|
|
42
|
+
<Tooltip {...args} position="bottom">
|
|
43
|
+
<button>Hover Bottom</button>
|
|
44
|
+
</Tooltip>
|
|
45
|
+
<Tooltip {...args} position="left">
|
|
46
|
+
<button>Hover Left</button>
|
|
47
|
+
</Tooltip>
|
|
48
|
+
<Tooltip {...args} position="right">
|
|
49
|
+
<button>Hover Right</button>
|
|
50
|
+
</Tooltip>
|
|
51
|
+
</div>
|
|
52
|
+
);
|
|
@@ -1,29 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
.video {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
background-color: #
|
|
6
|
-
|
|
1
|
+
/*this.GUI/src/stories/Atoms/Video/Video.css */
|
|
2
|
+
.video-container {
|
|
3
|
+
position: relative;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
background-color: #000;
|
|
6
|
+
display: inline-block;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
video {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.video
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
.video-controls {
|
|
15
|
+
position: absolute;
|
|
16
|
+
bottom: 10px;
|
|
17
|
+
left: 10px;
|
|
18
|
+
z-index: 10;
|
|
19
|
+
display: none;
|
|
20
|
+
transition: opacity 0.3s ease;
|
|
17
21
|
}
|
|
18
22
|
|
|
19
|
-
.video
|
|
20
|
-
|
|
23
|
+
.video-container.show-controls .video-controls {
|
|
24
|
+
display: block;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
|
-
.video
|
|
24
|
-
|
|
27
|
+
.video-controls button {
|
|
28
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
29
|
+
border: none;
|
|
30
|
+
color: white;
|
|
31
|
+
padding: 8px 16px;
|
|
32
|
+
border-radius: 5px;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
font-size: 14px;
|
|
25
35
|
}
|
|
26
36
|
|
|
27
|
-
.video
|
|
28
|
-
|
|
37
|
+
.video-controls button:hover {
|
|
38
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
29
39
|
}
|