22 <div class =" notifications fixed" >
33 <transition-group name =" fade-in-down" >
44 <div
5- class =" notification mt30 border-box c -white"
5+ class =" notification mt30 border-box cl -white"
66 v-for =" (notification, index) in notifications"
77 :key =" index"
88 :class =" {
@@ -36,12 +36,14 @@ export default {
3636
3737<style lang="scss" scoped>
3838@import ' ~theme/css/base/global_vars' ;
39+ @import ' ~theme/css/variables/colors' ;
40+ @import ' ~theme/css/helpers/functions/color' ;
3941$z-index-notification : map-get ($z-index , notification );
40- $red : map-get ( $colors , red );
41- $la-palma : map-get ( $colors , la-palma );
42- $russet : map-get ( $colors , russet );
43- $darkgray : map-get ( $colors , darkgray );
44- $black : map-get ( $colors , black );
42+ $color-error : color ( error );
43+ $color-success : color ( success );
44+ $color-warning : color ( warning );
45+ $color-info : color ( accent );
46+ $color-action : color ( black );
4547
4648.notifications {
4749 top : 100px ;
@@ -63,25 +65,25 @@ $black: map-get($colors, black);
6365 }
6466}
6567.notification {
66- box-shadow : 0px 0px 35px -5px rgba ($black , .7 );
68+ box-shadow : 0px 0px 35px -5px rgba ($color-action , .7 );
6769
6870 & :first-child {
6971 margin-top : 0 ;
7072 }
7173}
7274.actions {
73- background : rgba ($black , .2 );
75+ background : rgba ($color-action , .2 );
7476}
7577.success {
76- background : $la-palma ;
78+ background : $color-success ;
7779}
7880.error {
79- background : $red ;
81+ background : $color-error ;
8082}
8183.warning {
82- background : $russet ;
84+ background : $color-warning ;
8385}
8486.info {
85- background : $darkgray ;
87+ background : $color-info ;
8688}
8789 </style >
0 commit comments