mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
small bug fixes
This commit is contained in:
parent
735f0645db
commit
991ca23516
7 changed files with 75 additions and 70 deletions
|
@ -203,7 +203,7 @@ Meteor.methods({
|
|||
author: getDisplayNameById(userId),
|
||||
upvotes: 0,
|
||||
downvotes: 0,
|
||||
comments: 0,
|
||||
commentsCount: 0,
|
||||
baseScore: 0,
|
||||
score: 0,
|
||||
inactive: false,
|
||||
|
|
|
@ -2,7 +2,7 @@ Package.describe({summary: "Telescope base package"});
|
|||
|
||||
Package.on_use(function (api) {
|
||||
|
||||
api.use(['telescope-lib'], ['client', 'server']);
|
||||
api.use(['telescope-i18n', 'telescope-lib'], ['client', 'server']);
|
||||
|
||||
api.add_files(['lib/base.js'], ['client', 'server']);
|
||||
api.add_files(['lib/base_client.js'], ['client']);
|
||||
|
|
|
@ -8,9 +8,10 @@ serveRSS = function() {
|
|||
});
|
||||
|
||||
Posts.find({status: STATUS_APPROVED}, {sort: {postedAt: -1}, limit: 20}).forEach(function(post) {
|
||||
var description = !!post.body ? post.body+'</br></br>' : '';
|
||||
feed.item({
|
||||
title: post.title,
|
||||
description: post.body+'</br></br> <a href="'+getPostPageUrl(post._id)+'">Comments</a>',
|
||||
description: description+'<a href="'+getPostUrl(post._id)+'">Discuss</a>',
|
||||
author: post.author,
|
||||
date: post.postedAt,
|
||||
url: getPostLink(post),
|
||||
|
|
|
@ -397,52 +397,53 @@ a {
|
|||
float: right; }
|
||||
|
||||
/* line 2, ../scss/global/_markdown.scss */
|
||||
.markdown ul, .markdown ol, .markdown p, .markdown pre {
|
||||
margin-bottom: 1em; }
|
||||
/* line 5, ../scss/global/_markdown.scss */
|
||||
.markdown ul, .markdown ol, .markdown p, .markdown pre, .markdown blockquote {
|
||||
margin-bottom: 1em;
|
||||
line-height: 1.7; }
|
||||
/* line 6, ../scss/global/_markdown.scss */
|
||||
.markdown strong {
|
||||
font-weight: bold; }
|
||||
/* line 8, ../scss/global/_markdown.scss */
|
||||
/* line 9, ../scss/global/_markdown.scss */
|
||||
.markdown em {
|
||||
font-style: italic; }
|
||||
/* line 11, ../scss/global/_markdown.scss */
|
||||
/* line 12, ../scss/global/_markdown.scss */
|
||||
.markdown ul, .markdown ol {
|
||||
padding-left: 18px; }
|
||||
/* line 14, ../scss/global/_markdown.scss */
|
||||
/* line 15, ../scss/global/_markdown.scss */
|
||||
.markdown ul {
|
||||
list-style-type: disc; }
|
||||
/* line 17, ../scss/global/_markdown.scss */
|
||||
/* line 18, ../scss/global/_markdown.scss */
|
||||
.markdown ol {
|
||||
list-style-type: decimal; }
|
||||
/* line 21, ../scss/global/_markdown.scss */
|
||||
/* line 22, ../scss/global/_markdown.scss */
|
||||
.markdown a:link, .markdown a:visited, .markdown a:active {
|
||||
color: #7ac0e4; }
|
||||
/* line 24, ../scss/global/_markdown.scss */
|
||||
/* line 25, ../scss/global/_markdown.scss */
|
||||
.markdown a:hover {
|
||||
color: #dd3416; }
|
||||
/* line 29, ../scss/global/_markdown.scss */
|
||||
/* line 30, ../scss/global/_markdown.scss */
|
||||
.markdown p:last-child {
|
||||
margin-bottom: 0; }
|
||||
/* line 33, ../scss/global/_markdown.scss */
|
||||
/* line 34, ../scss/global/_markdown.scss */
|
||||
.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5 {
|
||||
font-weight: bold;
|
||||
margin-bottom: 0; }
|
||||
/* line 37, ../scss/global/_markdown.scss */
|
||||
/* line 38, ../scss/global/_markdown.scss */
|
||||
.markdown h1 {
|
||||
font-size: 36px; }
|
||||
/* line 40, ../scss/global/_markdown.scss */
|
||||
/* line 41, ../scss/global/_markdown.scss */
|
||||
.markdown h2 {
|
||||
font-size: 24px; }
|
||||
/* line 43, ../scss/global/_markdown.scss */
|
||||
/* line 44, ../scss/global/_markdown.scss */
|
||||
.markdown h3 {
|
||||
font-size: 18px; }
|
||||
/* line 46, ../scss/global/_markdown.scss */
|
||||
/* line 47, ../scss/global/_markdown.scss */
|
||||
.markdown h4 {
|
||||
font-size: 16px; }
|
||||
/* line 49, ../scss/global/_markdown.scss */
|
||||
/* line 50, ../scss/global/_markdown.scss */
|
||||
.markdown h5 {
|
||||
font-size: 14px; }
|
||||
/* line 52, ../scss/global/_markdown.scss */
|
||||
/* line 53, ../scss/global/_markdown.scss */
|
||||
.markdown code {
|
||||
font-family: monospace;
|
||||
margin: 0 2px;
|
||||
|
@ -450,15 +451,19 @@ a {
|
|||
border: 1px solid #ddd;
|
||||
background-color: #f8f8f8;
|
||||
border-radius: 3px; }
|
||||
/* line 60, ../scss/global/_markdown.scss */
|
||||
/* line 61, ../scss/global/_markdown.scss */
|
||||
.markdown pre {
|
||||
padding: 20px;
|
||||
border: 1px solid #ddd;
|
||||
background-color: #f8f8f8; }
|
||||
/* line 64, ../scss/global/_markdown.scss */
|
||||
/* line 65, ../scss/global/_markdown.scss */
|
||||
.markdown pre code {
|
||||
border: none;
|
||||
background: none; }
|
||||
/* line 70, ../scss/global/_markdown.scss */
|
||||
.markdown blockquote {
|
||||
border-left: 3px solid #eee;
|
||||
padding-left: 20px; }
|
||||
|
||||
/* line 1, ../scss/global/_tables.scss */
|
||||
table {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
.markdown{
|
||||
ul, ol, p, pre{
|
||||
ul, ol, p, pre, blockquote{
|
||||
margin-bottom: 1em;
|
||||
line-height: 1.7;
|
||||
}
|
||||
strong{
|
||||
font-weight:bold;
|
||||
|
@ -66,4 +67,8 @@
|
|||
background: none;
|
||||
}
|
||||
}
|
||||
blockquote{
|
||||
border-left: 3px solid #eee;
|
||||
padding-left: 20px;
|
||||
}
|
||||
}
|
|
@ -645,47 +645,48 @@ em {
|
|||
|
||||
/* line 285, ../scss/modules/_posts.scss */
|
||||
.post-heading {
|
||||
margin-bottom: 3px; }
|
||||
margin-bottom: 3px;
|
||||
line-height: 1.3; }
|
||||
@media screen and (max-width: 30em) {
|
||||
/* line 285, ../scss/modules/_posts.scss */
|
||||
.post-heading {
|
||||
line-height: 1.5; } }
|
||||
/* line 290, ../scss/modules/_posts.scss */
|
||||
/* line 291, ../scss/modules/_posts.scss */
|
||||
.post-heading .post-title {
|
||||
color: #4a4444;
|
||||
font-weight: normal; }
|
||||
@media screen and (max-width: 30em) {
|
||||
/* line 290, ../scss/modules/_posts.scss */
|
||||
/* line 291, ../scss/modules/_posts.scss */
|
||||
.post-heading .post-title {
|
||||
font-size: 15px; } }
|
||||
@media screen and (min-width: 30em) {
|
||||
/* line 290, ../scss/modules/_posts.scss */
|
||||
/* line 291, ../scss/modules/_posts.scss */
|
||||
.post-heading .post-title {
|
||||
font-size: 18px; } }
|
||||
/* line 299, ../scss/modules/_posts.scss */
|
||||
/* line 300, ../scss/modules/_posts.scss */
|
||||
.post-heading .post-title:visited {
|
||||
color: #b5b0b0; }
|
||||
/* line 302, ../scss/modules/_posts.scss */
|
||||
/* line 303, ../scss/modules/_posts.scss */
|
||||
.post-heading .post-title:hover {
|
||||
color: #f36c3d; }
|
||||
/* line 306, ../scss/modules/_posts.scss */
|
||||
/* line 307, ../scss/modules/_posts.scss */
|
||||
.post-heading .post-domain {
|
||||
color: #b3c1c6;
|
||||
font-weight: normal; }
|
||||
@media screen and (max-width: 30em) {
|
||||
/* line 306, ../scss/modules/_posts.scss */
|
||||
/* line 307, ../scss/modules/_posts.scss */
|
||||
.post-heading .post-domain {
|
||||
font-size: 13px; } }
|
||||
@media screen and (min-width: 30em) {
|
||||
/* line 306, ../scss/modules/_posts.scss */
|
||||
/* line 307, ../scss/modules/_posts.scss */
|
||||
.post-heading .post-domain {
|
||||
font-size: 14px; } }
|
||||
|
||||
/* line 317, ../scss/modules/_posts.scss */
|
||||
/* line 318, ../scss/modules/_posts.scss */
|
||||
.post-categories {
|
||||
text-align: right; }
|
||||
|
||||
/* line 321, ../scss/modules/_posts.scss */
|
||||
/* line 322, ../scss/modules/_posts.scss */
|
||||
.post-category {
|
||||
display: inline-block;
|
||||
font-size: 11px;
|
||||
|
@ -697,21 +698,21 @@ em {
|
|||
text-transform: uppercase;
|
||||
font-weight: normal;
|
||||
vertical-align: middle; }
|
||||
/* line 330, ../scss/modules/_posts.scss */
|
||||
/* line 331, ../scss/modules/_posts.scss */
|
||||
.post-category:hover {
|
||||
background: #f36c3d;
|
||||
color: white; }
|
||||
|
||||
/* line 335, ../scss/modules/_posts.scss */
|
||||
/* line 336, ../scss/modules/_posts.scss */
|
||||
.post-meta {
|
||||
font-size: 12px;
|
||||
color: #b3c1c6;
|
||||
line-height: 1.5; }
|
||||
|
||||
/* line 341, ../scss/modules/_posts.scss */
|
||||
/* line 342, ../scss/modules/_posts.scss */
|
||||
.post-share, .post-discuss {
|
||||
position: relative; }
|
||||
/* line 343, ../scss/modules/_posts.scss */
|
||||
/* line 344, ../scss/modules/_posts.scss */
|
||||
.post-share > a, .post-discuss > a {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
@ -724,31 +725,31 @@ em {
|
|||
color: #b3c1c6;
|
||||
font-size: 36px;
|
||||
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 {
|
||||
color: #f36c3d; }
|
||||
/* line 358, ../scss/modules/_posts.scss */
|
||||
/* line 359, ../scss/modules/_posts.scss */
|
||||
.post-share > a.share-link, .post-discuss > a.share-link {
|
||||
color: #7ac0e4;
|
||||
color: #f8e121; }
|
||||
/* line 362, ../scss/modules/_posts.scss */
|
||||
/* line 363, ../scss/modules/_posts.scss */
|
||||
.post-share > a.discuss-link, .post-discuss > a.discuss-link {
|
||||
color: #a3d06d; }
|
||||
/* line 365, ../scss/modules/_posts.scss */
|
||||
/* line 366, ../scss/modules/_posts.scss */
|
||||
.post-share > a.more-link, .post-discuss > a.more-link {
|
||||
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 {
|
||||
color: #f36c3d; }
|
||||
/* line 373, ../scss/modules/_posts.scss */
|
||||
/* line 374, ../scss/modules/_posts.scss */
|
||||
.post-share > a.voted, .post-discuss > a.voted {
|
||||
background: #4e555d;
|
||||
color: white;
|
||||
cursor: default; }
|
||||
/* line 377, ../scss/modules/_posts.scss */
|
||||
/* line 378, ../scss/modules/_posts.scss */
|
||||
.post-share > a.voted .action, .post-discuss > a.voted .action {
|
||||
color: #fff; }
|
||||
/* line 381, ../scss/modules/_posts.scss */
|
||||
/* line 382, ../scss/modules/_posts.scss */
|
||||
.post-share > a .count, .post-discuss > a .count {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
|
@ -757,12 +758,12 @@ em {
|
|||
height: 20px;
|
||||
line-height: 20px;
|
||||
font-size: 11px; }
|
||||
/* line 390, ../scss/modules/_posts.scss */
|
||||
/* line 391, ../scss/modules/_posts.scss */
|
||||
.post-share > a .points, .post-discuss > a .points {
|
||||
display: block;
|
||||
font-size: 30px;
|
||||
line-height: 50px; }
|
||||
/* line 395, ../scss/modules/_posts.scss */
|
||||
/* line 396, ../scss/modules/_posts.scss */
|
||||
.post-share > a .action, .post-discuss > a .action {
|
||||
display: block;
|
||||
height: 20px;
|
||||
|
@ -775,22 +776,22 @@ em {
|
|||
color: #b3c1c6;
|
||||
pointer-events: none; }
|
||||
|
||||
/* line 410, ../scss/modules/_posts.scss */
|
||||
/* line 411, ../scss/modules/_posts.scss */
|
||||
.post-body {
|
||||
border-radius: 3px;
|
||||
margin-bottom: 10px;
|
||||
background: white;
|
||||
padding: 20px;
|
||||
font-size: 16px; }
|
||||
/* line 417, ../scss/modules/_posts.scss */
|
||||
/* line 418, ../scss/modules/_posts.scss */
|
||||
.list .post-body {
|
||||
display: none; }
|
||||
|
||||
/* line 422, ../scss/modules/_posts.scss */
|
||||
/* line 423, ../scss/modules/_posts.scss */
|
||||
.post.sticky {
|
||||
background: #fffce0; }
|
||||
|
||||
/* line 426, ../scss/modules/_posts.scss */
|
||||
/* line 427, ../scss/modules/_posts.scss */
|
||||
.more-button {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
@ -803,22 +804,22 @@ em {
|
|||
border-radius: 0px 0px 3px 3px;
|
||||
text-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
|
||||
padding: 0px; }
|
||||
/* line 438, ../scss/modules/_posts.scss */
|
||||
/* line 439, ../scss/modules/_posts.scss */
|
||||
.more-button:hover {
|
||||
background: rgba(0, 0, 0, 0.15); }
|
||||
|
||||
/* line 443, ../scss/modules/_posts.scss */
|
||||
/* line 444, ../scss/modules/_posts.scss */
|
||||
.inner-table {
|
||||
display: table;
|
||||
height: 100%; }
|
||||
|
||||
/* line 447, ../scss/modules/_posts.scss */
|
||||
/* line 448, ../scss/modules/_posts.scss */
|
||||
.inner-table-cell {
|
||||
display: table-cell;
|
||||
vertical-align: middle; }
|
||||
|
||||
@media screen and (max-width: 500px) {
|
||||
/* line 454, ../scss/modules/_posts.scss */
|
||||
@media screen and (max-width: 30em) {
|
||||
/* line 455, ../scss/modules/_posts.scss */
|
||||
.posts {
|
||||
padding: 0; }
|
||||
/* line 457, ../scss/modules/_posts.scss */
|
||||
|
@ -837,22 +838,20 @@ em {
|
|||
padding: 13px 0; }
|
||||
/* line 474, ../scss/modules/_posts.scss */
|
||||
.post .post-content .post-heading .post-title {
|
||||
line-height: 1.2;
|
||||
display: block;
|
||||
margin-bottom: 4px; }
|
||||
/* line 479, ../scss/modules/_posts.scss */
|
||||
/* line 478, ../scss/modules/_posts.scss */
|
||||
.post .post-content .post-heading .post-domain {
|
||||
line-height: 1;
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
font-size: 13px; }
|
||||
/* line 486, ../scss/modules/_posts.scss */
|
||||
/* line 484, ../scss/modules/_posts.scss */
|
||||
.post .post-content .post-meta {
|
||||
font-size: 11px; }
|
||||
/* line 491, ../scss/modules/_posts.scss */
|
||||
/* line 486, ../scss/modules/_posts.scss */
|
||||
.post .post-content .post-meta .unit {
|
||||
font-size: 0; }
|
||||
/* line 493, ../scss/modules/_posts.scss */
|
||||
/* line 488, ../scss/modules/_posts.scss */
|
||||
.post .post-content .post-meta .unit:after {
|
||||
font-size: 12px;
|
||||
content: "pts "; } }
|
||||
|
|
|
@ -284,6 +284,7 @@
|
|||
}
|
||||
.post-heading{
|
||||
margin-bottom:3px;
|
||||
line-height: 1.3;
|
||||
@include small{
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
@ -450,9 +451,8 @@
|
|||
}
|
||||
|
||||
|
||||
@media screen and (max-width: $break-small) {
|
||||
@include small {
|
||||
.posts{
|
||||
// margin:0 10px;
|
||||
padding:0;
|
||||
.post-rank{
|
||||
display:none;
|
||||
|
@ -472,12 +472,10 @@
|
|||
}
|
||||
.post-heading{
|
||||
.post-title{
|
||||
line-height:1.2;
|
||||
display:block;
|
||||
margin-bottom:4px;
|
||||
}
|
||||
.post-domain{
|
||||
line-height:1;
|
||||
display:block;
|
||||
margin-bottom:4px;
|
||||
font-size:13px;
|
||||
|
@ -485,9 +483,6 @@
|
|||
}
|
||||
.post-meta{
|
||||
font-size:11px;
|
||||
.comments{
|
||||
// display:none;
|
||||
}
|
||||
.unit{
|
||||
font-size:0;
|
||||
&:after{
|
||||
|
|
Loading…
Add table
Reference in a new issue