Skip to content

Commit db35973

Browse files
committed
CSS cleanup, removing old vendor specific borders and any 'div' prefixing
1 parent 44c07b6 commit db35973

File tree

1 file changed

+26
-34
lines changed

1 file changed

+26
-34
lines changed

jquery.jgrowl.css

Lines changed: 26 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,79 @@
11

2-
div.jGrowl {
3-
z-index: 9999;
4-
color: #fff;
5-
font-size: 12px;
6-
}
7-
82
/** Special IE6 Style Positioning **/
9-
div.ie6 {
3+
.ie6 {
104
position: absolute;
115
}
126

13-
div.ie6.top-right {
7+
.ie6.top-right {
148
right: auto;
159
bottom: auto;
1610
left: expression( ( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
1711
top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
1812
}
1913

20-
div.ie6.top-left {
14+
.ie6.top-left {
2115
left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
2216
top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
2317
}
2418

25-
div.ie6.bottom-right {
19+
.ie6.bottom-right {
2620
left: expression( ( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
2721
top: expression( ( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
2822
}
2923

30-
div.ie6.bottom-left {
24+
.ie6.bottom-left {
3125
left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
3226
top: expression( ( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
3327
}
3428

35-
div.ie6.center {
29+
.ie6.center {
3630
left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
3731
top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
3832
width: 100%;
3933
}
4034

41-
/** Normal Style Positions **/
42-
div.jGrowl {
43-
position: absolute;
44-
}
4535

46-
body > div.jGrowl {
36+
/** jGrowl Styling **/
37+
.jGrowl {
38+
z-index: 9999;
39+
color: #fff;
40+
font-size: 12px;
4741
position: fixed;
4842
}
4943

50-
div.jGrowl.top-left {
44+
.jGrowl.top-left {
5145
left: 0px;
5246
top: 0px;
5347
}
5448

55-
div.jGrowl.top-right {
49+
.jGrowl.top-right {
5650
right: 0px;
5751
top: 0px;
5852
}
5953

60-
div.jGrowl.bottom-left {
54+
.jGrowl.bottom-left {
6155
left: 0px;
6256
bottom: 0px;
6357
}
6458

65-
div.jGrowl.bottom-right {
59+
.jGrowl.bottom-right {
6660
right: 0px;
6761
bottom: 0px;
6862
}
6963

70-
div.jGrowl.center {
64+
.jGrowl.center {
7165
top: 0px;
7266
width: 50%;
7367
left: 25%;
7468
}
7569

7670
/** Cross Browser Styling **/
77-
div.center div.jGrowl-notification, div.center div.jGrowl-closer {
71+
.center .jGrowl-notification, .center .jGrowl-closer {
7872
margin-left: auto;
7973
margin-right: auto;
8074
}
8175

82-
div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer {
76+
.jGrowl .jGrowl-notification, .jGrowl .jGrowl-closer {
8377
background-color: #000;
8478
opacity: .85;
8579
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";
@@ -93,34 +87,32 @@ div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer {
9387
font-size: 1em;
9488
text-align: left;
9589
display: none;
96-
border-radius: 5px;
97-
-moz-border-radius: 5px;
98-
-webkit-border-radius: 5px;
90+
border-radius: 5px;
9991
}
10092

101-
div.jGrowl div.jGrowl-notification {
93+
.jGrowl .jGrowl-notification {
10294
min-height: 40px;
10395
}
10496

105-
div.jGrowl div.jGrowl-notification,
106-
div.jGrowl div.jGrowl-closer {
97+
.jGrowl .jGrowl-notification,
98+
.jGrowl .jGrowl-closer {
10799
margin: 10px;
108100
}
109101

110-
div.jGrowl div.jGrowl-notification div.jGrowl-header {
102+
.jGrowl .jGrowl-notification .jGrowl-header {
111103
font-weight: bold;
112104
font-size: .85em;
113105
}
114106

115-
div.jGrowl div.jGrowl-notification div.jGrowl-close {
107+
.jGrowl .jGrowl-notification .jGrowl-close {
116108
z-index: 99;
117109
float: right;
118110
font-weight: bold;
119111
font-size: 1em;
120112
cursor: pointer;
121113
}
122114

123-
div.jGrowl div.jGrowl-closer {
115+
.jGrowl .jGrowl-closer {
124116
padding-top: 4px;
125117
padding-bottom: 4px;
126118
cursor: pointer;
@@ -131,7 +123,7 @@ div.jGrowl div.jGrowl-closer {
131123

132124
/** Hide jGrowl when printing **/
133125
@media print {
134-
div.jGrowl {
126+
.jGrowl {
135127
display: none;
136128
}
137129
}

0 commit comments

Comments
 (0)