From 8d1874d30951c97affe3af5e1025dfdd2d62b422 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 25 Sep 2019 18:32:49 -0500 Subject: [PATCH] css: clean up various unnecessary css. --- app/javascript/src/styles/base/040_colors.css | 2 -- app/javascript/src/styles/specific/artists.scss | 15 ++------------- app/javascript/src/styles/specific/favorites.scss | 7 ------- .../src/styles/specific/post_flags.scss | 0 .../src/styles/specific/post_mode_menu.scss | 4 ---- .../src/styles/specific/post_versions.scss | 7 ------- .../src/styles/specific/saved_searches.scss | 7 ------- app/views/artists/_show.html.erb | 4 ++-- app/views/artists/_summary.html.erb | 2 +- app/views/post_versions/_revert_listing.html.erb | 2 +- .../post_versions/_standard_listing.html.erb | 2 +- 11 files changed, 7 insertions(+), 45 deletions(-) delete mode 100644 app/javascript/src/styles/specific/favorites.scss delete mode 100644 app/javascript/src/styles/specific/post_flags.scss delete mode 100644 app/javascript/src/styles/specific/post_versions.scss delete mode 100644 app/javascript/src/styles/specific/saved_searches.scss diff --git a/app/javascript/src/styles/base/040_colors.css b/app/javascript/src/styles/base/040_colors.css index 9f5a962f7..1615d3454 100644 --- a/app/javascript/src/styles/base/040_colors.css +++ b/app/javascript/src/styles/base/040_colors.css @@ -130,7 +130,6 @@ --fetch-source-data-border: 1px solid #666; - --post-mode-menu-view-background: white; --post-mode-menu-edit-background: #5C5; --post-mode-menu-tag-script-background: #D6D; --post-mode-menu-add-fav-background: #FFA; @@ -382,7 +381,6 @@ body[data-user-theme="dark"] { --post-artist-commentary-container-background: var(--grey-3); --post-artist-commentary-container-border: 1px solid var(--grey-3); - --post-mode-menu-view-background: var(--body-background-color); --post-mode-menu-edit-background: var(--green-0); --post-mode-menu-tag-script-background: var(--indigo-0); --post-mode-menu-add-fav-background: var(--yellow-0); diff --git a/app/javascript/src/styles/specific/artists.scss b/app/javascript/src/styles/specific/artists.scss index 1eb024ad2..6c0902074 100644 --- a/app/javascript/src/styles/specific/artists.scss +++ b/app/javascript/src/styles/specific/artists.scss @@ -1,21 +1,10 @@ -@import "../base/000_vars.scss"; - div#c-artists, div#excerpt { span.new-artist { font-weight: bold; color: var(--new-artist-color); } - ul ul { - margin-left: 1em; - } - - div.recent-posts { - margin-top: 1em; - - h1 { - font-size: $h2_size; - margin: 0; - } + .recent-posts h2 { + margin: 1em 0 0.5em; } } diff --git a/app/javascript/src/styles/specific/favorites.scss b/app/javascript/src/styles/specific/favorites.scss deleted file mode 100644 index 4305d1d05..000000000 --- a/app/javascript/src/styles/specific/favorites.scss +++ /dev/null @@ -1,7 +0,0 @@ -@import "../base/000_vars.scss"; - -div#c-favorites { - section#content > h1 { - font-size: $h3_size; - } -} diff --git a/app/javascript/src/styles/specific/post_flags.scss b/app/javascript/src/styles/specific/post_flags.scss deleted file mode 100644 index e69de29bb..000000000 diff --git a/app/javascript/src/styles/specific/post_mode_menu.scss b/app/javascript/src/styles/specific/post_mode_menu.scss index 1d3a7221e..1b42fd1af 100644 --- a/app/javascript/src/styles/specific/post_mode_menu.scss +++ b/app/javascript/src/styles/specific/post_mode_menu.scss @@ -1,7 +1,3 @@ -body.mode-view { - background-color: var(--post-mode-menu-view-background); -} - body.mode-edit { background-color: var(--post-mode-menu-edit-background); } diff --git a/app/javascript/src/styles/specific/post_versions.scss b/app/javascript/src/styles/specific/post_versions.scss deleted file mode 100644 index 6c4921734..000000000 --- a/app/javascript/src/styles/specific/post_versions.scss +++ /dev/null @@ -1,7 +0,0 @@ -div#c-post-versions { - div#a-index { - tr.hilite { - background: var(--table-row-hover-color); - } - } -} diff --git a/app/javascript/src/styles/specific/saved_searches.scss b/app/javascript/src/styles/specific/saved_searches.scss deleted file mode 100644 index 0cd98bc84..000000000 --- a/app/javascript/src/styles/specific/saved_searches.scss +++ /dev/null @@ -1,7 +0,0 @@ -#c-saved-searches { - #a-index { - table { - margin-bottom: 2em; - } - } -} \ No newline at end of file diff --git a/app/views/artists/_show.html.erb b/app/views/artists/_show.html.erb index 3eea838a5..225660b82 100644 --- a/app/views/artists/_show.html.erb +++ b/app/views/artists/_show.html.erb @@ -13,11 +13,11 @@ <%= yield %>
-

Recent Posts

+

Recent Posts

<%= render "posts/partials/common/inline_blacklist" %> -
+
<%= @post_set.presenter.post_previews_html(self) %>
diff --git a/app/views/artists/_summary.html.erb b/app/views/artists/_summary.html.erb index c0d531e65..d0c40d008 100644 --- a/app/views/artists/_summary.html.erb +++ b/app/views/artists/_summary.html.erb @@ -14,7 +14,7 @@ <% end %> <% if artist.domains.any? %>
  • Domains
  • -