-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(composer): convert to inline overlay CSS
- Loading branch information
1 parent
b3f97b3
commit dd58c0c
Showing
14 changed files
with
120 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 0 additions & 58 deletions
58
packages/scene-composer/src/components/three-fiber/DataOverlayComponent/styles.scss
This file was deleted.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
packages/scene-composer/src/components/three-fiber/DataOverlayComponent/styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { colorBackgroundContainerHeader, colorBorderButtonNormalDisabled } from '@awsui/design-tokens'; | ||
import { CSSProperties } from 'react'; | ||
|
||
// DataRow | ||
export const tmAnnotationRow: CSSProperties = { | ||
whiteSpace: 'nowrap', | ||
}; | ||
|
||
// Rows | ||
export const tmPanelRows: CSSProperties = { | ||
marginLeft: '1em', | ||
marginRight: '1em', | ||
}; | ||
|
||
// Container | ||
export const tmContainer: CSSProperties = { | ||
overflow: 'auto', | ||
backgroundColor: colorBackgroundContainerHeader, | ||
border: `1px solid ${colorBorderButtonNormalDisabled}`, | ||
borderRadius: '2px', | ||
boxShadow: '0px 1px 4px -2px rgba(0, 28, 36, 0.5)', | ||
}; | ||
export const tmPanelContainer: CSSProperties = { | ||
paddingTop: '12px', | ||
paddingBottom: '12px', | ||
width: '210px', | ||
minHeight: '2em', | ||
}; | ||
export const tmAnnotationContainer: CSSProperties = { | ||
paddingLeft: '12px', | ||
paddingRight: '12px', | ||
}; | ||
export const tmCloseButton: CSSProperties = { | ||
float: 'right', | ||
marginTop: '8px', | ||
marginRight: '8px', | ||
}; | ||
|
||
// Overlay panel arrow | ||
export const tmArrow: CSSProperties = { | ||
height: '14px', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
}; | ||
export const tmArrowOuter: CSSProperties = { | ||
width: '18px', | ||
height: '18px', | ||
position: 'absolute', | ||
zIndex: -1, | ||
bottom: '5px', | ||
transform: 'rotate(45deg)', | ||
}; | ||
export const tmArrowInner: CSSProperties = { | ||
border: '0px', | ||
bottom: '6.5px', | ||
width: '20px', | ||
height: '20px', | ||
zIndex: '1', | ||
}; |
2 changes: 1 addition & 1 deletion
2
...omposer/src/components/three-fiber/SubModelComponent/__tests__/SubModelComponent.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
packages/scene-composer/src/components/wrappers/ReactMarkdownWrapper.scss
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.