html: simplify
This commit is contained in:
parent
b77bbf6267
commit
565e9f2fcc
|
@ -1,8 +1,4 @@
|
|||
<div class='day-entry'>
|
||||
<div class='day-entry-header'>
|
||||
<!-- $day-entry-header -->
|
||||
</div>
|
||||
<div class='day-entry-content'>
|
||||
<!-- $day-entry-content -->
|
||||
</div>
|
||||
<div class='day-entry-header'><!-- $day-entry-header --></div>
|
||||
<div class='day-entry-content'><!-- $day-entry-content --></div>
|
||||
</div>
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
<div class='event-entry'>
|
||||
<div class='event-avatar' style='background-image: url("<!-- $event-avatar-url -->");'></div>
|
||||
<div class='event-user-name'><!-- $event-user-name --><span class='event-folder'><!-- $event-folder --></span></div>
|
||||
|
||||
<!-- $event-entry-content -->
|
||||
|
||||
<div class="clearer"></div>
|
||||
<div class="event-timestamp"><!-- $event-time --></div>
|
||||
<a class="show">Show all</a>
|
||||
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
|
|
|
@ -3,10 +3,8 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>SparkleShare Event Log</title>
|
||||
<script type="text/javascript">
|
||||
<!-- $jquery -->
|
||||
</script>
|
||||
|
||||
<script type="text/javascript"><!-- $jquery --></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('dl dd:nth-child(-n+10)').css('display', 'block');
|
||||
|
@ -63,63 +61,28 @@
|
|||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: <!-- $small-font-size -->;
|
||||
color: <!-- $secondary-font-color -->;
|
||||
}
|
||||
|
||||
.day-entry-header {
|
||||
color: #aaa;
|
||||
margin-left: 32px;
|
||||
padding-top: 22px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
a {
|
||||
color: <!-- $a-color -->;
|
||||
text-decoration: none;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
a.show {
|
||||
font-size: 80%;
|
||||
margin-bottom: 9px;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: <!-- $a-hover-color -->;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.event-timestamp {
|
||||
font-size: 80%;
|
||||
small {
|
||||
font-size: <!-- $small-font-size -->;
|
||||
color: <!-- $secondary-font-color -->;
|
||||
}
|
||||
|
||||
.event-user-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.event-folder {
|
||||
color: <!-- $secondary-font-color -->;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
.event-entry {
|
||||
padding: 24px 14px 14px 64px;
|
||||
margin: 0 32px 0 32px;
|
||||
border-bottom: 1px #ddd solid;
|
||||
background-repeat: no-repeat;
|
||||
background-position: 36px 24px;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
a.show {
|
||||
font-size: 80%;
|
||||
margin-bottom: 9px;
|
||||
}
|
||||
|
||||
.separator {
|
||||
border-bottom: 1px #ccc solid;
|
||||
margin: 24px 0 24px 0;
|
||||
}
|
||||
|
||||
dl {
|
||||
padding : 6px 0 0 0;
|
||||
margin: 0 0 12px 0;
|
||||
|
@ -139,6 +102,51 @@
|
|||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.day-entry-header {
|
||||
color: #aaa;
|
||||
margin-left: 32px;
|
||||
padding-top: 22px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.event-entry {
|
||||
padding: 24px 14px 14px 64px;
|
||||
margin: 0 32px 0 32px;
|
||||
border-bottom: 1px #ddd solid;
|
||||
background-repeat: no-repeat;
|
||||
background-position: 36px 24px;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
.no-buddy-icon {
|
||||
width: 48px;
|
||||
background-image: url('<!-- $no-buddy-icon-background-image -->');
|
||||
background-repeat: no-repeat;
|
||||
background-position: top center;
|
||||
}
|
||||
|
||||
.event-user-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.event-avatar {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 4px;
|
||||
position: absolute;
|
||||
left: 32px;
|
||||
}
|
||||
|
||||
.event-folder {
|
||||
color: <!-- $secondary-font-color -->;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
.separator {
|
||||
border-bottom: 1px #ccc solid;
|
||||
margin: 24px 0 24px 0;
|
||||
}
|
||||
|
||||
.added {
|
||||
background-image: url('<!-- $document-added-background-image -->');
|
||||
}
|
||||
|
@ -154,26 +162,6 @@
|
|||
.moved {
|
||||
background-image: url('<!-- $document-moved-background-image -->');
|
||||
}
|
||||
|
||||
.no-buddy-icon {
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
float: left;
|
||||
margin-right: 12px;
|
||||
width: 48px;
|
||||
background-image: url('<!-- $no-buddy-icon-background-image -->');
|
||||
background-repeat: no-repeat;
|
||||
background-position: top center;
|
||||
}
|
||||
|
||||
.event-avatar {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 4px;
|
||||
position: absolute;
|
||||
left: 32px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body oncontextmenu="return false;">
|
||||
|
|
|
@ -390,7 +390,7 @@ namespace SparkleShare {
|
|||
|
||||
public override void MenuWillOpen (NSMenu menu)
|
||||
{
|
||||
InvokeOnMainThread (delegate {
|
||||
InvokeOnMainThread (() => {
|
||||
NSApplication.SharedApplication.DockTile.BadgeLabel = null;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue