Skip to content

Commit e78e312

Browse files
committed
Merge pull request #28 from stefandroog/develop
Split variables into separate file and put all less files in a folder.
2 parents 11373a4 + 55068f8 commit e78e312

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function(grunt) {
1616
less: {
1717
jgrowl: {
1818
files: {
19-
"jquery.jgrowl.css": "jquery.jgrowl.less"
19+
"jquery.jgrowl.css": "less/jgrowl.less"
2020
}
2121
}
2222
},

jquery.jgrowl.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11

2-
@width: 235px;
3-
@height: 40px;
4-
@backgroundColor: #000;
5-
@color: #fff;
6-
@fontSize: 12px;
7-
@fontFamily: Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif;
8-
@opacity: .85;
9-
10-
112
.jGrowl {
123
z-index: 9999;
13-
color: @color;
14-
font-size: @fontSize;
15-
font-family: @fontFamily;
4+
color: @jgrowl-color;
5+
font-size: @jgrowl-fontSize;
6+
font-family: @jgrowl-fontFamily;
167
position: fixed;
178

189

@@ -49,13 +40,13 @@
4940
}
5041

5142
.notification() {
52-
background-color: @backgroundColor;
53-
opacity: @opacity;
43+
background-color: @jgrowl-backgroundColor;
44+
opacity: @jgrowl-opacity;
5445
// These are for older versions of Internet Explorer that don't support opacity
55-
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(@opacity*100));
56-
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(@opacity*100));
46+
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(@jgrowl-opacity*100));
47+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(@jgrowl-opacity*100));
5748
zoom: 1;
58-
width: @width;
49+
width: @jgrowl-width;
5950
padding: 10px;
6051
margin: 10px;
6152
text-align: left;
@@ -65,7 +56,7 @@
6556

6657
.jGrowl-notification {
6758
.notification;
68-
min-height: @height;
59+
min-height: @jgrowl-height;
6960

7061
.jGrowl-header {
7162
font-weight: bold;

less/jgrowl.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import "jgrowl.variables.less";
2+
@import "jgrowl.core.less";

less/jgrowl.variables.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@jgrowl-width: 235px;
2+
@jgrowl-height: 40px;
3+
@jgrowl-backgroundColor: #000;
4+
@jgrowl-color: #fff;
5+
@jgrowl-fontSize: 12px;
6+
@jgrowl-fontFamily: Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif;
7+
@jgrowl-opacity: .85;

0 commit comments

Comments
 (0)