File tree 5 files changed +85
-16
lines changed
5 files changed +85
-16
lines changed Original file line number Diff line number Diff line change 1
1
# navigator-toolbox [iconsize = "large" ] # igmail-notifier : after ,
2
2
# igmail-notifier : after {
3
3
font-family : sans-serif;
4
- font-size : 9px ;
5
- padding : 2px 2px 0 2px ;
6
- margin : 6px 0 0 -7px ;
4
+ height : 10px ;
5
+ line-height : 12px ;
6
+ }
7
+
8
+ # igmail-notifier [length = "1" ]: after ,
9
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "1" ]: after {
10
+ border-radius : 4px ;
11
+ width : 9px ;
12
+ margin : 6px 0 0 -9px ;
13
+ }
14
+ # igmail-notifier [length = "2" ]: after ,
15
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "2" ]: after {
16
+ margin : 6px 0 0 -14px ;
17
+ width : 14px ;
18
+ }
19
+ # igmail-notifier [length = "3" ]: after ,
20
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "3" ]: after {
21
+ margin : 6px 0 0 -20px ;
22
+ width : 19px ;
23
+ }
24
+ # igmail-notifier [length = "4" ]: after ,
25
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "4" ]: after {
26
+ margin : 6px 0 0 -22px ;
27
+ width : 22px ;
7
28
}
Original file line number Diff line number Diff line change 1
- # navigator-toolbox [iconsize = "large" ] # igmail-notifier : after ,
2
- # igmail-notifier : after {
3
- font-size : 9px ;
4
- margin : 8px 0 0 -5px ;
1
+ # igmail-notifier [length = "1" ]: after ,
2
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "1" ]: after {
3
+ border-radius : 4px ;
4
+ margin : 6px -3px 0 -6px ;
5
+ width : 9px ;
6
+ }
7
+ # igmail-notifier [length = "2" ]: after ,
8
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "2" ]: after {
9
+ margin : 6px -1px 0 -13px ;
10
+ width : 14px ;
11
+ }
12
+ # igmail-notifier [length = "3" ]: after ,
13
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "3" ]: after {
14
+ margin : 6px -1px 0 -18px ;
15
+ width : 19px ;
16
+ }
17
+ # igmail-notifier [length = "4" ]: after ,
18
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "4" ]: after {
19
+ margin : 6px -1px 0 -20px ;
20
+ width : 22px ;
5
21
}
Original file line number Diff line number Diff line change 27
27
28
28
# igmail-notifier : after {
29
29
position : relative;
30
- z-index : 9 ;
31
30
display : block;
32
31
font-family : arial;
33
32
font-size : 9px ;
34
33
font-weight : 600 ;
35
34
content : attr (value);
36
35
background-color : # 3366CC ;
37
36
color : white;
38
- margin : 6 px 0 0 -6 px ;
39
- padding : 0 2 px ;
40
- border-radius : 6 px ;
37
+ text-align : center ;
38
+ overflow : hidden ;
39
+ border-radius : 2 px ;
41
40
}
42
- # igmail-notifier [value = "" ]: after {
43
- background-color : transparent;
41
+ /* Windows Small Icon */
42
+ # igmail-notifier [length = "1" ]: after {
43
+ border-radius : 4px ;
44
+ width : 9px ;
45
+ margin : 6px -1px 0 -8px ;
44
46
}
45
- # navigator-toolbox [ iconsize = "large" ] # igmail-notifier : after {
46
- font-size : 10 px ;
47
- margin : 8 px 0 0 -15 px ;
47
+ # igmail-notifier [ length = "2" ] : after {
48
+ margin : 6 px 0 0 -14 px ;
49
+ width : 14 px ;
48
50
}
51
+ # igmail-notifier [length = "3" ]: after {
52
+ margin : 6px -1px 0 -18px ;
53
+ width : 19px ;
54
+ }
55
+ # igmail-notifier [length = "4" ]: after {
56
+ margin : 6px -2px 0 -20px ;
57
+ width : 22px ;
58
+ }
59
+ /* Windows Large Icon */
60
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "1" ]: after {
61
+ border-radius : 4px ;
62
+ margin : 6px 5px 0 -14px ;
63
+ width : 9px ;
64
+ }
65
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "2" ]: after {
66
+ margin : 6px 3px 0 -17px ;
67
+ width : 14px ;
68
+ }
69
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "3" ]: after {
70
+ margin : 6px 3px 0 -22px ;
71
+ width : 19px ;
72
+ }
73
+ # navigator-toolbox [iconsize = "large" ] # igmail-notifier [length = "4" ]: after {
74
+ margin : 6px 2px 0 -24px ;
75
+ width : 22px ;
76
+ }
Original file line number Diff line number Diff line change @@ -123,7 +123,11 @@ exports.ToolbarButton = function ToolbarButton(options) {
123
123
}
124
124
function setBadge ( aOptions ) {
125
125
getToolbarButtons ( function ( tbb ) {
126
+ if ( ( aOptions . value + "" ) . length > 4 ) {
127
+ aOptions . value = "9999"
128
+ }
126
129
tbb . setAttribute ( "value" , aOptions . value ? aOptions . value : "" ) ;
130
+ tbb . setAttribute ( "length" , aOptions . value ? ( aOptions . value + "" ) . length : 0 ) ;
127
131
} , options . id ) ;
128
132
return aOptions . value ;
129
133
}
You can’t perform that action at this time.
0 commit comments