Skip to content

Commit

Permalink
Notice: set flex-shrink to 0 on notice icon to prevent distortion.
Browse files Browse the repository at this point in the history
Also removes margins from core component.
  • Loading branch information
mtias committed Dec 16, 2015
1 parent 16b5677 commit 78af584
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions client/components/domains/domain-suggestion/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
margin: 8px 0 0 0;
}

.notice.is-compact {
margin: 0 0 0 8px;
}

.notice__icon {
display: none;
}
Expand Down
4 changes: 3 additions & 1 deletion client/components/notice/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,11 @@
display: inline-flex;
flex-wrap: nowrap;
min-height: 20px;
margin: 8px;
margin: 0;
padding: 0;
text-decoration: none;
text-transform: none;
vertical-align: middle;

.notice__text {
font-size: 12px;
Expand All @@ -171,6 +172,7 @@

.notice__icon {
align-self: center;
flex-shrink: 0;
padding: 0 0 0 8px;
width: 14px;
height: 14px;
Expand Down
4 changes: 4 additions & 0 deletions client/my-sites/current-site/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,7 @@
content: '\f429';
}
}

.current-site .notice {
margin: 0 8px 8px;
}

0 comments on commit 78af584

Please sign in to comment.