Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug with long lines in the result page.

  • Loading branch information...
commit b79101d2f57e3031ef6e3d293b51eb63de99ad48 1 parent 39b182b
@nyumatova nyumatova authored
View
4 project/sass/partials/_base.sass
@@ -1,4 +1,4 @@
-$content-width: 700px
+$content-width: 750px
$footer-height: 68px
$color: #7B8184
@@ -84,9 +84,11 @@ strong
code
font-family: Menlo, Monaco, monospace
+ width: 600px
pre
display: inline
+ width: 600px
.subtitle
color: darken($color, 10%)
View
2  project/sass/partials/_header.sass
@@ -1,4 +1,4 @@
-$content-width: 700px
+$content-width: 750px
$color: #7B8184
$dark-color: #23272A
View
3  project/sass/partials/_results.sass
@@ -57,4 +57,7 @@ $default-text-shadow-blur: 0
color: $good-color
.first h3
margin-top: 0
+
+.clip
+ color: #000
View
23 project/static/css/screen.css
@@ -162,14 +162,16 @@ strong {
/* line 85, ../../sass/partials/_base.sass */
code {
font-family: Menlo, Monaco, monospace;
+ width: 600px;
}
-/* line 88, ../../sass/partials/_base.sass */
+/* line 89, ../../sass/partials/_base.sass */
pre {
display: inline;
+ width: 600px;
}
-/* line 91, ../../sass/partials/_base.sass */
+/* line 93, ../../sass/partials/_base.sass */
.subtitle {
color: #62676a;
font-size: 0.8em;
@@ -178,21 +180,21 @@ pre {
line-height: 1.1em;
}
-/* line 98, ../../sass/partials/_base.sass */
+/* line 100, ../../sass/partials/_base.sass */
.content-bg {
padding: 50px 0 60px;
}
-/* line 101, ../../sass/partials/_base.sass */
+/* line 103, ../../sass/partials/_base.sass */
.content-bg .content {
- width: 755px;
+ width: 805px;
margin: 0 auto;
}
-/* line 105, ../../sass/partials/_base.sass */
+/* line 107, ../../sass/partials/_base.sass */
.content-bg .content .title {
font-size: 1.5em;
text-align: center;
}
-/* line 109, ../../sass/partials/_base.sass */
+/* line 111, ../../sass/partials/_base.sass */
.content-bg .content .title h1 {
margin-bottom: 0.3em;
margin-top: 0;
@@ -363,6 +365,11 @@ pre {
margin-top: 0;
}
+/* line 61, ../../sass/partials/_results.sass */
+.clip {
+ color: black;
+}
+
/* line 14, ../../sass/partials/_footer.sass */
.footer-bg {
width: 100%;
@@ -401,7 +408,7 @@ pre {
/* line 23, ../../sass/partials/_header.sass */
.header-bg .header {
display: block;
- width: 700px;
+ width: 750px;
height: 67px;
margin: 0 auto;
padding-left: 55px;
View
4 project/templates/lint/tags/results_fix.html
@@ -3,14 +3,14 @@
{% for line in source_result %}
{% if forloop.first %}<ol class="fix" start="{{ line.number }}">{% endif %}
- <li{% if line.is_significant %} class="significant"{% endif %}><pre><code>{{ line.text }}</code></pre></li>
+ <li{% if line.is_significant %} class="significant"{% endif %}><pre><code>{{ line.text|slice:":90" }}{% if line.text|length > 90 %}<span class="clip">...</span>{% endif %}</code></pre></li>
{% if froloop.last %}</ol>{% endif %}
{% endfor %}
{% if fix.solution %}
{% for line in solution_result %}
{% if forloop.first %}<ol class="fix yes" start="{{ line.number }}">{% endif %}
- <li{% if line.is_significant %} class="significant"{% endif %}><pre><code>{{ line.text }}</code></pre></li>
+ <li{% if line.is_significant %} class="significant"{% endif %}><pre><code>{{ line.text|slice:":90" }}{% if line.text|length > 90 %}<span class="clip">...</span>{% endif %}</code></pre></li>
{% if froloop.last %}</ol>{% endif %}
{% endfor %}
{% endif %}
Please sign in to comment.
Something went wrong with that request. Please try again.