Browse Source

Issue #69: Added styles for codebox

main
Lakshmi Vyasarajan 13 years ago
parent
commit
421ba7c874
3 changed files with 30 additions and 3 deletions
  1. +2
    -1
      CHANGELOG.rst
  2. +27
    -0
      hyde/layouts/basic/content/media/css/site.css
  3. +1
    -2
      hyde/tests/test_jinja2template.py

+ 2
- 1
CHANGELOG.rst View File

@@ -1,7 +1,8 @@
Version 0.8.4c22
============================================================

* Configuration now gets reloaded when server regenerates (Issue #70)
* Bug Fix: Configuration now gets reloaded when server regenerates (Issue #70)
* Bug Fix: Added styles for codebox (Issue #69)

Version 0.8.4c21
============================================================


+ 27
- 0
hyde/layouts/basic/content/media/css/site.css View File

@@ -442,3 +442,30 @@ a.backlink:hover, a.prev:hover, a.next:hover{
float: right;
margin-bottom:0;
}


.codebox {
margin-top: 8px;
margin-bottom: 12px;
}
.code {
position: relative;
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
-o-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
background-color: #F0F3F3;
}
.code figcaption {
font-size: 10px;
position: absolute;
bottom: 3px;
right: 12px;
color: rgba(0, 0, 0, 0.5);
}
.highlight pre {
font-size: 12px;
padding: 16px 12px 12px;
line-height: 24px;
margin-bottom: 8px;
}

+ 1
- 2
hyde/tests/test_jinja2template.py View File

@@ -781,5 +781,4 @@ item_list:
t = Jinja2Template(JINJA2.path)
t.configure(None)
html = t.render(text, {}).strip()
assert html.strip() == expected.strip()

assert html.strip() == expected.strip()

Loading…
Cancel
Save