-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(umi-plugin): add styles for built-in alert component (#12)
- Loading branch information
1 parent
3f53692
commit d4fa586
Showing
1 changed file
with
31 additions
and
3 deletions.
There are no files selected for viewing
34 changes: 31 additions & 3 deletions
34
packages/umi-plugin-father-doc/src/themes/default/alert.less
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 |
---|---|---|
@@ -1,5 +1,33 @@ | ||
.wrapper { | ||
padding: 8px 16px; | ||
border: 1px solid #eee; | ||
border-left: 2px solid #09f; | ||
@s-border-right: 6px; | ||
|
||
margin: 16px 0 16px @s-border-right; | ||
padding: 12px 16px; | ||
border: 1px solid; | ||
border-left: 0; | ||
|
||
&:not([type]), | ||
&[type='warning'] { | ||
background: #fff8e4; | ||
border-color: #ffe9a9; | ||
box-shadow: -@s-border-right 0 0 #ffb300; | ||
} | ||
|
||
&[type='info'] { | ||
background: #f0fcff; | ||
border-color: #c9e9ec; | ||
box-shadow: -@s-border-right 0 0 #5bc0df; | ||
} | ||
|
||
&[type='success'] { | ||
background: #faffee; | ||
border-color: #daeebd; | ||
box-shadow: -@s-border-right 0 0 #8cd225; | ||
} | ||
|
||
&[type='error'] { | ||
background: #fff3f3; | ||
border-color: #ffe1e1; | ||
box-shadow: -@s-border-right 0 0 #ff4646; | ||
} | ||
} |