Chrome and Windows Fixes

This commit is contained in:
Martin Mahner 2018-03-24 10:14:17 +01:00
parent 38e3c0dd79
commit 14509d9fee
6 changed files with 9 additions and 11 deletions

View file

@ -9,6 +9,8 @@
.snippet-form { .snippet-form {
background-color: $bgColor; background-color: $bgColor;
label { display: none; }
select { select {
-moz-appearance: none; -moz-appearance: none;
-webkit-appearance: none; -webkit-appearance: none;
@ -52,8 +54,6 @@
align-items: center; align-items: center;
border-bottom: 1px solid $borderColor; border-bottom: 1px solid $borderColor;
label { display: none; }
.action { .action {
margin-left: auto; margin-left: auto;
@ -67,8 +67,6 @@
.content { .content {
padding: 20px $boxPadding; padding: 20px $boxPadding;
label { display: none; }
textarea { textarea {
padding: 20px; padding: 20px;
@include codeTextArea; @include codeTextArea;

View file

@ -55,9 +55,9 @@ $burgerBtnBorderColor: #575757;
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
Fonts Fonts
----------------------------------------------------------------------------- */ ----------------------------------------------------------------------------- */
$baseFont: "Avenir Next"; $baseFont: "Avenir Next", "Helvetica Neue", Helvetica, Arial;
$codeFont: "SF Mono", "Fira Mono", Monaco, Menlo, Consolas, monospace; $codeFont: "SF Mono", "Fira Mono", Monaco, Menlo, Consolas, monospace;
$textFont: "Apple SD Gothic Neo"; $textFont: "Apple SD Gothic Neo", "Helvetica Neue", Helvetica, Arial;
$baseFontLight: 300; $baseFontLight: 300;
$baseFontRegular: 400; $baseFontRegular: 400;

View file

@ -129,7 +129,7 @@ LEXER_DEFAULT = getattr(settings, 'DPASTE_LEXER_DEFAULT', 'python')
# Lexers which have wordwrap enabled by default # Lexers which have wordwrap enabled by default
LEXER_WORDWRAP = getattr(settings, 'DPASTE_LEXER_WORDWRAP', LEXER_WORDWRAP = getattr(settings, 'DPASTE_LEXER_WORDWRAP',
('_text', 'rst') ('rst')
) )

View file

@ -69,7 +69,7 @@
</p> </p>
{% endif %} {% endif %}
{% if snippet.lexer == 'text' %} {% if snippet.lexer == '_text' %}
<div class="snippet-text">{% include "dpaste/highlight/text.html" %}</div> <div class="snippet-text">{% include "dpaste/highlight/text.html" %}</div>
{% else %} {% else %}
<div class="snippet-code">{% include "dpaste/highlight/code.html" %}</div> <div class="snippet-code">{% include "dpaste/highlight/code.html" %}</div>

View file

@ -33,7 +33,7 @@
{% blocktrans with snippet.published|timesince as since %}{{ since }} ago{% endblocktrans %} {% blocktrans with snippet.published|timesince as since %}{{ since }} ago{% endblocktrans %}
</h3> </h3>
{% if snippet.lexer == 'text' %} {% if snippet.lexer == '_text' %}
<div class="snippet-text">{% include "dpaste/highlight/text.html" %}</div> <div class="snippet-text">{% include "dpaste/highlight/text.html" %}</div>
{% else %} {% else %}
<div class="snippet-code">{% include "dpaste/highlight/code.html" %}</div> <div class="snippet-code">{% include "dpaste/highlight/code.html" %}</div>

View file

@ -5,7 +5,7 @@
{{ form.non_field_errors }} {{ form.non_field_errors }}
<fieldset class="options"> <div class="options">
<p style="display: none;">{{ form.title }}</p> {# Honeypot field #} <p style="display: none;">{{ form.title }}</p> {# Honeypot field #}
<p class="options-lexer"> <p class="options-lexer">
@ -26,7 +26,7 @@
<span class="platform-win">{% trans "Ctrl+&#9166;" %}</span> <span class="platform-win">{% trans "Ctrl+&#9166;" %}</span>
</button> </button>
</p> </p>
</fieldset> </div>
<p class="content superenter {% if not object %}autofocus{% endif %} {% if form.content.errors %}error{% endif %}"> <p class="content superenter {% if not object %}autofocus{% endif %} {% if form.content.errors %}error{% endif %}">
<label for="{{ form.content.auto_id }}">{% trans "Content" %}</label> <label for="{{ form.content.auto_id }}">{% trans "Content" %}</label>