css: remove unused or redundant rules.

This commit is contained in:
evazion
2018-09-14 10:00:23 -05:00
parent 0aecc9d34c
commit bbb233b93f
17 changed files with 2 additions and 126 deletions

View File

@@ -1,7 +1,6 @@
$menu_color: #F5F5FF; $menu_color: #F5F5FF;
$link_color: hsl(213, 100%, 50%); $link_color: hsl(213, 100%, 50%);
$link_hover_color: lighten($link_color, 25%); $link_hover_color: lighten($link_color, 25%);
$link_dark_color: darken($link_color, 25%);
$highlight_color: lighten($link_color, 45%); $highlight_color: lighten($link_color, 45%);
$h1_size: 2em; $h1_size: 2em;
$h2_size: 1.5em; $h2_size: 1.5em;
@@ -17,8 +16,6 @@ $h1_padding: 0.8em 0 0.25em 0;
$h2_padding: 0.8em 0 0.25em 0; $h2_padding: 0.8em 0 0.25em 0;
$h3_padding: 0.8em 0 0.25em 0; $h3_padding: 0.8em 0 0.25em 0;
$h4_padding: 0.8em 0 0.25em 0; $h4_padding: 0.8em 0 0.25em 0;
$baseline: 1em;
$basefont: 100%;
$base_font_family: Verdana, Helvetica, sans-serif; $base_font_family: Verdana, Helvetica, sans-serif;
$preview_has_children_color: #0F0; $preview_has_children_color: #0F0;
$preview_has_parent_color: #CC0; $preview_has_parent_color: #CC0;

View File

@@ -3,16 +3,10 @@
body { body {
background-color: #FFF; background-color: #FFF;
font-family: $base_font_family; font-family: $base_font_family;
padding: 0;
margin: 0;
font-size: 87.5%; font-size: 87.5%;
line-height: 1.25em; line-height: 1.25em;
} }
article, section {
display: block;
}
abbr[title=required] { abbr[title=required] {
display: none; display: none;
} }
@@ -37,13 +31,8 @@ dt {
font-weight: bold; font-weight: bold;
} }
em {
font-style: italic;
}
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-family: Tahoma, Verdana, Helvetica, sans-serif; font-family: Tahoma, Verdana, Helvetica, sans-serif;
font-weight: bold;
line-height: 1.5em; line-height: 1.5em;
} }
@@ -56,7 +45,6 @@ h2 {
} }
h3, h4, h5, h6 { h3, h4, h5, h6 {
font-weight: bold;
font-size: $h3_size; font-size: $h3_size;
} }
@@ -67,7 +55,6 @@ fieldset {
header { header {
margin: 0 0 1em 0; margin: 0 0 1em 0;
padding: 0; padding: 0;
display: block;
} }
img { img {
@@ -75,16 +62,6 @@ img {
vertical-align: middle; vertical-align: middle;
} }
img.wait {
margin-left: 5px;
}
legend {
font-size: $h2_size;
font-weight: bold;
margin-bottom: 0.5em;
}
menu { menu {
margin: 0; margin: 0;
padding: 0; padding: 0;
@@ -106,14 +83,6 @@ p {
margin-bottom: 1em; margin-bottom: 1em;
} }
section {
display: block;
}
strong {
font-weight: bold;
}
table tfoot { table tfoot {
margin-top: 2em; margin-top: 2em;
} }

View File

@@ -11,18 +11,11 @@ span.link {
cursor: pointer; cursor: pointer;
} }
span.wait {
color: #CCC;
}
span.count { span.count {
color: #CCC; color: #CCC;
margin-left: 0.5em; margin-left: 0.5em;
} }
span.edit-options {
}
kbd.key { kbd.key {
background: #333; background: #333;
border: 1px solid #333; border: 1px solid #333;

View File

@@ -28,7 +28,6 @@ div#page {
h1 { h1 {
font-size: $h2_size; font-size: $h2_size;
font-weight: bold;
} }
p { p {

View File

@@ -49,11 +49,3 @@
} }
} }
} }
.split-inline-tag-list {
@extend .inline-tag-list;
ul {
display: block;
}
}

View File

@@ -6,21 +6,10 @@ div#c-artists, div#excerpt {
color: #A00; color: #A00;
} }
div#a-banned {
}
ul ul { ul ul {
margin-left: 1em; margin-left: 1em;
} }
div#a-show {
p.legend {
margin-bottom: 2em;
font-size: 0.8em;
font-style: italic;
}
}
div#a-edit, div#a-new { div#a-edit, div#a-new {
textarea { textarea {
height: 10em; height: 10em;

View File

@@ -63,12 +63,6 @@ div.list-of-forum-posts {
} }
div#c-forum-topics { div#c-forum-topics {
div.single-forum-post {
}
div#a-show {
}
span.info { span.info {
color: #AAA; color: #AAA;
} }

View File

@@ -1,5 +0,0 @@
div#c-post-appeals {
li {
list-style-type: disc;
}
}

View File

@@ -1,8 +1,4 @@
div#c-post-flags { div#c-post-flags {
li {
list-style-type: disc;
}
tr.resolved-true { tr.resolved-true {
background: #DDD !important; background: #DDD !important;
} }

View File

@@ -18,18 +18,6 @@ body.mode-remove-fav {
background-color: #FFA; background-color: #FFA;
} }
body.mode-rating-s {
background-color: #6F6;
}
body.mode-rating-q {
background-color: #AAA;
}
body.mode-rating-e {
background-color: #F66;
}
body.mode-vote-up { body.mode-vote-up {
background-color: #AFA; background-color: #AFA;
} }
@@ -50,14 +38,6 @@ body.mode-approve {
background-color: #48C; background-color: #48C;
} }
body.mode-unapprove {
background-color: #F66;
}
body.mode-add-to-pool {
background-color: #26A;
}
body.mode-translation { body.mode-translation {
background-color: #5CD; background-color: #5CD;
} }

View File

@@ -44,12 +44,6 @@ article.post-preview {
margin-top: 1em; margin-top: 1em;
} }
#image-container p.desc {
font-size: 80%;
color: grey;
font-style: italic;
}
#open-edit-dialog { #open-edit-dialog {
padding: 0; padding: 0;
} }

View File

@@ -4,16 +4,11 @@ div#c-static {
div#a-site-map { div#a-site-map {
width: 80em; width: 80em;
h1 {
display: none;
}
section { section {
width: 20em; width: 20em;
float: left; float: left;
h1 { h1 {
display: block;
font-size: $h3_size; font-size: $h3_size;
} }

View File

@@ -71,19 +71,7 @@ div#c-users {
p { p {
font-size: 1.2em; font-size: 1.2em;
margin-bottom: 1em;
line-height: 1.4em; line-height: 1.4em;
} }
footer.nav-links {
font-size: 1.4545em;
font-weight: bold;
text-align: center;
display: block;
}
div#p2 ul {
margin-bottom: 2em;
}
} }
} }

View File

@@ -1,6 +1,6 @@
class PostPresenter < Presenter class PostPresenter < Presenter
attr_reader :pool, :next_post_in_pool attr_reader :pool, :next_post_in_pool
delegate :tag_list_html, :split_tag_list_html, :inline_tag_list_html, :split_inline_tag_list_html, to: :tag_set_presenter delegate :tag_list_html, :split_tag_list_html, :inline_tag_list_html, to: :tag_set_presenter
def self.preview(post, options = {}) def self.preview(post, options = {})
if post.nil? if post.nil?

View File

@@ -46,10 +46,6 @@ class TagSetPresenter < Presenter
template.tag.span(html, class: classes) template.tag.span(html, class: classes)
end end
def split_inline_tag_list_html(template, **options)
inline_tag_list_html(template, classes: "split-inline-tag-list", **options)
end
private private
def typed_tags(name) def typed_tags(name)

View File

@@ -1,6 +1,5 @@
<div id="c-static"> <div id="c-static">
<div id="a-site-map"> <div id="a-site-map">
<h1><%= Danbooru.config.app_name %></h1>
<section> <section>
<ul> <ul>
<li><h1>Posts</h1></li> <li><h1>Posts</h1></li>