浏览代码

Adjusted notification width

j8
Ilya Daynatovich 9 年前
父节点
当前提交
ae7ad8b456
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 3
    3
      css/_toastr.scss
  2. 1
    0
      css/_variables.scss

+ 3
- 3
css/_toastr.scss 查看文件

@@ -7,7 +7,7 @@
7 7
  *
8 8
  * Author: John Papa and Hans Fjällemark
9 9
  * Project: https://github.com/CodeSeven/toastr
10
- * 
10
+ *
11 11
  * Last updated: October 13, 2016
12 12
  */
13 13
 
@@ -77,7 +77,7 @@
77 77
   padding: $notificationPadding;
78 78
   border: 1px solid lighten($notificationBackground, 10%);
79 79
 
80
-  @include border-radius($notificationBorderRadius); 
80
+  @include border-radius($notificationBorderRadius);
81 81
   @include box-shadow(1px, 1px, 2px, rgba(0,0,0,0.3));
82 82
   @include opacity($notificationOpacity);
83 83
 }
@@ -101,6 +101,6 @@
101 101
 }
102 102
 
103 103
 #toast-container .toast {
104
-  width: 200px;
104
+  width: $notificationWidth;
105 105
   margin: 0 0 8px;
106 106
 }

+ 1
- 0
css/_variables.scss 查看文件

@@ -84,6 +84,7 @@ $notificationLinkColor: $notificationColor;
84 84
 $notificationOpacity: 0.9;
85 85
 $notificationPadding: 15px 20px;
86 86
 $notificationBorderRadius: 4px;
87
+$notificationWidth: 215px;
87 88
 
88 89
 /**
89 90
  * Misc.

正在加载...
取消
保存