Night theme improvements + small fixes (#2114)

This commit is contained in:
Ben Halpern 2019-03-19 13:36:30 -04:00 committed by GitHub
parent 4010882e5e
commit 7bf37108b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 8 deletions

View file

@ -122,6 +122,8 @@
top: 14px;
border: 0px;
background: transparent;
background: var(--theme-secondary-color, transparent);
border-radius: 8px;
img {
height: 24px;
}
@ -644,11 +646,13 @@
-webkit-appearance: none;
font-family: $helvetica-condensed;
color: $medium-gray;
color: var(--theme-secondary-color, $medium-gray);
a {
&:hover {
opacity: 1;
}
color: $medium-gray;
color: var(--theme-secondary-color, $medium-gray);
}
img {
height: 18px;
@ -944,8 +948,13 @@
display: block;
&:hover {
background: $light-purple;
background: var(--theme-container-background, $light-purple);
}
}
&:hover {
background: white;
background: var(--theme-background, white);
}
.readinglist-sidebar-subcat {
font-weight: bold;
font-size: 0.78em;
@ -1268,6 +1277,7 @@
text-align: left;
border-radius: 0px;
color: $black;
color: var(--theme-color, $black);
cursor: pointer;
&:hover {
background: lighten($bold-blue, 38%);
@ -1382,6 +1392,7 @@
.discuss-list-comment-count {
font-size: 0.8em;
color: $medium-gray;
color: var(--theme-container-color, $medium-gray);
margin-top: 2px;
img {
width: 20px;

View file

@ -1,6 +1,7 @@
@import 'variables';
.ltag__link__link{
color:#111111 !important;
color:$black !important;
color: var(--theme-color, $black) !important;
&:active{
opacity:0.7;
}
@ -45,10 +46,12 @@
font-size:0.8em;
margin-bottom:0;
font-weight:bold;
color: #666666;
color: $medium-gray;
color: var(--theme-secondary-color, $black);
a{
color: #666666;
}
color: $medium-gray;
color: var(--theme-secondary-color, $black);
}
}
.ltag__link__taglist{
margin:0;
@ -75,11 +78,11 @@
}
.ltag__link__content{
h2{
font-size:calc(1.1em + 1.4vw) !important;
font-size:calc(1.05em + 0.7vw) !important;
margin-top:0em !important;
margin-bottom:0.4em !important;
font-weight:400 !important;
line-height:calc(0.9em + 0.8vw) !important;
line-height:1.22em !important;
}
h3{
margin-bottom: 0.4em !important;

View file

@ -335,6 +335,7 @@
}
.unseen{
background-color: $light-purple;
background:var(--theme-container-accent-background, $light-purple);
}
}
}

View file

@ -20,7 +20,7 @@ class PageViewsController < ApplicationController
if user_signed_in?
page_view = PageView.where(article_id: params[:id], user_id: current_user.id).last
page_view ||= PageView.create(user_id: current_user.id,
article_id: page_view_params[:article_id]) # pageview is sometimes missing if failure on prior creation.
article_id: params[:id]) # pageview is sometimes missing if failure on prior creation.
page_view.update_column(:time_tracked_in_seconds, page_view.time_tracked_in_seconds + 15)
end
head :ok

View file

@ -145,7 +145,7 @@
</div>
<% end %>
<% else %>
<% cache("seo-boostable-posts-homepage-xoxo", expires_in: 18.hours) do %>
<% cache("seo-boostable-posts-homepage-xoxoxo", expires_in: 18.hours) do %>
<% @boostable_posts = Article.seo_boostable %>
<% if @boostable_posts.any? %>
<div class="widget">

View file

@ -96,6 +96,7 @@
--theme-top-bar-write-background: #00af81;\
--theme-top-bar-write-color: #fff;\
--theme-container-background: #27374c;\
--theme-container-accent-background: #384b66;\
--theme-container-background-hover: #37475c;\
--theme-container-color: #fff;\
--theme-container-box-shadow: none;\