mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-12-02 06:24:11 +01:00
[Bookmark] Fix empty bm message style and hidding. fix #531
This commit is contained in:
parent
799deea4d4
commit
74f7076cad
@ -1,8 +1,25 @@
|
||||
#content { overflow: auto; height: 100%; }
|
||||
#firstrun, #firstrun_setting{ width: 80%; margin: 5em auto auto auto; text-align: center; font-weight:bold; font-size:1.5em; color:#777; position: relative;}
|
||||
|
||||
#firstrun small { display: block; font-weight: normal; font-size: 0.5em; }
|
||||
#firstrun .button { font-size: 0.7em; }
|
||||
#firstrun #selections { font-size:0.8em; font-weight: normal; width: 100%; margin: 2em auto auto auto; clear: both; }
|
||||
|
||||
#distance {
|
||||
width:1px;
|
||||
height:50%;
|
||||
background-color:#fc6;
|
||||
margin-bottom:-13.75em; /* half of container's height */
|
||||
float:left;
|
||||
}
|
||||
|
||||
#firstrun_message {
|
||||
margin:0 auto;
|
||||
position:relative; /* puts container in front of distance */
|
||||
text-align:left;
|
||||
height:27.5em;
|
||||
width:45em;
|
||||
clear:left;
|
||||
}
|
||||
|
||||
#firstrun_setting { font-size: 100%; text-decoration: underline}
|
||||
|
||||
input.disabled, input.disabled:hover, input.disabled:focus {
|
||||
@ -29,7 +46,7 @@ input.disabled, input.disabled:hover, input.disabled:focus {
|
||||
padding: 0.5ex;
|
||||
}
|
||||
|
||||
.bookmarks_list {
|
||||
.bookmarks_list, #firstrun {
|
||||
overflow: auto;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
|
@ -208,10 +208,12 @@ function delBookmark(event) {
|
||||
}
|
||||
|
||||
function checkEmpty() {
|
||||
if($('.bookmarks_list').is(':empty')) {
|
||||
if($('.bookmarks_list').children().length == 0) {
|
||||
$("#firstrun").show();
|
||||
$('.bookmarks_list').hide();
|
||||
} else {
|
||||
$("#firstrun").hide();
|
||||
$('.bookmarks_list').show();
|
||||
}
|
||||
}
|
||||
function editBookmark(event) {
|
||||
|
@ -49,6 +49,8 @@ function bookmarklet(){
|
||||
</div>
|
||||
<div id="rightcontent" class="rightcontent">
|
||||
<div id="firstrun" style="display: none;">
|
||||
<div id="distance"></div>
|
||||
<div id="firstrun_message">
|
||||
<?php
|
||||
echo $l->t('You have no bookmarks');
|
||||
$embedded = true;
|
||||
@ -56,6 +58,7 @@ function bookmarklet(){
|
||||
echo bookmarklet();?><br/><br />
|
||||
|
||||
<small><a href="#" id="firstrun_setting"><?php echo $l->t('You can also try to import a bookmark file');?></a></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bookmarks_list"></div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user