Permalink
Browse files

html: simplify

  • Loading branch information...
hbons committed Oct 3, 2012
1 parent 2533826 commit b6a6aa63f9839784504f06a9becf4fdcaec7791a
@@ -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%;
- color: <!-- $secondary-font-color -->;
- }
-
- .event-user-name {
- font-weight: bold;
- }
-
- .event-folder {
+
+ small {
+ font-size: <!-- $small-font-size -->;
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,41 +102,66 @@
white-space: nowrap;
}
- .added {
- background-image: url('<!-- $document-added-background-image -->');
- }
-
- .deleted {
- background-image: url('<!-- $document-deleted-background-image -->');
- }
-
- .edited {
- background-image: url('<!-- $document-edited-background-image -->');
+ .day-entry-header {
+ color: #aaa;
+ margin-left: 32px;
+ padding-top: 22px;
+ font-weight: bold;
}
-
- .moved {
- background-image: url('<!-- $document-moved-background-image -->');
+
+ .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 {
- 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-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 -->');
+ }
+
+ .deleted {
+ background-image: url('<!-- $document-deleted-background-image -->');
+ }
+
+ .edited {
+ background-image: url('<!-- $document-edited-background-image -->');
+ }
+
+ .moved {
+ background-image: url('<!-- $document-moved-background-image -->');
+ }
</style>
</head>
<body oncontextmenu="return false;">
@@ -390,7 +390,7 @@ public override void MenuWillHighlightItem (NSMenu menu, NSMenuItem item)
public override void MenuWillOpen (NSMenu menu)
{
- InvokeOnMainThread (delegate {
+ InvokeOnMainThread (() => {
NSApplication.SharedApplication.DockTile.BadgeLabel = null;
});
}

0 comments on commit b6a6aa6

Please sign in to comment.