save new log style css

This commit is contained in:
Hylke Bons 2011-07-15 23:51:15 +01:00
parent 00cafefc98
commit dc54e50895
2 changed files with 105 additions and 77 deletions

View file

@ -1,29 +1,38 @@
<div class='event-entry'> <div class='event-entry'>
<div class='event-entry-content'> <div class='event-entry-content'>
<div class='event-info'> <div class='no-buddy-icon'>
<div class='wrapper'> <div class='buddy-icon' style='background-image: url("<!-- $event-avatar-url -->");'></div>
<div class='no-buddy-icon'>
<div class='buddy-icon' style='background-image: url("<!-- $event-avatar-url -->");'></div>
</div>
<b><!-- $event-user-name --></b><br/>
<small><!-- $event-time --></small>
</div>
<span title="<!-- $event-revision -->">
<div class='event-folder' style='background-color: <!-- $event-folder-color -->'><!-- $event-folder --></div>
</span>
</div> </div>
<!-- $event-entry-content -->
<div class="comments-section">
<div class="comments-wrapper">
<!-- $event-comments -->
<textarea class="comment-textarea"></textarea>
<input class="comment-button" type="button" value="Add note" <div class="stuff">
id="<!-- $event-folder -->~<!-- $event-revision -->"> <div class='event-user-name' style='background-color:red'><!-- $event-user-name --></div>
<div style='clear: both'></div> <div class='event-folder' style='background-color:green'><!-- $event-folder --></div>
<div class="clearer"></div>
<!-- $event-entry-content -->
<div class="clearer"></div>
<div style="float: left" class="event-timestamp"><!-- $event-time --></div>
<div class="action comment">Comment</div>
<div class="action"><a href=''>View all</a></div>
<div class="clearer"></div>
<div class="comments-section">
<div class="comments-wrapper">
<!-- $event-comments -->
<textarea class="comment-textarea"></textarea>
<input class="comment-button" type="button" value="Add"
id="<!-- $event-folder -->~<!-- $event-revision -->">
<div style='clear: both'></div>
</div>
<div class="clearer"></div>
</div> </div>
<div style='clear: both'></div>
<div class="clearer"></div>
</div> </div>
<div style='clear: both'></div> <div class="clearer"></div>
</div> </div>
<div class="separator" />
</div> </div>

View file

@ -19,9 +19,9 @@
} }
}); });
$('.comments-section').click(function () { $('.comment').click(function () {
$(this).find ('.comments-wrapper').show (); $(this).parent ().find ('.comments-wrapper').show ();
$(this).find ('.comments-wrapper').css ('cursor', 'default'); //$(this).parent ().find ('.comments-wrapper').css ('cursor', 'default');
}); });
$("input").click(function () { $("input").click(function () {
@ -50,8 +50,13 @@
</script> </script>
<style> <style>
* {
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
body { body {
background-color: #dedede; background-color: #fff;
color: <!-- $body-color -->; color: <!-- $body-color -->;
font-size: <!-- $body-font-size -->; font-size: <!-- $body-font-size -->;
font-family: <!-- $body-font-family -->; font-family: <!-- $body-font-family -->;
@ -81,67 +86,93 @@
padding-top: 9px; padding-top: 9px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
display: block;
text-align: center;
} }
a { a {
color: <!-- $a-color -->; color: <!-- $a-color -->;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis;
width: 100%;
white-space: nowrap;
} }
a:hover { a:hover {
color: <!-- $a-hover-color -->; color: <!-- $a-hover-color -->;
} }
.event-folder { .stuff {
margin: 6px; width: 100%;
opacity: 0.8; padding-left: 56px;
font-size: 80%; }
color: #fff;
float: right; .event-timestamp {
padding: 3px 15px; color: <!-- $secondary-font-color -->;
}
.event-user-name {
float: left;
font-weight: bold; font-weight: bold;
-webkit-border-radius: 100px; }
.event-folder {
float: right;
color: <!-- $secondary-font-color -->;
} }
.event-entry-content { .event-entry-content {
display: block; display: block;
background-color: #f0f0f0; padding-bottom: 60px;
margin-bottom: 12px; padding: 0px;
padding: 0px;
border: #ccc 1px solid;
} }
.wrapper { .action {
margin: 9px; margin-left: 15px;
float: left; float: right;
color: <!-- $a-color -->;
}
.action:hover {
color: <!-- $a-hover-color -->;
cursor: pointer;
}
.clearer {
clear: both;
backround-color: blue;
margin: 0;
padding: 0;
height: 0;
}
.separator {
border-bottom: 1px #ccc solid;
margin-top: 24px;
margin-bottom: 24px;
} }
dl { dl {
background-color:orange;
padding : 0; padding : 0;
margin: 0; margin: 0;
margin-bottom: 12px;
} }
dd { dd {
width: 90%; overflow: hidden;
overflow: hidden; text-overflow: ellipsis;
text-overflow: ellipsis; width: 90%;
padding: 0; padding: 0;
padding-top: 2px; padding-top: 2px;
padding-bottom: 4px; padding-bottom: 2px;
padding-left: 22px; padding-left: 22px;
margin: 0; margin: 0;
margin-bottom: 2px; margin-bottom: 2px;
margin-left: 12px; background-repeat: no-repeat;
border-bottom: 1px solid #ddd;
background-repeat: no-repeat;
background-position: center left; background-position: center left;
} }
dd:last-child {
border: none;
margin-bottom: 6px;
}
.document-added { .document-added {
background-image: url('<!-- $document-added-background-image -->'); background-image: url('<!-- $document-added-background-image -->');
} }
@ -159,28 +190,20 @@
} }
.no-buddy-icon { .no-buddy-icon {
position: relative;
top: 0;
left: 0;
float: left; float: left;
margin-right: 12px; margin-right: 12px;
width: 36px; width: 48px;
background-image: url('<!-- $no-buddy-icon-background-image -->'); background-image: url('<!-- $no-buddy-icon-background-image -->');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
} }
.buddy-icon { .buddy-icon {
width: 36px; width: 48px;
height: 36px; height: 48px;
}
.event-info {
padding: 6px;
float: left;
margin-bottom: 8px;
width: 100%;
background-color: #fff;
border-bottom: 1px #ccc solid;
box-sizing: border-box;
-webkit-box-sizing: border-box;
} }
.comments { .comments {
@ -200,7 +223,6 @@
.comment-button { .comment-button {
float:right; float:right;
margin-top: 6px; margin-top: 6px;
margin-bottom: 12px;
} }
.comment-textarea { .comment-textarea {
@ -214,16 +236,13 @@
.comments-section { .comments-section {
box-sizing: border-box; box-sizing: border-box;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
border-top: 1px #ccc solid;
width: 100%; width: 100%;
height: 9px;
}
.comments-wrapper { .comments-wrapper {
box-sizing: border-box; box-sizing: border-box;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
width: 100%; width: 100%;
padding: 12px; margin-top: 12px;
} }
.comments-section:hover { .comments-section:hover {