Permalink
Browse files

Styles, models

  • Loading branch information...
1 parent 038b1fd commit 3d5d38892695ec02e9beec474ceec181f30ed166 @piumosso piumosso committed Jul 31, 2011
@@ -208,6 +208,7 @@ def get_slug(self, anchors):
return anchors[0]
+
def prepare_section(self, section):
section.title = section.title.replace('', '')
section.content = section.content.replace('\n</pre>', '</pre>')
@@ -17,9 +17,9 @@ class Meta:
class Item(MPTTModel, models.Model):
- slug = models.SlugField('Slug', max_length=1000)
- path = models.CharField('Path in docs', max_length=1000)
- title = models.CharField('Title', max_length=1000)
+ slug = models.SlugField('Slug', max_length=500)
+ path = models.CharField('Path in docs', max_length=500)
+ title = models.CharField('Title', max_length=500)
content = models.TextField('Content')
parent = models.ForeignKey('self', null=True, blank=True, related_name='children', verbose_name=u'Parent')
version = models.ForeignKey(Version)
@@ -62,18 +62,25 @@ body {
* @subsection Link styles
*/
-a {
+.ie a,
+a[href] {
color: #0d35e1;
}
-a:visited {
+.ie a:visited,
+a[href]:visited {
color: #5517e0;
}
-a:active,
-a:hover {
+.ie a:active,
+a[href]:active,
+.ie a:hover,
+a[href]:hover {
color: #cf0202;
}
-.g-systemlink:visited,
-.g-systemlink:active,
-.g-systemlink:hover {
+.ie .g-systemlink:visited,
+.g-systemlink[href]:visited,
+.ie .g-systemlink:active,
+.g-systemlink[href]:active,
+.ie .g-systemlink:hover,
+.g-systemlink[href]:hover {
color: #0d35e1;
}
@@ -25,7 +25,7 @@
}
.b-results__nav {}
.b-results__item {
- min-height: 4em;
+ min-height: 3em;
margin: 0px 0px 2em -0.5em;
padding: 0.5em;
border-left: 2px solid white;
@@ -93,9 +93,7 @@
* @subsection Heghlight
*/
-.b-content .highlight-python,
-.b-content .highlight-html,
-.b-content .highlight {
+.b-content pre {
margin: -0.5em -0.5em 1.04em;
padding: 0.5em;
line-height: 1.42;
@@ -104,22 +102,10 @@
background: #f0f6dc;
overflow-x: auto;
}
-.b-content .highlight-html {
+.b-content .highlight-html pre {
background: #e2eef6;
}
-.b-content .highlight-python:hover,
-.b-content .highlight-html:hover,
-.b-content .highlight:hover {
- overflow-x: auto;
-}
-.b-content .highlight-python .highlight,
-.b-content .highlight-html .highlight {
- font-size: 100%;
- overflow: visible;
-}
-.m-search-focus .b-content .highlight-python,
-.m-search-focus .b-content .highlight-html,
-.m-search-focus .b-content .highlight {
+.m-search-focus .b-content pre {
background: #fffff0;
}

0 comments on commit 3d5d388

Please sign in to comment.