Skip to content

Commit

Permalink
fix(core-components-skeleton): fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
natoosique authored and natoosique committed Sep 23, 2020
1 parent 11e6ce9 commit 0aac24f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/skeleton/src/Component.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { Skeleton } from '@alfalab/core-components-skeleton';

## Использование
<br/>
- с контентом (border-radius: 60px)
- с контентом

<Preview>
<Container>
Expand Down
10 changes: 5 additions & 5 deletions packages/skeleton/src/index.module.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
@import '../../vars/src/colors-indigo.css';

:root {
--skeleton-wrapper-background-filter: none;
--skeleton-wrapper-default-color: var(--color-light-graphic-tertiary);
--skeleton-background-filter: none;
--skeleton-default-color: var(--color-light-graphic-tertiary);
}

.component {
position: relative;
display: inline-block;
border-radius: 8px;
border-radius: 32px;
overflow: hidden;
}

Expand All @@ -23,8 +23,8 @@
left: 0;
right: 0;
bottom: 0;
background: var(--skeleton-wrapper-default-color);
backdrop-filter: var(--skeleton-wrapper-background-filter);
background: var(--skeleton-default-color);
backdrop-filter: var(--skeleton-background-filter);
}

.animate:after {
Expand Down
16 changes: 5 additions & 11 deletions packages/skeleton/src/stories.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.example-1 {
border-radius: 60px;
margin-top: 16px;
}

Expand All @@ -12,45 +11,40 @@
width: 440px;
}

@define-mixin common {
position: absolute;
border-radius: 60px;
}

.example-2 {
@mixin common;
position: absolute;
width: 48px;
height: 48px;
left: 10px;
top: 10px;
}

.example-3 {
@mixin common;
position: absolute;
width: 200px;
height: 24px;
left: 82px;
top: 10px;
}

.example-4 {
@mixin common;
position: absolute;
width: 124px;
height: 16px;
left: 82px;
top: 54px;
}

.example-5 {
@mixin common;
position: absolute;
width: 228px;
height: 16px;
left: 222px;
top: 54px;
}

.example-6 {
@mixin common;
position: absolute;
width: 260px;
height: 16px;
left: 82px;
Expand Down

0 comments on commit 0aac24f

Please sign in to comment.