(theme: DevtoolsStore['settings']['theme'])
| 80 | opacity: 1; |
| 81 | } |
| 82 | ` |
| 83 | |
| 84 | const hotCornerIn = goober.keyframes` |
| 85 | from { |
| 86 | opacity: 0; |
| 87 | } |
| 88 | ` |
| 89 | |
| 90 | const spin = goober.keyframes` |
| 91 | to { |
| 92 | transform: rotate(360deg); |
| 93 | } |
| 94 | ` |
| 95 | |
| 96 | const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => { |
| 97 | const semantic = resolveSemanticTheme(theme) |
| 98 | const css = goober.css |
| 99 | // Core scrollers only. Do not put this on a selector that reaches into a |
| 100 | // plugin's own markup — plugins own the scrollbars inside their pane. |
| 101 | const thinScrollbars = ` |
| 102 | scrollbar-width: thin; |
| 103 | scrollbar-color: ${semantic.color.border.control} transparent; |
| 104 | &::-webkit-scrollbar { |
| 105 | width: 8px; |
| 106 | height: 8px; |
| 107 | } |
| 108 | &::-webkit-scrollbar-track { |
| 109 | background: transparent; |
| 110 | } |
| 111 | &::-webkit-scrollbar-thumb { |
| 112 | background-color: ${semantic.color.border.control}; |
| 113 | border-radius: 999px; |
| 114 | border: 2px solid transparent; |
| 115 | background-clip: padding-box; |
| 116 | } |
| 117 | &::-webkit-scrollbar-thumb:hover { |
| 118 | background-color: ${semantic.color.text.muted}; |
| 119 | } |
| 120 | &::-webkit-scrollbar-corner { |
| 121 | background: transparent; |
| 122 | } |
| 123 | ` |
| 124 | |
| 125 | return { |
| 126 | seoWorkspace: css` |
| 127 | display: flex; |
| 128 | flex-direction: column; |
| 129 | width: 100%; |
| 130 | height: 100%; |
| 131 | min-width: 0; |
| 132 | min-height: 0; |
| 133 | overflow: hidden; |
| 134 | `, |
| 135 | seoContent: css` |
| 136 | flex: 1 1 auto; |
| 137 | height: auto; |
| 138 | min-height: 0; |
| 139 | overflow-y: auto; |
no test coverage detected