Updated button.close styles

This commit is contained in:
Sarven Capadisli 2009-11-01 20:53:25 +01:00
parent 1793cec8a5
commit b1367ae8da
4 changed files with 27 additions and 8 deletions

View File

@ -310,7 +310,7 @@ var SN = { // StatusNet
imgLoading : $('address .url')[0].href+'theme/base/images/illustrations/illu_progress_loading-01.gif', imgLoading : $('address .url')[0].href+'theme/base/images/illustrations/illu_progress_loading-01.gif',
bgClickToClose : true, bgClickToClose : true,
success : function() { success : function() {
$('#jOverlayContent').append('<button>&#215;</button>'); $('#jOverlayContent').append('<button class="close">&#215;</button>');
$('#jOverlayContent button').click($.closeOverlay); $('#jOverlayContent button').click($.closeOverlay);
}, },
timeout : 0, timeout : 0,
@ -352,7 +352,7 @@ var SN = { // StatusNet
NoticeDataAttach: function() { NoticeDataAttach: function() {
NDA = $('#'+SN.C.S.NoticeDataAttach); NDA = $('#'+SN.C.S.NoticeDataAttach);
NDA.change(function() { NDA.change(function() {
S = '<div id="'+SN.C.S.NoticeDataAttachSelected+'" class="'+SN.C.S.Success+'"><code>'+$(this).val()+'</code> <button>&#215;</button></div>'; S = '<div id="'+SN.C.S.NoticeDataAttachSelected+'" class="'+SN.C.S.Success+'"><code>'+$(this).val()+'</code> <button class="close">&#215;</button></div>';
NDAS = $('#'+SN.C.S.NoticeDataAttachSelected); NDAS = $('#'+SN.C.S.NoticeDataAttachSelected);
(NDAS.length > 0) ? NDAS.replaceWith(S) : $('#'+SN.C.S.FormNotice).append(S); (NDAS.length > 0) ? NDAS.replaceWith(S) : $('#'+SN.C.S.FormNotice).append(S);
$('#'+SN.C.S.NoticeDataAttachSelected+' button').click(function(){ $('#'+SN.C.S.NoticeDataAttachSelected+' button').click(function(){
@ -372,7 +372,7 @@ var SN = { // StatusNet
$('.entity_send-a-message').append(document._importNode($('form', data).get(0), true)); $('.entity_send-a-message').append(document._importNode($('form', data).get(0), true));
NDMF = $('.entity_send-a-message .form_notice'); NDMF = $('.entity_send-a-message .form_notice');
SN.U.FormNoticeEnhancements(NDMF); SN.U.FormNoticeEnhancements(NDMF);
NDMF.append('<button>&#215;</button>'); NDMF.append('<button class="close">&#215;</button>');
$('.entity_send-a-message button').click(function(){ $('.entity_send-a-message button').click(function(){
NDMF.hide(); NDMF.hide();
return false; return false;

View File

@ -533,6 +533,16 @@ float:right;
font-size:0.8em; font-size:0.8em;
} }
button.close {
width:16px;
height:16px;
text-indent:-9999px;
padding:0;
border:0;
text-align:center;
font-weight:bold;
}
/* entity_profile */ /* entity_profile */
.entity_profile { .entity_profile {
position:relative; position:relative;
@ -1025,11 +1035,6 @@ margin-bottom:11px;
position:absolute; position:absolute;
top:0; top:0;
right:0; right:0;
width:29px;
height:29px;
text-align:center;
font-weight:bold;
padding:0;
} }
#jOverlayContent h1 { #jOverlayContent h1 {
max-width:425px; max-width:425px;

View File

@ -166,6 +166,13 @@ background-color:#F7E8E8;
background-color:#EFF3DC; background-color:#EFF3DC;
} }
button.close {
background-image:url(../../base/images/icons/twotone/green/x.gif);
background-repeat:no-repeat;
background-position:0 47%;
background-color:transparent;
}
#anon_notice { #anon_notice {
background-color:#87B4C8; background-color:#87B4C8;
color:#FFFFFF; color:#FFFFFF;

View File

@ -166,6 +166,13 @@ background-color:#F7E8E8;
background-color:#EFF3DC; background-color:#EFF3DC;
} }
button.close {
background-image:url(../../base/images/icons/twotone/green/x.gif);
background-repeat:no-repeat;
background-position:0 47%;
background-color:transparent;
}
#anon_notice { #anon_notice {
background-color:#87B4C8; background-color:#87B4C8;
color:#FFFFFF; color:#FFFFFF;