Permalink
Browse files

add admin site theme

  • Loading branch information...
1 parent 15fb367 commit b9d1bd41e07924d04b9fb665da16ccec4834e1b1 David Xie committed May 20, 2010
Showing with 761 additions and 0 deletions.
  1. +121 −0 davidblog/static/admin/css/Copy of theme.css
  2. +21 −0 davidblog/static/admin/css/ie-sucks.css
  3. +68 −0 davidblog/static/admin/css/iepngfix.htc
  4. +379 −0 davidblog/static/admin/css/style.css
  5. +51 −0 davidblog/static/admin/css/switch.css
  6. +121 −0 davidblog/static/admin/css/theme.css
  7. BIN davidblog/static/admin/img/Thumbs.db
  8. BIN davidblog/static/admin/img/bg.jpg
  9. BIN davidblog/static/admin/img/bg_blue.jpg
  10. BIN davidblog/static/admin/img/bg_brown.jpg
  11. BIN davidblog/static/admin/img/bg_light_green.jpg
  12. BIN davidblog/static/admin/img/bg_menu_blue.jpg
  13. BIN davidblog/static/admin/img/bg_menu_green.jpg
  14. BIN davidblog/static/admin/img/bg_menu_mix.jpg
  15. BIN davidblog/static/admin/img/bg_menu_red.jpg
  16. BIN davidblog/static/admin/img/bg_mix.jpg
  17. BIN davidblog/static/admin/img/form_blue.gif
  18. BIN davidblog/static/admin/img/form_brown.gif
  19. BIN davidblog/static/admin/img/form_green.gif
  20. BIN davidblog/static/admin/img/form_mix.gif
  21. BIN davidblog/static/admin/img/form_red.gif
  22. BIN davidblog/static/admin/img/graph.jpg
  23. BIN davidblog/static/admin/img/graph2.jpg
  24. BIN davidblog/static/admin/img/icons/Thumbs.db
  25. BIN davidblog/static/admin/img/icons/add.png
  26. BIN davidblog/static/admin/img/icons/application_add.png
  27. BIN davidblog/static/admin/img/icons/arrow_down.png
  28. BIN davidblog/static/admin/img/icons/arrow_down_mini.gif
  29. BIN davidblog/static/admin/img/icons/arrow_left.gif
  30. BIN davidblog/static/admin/img/icons/arrow_right.gif
  31. BIN davidblog/static/admin/img/icons/brick.png
  32. BIN davidblog/static/admin/img/icons/brick_edit.png
  33. BIN davidblog/static/admin/img/icons/bricks.png
  34. BIN davidblog/static/admin/img/icons/bricks_gear.png
  35. BIN davidblog/static/admin/img/icons/car.png
  36. BIN davidblog/static/admin/img/icons/cart.png
  37. BIN davidblog/static/admin/img/icons/cart_add.png
  38. BIN davidblog/static/admin/img/icons/cog.png
  39. BIN davidblog/static/admin/img/icons/coins.png
  40. BIN davidblog/static/admin/img/icons/color_swatch.png
  41. BIN davidblog/static/admin/img/icons/expand.jpg
  42. BIN davidblog/static/admin/img/icons/feed.png
  43. BIN davidblog/static/admin/img/icons/folder.png
  44. BIN davidblog/static/admin/img/icons/folder_page.png
  45. BIN davidblog/static/admin/img/icons/folder_page_add.png
  46. BIN davidblog/static/admin/img/icons/folder_table.png
  47. BIN davidblog/static/admin/img/icons/group.png
  48. BIN davidblog/static/admin/img/icons/house.png
  49. BIN davidblog/static/admin/img/icons/magnifier.png
  50. BIN davidblog/static/admin/img/icons/page_add.png
  51. BIN davidblog/static/admin/img/icons/page_gear.png
  52. BIN davidblog/static/admin/img/icons/page_white_delete.png
  53. BIN davidblog/static/admin/img/icons/page_white_edit.png
  54. BIN davidblog/static/admin/img/icons/page_white_link.png
  55. BIN davidblog/static/admin/img/icons/page_white_text_width.png
  56. BIN davidblog/static/admin/img/icons/report.png
  57. BIN davidblog/static/admin/img/icons/report_link.png
  58. BIN davidblog/static/admin/img/icons/rss.png
  59. BIN davidblog/static/admin/img/icons/user.png
  60. BIN davidblog/static/admin/img/icons/user_add.png
  61. BIN davidblog/static/admin/img/icons/user_delete.png
  62. BIN davidblog/static/admin/img/icons/user_edit.png
  63. BIN davidblog/static/admin/img/icons/world.png
@@ -0,0 +1,121 @@
+body{
+ background:#f7f6f0 url(../img/bg.jpg) repeat-x top;
+ color: #202020;
+}
+a, a:visited{
+ color:#993300;
+}
+input{
+ border:1px solid #e8e7e1;
+}
+select{
+ border:1px solid #e8e7e1;
+}
+#header h2{
+ color:#FFF;
+}
+#content{
+ background:#FFF;
+}
+#sidebar{
+ background:#FFF;
+}
+#sidebar h3{
+ background:#f7f6f0;
+ border-bottom:1px solid #e8e7e1;
+}
+#topmenu a,#topmenu a:visited{
+ color:#f7f6f0;
+ background:#cc3300;
+}
+#topmenu a:hover{
+ color: #FFF;
+}
+#topmenu .current a, #topmenu .current a:hover, #topmenu .current a:visited{
+ color:#993400;
+ background: #FFF url(../img/bg_menu_red.jpg) repeat-x top;
+ border-left: #FFF 1px solid;
+ border-right: #FFF 1px solid;
+}
+#top-panel{
+ background:#FFF;
+}
+table{
+ background:none;
+}
+td, th{
+ border:1px solid #e8e7e1;
+}
+thead{
+ background:#f7f6f0;
+}
+#styleswitcher{
+ background:#FFFFFF;
+}
+#footer{
+ background:#FFF;
+}
+#box{
+ border:1px solid #e8e7e1;
+}
+#box h3{
+ background:#f7f6f0;
+ border-bottom:1px solid #e8e7e1;
+ color:#993300;
+}
+/***************
+ Forms
+***************/
+form#form fieldset {
+ border:1px solid #e8e7e1;
+}
+form#form legend {
+ border:1px solid #e8e7e1;
+ background:#fff url(../img/form_red.gif) repeat-x center left;
+ color:#993300;
+}
+form#form input {
+ border:1px solid #e8e7e1;
+ background:#fff url(../img/form_red.gif) repeat-x top left;
+}
+form#form textarea {
+ border:1px solid #e8e7e1;
+ background:#fff url(../img/form_red.gif) repeat-x bottom left;
+}
+form#form option {
+ background:#FFF;
+}
+form#form optgroup {
+ background:#e8e7e1;
+}
+form#form optgroup option {
+
+}
+form#form #button1, form#form #button2 {
+ color:#c00;
+}
+form#form #button1:hover, form#form #button2:hover {
+ color:#000;
+}
+/***************
+ Home
+***************/
+#infobox{
+ border:1px solid #e8e7e1;
+}
+#infobox h3{
+ background:#f7f6f0;
+ border-bottom:1px solid #e8e7e1;
+ color:#993300;
+}
+#rightnow {
+ border:1px solid #e8e7e1;
+}
+#rightnow .reallynow {
+ background:#f7f6f0;
+ color:#993300;
+}
+#rightnow h3{
+ background:#f7f6f0;
+ border-bottom:1px solid #e8e7e1;
+}
@@ -0,0 +1,21 @@
+#content{
+ width:740px;
+}
+#topmenu{
+ margin-top:26px;
+}
+#sidebar{
+ width:160px;
+}
+#sidebar ul{
+ width:150px;
+}
+#sidebar ul li ul{
+ width:140px;
+}
+#sidebar h3{
+ margin-bottom:5px;
+}
+#rightnow .reallynow a {
+ padding:0 0 0 10px;
+}
@@ -0,0 +1,68 @@
+<public:component>
+<public:attach event="onpropertychange" onevent="doFix()" />
+
+<script type="text/javascript">
+
+// IE5.5+ PNG Alpha Fix v1.0RC4
+// (c) 2004-2005 Angus Turnbull http://www.twinhelix.com
+
+// This is licensed under the CC-GNU LGPL, version 2.1 or later.
+// For details, see: http://creativecommons.org/licenses/LGPL/2.1/
+
+
+// This must be a path to a blank image. That's all the configuration you need.
+if (typeof blankImg == 'undefined') var blankImg = 'blank.gif';
+
+
+var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
+
+function filt(s, m)
+{
+ if (filters[f])
+ {
+ filters[f].enabled = s ? true : false;
+ if (s) with (filters[f]) { src = s; sizingMethod = m }
+ }
+ else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
+}
+
+function doFix()
+{
+ // Assume IE7 is OK.
+ if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent) ||
+ (event && !/(background|src)/.test(event.propertyName))) return;
+
+ var bgImg = currentStyle.backgroundImage || style.backgroundImage;
+
+ if (tagName == 'IMG')
+ {
+ if ((/\.png$/i).test(src))
+ {
+ if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
+ style.width = offsetWidth + 'px';
+ filt(src, 'scale');
+ src = blankImg;
+ }
+ else if (src.indexOf(blankImg) < 0) filt();
+ }
+ else if (bgImg && bgImg != 'none')
+ {
+ if (bgImg.match(/^url[("']+(.*\.png)[)"']+$/i))
+ {
+ var s = RegExp.$1;
+ if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
+ style.width = offsetWidth + 'px';
+ style.backgroundImage = 'none';
+ filt(s, 'crop');
+ // IE link fix.
+ for (var n = 0; n < childNodes.length; n++)
+ if (childNodes[n].style) childNodes[n].style.position = 'relative';
+ }
+ else filt();
+ }
+}
+
+doFix();
+
+</script>
+</public:component>
Oops, something went wrong.

0 comments on commit b9d1bd4

Please sign in to comment.