Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(design): fix some issues when a lot of texts is present #996

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions packages/alert/src/alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ $typesLite: (

.af-alert__content__left {
background: nth($typeLite, 2);
width: 4.2rem;
width: 4.5rem;
}
}

.af-alert__title {
&-icon {
background-color: nth($typeLite, 2);
color: $white;
width: 4rem;
width: 4.5rem;

&::after {
border-left-color: nth($typeLite, 2);
Expand All @@ -54,24 +54,21 @@ $typesLite: (

&-icon {
position: relative;
padding: 0 1.3rem;
flex-grow: 0;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;

&::after {
samuel-gomez marked this conversation as resolved.
Show resolved Hide resolved
content: '';
position: absolute;
right: -1rem;
top: 50%;
transform: translateY(-50%);
height: 0;
width: 0;
border-top: 2rem solid transparent;
border-bottom: 2rem solid transparent;
border-left: 1rem solid transparent;
}

.glyphicon {
top: 50%;
transform: translateY(-50%);
right: 0;
transform: translateX(100%);
border-top: 1.65rem solid transparent;
border-bottom: 1.65rem solid transparent;
border-left: 1.5rem solid transparent;
}

&-close {
Expand All @@ -96,6 +93,11 @@ $typesLite: (
&__content {
display: flex;

&__left {
flex-grow: 0;
flex-shrink: 0;
}

.af-alert__content__right {
padding: 0 1.5rem;
}
Expand Down
Loading