|
| 1 | +<meta property="og:description" content="SDS design system by CZI" /> |
| 2 | +<meta property="og:title" content="Vibe Design System" /> |
| 3 | +<link |
| 4 | + rel="icon" |
| 5 | + type="image/png" |
| 6 | + href="https://user-images.githubusercontent.com/927990/204130290-897628ee-e89a-4911-89df-0956c9edf940.png" |
| 7 | + sizes="48x48" |
| 8 | +/> |
| 9 | +<link rel="preconnect" href="https://fonts.gstatic.com" /> |
| 10 | +<link |
| 11 | + href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400;1,600;1,700&display=swap" |
| 12 | + rel="stylesheet" |
| 13 | +/> |
| 14 | +<title>SDS Design System</title> |
| 15 | +<style> |
| 16 | + body { |
| 17 | + font-family: "Open Sans", sans-serif !important; |
| 18 | + font-size: 14px; |
| 19 | + } |
| 20 | + |
| 21 | + div[role="main"] { |
| 22 | + top: 0 !important; |
| 23 | + } |
| 24 | + |
| 25 | + div[role="main"] > div { |
| 26 | + box-shadow: none !important; |
| 27 | + } |
| 28 | + |
| 29 | + div[role="main"] .os-host { |
| 30 | + border-bottom: solid 1px #e6e6e6; |
| 31 | + border-top: solid 1px #e6e6e6; |
| 32 | + } |
| 33 | + |
| 34 | + .react-draggable { |
| 35 | + border-right: solid 1px #e6e6e6; |
| 36 | + } |
| 37 | + |
| 38 | + #storybook-explorer-menu svg { |
| 39 | + color: #555; |
| 40 | + margin-top: 4px; |
| 41 | + } |
| 42 | + |
| 43 | + #storybook-explorer-menu button:focus, |
| 44 | + #storybook-explorer-menu a[data-selected]:hover { |
| 45 | + background-color: #f7f7f7; |
| 46 | + } |
| 47 | + |
| 48 | + #storybook-explorer-menu a[data-selected="true"], |
| 49 | + #storybook-explorer-menu a[data-selected="true"]:hover { |
| 50 | + background-color: #eee; |
| 51 | + color: #000; |
| 52 | + font-weight: 600; |
| 53 | + } |
| 54 | + |
| 55 | + #storybook-explorer-menu a[data-selected="true"] svg { |
| 56 | + color: #3867fa; |
| 57 | + } |
| 58 | + |
| 59 | + .os-content button:hover { |
| 60 | + background-color: #f7f7f7; |
| 61 | + } |
| 62 | + |
| 63 | + .os-content button:hover svg { |
| 64 | + color: black; |
| 65 | + } |
| 66 | + |
| 67 | + #storybook-explorer-menu .sidebar-subheading > button { |
| 68 | + font-size: 12px !important; |
| 69 | + font-weight: 600 !important; |
| 70 | + text-transform: uppercase !important; |
| 71 | + color: #000 !important; |
| 72 | + letter-spacing: 0 !important; |
| 73 | + } |
| 74 | + |
| 75 | + #storybook-explorer-menu .sidebar-subheading > button:hover, |
| 76 | + #storybook-explorer-menu .sidebar-subheading > button:active, |
| 77 | + #storybook-explorer-menu .sidebar-subheading > button:focus { |
| 78 | + background-color: transparent !important; |
| 79 | + } |
| 80 | + |
| 81 | + #storybook-explorer-menu button.sidebar-item { |
| 82 | + font-size: 14px; |
| 83 | + padding: 5px 3px 5px 2px; |
| 84 | + } |
| 85 | + |
| 86 | + #storybook-explorer-menu a.sidebar-item { |
| 87 | + font-size: 14px; |
| 88 | + padding: 5px 3px 5px 34px; |
| 89 | + } |
| 90 | + |
| 91 | + #storybook-explorer-menu .sidebar-item > span, |
| 92 | + #storybook-explorer-menu .sidebar-subheading > button > span { |
| 93 | + display: inline-block; |
| 94 | + position: relative; |
| 95 | + border-style: solid; |
| 96 | + height: 5px !important; |
| 97 | + width: 5px !important; |
| 98 | + left: 0 !important; |
| 99 | + top: 0 !important; |
| 100 | + transform: rotate(45deg); |
| 101 | + vertical-align: middle; |
| 102 | + border-top: solid 1px !important; |
| 103 | + border-bottom: none !important; |
| 104 | + border-left: none !important; |
| 105 | + border-right: solid 1px; |
| 106 | + margin-left: 8px; |
| 107 | + margin-right: 6px; |
| 108 | + } |
| 109 | + |
| 110 | + #storybook-explorer-menu .sidebar-item > span { |
| 111 | + margin-top: 7px; |
| 112 | + } |
| 113 | + |
| 114 | + #storybook-explorer-menu .sidebar-subheading > button > span { |
| 115 | + margin-top: 5px; |
| 116 | + } |
| 117 | + |
| 118 | + #storybook-explorer-menu .sidebar-item[aria-expanded="true"] > span, |
| 119 | + #storybook-explorer-menu |
| 120 | + .sidebar-subheading[aria-expanded="true"] |
| 121 | + > button |
| 122 | + > span { |
| 123 | + transform: rotate(135deg); |
| 124 | + } |
| 125 | +</style> |
| 126 | + |
| 127 | +<script> |
| 128 | + //workaround to increase the left panel width just enough to show even the longer story names |
| 129 | + //based on https://github.com/storybookjs/storybook/issues/9682#issuecomment-983356523 |
| 130 | + const DEFAULT_MINIMUM_LEFT_PANEL_WIDTH = 260; // original default is 230 |
| 131 | + let storybookConfig = JSON.parse(localStorage.getItem("storybook-layout")); |
| 132 | + |
| 133 | + // we only resize the left panel if it is set to a value lower than DEFAULT_MINIMUM_LEFT_PANEL_WIDTH |
| 134 | + if ( |
| 135 | + typeof storybookConfig === "object" && |
| 136 | + storybookConfig !== null && |
| 137 | + storybookConfig.resizerNav.x < DEFAULT_MINIMUM_LEFT_PANEL_WIDTH |
| 138 | + ) { |
| 139 | + storybookConfig.resizerNav.x = DEFAULT_MINIMUM_LEFT_PANEL_WIDTH; |
| 140 | + localStorage.setItem("storybook-layout", JSON.stringify(storybookConfig)); |
| 141 | + document.location.reload(); |
| 142 | + } else if (storybookConfig === null) { |
| 143 | + storybookConfig = { |
| 144 | + resizerNav: { x: DEFAULT_MINIMUM_LEFT_PANEL_WIDTH, y: 0 }, |
| 145 | + }; |
| 146 | + localStorage.setItem("storybook-layout", JSON.stringify(storybookConfig)); |
| 147 | + document.location.reload(); |
| 148 | + } |
| 149 | + |
| 150 | + document.addEventListener("DOMContentLoaded", function () { |
| 151 | + let bookmarkHollowIcon = document.getElementById( |
| 152 | + "icon--bookmarkhollow" |
| 153 | + ).firstChild; |
| 154 | + bookmarkHollowIcon.setAttribute( |
| 155 | + "d", |
| 156 | + "M 943.548 481.063 C 950.438 497.039 954 514.416 954 532.001 C 954 549.586 950.438 566.962 943.548 582.939 C 936.665 598.915 926.615 613.113 914.108 624.557 L 631.498 883.042 C 621.145 892.507 607.959 897.714 594.323 897.714 L 127.121 897.714 C 111.971 897.714 97.443 891.292 86.731 879.86 C 76.018 868.428 70 852.929 70 836.764 L 70 227.238 C 70 211.073 76.018 195.57 86.731 184.139 C 97.443 172.708 111.971 166.286 127.121 166.286 L 594.323 166.286 C 607.959 166.287 621.145 171.491 631.498 180.96 L 914.108 439.445 C 926.615 450.89 936.665 465.086 943.548 481.063 Z M 822.288 567.27 C 826.554 563.364 830.277 558.245 832.926 552.098 C 835.573 545.945 837.017 539.075 837.017 532.001 C 837.017 524.927 835.573 518.056 832.926 511.904 C 830.277 505.756 826.554 500.638 822.288 496.732 L 568.454 264.567 L 166.984 264.567 L 166.984 799.434 L 568.454 799.434 L 822.288 567.27 Z" |
| 157 | + ); |
| 158 | + bookmarkHollowIcon.setAttribute("fill-rule", "evenodd"); |
| 159 | + }); |
| 160 | +</script> |
0 commit comments