This repository has been archived by the owner on Nov 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from christianbundy/master
Simplify comments
- Loading branch information
Showing
30 changed files
with
364 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
settings/production.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.8.0.1 | ||
0.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Template.viewComment.helpers({ | ||
'cleanText' : function () { | ||
"use strict"; | ||
// replace '\n' with a newline character | ||
return this.text.replace(/\\n/g, "\n"); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
.comment { | ||
.commentText { | ||
margin-top: 0.5rem; | ||
max-width: 35rem; | ||
|
||
p { | ||
margin-top: 0.5rem; | ||
} | ||
} | ||
|
||
.commentAuthor { | ||
margin-top: 0.2rem; | ||
margin-bottom: 0; | ||
} | ||
} | ||
|
||
.indent { | ||
padding-left: 1rem; | ||
background-color: #F9FAFB; | ||
background-color: white; | ||
border-left: 3px solid #F9FAFB; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template name="sidebar"> | ||
<div class="sidebar col-sm-2"> | ||
<a class="title" href="/"><img src="/img/logo.svg"> Fraction</a> | ||
<ul class="list-group"> | ||
<li class="list-header list-group-item"> | ||
<i class="fa fa-sort"></i> | ||
<strong>SORT </strong> | ||
</li> | ||
<a href="/hot" class="{{activeSort 'hot'}} list-group-item"><i class="fa fa-fire"></i> Hot</a> | ||
<a href="/top/week" class="{{activeSort 'top'}} list-group-item"><i class="fa fa-star"></i> Top</a> | ||
<a href="/recent" class="{{activeSort 'recent'}} list-group-item"><i class="fa fa-clock-o"></i> Recent</a> | ||
<a href="/random" class="{{activeSort 'random'}} list-group-item"><i class="fa fa-random"></i> Random</a> | ||
{{#if isSortTop}} | ||
<li class="list-group-item"></li> | ||
<li class="list-header list-group-item"> | ||
<i class="fa fa-calendar"></i> | ||
<strong>TIME</strong> | ||
</li> | ||
<a class="{{activeTime 'hour'}} list-group-item" href="/{{sortType}}/hour">Hour</a> | ||
<a class="{{activeTime 'day'}} list-group-item" href="/{{sortType}}/day">Day</a> | ||
<a class="{{activeTime 'week'}} list-group-item" href="/{{sortType}}/week">Week</a> | ||
<a class="{{activeTime 'month'}} list-group-item" href="/{{sortType}}/month">Month</a> | ||
<a class="{{activeTime 'year'}} list-group-item" href="/{{sortType}}/year">Year</a> | ||
<a class="{{activeTime 'ever'}} list-group-item" href="/{{sortType}}/ever">Ever</a> | ||
{{/if}} | ||
</ul> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Handlebars.registerHelper('activeTime', function(time) { | ||
"use strict"; | ||
|
||
if (Session.equals('topTime', time)) { | ||
return 'active'; | ||
} else { | ||
return null; | ||
} | ||
}); | ||
|
||
|
||
Handlebars.registerHelper('activeSort', function(sort) { | ||
"use strict"; | ||
|
||
if (Session.equals('sortType', sort)) { | ||
return 'active'; | ||
} else { | ||
return 'inactive'; | ||
} | ||
}); | ||
|
||
Template.sidebar.helpers({ | ||
'isSortTop' : function () { | ||
"use strict"; | ||
|
||
if (Session.equals('sortType', 'top')) { | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
}, | ||
'sortType' : function () { | ||
"use strict"; | ||
|
||
return Session.get('sortType').toLowerCase(); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@import "/client/global/style/variables.import.less"; | ||
|
||
.sidebar { | ||
background-color: hsl(210, 12%, 23%); | ||
padding-left: 0; | ||
padding-right: 0; | ||
|
||
@media @sm { | ||
height: 100%; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
} | ||
|
||
.title { | ||
background-color: hsl(208, 70%, 52%); // todo: change to brand color | ||
display: inline-block; | ||
padding: 1rem; | ||
color: white; | ||
font-weight: 500; | ||
font-size: 1rem; | ||
width: 100%; | ||
img { | ||
margin-top: -0.25rem; | ||
width: 2rem; | ||
} | ||
} | ||
|
||
.list-group-item { | ||
border-color: transparent; | ||
background-color: hsl(210, 12%, 23%); | ||
color: hsl(210, 16%, 76%); | ||
&:hover { | ||
background-color: hsl(210, 16%, 29%); | ||
} | ||
} | ||
|
||
.list-header { | ||
color: hsl(210, 6%, 54%); | ||
&:hover { | ||
background-color: hsl(210, 12%, 23%); | ||
} | ||
} | ||
|
||
.list-group { | ||
color: hsl(221%, 14%, 22%) !important; | ||
background-color: hsl(210, 12%, 23%); | ||
} | ||
} |
Oops, something went wrong.