Some FF bug fixes

master
Nick Sergeant 2011-12-26 21:52:17 -05:00
parent 2754f48d40
commit 4c476a8604
3 changed files with 10 additions and 15 deletions

View File

@ -1,16 +1,6 @@
// Fonts // Fonts
@Helvetica: 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif; @Helvetica: 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif;
@Inconsolata: 'InconsolataMedium', Consolas, Menlo, "Courier New", monospace; @Consolas: Consolas, Menlo, "Courier New", monospace;
@font-face {
font-family: 'InconsolataMedium';
src: url('/media/fonts/Inconsolata-webfont.eot');
src: url('/media/fonts/Inconsolata-webfont.eot?#iefix') format('embedded-opentype'),
url('/media/fonts/Inconsolata-webfont.woff') format('woff'),
url('/media/fonts/Inconsolata-webfont.ttf') format('truetype'),
url('/media/fonts/Inconsolata-webfont.svg#InconsolataMedium') format('svg');
font-weight: normal;
font-style: normal;
}
// Mixins // Mixins
.border-radius(@radius: 5px) { .border-radius(@radius: 5px) {
@ -213,12 +203,12 @@ header.sub {
a { a {
color: #999999; color: #999999;
font: bold 14px @Inconsolata; font: bold 12px/16px @Consolas;
text-shadow: 0 1px 0 #FFF; text-shadow: 0 1px 0 #FFF;
} }
&.prompt { &.prompt {
color: #999999; color: #999999;
font: bold 14px @Inconsolata; font: bold 12px/16px @Consolas;
margin-right: 3px; margin-right: 3px;
text-shadow: 0 1px 0 #FFF; text-shadow: 0 1px 0 #FFF;
} }
@ -425,7 +415,7 @@ article.snipt {
pre { pre {
background: transparent; background: transparent;
border: none; border: none;
font: normal 14px/18px @Inconsolata; font: normal 12px/16px @Consolas;
font-weight: normal !important; font-weight: normal !important;
overflow-x: auto; overflow-x: auto;
margin: 0 15px; margin: 0 15px;
@ -459,6 +449,9 @@ article.snipt {
color: #3BAAF3; color: #3BAAF3;
font-weight: bold; font-weight: bold;
} }
&:focus {
outline: none;
}
} }
div.raw { div.raw {
display: none; display: none;

View File

@ -215,6 +215,8 @@ ABSOLUTE_URL_OVERRIDES = {
#) #)
#} #}
COMPRESS_CSS = True
# Extensions # Extensions
if DEBUG: if DEBUG:
INSTALLED_APPS += ('django_extensions',) INSTALLED_APPS += ('django_extensions',)

View File

@ -10,7 +10,7 @@
</header> </header>
<section class="code {% if request.GET.style %}{{ request.GET.style }}{% else %}autumn{% endif %}"> <section class="code {% if request.GET.style %}{{ request.GET.style }}{% else %}autumn{% endif %}">
{{ snipt.get_stylized|safe }} {{ snipt.get_stylized|safe }}
{% if snipt.get_line_count > 9 %} {% if snipt.get_line_count > 8 %}
<a href="#" class="expand"> <a href="#" class="expand">
<span class="expand">Expand</span> <span class="expand">Expand</span>
<span class="collapse">Collapse</span> <span class="collapse">Collapse</span>