mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-23 11:56:36 +11:00
Chrome and Windows Fixes
This commit is contained in:
parent
38e3c0dd79
commit
14509d9fee
6 changed files with 9 additions and 11 deletions
|
@ -9,6 +9,8 @@
|
|||
.snippet-form {
|
||||
background-color: $bgColor;
|
||||
|
||||
label { display: none; }
|
||||
|
||||
select {
|
||||
-moz-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
|
@ -52,8 +54,6 @@
|
|||
align-items: center;
|
||||
border-bottom: 1px solid $borderColor;
|
||||
|
||||
label { display: none; }
|
||||
|
||||
.action {
|
||||
margin-left: auto;
|
||||
|
||||
|
@ -67,8 +67,6 @@
|
|||
.content {
|
||||
padding: 20px $boxPadding;
|
||||
|
||||
label { display: none; }
|
||||
|
||||
textarea {
|
||||
padding: 20px;
|
||||
@include codeTextArea;
|
||||
|
|
|
@ -55,9 +55,9 @@ $burgerBtnBorderColor: #575757;
|
|||
/* -----------------------------------------------------------------------------
|
||||
Fonts
|
||||
----------------------------------------------------------------------------- */
|
||||
$baseFont: "Avenir Next";
|
||||
$baseFont: "Avenir Next", "Helvetica Neue", Helvetica, Arial;
|
||||
$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;
|
||||
$baseFontRegular: 400;
|
||||
|
|
|
@ -129,7 +129,7 @@ LEXER_DEFAULT = getattr(settings, 'DPASTE_LEXER_DEFAULT', 'python')
|
|||
|
||||
# Lexers which have wordwrap enabled by default
|
||||
LEXER_WORDWRAP = getattr(settings, 'DPASTE_LEXER_WORDWRAP',
|
||||
('_text', 'rst')
|
||||
('rst')
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if snippet.lexer == 'text' %}
|
||||
{% if snippet.lexer == '_text' %}
|
||||
<div class="snippet-text">{% include "dpaste/highlight/text.html" %}</div>
|
||||
{% else %}
|
||||
<div class="snippet-code">{% include "dpaste/highlight/code.html" %}</div>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
{% blocktrans with snippet.published|timesince as since %}{{ since }} ago{% endblocktrans %}
|
||||
</h3>
|
||||
|
||||
{% if snippet.lexer == 'text' %}
|
||||
{% if snippet.lexer == '_text' %}
|
||||
<div class="snippet-text">{% include "dpaste/highlight/text.html" %}</div>
|
||||
{% else %}
|
||||
<div class="snippet-code">{% include "dpaste/highlight/code.html" %}</div>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{{ form.non_field_errors }}
|
||||
|
||||
|
||||
<fieldset class="options">
|
||||
<div class="options">
|
||||
<p style="display: none;">{{ form.title }}</p> {# Honeypot field #}
|
||||
|
||||
<p class="options-lexer">
|
||||
|
@ -26,7 +26,7 @@
|
|||
<span class="platform-win">{% trans "Ctrl+⏎" %}</span>
|
||||
</button>
|
||||
</p>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<p class="content superenter {% if not object %}autofocus{% endif %} {% if form.content.errors %}error{% endif %}">
|
||||
<label for="{{ form.content.auto_id }}">{% trans "Content" %}</label>
|
||||
|
|
Loading…
Reference in a new issue