-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(isct-97): added border-radius and spacing, some changes in colo…
…rs and shadows
- Loading branch information
Showing
11 changed files
with
379 additions
and
118 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
15 changes: 0 additions & 15 deletions
15
projects/fusion-ui/storybook-foundations/v4/border-radius.mdx
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
projects/fusion-ui/storybook-foundations/v4/border-radius/border-radius.component.html
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
projects/fusion-ui/storybook-foundations/v4/border-radius/border-radius.component.scss
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
projects/fusion-ui/storybook-foundations/v4/border-radius/border-radius.component.ts
This file was deleted.
Oops, something went wrong.
81 changes: 81 additions & 0 deletions
81
projects/fusion-ui/storybook-foundations/v4/border-radius/border-radius.mdx
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,81 @@ | ||
import {Meta, Source} from '@storybook/addon-docs'; | ||
import {borderRadiusData} from './borderRadiusData'; | ||
|
||
<Meta title="V4/Foundation/Border radius"/> | ||
|
||
# Elevations (shadows) | ||
|
||
CSS **box-shadow** is a style property used to add a shadow effect to an element's box (such as a div or an image) on a web page. The property allows you to create a visually appealing 3D-like effect, making the element appear elevated or floating. | ||
|
||
To use scss variable add in your *.scss | ||
`@import '~@ironsource/fusion-ui/style/v4/vars/border-radius';` | ||
|
||
Or import css file for css variables | ||
`@import '~@ironsource/fusion-ui/style/v4/style-guide.css';` | ||
|
||
<style> | ||
{ | ||
` | ||
.border-radius-wrapper { | ||
display: flex; | ||
justify-content: space-between; | ||
padding: var(--spacing-300); | ||
align-items: flex-start; | ||
gap: 32px; | ||
align-self: stretch; | ||
border-radius: var(--border-radius-sm); | ||
border: 1px solid var(--common-divider, #E4E4E4); | ||
} | ||
.border-radius-item { | ||
display: flex; | ||
padding: var(--spacing-tokenset); | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 8px; | ||
} | ||
.border-radius-example { | ||
display: flex; | ||
width: var(--spacing-800); | ||
height: var(--spacing-800); | ||
padding: var(--spacing-300); | ||
justify-content: center; | ||
align-items: center; | ||
gap: 4px; | ||
color: var(--text-secondary); | ||
background: var(--background-default); | ||
border: 1px solid var(--action-primary); | ||
} | ||
` | ||
} | ||
</style> | ||
|
||
<div class="sb-unstyled border-radius-wrapper fusion-v4"> | ||
{ | ||
borderRadiusData.map(borderRadius => { | ||
return ( | ||
<div class="border-radius-item"> | ||
<div class="border-radius-example font-v4-caption" style={{borderRadius: borderRadius.borderRadius}}> | ||
{borderRadius.borderRadius} | ||
</div> | ||
<div class="border-radius-item font-v4-heading-4"> | ||
{borderRadius.name} | ||
</div> | ||
</div> | ||
) | ||
}) | ||
} | ||
</div> | ||
|
||
<br/><br/><br/> | ||
### CSS variables | ||
from `@ironsource/fusion-ui/style/v4/style-guide.css` | ||
<Source code={` | ||
.fusion-v4 { | ||
--border-radius-xs: 2px; | ||
--border-radius-sm: 4px; | ||
--border-radius-md: 6px; | ||
--border-radius-lg: 8px; | ||
--border-radius-xl: 16px; | ||
--border-radius-full: 100px | ||
} | ||
`} language={'css'}/> |
22 changes: 0 additions & 22 deletions
22
projects/fusion-ui/storybook-foundations/v4/border-radius/border-radius.stories.ts
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.