working on daily view

This commit is contained in:
Sacha Greif 2014-08-27 10:23:56 +09:00
parent 85679ded35
commit 3b1cff9347
27 changed files with 1073 additions and 83 deletions

View file

@ -0,0 +1,5 @@
# This file contains information which helps Meteor properly upgrade your
# app when you run 'meteor update'. You should check it into version control
# with your project.
notices-for-0.9.0

7
.meteor/.id Normal file
View file

@ -0,0 +1,7 @@
# This file contains a token that is unique to your project.
# Check it into your repository along with the rest of this directory.
# It can be used for purposes such as:
# - ensuring you don't accidentally deploy one app on top of another
# - providing package authors with aggregated statistics
4ibiemui4bqn1j744h7

View file

@ -41,4 +41,6 @@ cookies
telescope-newsletter telescope-newsletter
telescope-theme-base telescope-theme-base
accounts-entry accounts-entry
telescope-theme-hubble telescope-theme-hubble
telescope-daily

View file

@ -1 +1 @@
0.8.3 METEOR@0.9.0

103
.meteor/versions Normal file
View file

@ -0,0 +1,103 @@
accounts-base@1.0.0
accounts-entry@0.0.0
accounts-facebook@1.0.0
accounts-oauth@1.0.0
accounts-password@1.0.0
accounts-t9n@0.0.0
accounts-twitter@1.0.0
accounts-ui-unstyled@1.0.0
accounts-ui@1.0.0
application-configuration@1.0.0
autoform@0.0.0
autoupdate@1.0.4
backbone@1.0.0
binary-heap@1.0.0
blaze-tools@1.0.0
blaze@1.0.3
bootstrap3-datepicker@0.0.0
callback-hook@1.0.0
check@1.0.0
coffeescript@1.0.2
collection2@0.0.0
cookies@0.0.0
crypto-base@0.0.0
crypto-md5@0.0.0
ctl-helper@1.0.2
ctl@1.0.0
deps@1.0.1
ejson@1.0.0
email@1.0.2
facebook@1.0.0
fast-render@0.0.0
follower-livedata@1.0.0
geojson-utils@1.0.0
handlebars-server@0.0.0
handlebars@1.0.0
html-tools@1.0.0
htmljs@1.0.0
http@1.0.2
id-map@1.0.0
iron-core@0.2.0
iron-dynamic-template@0.2.1
iron-layout@0.2.0
iron-router@0.8.2
jquery-hotkeys@0.0.0
jquery@1.0.0
json@1.0.0
less@1.0.5
livedata@1.0.7
localstorage@1.0.0
logging@1.0.2
mailchimp@0.0.0
marked@0.0.0
meteor@1.0.2
minifiers@1.0.2
minimongo@1.0.1
moment@0.0.0
momentjs@0.0.0
mongo-livedata@1.0.3
npm-bcrypt@0.7.7
npm@0.0.0
oauth1@1.0.0
oauth2@1.0.0
oauth@1.0.0
observe-sequence@1.0.1
ordered-dict@1.0.0
random@1.0.0
reactive-dict@1.0.0
reload@1.0.0
retry@1.0.0
routepolicy@1.0.0
rss@0.0.0
service-configuration@1.0.0
session@1.0.0
sha@1.0.0
simple-form@0.0.0
simple-schema@0.0.0
spacebars-compiler@1.0.1
spacebars@1.0.0
spiderable@1.0.1
spin@0.0.0
srp@1.0.0
standard-app-packages@1.0.0
subs-manager@0.0.0
synced-cron@0.0.0
telescope-api@0.0.0
telescope-base@0.0.0
telescope-daily@0.0.0
telescope-i18n@0.0.0
telescope-lib@0.0.0
telescope-module-embedly@0.0.0
telescope-module-share@0.0.0
telescope-newsletter@0.0.0
telescope-rss@0.0.0
telescope-search@0.0.0
telescope-tags@0.0.0
telescope-theme-base@0.0.0
telescope-theme-hubble@0.0.0
templating@1.0.4
twitter@1.0.0
ui@1.0.0
underscore-string-latest@0.0.0
underscore@1.0.0
webapp@1.0.2

View file

@ -1,5 +1,5 @@
<template name="post_item"> <template name="post_item">
<div class="post grid-module {{rankClass}} {{#if sticky}}sticky{{/if}} {{inactiveClass}}" id="{{_id}}"> <div class="post {{rankClass}} {{#if sticky}}sticky{{/if}} {{inactiveClass}}" id="{{_id}}">
<div class="modules-group left-modules"> <div class="modules-group left-modules">
<div class="inner"> <div class="inner">
{{#each leftPostModules}} {{#each leftPostModules}}

View file

@ -1,5 +1,5 @@
<template name="posts_list"> <template name="posts_list">
<div class="posts-wrapper grid"> <div class="posts-wrapper grid grid-module">
<div class="posts list"> <div class="posts list">
{{#each posts}} {{#each posts}}
{{> UI.dynamic template=post_item}} {{> UI.dynamic template=post_item}}

View file

@ -0,0 +1,15 @@
{
"dependencies": [
[
"meteor",
"1.0.2"
],
[
"underscore",
"1.0.0"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}

View file

@ -0,0 +1,27 @@
{
"dependencies": [
[
"jquery",
"1.0.0"
],
[
"meteor",
"1.0.2"
],
[
"telescope-base",
"0.0.0"
],
[
"telescope-lib",
"0.0.0"
],
[
"underscore",
"1.0.0"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}

View file

@ -0,0 +1,23 @@
{
"dependencies": [
[
"jquery",
"1.0.0"
],
[
"meteor",
"1.0.2"
],
[
"telescope-lib",
"0.0.0"
],
[
"underscore",
"1.0.0"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}

1
packages/telescope-daily/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.build*

View file

@ -1,5 +1,12 @@
Meteor.startup(function () { Meteor.startup(function () {
var coreSubscriptions = new SubsManager({
// cache recent 50 subscriptions
cacheLimit: 50,
// expire any subscription after 30 minutes
expireIn: 30
});
Router.map(function() { Router.map(function() {
PostsDailyController = FastRender.RouteController.extend({ PostsDailyController = FastRender.RouteController.extend({
@ -17,15 +24,9 @@ Meteor.startup(function () {
]; ];
}, },
data: function() { data: function() {
var days = this.params.days ? this.params.days : 3, var days = this.params.days ? this.params.days : 3;
terms = {
view: 'daily',
after: moment().subtract('days', days).startOf('day').toDate()
},
parameters = getParameters(terms);
Session.set('currentDate', currentDate);
return { return {
posts: Posts.find(parameters.find, parameters.options) days: days
}; };
} }
}); });

View file

@ -0,0 +1,15 @@
.posts-day-heading{
font-size: 16px;
font-weight: bold;
background: #efefef;
padding: 15px;
/*border-bottom: 1px solid #e7eff2;*/
margin-bottom: 0;
border-radius: 3px 3px 0 0;
}
.empty-day-notice{
padding: 15px;
}
.posts-day .post:last-child{
border-radius: 0 0 3px 3px;
}

View file

@ -1,11 +1,15 @@
<template name="postsDaily"> <template name="postsDaily">
<div class="grid"> <div class="grid">
{{#each day}} {{#each days}}
<div class="posts-day posts list"> <div class="posts-wrapper posts-day posts list grid-module">
<h2 class="posts-day-heading">xyz</h2> <h2 class="posts-day-heading">{{formatDate date "dddd, MMMM Do YYYY"}}</h2>
{{#each posts}} {{#if posts}}
{{> UI.dynamic template=post_item}} {{#each posts}}
{{/each}} {{> UI.dynamic template=post_item}}
{{/each}}
{{else}}
<p class="empty-day-notice">Sorry, not posts for that day.</p>
{{/if}}
</div> </div>
{{/each}} {{/each}}
</div> </div>

View file

@ -1,16 +1,33 @@
var getPosts = function (date) {
var terms = {
view: 'digest',
after: moment(date).startOf('day').toDate(),
before: moment(date).endOf('day').toDate()
};
var parameters = getParameters(terms);
var posts = Posts.find(parameters.find, parameters.options).map(function (post, index, cursor) {
post.rank = index;
return post;
});
return posts;
}
Template[getTemplate('postsDaily')].helpers({ Template[getTemplate('postsDaily')].helpers({
post_item: function () { post_item: function () {
return getTemplate('post_item'); return getTemplate('post_item');
}, },
posts : function () { days: function () {
if(this.postsList){ // XXX console.log(this)
this.postsList.rewind(); var daysArray = [];
var posts = this.postsList.map(function (post, index, cursor) { for (i = 0; i < this.days; i++) {
post.rank = index; daysArray.push({
return post; date: moment().subtract('days', i).startOf('day').toDate()
}); });
return posts;
} }
return daysArray;
},
posts: function () {
return getPosts(this.date);
}, },
hasMorePosts: function(){ hasMorePosts: function(){
// as long as we ask for N posts and all N posts showed up, then keep showing the "load more" button // as long as we ask for N posts and all N posts showed up, then keep showing the "load more" button

View file

@ -2,7 +2,7 @@ Package.describe({summary: "Telescope daily view"});
Package.on_use(function (api) { Package.on_use(function (api) {
api.use(['telescope-lib', 'telescope-base'], ['client', 'server']); api.use(['telescope-lib', 'telescope-base', 'fast-render', 'subs-manager'], ['client', 'server']);
api.use([ api.use([
'jquery', 'jquery',
@ -17,6 +17,7 @@ Package.on_use(function (api) {
'lib/client/routes.js', 'lib/client/routes.js',
'lib/client/templates/posts_daily.html', 'lib/client/templates/posts_daily.html',
'lib/client/templates/posts_daily.js', 'lib/client/templates/posts_daily.js',
'lib/client/stylesheets/daily.css',
], ['client']); ], ['client']);
api.add_files(['lib/server/publications.js'], ['server']); api.add_files(['lib/server/publications.js'], ['server']);

View file

@ -0,0 +1,183 @@
{
"dependencies": [
[
"accounts-base",
"1.0.0"
],
[
"application-configuration",
"1.0.0"
],
[
"binary-heap",
"1.0.0"
],
[
"blaze",
"1.0.3"
],
[
"blaze-tools",
"1.0.0"
],
[
"callback-hook",
"1.0.0"
],
[
"check",
"1.0.0"
],
[
"deps",
"1.0.1"
],
[
"ejson",
"1.0.0"
],
[
"fast-render",
"0.0.0"
],
[
"follower-livedata",
"1.0.0"
],
[
"geojson-utils",
"1.0.0"
],
[
"html-tools",
"1.0.0"
],
[
"htmljs",
"1.0.0"
],
[
"id-map",
"1.0.0"
],
[
"iron-core",
"0.2.0"
],
[
"iron-dynamic-template",
"0.2.1"
],
[
"iron-layout",
"0.2.0"
],
[
"iron-router",
"0.8.2"
],
[
"jquery",
"1.0.0"
],
[
"json",
"1.0.0"
],
[
"livedata",
"1.0.7"
],
[
"localstorage",
"1.0.0"
],
[
"logging",
"1.0.2"
],
[
"meteor",
"1.0.2"
],
[
"minifiers",
"1.0.2"
],
[
"minimongo",
"1.0.1"
],
[
"mongo-livedata",
"1.0.3"
],
[
"observe-sequence",
"1.0.1"
],
[
"ordered-dict",
"1.0.0"
],
[
"random",
"1.0.0"
],
[
"reactive-dict",
"1.0.0"
],
[
"retry",
"1.0.0"
],
[
"routepolicy",
"1.0.0"
],
[
"service-configuration",
"1.0.0"
],
[
"spacebars",
"1.0.0"
],
[
"spacebars-compiler",
"1.0.1"
],
[
"subs-manager",
"0.0.0"
],
[
"telescope-base",
"0.0.0"
],
[
"telescope-lib",
"0.0.0"
],
[
"templating",
"1.0.4"
],
[
"ui",
"1.0.0"
],
[
"underscore",
"1.0.0"
],
[
"webapp",
"1.0.2"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}

View file

@ -0,0 +1,67 @@
{
"dependencies": [
[
"blaze",
"1.0.3"
],
[
"deps",
"1.0.1"
],
[
"ejson",
"1.0.0"
],
[
"geojson-utils",
"1.0.0"
],
[
"htmljs",
"1.0.0"
],
[
"id-map",
"1.0.0"
],
[
"jquery",
"1.0.0"
],
[
"json",
"1.0.0"
],
[
"meteor",
"1.0.2"
],
[
"minimongo",
"1.0.1"
],
[
"observe-sequence",
"1.0.1"
],
[
"ordered-dict",
"1.0.0"
],
[
"random",
"1.0.0"
],
[
"ui",
"1.0.0"
],
[
"underscore",
"1.0.0"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}

View file

@ -0,0 +1,19 @@
{
"dependencies": [
[
"jquery",
"1.0.0"
],
[
"meteor",
"1.0.2"
],
[
"underscore",
"1.0.0"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}

View file

@ -0,0 +1,79 @@
{
"dependencies": [
[
"blaze",
"1.0.3"
],
[
"deps",
"1.0.1"
],
[
"ejson",
"1.0.0"
],
[
"geojson-utils",
"1.0.0"
],
[
"htmljs",
"1.0.0"
],
[
"id-map",
"1.0.0"
],
[
"jquery",
"1.0.0"
],
[
"json",
"1.0.0"
],
[
"meteor",
"1.0.2"
],
[
"minimongo",
"1.0.1"
],
[
"observe-sequence",
"1.0.1"
],
[
"ordered-dict",
"1.0.0"
],
[
"random",
"1.0.0"
],
[
"telescope-base",
"0.0.0"
],
[
"telescope-lib",
"0.0.0"
],
[
"templating",
"1.0.4"
],
[
"ui",
"1.0.0"
],
[
"underscore",
"1.0.0"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}

View file

@ -0,0 +1,31 @@
{
"dependencies": [
[
"jquery",
"1.0.0"
],
[
"meteor",
"1.0.2"
],
[
"rss",
"0.0.0"
],
[
"telescope-base",
"0.0.0"
],
[
"telescope-lib",
"0.0.0"
],
[
"underscore",
"1.0.0"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}

View file

@ -0,0 +1,167 @@
{
"dependencies": [
[
"application-configuration",
"1.0.0"
],
[
"binary-heap",
"1.0.0"
],
[
"blaze",
"1.0.3"
],
[
"blaze-tools",
"1.0.0"
],
[
"callback-hook",
"1.0.0"
],
[
"check",
"1.0.0"
],
[
"deps",
"1.0.1"
],
[
"ejson",
"1.0.0"
],
[
"follower-livedata",
"1.0.0"
],
[
"geojson-utils",
"1.0.0"
],
[
"html-tools",
"1.0.0"
],
[
"htmljs",
"1.0.0"
],
[
"id-map",
"1.0.0"
],
[
"iron-core",
"0.2.0"
],
[
"iron-dynamic-template",
"0.2.1"
],
[
"iron-layout",
"0.2.0"
],
[
"iron-router",
"0.8.2"
],
[
"jquery",
"1.0.0"
],
[
"json",
"1.0.0"
],
[
"livedata",
"1.0.7"
],
[
"logging",
"1.0.2"
],
[
"meteor",
"1.0.2"
],
[
"minifiers",
"1.0.2"
],
[
"minimongo",
"1.0.1"
],
[
"mongo-livedata",
"1.0.3"
],
[
"observe-sequence",
"1.0.1"
],
[
"ordered-dict",
"1.0.0"
],
[
"random",
"1.0.0"
],
[
"reactive-dict",
"1.0.0"
],
[
"retry",
"1.0.0"
],
[
"routepolicy",
"1.0.0"
],
[
"simple-schema",
"0.0.0"
],
[
"spacebars",
"1.0.0"
],
[
"spacebars-compiler",
"1.0.1"
],
[
"telescope-base",
"0.0.0"
],
[
"telescope-lib",
"0.0.0"
],
[
"templating",
"1.0.4"
],
[
"ui",
"1.0.0"
],
[
"underscore",
"1.0.0"
],
[
"webapp",
"1.0.2"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}

View file

@ -0,0 +1,167 @@
{
"dependencies": [
[
"application-configuration",
"1.0.0"
],
[
"binary-heap",
"1.0.0"
],
[
"blaze",
"1.0.3"
],
[
"blaze-tools",
"1.0.0"
],
[
"callback-hook",
"1.0.0"
],
[
"check",
"1.0.0"
],
[
"deps",
"1.0.1"
],
[
"ejson",
"1.0.0"
],
[
"follower-livedata",
"1.0.0"
],
[
"geojson-utils",
"1.0.0"
],
[
"html-tools",
"1.0.0"
],
[
"htmljs",
"1.0.0"
],
[
"id-map",
"1.0.0"
],
[
"iron-core",
"0.2.0"
],
[
"iron-dynamic-template",
"0.2.1"
],
[
"iron-layout",
"0.2.0"
],
[
"iron-router",
"0.8.2"
],
[
"jquery",
"1.0.0"
],
[
"json",
"1.0.0"
],
[
"livedata",
"1.0.7"
],
[
"logging",
"1.0.2"
],
[
"meteor",
"1.0.2"
],
[
"minifiers",
"1.0.2"
],
[
"minimongo",
"1.0.1"
],
[
"mongo-livedata",
"1.0.3"
],
[
"observe-sequence",
"1.0.1"
],
[
"ordered-dict",
"1.0.0"
],
[
"random",
"1.0.0"
],
[
"reactive-dict",
"1.0.0"
],
[
"retry",
"1.0.0"
],
[
"routepolicy",
"1.0.0"
],
[
"simple-schema",
"0.0.0"
],
[
"spacebars",
"1.0.0"
],
[
"spacebars-compiler",
"1.0.1"
],
[
"telescope-base",
"0.0.0"
],
[
"telescope-lib",
"0.0.0"
],
[
"templating",
"1.0.4"
],
[
"ui",
"1.0.0"
],
[
"underscore",
"1.0.0"
],
[
"webapp",
"1.0.2"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}

View file

@ -0,0 +1,27 @@
{
"dependencies": [
[
"jquery",
"1.0.0"
],
[
"meteor",
"1.0.2"
],
[
"telescope-base",
"0.0.0"
],
[
"telescope-lib",
"0.0.0"
],
[
"underscore",
"1.0.0"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}

View file

@ -581,35 +581,36 @@ em {
/* line 226, ../scss/modules/_posts.scss */ /* line 226, ../scss/modules/_posts.scss */
.posts-wrapper { .posts-wrapper {
border-radius: 3px; } border-radius: 3px;
padding: 0; }
/* line 230, ../scss/modules/_posts.scss */ /* line 231, ../scss/modules/_posts.scss */
.post { .post {
position: relative; position: relative;
width: 100%; width: 100%;
background: white; background: white;
border-bottom: 1px solid #e7eff2; } border-bottom: 1px solid #e7eff2; }
/* line 235, ../scss/modules/_posts.scss */ /* line 236, ../scss/modules/_posts.scss */
.post:first-child { .post:first-child {
border-radius: 3px 3px 0px 0px; } border-radius: 3px 3px 0px 0px; }
/* line 238, ../scss/modules/_posts.scss */ /* line 239, ../scss/modules/_posts.scss */
.post:last-child { .post:last-child {
border: none; } border: none; }
/* line 241, ../scss/modules/_posts.scss */ /* line 242, ../scss/modules/_posts.scss */
.post.animate { .post.animate {
-moz-transition: ease-out top 400ms 0ms; -moz-transition: ease-out top 400ms 0ms;
-o-transition: ease-out top 400ms 0ms; -o-transition: ease-out top 400ms 0ms;
-webkit-transition: ease-out top 400ms; -webkit-transition: ease-out top 400ms;
-webkit-transition-delay: 0ms; -webkit-transition-delay: 0ms;
transition: ease-out top 400ms 0ms; } transition: ease-out top 400ms 0ms; }
/* line 245, ../scss/modules/_posts.scss */ /* line 246, ../scss/modules/_posts.scss */
.post.inactive .post-content { .post.inactive .post-content {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVQYV2NkIALMnDlTkpGQOpCi9PT053gVwhSBDMOpEFkRToXoirAqxKYIQyEuRSgK8SmCKySkCKyQGEUghQC5OyXvW/4BHwAAAABJRU5ErkJggg=="); } background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVQYV2NkIALMnDlTkpGQOpCi9PT053gVwhSBDMOpEFkRToXoirAqxKYIQyEuRSgK8SmCKySkCKyQGEUghQC5OyXvW/4BHwAAAABJRU5ErkJggg=="); }
/* line 250, ../scss/modules/_posts.scss */ /* line 251, ../scss/modules/_posts.scss */
.post-rank { .post-rank {
position: relative; } position: relative; }
/* line 252, ../scss/modules/_posts.scss */ /* line 253, ../scss/modules/_posts.scss */
.post-rank span { .post-rank span {
position: absolute; position: absolute;
top: 0px; top: 0px;
@ -622,70 +623,70 @@ em {
font-size: 18px; font-size: 18px;
color: rgba(0, 0, 0, 0.2); } color: rgba(0, 0, 0, 0.2); }
/* line 266, ../scss/modules/_posts.scss */ /* line 267, ../scss/modules/_posts.scss */
.post-info { .post-info {
padding: 13px 0; } padding: 13px 0; }
/* line 269, ../scss/modules/_posts.scss */ /* line 270, ../scss/modules/_posts.scss */
.post-content { .post-content {
min-height: 40px; } min-height: 40px; }
/* line 271, ../scss/modules/_posts.scss */ /* line 272, ../scss/modules/_posts.scss */
.post-content .post-sticky { .post-content .post-sticky {
display: block; display: block;
position: absolute; position: absolute;
right: -40px; right: -40px;
top: 16px; top: 16px;
font-size: 24px; } font-size: 24px; }
/* line 277, ../scss/modules/_posts.scss */ /* line 278, ../scss/modules/_posts.scss */
.post-content .post-sticky i { .post-content .post-sticky i {
color: #b3c1c6; } color: #b3c1c6; }
/* line 280, ../scss/modules/_posts.scss */ /* line 281, ../scss/modules/_posts.scss */
.post-content .post-sticky span { .post-content .post-sticky span {
display: none; } display: none; }
/* line 285, ../scss/modules/_posts.scss */ /* line 286, ../scss/modules/_posts.scss */
.post-heading { .post-heading {
margin-bottom: 3px; } margin-bottom: 3px; }
@media screen and (max-width: 30em) { @media screen and (max-width: 30em) {
/* line 285, ../scss/modules/_posts.scss */ /* line 286, ../scss/modules/_posts.scss */
.post-heading { .post-heading {
line-height: 1.5; } } line-height: 1.5; } }
/* line 290, ../scss/modules/_posts.scss */ /* line 291, ../scss/modules/_posts.scss */
.post-heading .post-title { .post-heading .post-title {
color: #4a4444; color: #4a4444;
font-weight: normal; } font-weight: normal; }
@media screen and (max-width: 30em) { @media screen and (max-width: 30em) {
/* line 290, ../scss/modules/_posts.scss */ /* line 291, ../scss/modules/_posts.scss */
.post-heading .post-title { .post-heading .post-title {
font-size: 15px; } } font-size: 15px; } }
@media screen and (min-width: 30em) { @media screen and (min-width: 30em) {
/* line 290, ../scss/modules/_posts.scss */ /* line 291, ../scss/modules/_posts.scss */
.post-heading .post-title { .post-heading .post-title {
font-size: 18px; } } font-size: 18px; } }
/* line 299, ../scss/modules/_posts.scss */ /* line 300, ../scss/modules/_posts.scss */
.post-heading .post-title:visited { .post-heading .post-title:visited {
color: #b5b0b0; } color: #b5b0b0; }
/* line 302, ../scss/modules/_posts.scss */ /* line 303, ../scss/modules/_posts.scss */
.post-heading .post-title:hover { .post-heading .post-title:hover {
color: #f36c3d; } color: #f36c3d; }
/* line 306, ../scss/modules/_posts.scss */ /* line 307, ../scss/modules/_posts.scss */
.post-heading .post-domain { .post-heading .post-domain {
color: #b3c1c6; color: #b3c1c6;
font-weight: normal; } font-weight: normal; }
@media screen and (max-width: 30em) { @media screen and (max-width: 30em) {
/* line 306, ../scss/modules/_posts.scss */ /* line 307, ../scss/modules/_posts.scss */
.post-heading .post-domain { .post-heading .post-domain {
font-size: 13px; } } font-size: 13px; } }
@media screen and (min-width: 30em) { @media screen and (min-width: 30em) {
/* line 306, ../scss/modules/_posts.scss */ /* line 307, ../scss/modules/_posts.scss */
.post-heading .post-domain { .post-heading .post-domain {
font-size: 14px; } } font-size: 14px; } }
/* line 317, ../scss/modules/_posts.scss */ /* line 318, ../scss/modules/_posts.scss */
.post-categories { .post-categories {
text-align: right; } text-align: right; }
/* line 321, ../scss/modules/_posts.scss */ /* line 322, ../scss/modules/_posts.scss */
.post-category { .post-category {
display: inline-block; display: inline-block;
font-size: 11px; font-size: 11px;
@ -697,21 +698,21 @@ em {
text-transform: uppercase; text-transform: uppercase;
font-weight: normal; font-weight: normal;
vertical-align: middle; } vertical-align: middle; }
/* line 330, ../scss/modules/_posts.scss */ /* line 331, ../scss/modules/_posts.scss */
.post-category:hover { .post-category:hover {
background: #f36c3d; background: #f36c3d;
color: white; } color: white; }
/* line 335, ../scss/modules/_posts.scss */ /* line 336, ../scss/modules/_posts.scss */
.post-meta { .post-meta {
font-size: 12px; font-size: 12px;
color: #b3c1c6; color: #b3c1c6;
line-height: 1.5; } line-height: 1.5; }
/* line 341, ../scss/modules/_posts.scss */ /* line 342, ../scss/modules/_posts.scss */
.post-share, .post-discuss { .post-share, .post-discuss {
position: relative; } position: relative; }
/* line 343, ../scss/modules/_posts.scss */ /* line 344, ../scss/modules/_posts.scss */
.post-share > a, .post-discuss > a { .post-share > a, .post-discuss > a {
position: relative; position: relative;
display: inline-block; display: inline-block;
@ -724,31 +725,31 @@ em {
color: #b3c1c6; color: #b3c1c6;
font-size: 36px; font-size: 36px;
line-height: 50px; } line-height: 50px; }
/* line 355, ../scss/modules/_posts.scss */ /* line 356, ../scss/modules/_posts.scss */
.post-share > a.edit-link, .post-discuss > a.edit-link { .post-share > a.edit-link, .post-discuss > a.edit-link {
color: #f36c3d; } color: #f36c3d; }
/* line 358, ../scss/modules/_posts.scss */ /* line 359, ../scss/modules/_posts.scss */
.post-share > a.share-link, .post-discuss > a.share-link { .post-share > a.share-link, .post-discuss > a.share-link {
color: #7ac0e4; color: #7ac0e4;
color: #f8e121; } color: #f8e121; }
/* line 362, ../scss/modules/_posts.scss */ /* line 363, ../scss/modules/_posts.scss */
.post-share > a.discuss-link, .post-discuss > a.discuss-link { .post-share > a.discuss-link, .post-discuss > a.discuss-link {
color: #a3d06d; } color: #a3d06d; }
/* line 365, ../scss/modules/_posts.scss */ /* line 366, ../scss/modules/_posts.scss */
.post-share > a.more-link, .post-discuss > a.more-link { .post-share > a.more-link, .post-discuss > a.more-link {
color: #7ac0e4; } color: #7ac0e4; }
/* line 369, ../scss/modules/_posts.scss */ /* line 370, ../scss/modules/_posts.scss */
.post-share > a:hover, .post-share > a:hover .action, .post-discuss > a:hover, .post-discuss > a:hover .action { .post-share > a:hover, .post-share > a:hover .action, .post-discuss > a:hover, .post-discuss > a:hover .action {
color: #f36c3d; } color: #f36c3d; }
/* line 373, ../scss/modules/_posts.scss */ /* line 374, ../scss/modules/_posts.scss */
.post-share > a.voted, .post-discuss > a.voted { .post-share > a.voted, .post-discuss > a.voted {
background: #4e555d; background: #4e555d;
color: white; color: white;
cursor: default; } cursor: default; }
/* line 377, ../scss/modules/_posts.scss */ /* line 378, ../scss/modules/_posts.scss */
.post-share > a.voted .action, .post-discuss > a.voted .action { .post-share > a.voted .action, .post-discuss > a.voted .action {
color: #fff; } color: #fff; }
/* line 381, ../scss/modules/_posts.scss */ /* line 382, ../scss/modules/_posts.scss */
.post-share > a .count, .post-discuss > a .count { .post-share > a .count, .post-discuss > a .count {
position: absolute; position: absolute;
top: 14px; top: 14px;
@ -757,12 +758,12 @@ em {
height: 20px; height: 20px;
line-height: 20px; line-height: 20px;
font-size: 11px; } font-size: 11px; }
/* line 390, ../scss/modules/_posts.scss */ /* line 391, ../scss/modules/_posts.scss */
.post-share > a .points, .post-discuss > a .points { .post-share > a .points, .post-discuss > a .points {
display: block; display: block;
font-size: 30px; font-size: 30px;
line-height: 50px; } line-height: 50px; }
/* line 395, ../scss/modules/_posts.scss */ /* line 396, ../scss/modules/_posts.scss */
.post-share > a .action, .post-discuss > a .action { .post-share > a .action, .post-discuss > a .action {
display: block; display: block;
height: 20px; height: 20px;
@ -775,22 +776,22 @@ em {
color: #b3c1c6; color: #b3c1c6;
pointer-events: none; } pointer-events: none; }
/* line 410, ../scss/modules/_posts.scss */ /* line 411, ../scss/modules/_posts.scss */
.post-body { .post-body {
border-radius: 3px; border-radius: 3px;
margin-bottom: 10px; margin-bottom: 10px;
background: white; background: white;
padding: 20px; padding: 20px;
font-size: 16px; } font-size: 16px; }
/* line 417, ../scss/modules/_posts.scss */ /* line 418, ../scss/modules/_posts.scss */
.list .post-body { .list .post-body {
display: none; } display: none; }
/* line 422, ../scss/modules/_posts.scss */ /* line 423, ../scss/modules/_posts.scss */
.post.sticky { .post.sticky {
background: #fffce0; } background: #fffce0; }
/* line 426, ../scss/modules/_posts.scss */ /* line 427, ../scss/modules/_posts.scss */
.more-button { .more-button {
display: block; display: block;
width: 100%; width: 100%;
@ -803,56 +804,56 @@ em {
border-radius: 0px 0px 3px 3px; border-radius: 0px 0px 3px 3px;
text-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25); text-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
padding: 0px; } padding: 0px; }
/* line 438, ../scss/modules/_posts.scss */ /* line 439, ../scss/modules/_posts.scss */
.more-button:hover { .more-button:hover {
background: rgba(0, 0, 0, 0.15); } background: rgba(0, 0, 0, 0.15); }
/* line 443, ../scss/modules/_posts.scss */ /* line 444, ../scss/modules/_posts.scss */
.inner-table { .inner-table {
display: table; display: table;
height: 100%; } height: 100%; }
/* line 447, ../scss/modules/_posts.scss */ /* line 448, ../scss/modules/_posts.scss */
.inner-table-cell { .inner-table-cell {
display: table-cell; display: table-cell;
vertical-align: middle; } vertical-align: middle; }
@media screen and (max-width: 500px) { @media screen and (max-width: 500px) {
/* line 454, ../scss/modules/_posts.scss */ /* line 455, ../scss/modules/_posts.scss */
.posts { .posts {
padding: 0; } padding: 0; }
/* line 457, ../scss/modules/_posts.scss */ /* line 458, ../scss/modules/_posts.scss */
.posts .post-rank { .posts .post-rank {
display: none; } display: none; }
/* line 462, ../scss/modules/_posts.scss */ /* line 463, ../scss/modules/_posts.scss */
.post .post-content { .post .post-content {
margin-right: 50px; margin-right: 50px;
margin-right: 0px; } margin-right: 0px; }
/* line 466, ../scss/modules/_posts.scss */ /* line 467, ../scss/modules/_posts.scss */
.post .post-content .upvote-link { .post .post-content .upvote-link {
width: 30px; } width: 30px; }
/* line 469, ../scss/modules/_posts.scss */ /* line 470, ../scss/modules/_posts.scss */
.post .post-content .post-info { .post .post-content .post-info {
padding: 13px 0; } padding: 13px 0; }
/* line 474, ../scss/modules/_posts.scss */ /* line 475, ../scss/modules/_posts.scss */
.post .post-content .post-heading .post-title { .post .post-content .post-heading .post-title {
line-height: 1.2; line-height: 1.2;
display: block; display: block;
margin-bottom: 4px; } margin-bottom: 4px; }
/* line 479, ../scss/modules/_posts.scss */ /* line 480, ../scss/modules/_posts.scss */
.post .post-content .post-heading .post-domain { .post .post-content .post-heading .post-domain {
line-height: 1; line-height: 1;
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
font-size: 13px; } font-size: 13px; }
/* line 486, ../scss/modules/_posts.scss */ /* line 487, ../scss/modules/_posts.scss */
.post .post-content .post-meta { .post .post-content .post-meta {
font-size: 11px; } font-size: 11px; }
/* line 491, ../scss/modules/_posts.scss */ /* line 492, ../scss/modules/_posts.scss */
.post .post-content .post-meta .unit { .post .post-content .post-meta .unit {
font-size: 0; } font-size: 0; }
/* line 493, ../scss/modules/_posts.scss */ /* line 494, ../scss/modules/_posts.scss */
.post .post-content .post-meta .unit:after { .post .post-content .post-meta .unit:after {
font-size: 12px; font-size: 12px;
content: "pts "; } } content: "pts "; } }

View file

@ -225,7 +225,8 @@
} }
.posts-wrapper{ .posts-wrapper{
@extend .has-shadow; @extend .has-shadow;
border-radius: 3px; border-radius: 3px;
padding: 0;
} }
.post{ .post{
position:relative; position:relative;

View file

@ -0,0 +1,27 @@
{
"dependencies": [
[
"jquery",
"1.0.0"
],
[
"meteor",
"1.0.2"
],
[
"telescope-base",
"0.0.0"
],
[
"telescope-lib",
"0.0.0"
],
[
"underscore",
"1.0.0"
]
],
"pluginDependencies": [],
"toolVersion": "meteor-tool@1.0.25",
"format": "1.0"
}