Scrollbars.

master
Nick Sergeant 2012-07-30 21:09:33 -04:00
parent 70f65d17d0
commit 5df9dd8bdc
4 changed files with 24 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -800,13 +800,25 @@ article.snipt {
border: none;
font: normal 12px/16px $Consolas;
margin: 0;
min-height: 173px;
overflow: auto;
min-height: 190px;
overflow-x: scroll;
padding: 5px;
white-space: pre;
word-wrap: normal;
width: 583px;
@include border-radius(0);
&::-webkit-scrollbar {
background: #F7F7F7;
height: 16px;
width: 16px;
-webkit-appearance: none;
}
&::-webkit-scrollbar-thumb {
border: 4px solid #F7F7F7;
border-radius: 16px;
background-color: #C7C7C7;
}
}
}
}
@ -1108,11 +1120,15 @@ article.snipt {
div.highlight {
pre {
padding-bottom: 51px !important;
margin-bottom: 46px !important;
}
}
div.markdown {
padding-bottom: 52px;
margin-bottom: 47px;
pre {
margin-bottom: 20px !important;
}
}
a.expand {
background-image: url('/static/images/collapse.png');

View File

@ -19,7 +19,7 @@
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/snipt.css?20" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/snipt.css?21" />
{% if has_snipts and not detail %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ request.path }}?rss{% if not public %}&api_key={{ request.user.api_key.key }}{% endif %}" />
@ -345,7 +345,7 @@
</div>
{% endblock %}
<script type="text/javascript" src="{{ STATIC_URL }}js/snipt.js?20"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/snipt.js?21"></script>
{% block extra-scripts %}{% endblock %}
{% block inline-js %}