diff --git a/README.md b/README.md new file mode 100644 index 0000000..e41ed65 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Chunk for Pelican +This is a "faithful as possible" translation of Chunk-wpcom v1.0 for Pelican 3. My goal is to make it near indistinguishable from the original. + +For enhancements, bug tracking, and requests please check my fork +https://github.com/tbunnyman/pelican-chunk + +## Settings used by this theme (All Optional) +* `SINGLE_AUTHOR = True/False` +* `MINT = True/False` +* `GOOGLE_ANALYTICS = 'Put your google code here'` +* `SITESUBTITLE = 'String'` +* `FOOTER_TEXT = 'Replace pelican credit'` +* `DISPLAY_CATEGORIES_ON_MENU = True/False` +* `LINKS = (('Site', 'http://url.com'), ('Site 2', 'http://another.url.com'))` + +## Authors +* [Tran (thisistran) on Twitter](http://twitter.com/#!/thisistran) (Original Wordpress) +* [tBunnyMan](http://bunnyman.info) (Pelican v1.0) + +## Licence +Modified and released under the GNU General Public License, full details in `LICENSE.txt` file. \ No newline at end of file diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..5fbe4a7 --- /dev/null +++ b/license.txt @@ -0,0 +1,281 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110, USA + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..d22e714 Binary files /dev/null and b/screenshot.png differ diff --git a/static/css/rtl.css b/static/css/rtl.css new file mode 100644 index 0000000..3ef0087 --- /dev/null +++ b/static/css/rtl.css @@ -0,0 +1,119 @@ +/* =RTL +----------------------------------------------- */ +#contents { + border-left: none; + border-right: 1px solid #ccc; + margin-left: 0; + margin-right: 199px; +} + + +/* =Menu +----------------------------------------------- */ +#menu { + text-align: left; +} +#menu ul { + padding-right: 0; +} +#menu li { + float: left; +} +#menu ul ul { + float: left; + position: absolute; + left: 0; + right: auto; +} +#menu ul ul ul { + left: 100%; + right: auto; +} +#menu ul ul a { + padding: .8em 1em .8em .5em; +} + +/* =Content +----------------------------------------------- */ +.hentry .main { + padding: 29px 15px 15px 5px; + text-align: right; +} +.hentry .entry-meta { + float: right; + margin: 26px -199px 0 0; + text-align: left; +} +.entry-title { + margin: 5px 0px 15px 0px; + text-align: right; +} +blockquote { + border-left: none; + border-right: 10px solid #36bcab; + text-align: justify; +} +.tag-links strong { + margin-left: 4px; + margin-right: none; +} +.entry-content table { + text-align: right; +} + + +/* =Post Formats +-------------------------------------------------------------- */ + +/* Link */ +.format-link .entry-title:after { + padding-right: 10px; +} + + +/* =Comments +----------------------------------------------- */ +#comments { + text-align: right; +} +.commentlist { + margin-left: 0; + margin-right: 40px; + padding-right: 0; +} +.commentlist li { + padding-left: 10px; + padding-right: 10px; +} +.comment .comment-meta { + left: 0; + right: auto; +} +.comment img.avatar { + left: auto; + right: -40px; +} +#comments .bypostauthor > .comment-body .comment-meta { + left: 15px; + right: auto; +} + + +/* =Widgets +----------------------------------------------- */ +#widgets { + text-align: right; +} +#widgets .widget { + float: right; +} +#widgets .widget:nth-child(3n+1) { + clear: right; +} +.widget ul { + padding-right: 20px; +} +/* Authors Widget */ +.widget_authors ul { + padding-right: 0; +} \ No newline at end of file diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..202eb73 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,818 @@ +/* +Theme Name: Chunk +Theme URI: http://theme.wordpress.com/themes/chunk/ +Author: Automattic +Author URI: http://automattic.com +Description: A straightforward theme with bold typography designed by Tran N. Featuring multiple post formats, custom background, custom menu, and custom header. Also comes with an optional footer widget area. +Version: 1.0-wpcom +License: GNU General Public License +License URI: license.txt +Tags: light, white, fixed-width, one-column, custom-background, custom-header, custom-menu, post-formats, rtl-language-support, sticky-post, translation-ready, art, blog, cartoon, holiday, journal, lifestream, photography, tumblelog, bright, clean, contemporary, flamboyant, modern +*/ + +/* =Base +----------------------------------------------- */ +body { + background-color: #fff; + background-image: -moz-linear-gradient( rgba(0,0,0,0.22), rgba(255,255,255,0) 80px ); + background-image: -webkit-linear-gradient( rgba(0,0,0,0.22), rgba(255,255,255,0) 80px ); + color: #555; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-size: 13px; + margin: 0; + text-align: center; +} +#container { + height: auto; + margin: 0 auto; + width: 800px; +} +#header { + min-height: 180px; + padding-top: 70px; + width: 800px; +} +#contents { + border-left: 1px solid #ccc; + height: auto; + margin-left: 199px; + padding-bottom: 10px; +} + + +/* =Header +----------------------------------------------- */ +#site-title { + color: #000; + font-family: 'Oswald', Helvetica, Arial, sans-serif; + font-weight: bold; + font-size: 80px; + margin: 0px; + text-transform: uppercase; + text-rendering: optimizeLegibility; +} +#site-title a { + color: #000; + letter-spacing: 1px; + text-decoration: none; +} +#site-title a:hover { + color: #36bcab; +} +#site-description { + background: #f1f1f1; + background-image: -webkit-linear-gradient( #f8f8f8, #eee); + background-image: -moz-linear-gradient( #f8f8f8, #eee); + border-radius: 3px; + color: #666; + display: inline-block; + font-size: 14px; + font-weight: 300; + margin-top: 0; + margin-bottom: 50px; + padding: 6px 10px; +} +#menu #header-image a { + margin: 0; + padding: 0; +} + +/* =Menu +----------------------------------------------- */ +#menu { + border-bottom: 1px solid #ddd; + border-top: 1px solid #ddd; + margin-bottom: 25px; + padding: 10px; + text-align: right; + width: 800px; +} +#menu img { + margin-bottom: 10px; +} +#menu a { + color: #666; + font-family: 'Oswald', Helvetica, Arial, sans-serif; + font-size: 18px; + margin: 0 10px; + padding: 4px 0; + text-decoration: none; + text-transform: uppercase; +} +#menu a:hover { + color: #000; +} +#menu ul { + list-style: none; + margin: 0; + padding-left: 0; +} +#menu li { + float: right; + position: relative; +} +#access a { + color: #888; + display: block; + + text-decoration: none; +} +#menu ul ul { + display: none; + float: right; + position: absolute; + right: 0; + top: 2em; + z-index: 99999; +} +#menu ul ul ul { + right: 100%; + top: 0; +} +#menu ul ul a { + background: #e9e9e9; + border-bottom: 1px solid #e1e1e1; + display: block; + font-size: 14px; + height: auto; + line-height: 1em; + margin: 0; + padding: .8em .5em .8em 1em; + width: 130px; +} +#menu ul ul li:last-of-type a { + border-bottom: none; +} +#menu li:hover > a, +#menu ul ul :hover > a { + color: #444; +} +#menu ul ul a:hover { + background: #f0f0f0; +} +#menu ul li:hover > ul { + display: block; +} +#menu ul li.current_page_item > a, +#menu ul li.current_page_ancestor > a, +#menu ul li.current-menu-item > a { + color: #111; +} +#menu ul:after { + clear: both; + content: ' '; + display: block; +} + +/* =Content +----------------------------------------------- */ +.hentry { + height: auto; + clear: both; + position: relative; +} +.hentry:after { + clear: both; + content: "."; + display: block; + height: 0; + visibility: hidden; +} +.hentry .main { + border-bottom: 1px dashed #ddd; + float: left; + line-height: 175%; + padding: 29px 5px 15px 15px; + text-align: left; + width: 580px; +} +.hentry .entry-meta { + font-family: 'Oswald', Helvetica, Arial, sans-serif; + font-size: 25px; + float: left; + margin: 35px 0 0 -199px; + padding: 0px; + text-align: right; + text-transform: uppercase; + width: 190px; +} +.hentry .entry-meta a { + text-decoration: none; +} +.hentry .entry-meta div { + margin: 10px; +} +.hentry .entry-meta .date { + color: #000; + font-weight: bold; + margin: 0px; +} +.hentry .entry-meta .comments { + color: #36bcab; + display: block; + font-size: 16px; + margin: -4px 0 0; +} +.hentry .entry-meta .comments a { + color: #36bcab; + font-size: 22px; + font-weight: bold; + text-decoration: none; +} +.hentry .entry-meta .cat-links { + color: #aaa; + font-size: 16px; + line-height: 20px; + margin-top: 10px; +} +.hentry .entry-meta .cat-links a { + color: #777; +} +.hentry .entry-meta .cat-links a:hover { + color: #36bcab; +} +.hentry .entry-meta .edit-link a { + font-size: 16px; +} +.hentry div.margin { + margin: 10px; +} +.entry-title { + color: #666; + font-family: 'Oswald', Helvetica, Arial, sans-serif; + font-size: 25px; + line-height: 38px; + margin: 5px 0px 15px 0px; + text-align: left; + text-decoration: none; + text-transform: uppercase; +} +.entry-title a { + color: #666; + text-decoration: none; +} +.entry-meta .byline { + color: #aaa; + font-size: 16px; + line-height: 20px; + margin-top: 10px; +} +.entry-meta .byline a { + color: #777; +} +.single-author .entry-meta .byline { + display: none; +} +blockquote { + background: #eee; + border-left: 10px solid #36bcab; + color: #000; + font-family: Georgia, Arial, Helvetica, sans-serif; + font-size: 15px; + padding: 10px; + text-align: justify; +} +a { + color: #000; + text-decoration: underline; +} +a:hover { + color: #36bcab; +} +.entry-content a img { + border: 10px solid #ddd; +} +.entry-content a:hover img { + border: 10px solid #000; +} +b, strong { + color: #000; +} +.cat-links, +.tag-links { + display: block; +} +.tag-links strong { + background: #eee; + border-radius: 3px; + color: #666; + font-weight: normal; + margin-right: 4px; + padding: 3px 6px; +} +.entry-content table { + margin: 0 0 20px 0; + text-align: left; + width: 100%; +} +.entry-content tr th, +.entry-content thead th { + color: #888; + font-weight: normal; + line-height: 20px; + padding: 9px 24px; +} +.entry-content tr td { + padding: 6px 24px; +} +.entry-content tr.alternate td { + background: #f5f5f5; +} +.page-link a { + background: #36bcab; + border-radius: 26px; + color: #000; + font-weight: normal; + display: inline-block; + line-height: 26px; + margin: 0 0 1em; + text-align: center; + text-decoration: none; + width: 26px; +} +.page-link a:hover { + color: #fff; + text-decoration: none; +} +.page-title h2 { + background: #333; + border-radius: 3px; + color: #eee; + display: inline-block; + font-weight: normal; + margin: 0 0 20px; + padding: 3px 14px; +} +.navigation { + margin: 10px 0; +} +.navigation div { + display: inline; + margin: 0 5px; +} + +/* Alignment */ +.alignleft { + display: inline; + float: left; +} +.alignright { + display: inline; + float: right; +} +.aligncenter { + clear: both; + display: block; + margin-left: auto; + margin-right: auto; +} + +/* General */ +ol ol { + list-style: upper-alpha; +} +ol ol ol { + list-style: lower-roman; +} +ul ul, ol ol, ul ol, ol ul { + margin-bottom: 0; +} + +/* Sticky */ +.sticky .main { + background: #eee; +} +.sticky .date { + display: none; +} +.sticky .entry-meta .comments { + margin-top: 2px; +} + +/* Page */ +.page .entry-meta .comments { + margin-top: 2px; +} + + +/* =Post Formats +-------------------------------------------------------------- */ + +/* Aside */ +.format-aside .entry-title { + display: none; +} +.format-aside .entry-content p:first-child { + margin-top: 0; +} +/* Link */ +.format-link .entry-title:after { + content: "\2192"; + font-size: 26px; + padding-left: 10px; + text-decoration: none; +} +/* Quote */ +.format-quote blockquote { + font-size: 16px; +} +.format-quote blockquote p:last-child { + margin-bottom: 0; +} +/* Chat */ +.format-chat .entry-title { + display: none; +} +.format-chat .entry-content p { + margin: 0.5em 0; +} +.format-chat .entry-content p:nth-child(odd) { + font-weight: bold; +} + + +/* =Images +-------------------------------------------------------------- */ +a img { + border: none; +} +p img { + margin-bottom: 0.5em; /* a small bottom margin prevents content floating under images */ +} +/* +Resize images to fit the main content area. +- Applies only to images uploaded via WordPress by targeting size-* classes. +- Other images will be left alone. Use "size-auto" class to apply to other images. +*/ +img.size-auto, +img.size-full, +img.size-large, +img.size-medium, +.attachment img, +.widget-area img { + max-width: 100%; /* When images are too wide for containing element, force them to fit. */ + height: auto; /* Override height to match resized width for correct aspect ratio. */ +} +img.alignleft { + margin-right: 1em; +} +img.alignright { + margin-left: 1em; +} +.wp-caption { + background: #eee; + border-radius: 3px; + margin-bottom: 10px; + max-width: 100%; + padding: .8em; + text-align: center; +} +.wp-caption img { + margin: 0; +} +.wp-caption a img, +.wp-caption a:hover img { + border: none; +} +.wp-caption .wp-caption-text { + color: #666; + font-size: 12px; + margin: .5em; +} +.gallery-caption { + color: #666; +} +.wp-smiley { + margin: 0; +} +.attachment .hentry .entry-meta .navigation { + margin: 10px 0 0; +} +.attachment .navigation img { + border: 5px solid #ddd; +} +.attachment .navigation a:hover img { + border-color: #000; +} + + +/* =Comments +----------------------------------------------- */ +#comments { + clear: both; + margin: 20px 0; + padding: 15px; + text-align: left; + width: 600px; +} +article.comment { + display: block; +} +#comments #comments-title { + background: #555; + border-radius: 3px; + color: #eee; + color: rgba(255,255,255,0.7); + display: block; + font-size: 20px; + font-weight: normal; + padding: 5px 20px; + text-shadow: 0 -1px 0 rgba(0,0,0,0.1); +} +#comments #comments-title em { + color: #fff; + font-style: normal; + text-shadow: 0 -1px 0 rgba(0,0,0,0.4); +} +.commentlist { + margin-left: 40px; + padding-left: 0; +} +.commentlist .comment, +.commentlist .reblog { + list-style-type: none; + margin: 40px 0; + padding-left: 10px; +} +.comment { + position: relative; +} +.comment .comment-author cite { + font-style: normal; + font-weight: bold; +} +.comment .comment-meta { + font-size: 11px; + position: absolute; + right: 0; + top: 5px; +} +.comment .comment-meta a { + color: #666; +} +.comment p, +.reblog p { + color: #555; + font-size: 14px; + line-height: 20px; +} +.comment img.avatar { + border: 1px solid #ccc; + border-radius: 5px; + left: -40px; + position: absolute; +} +#comments .bypostauthor > .comment-body { + background: #eee; + border-radius: 3px; + color: #000; + margin: 1em 0 3em; + padding: 15px; + position: relative; +} +#comments .bypostauthor > .comment-body .comment-meta { + right: 15px; + top: 18px; +} +/* Reblogs */ +.commentlist .reblog .comment-meta, +.commentlist .reblog .comment-author { + display: none; +} +.commentlist .reblog p:first-of-type a { + font-weight: bold; +} +.comment .reply a, +.reblog .reply a, +.trackback .reply a, +.pingback .reply a { + background: #eee; + border: 1px solid #ddd; + border-radius: 3px; + color: #555; + font-size: 13px; + padding: 3px 8px; + text-decoration: none; +} +.comment .reply a:hover, +.reblog .reply a:hover, +.trackback .reply a:hover, +.pingback .reply a:hover { + background: #ddd; + border-color: #ccc; + text-decoration: none; +} +#respond #reply-title { + font-size: 26px; + margin-bottom: 0; +} +#respond .comment-notes { + color: #555; + font-size: 13px; + margin-top: 5px; +} +#respond input[type=text], +#respond textarea { + border: 1px solid #ccc; + border-radius: 3px; + margin: 6px 0; + padding: 8px; +} +#respond input[type=text] { + display: block; + width: 60%; +} +#respond textarea { + display: block; + margin-bottom: 1em; + width: 80%; +} +#respond label { + background: #36bcab; + border-radius: 3px; + color: #c8f1ec; + font-size: 13px; + padding: 3px 5px; +} +#respond .form-allowed-tags { + display: none; +} +#respond input[type=submit] { + font-size: 18px; +} + + +/* =Widgets +----------------------------------------------- */ +#widgets { + border-top: 1px solid #ccc; + margin: 30px 0 0 0; + padding: 30px 0 0 0; + text-align: left; +} +.widget-title { + color: #555; + font-family: 'Oswald', Helvetica, Arial, sans-serif; + font-size: 16px; + margin: 0 0 12px 0; + text-transform: uppercase; +} +.widget-title a { + color: #000; + text-decoration: none; +} +#widgets .widget-area { + width: 100%; +} +#widgets .widget { + float: left; + padding: 12px; + width: 30%; +} +.widget { + font-size: 12px; + line-height: 20px; + margin: 0 0 30px 0; +} +#widgets .widget:nth-child(3n+1) { + clear: left; +} +.widget ul { + margin: 0; + padding-left: 20px; +} +/* Calendar Widget */ +.widget_calendar #wp-calendar { + color: #555; + text-align: center; + width: 100%; +} +.widget_calendar #wp-calendar caption, +.widget_calendar #wp-calendar td, +.widget_calendar #wp-calendar th { + text-align: center; +} +.widget_calendar #wp-calendar caption { + color: #000; + font-size: 16px; + font-weight: bold; + padding: 0 0 3px 0; + text-transform: uppercase; +} +.widget_calendar #wp-calendar th { + border-bottom: 1px solid #ccc; + border-top: 1px solid #ccc; + color: #000; + font-weight: bold; +} +.widget_calendar #wp-calendar tfoot td { + border-bottom: 1px solid #ccc; + border-top: 1px solid #ccc; +} +/* Recent Comments Widget */ +.widget_recent_comments .avatar { + max-width: none; +} +.widget_recent_comments td.recentcommentstexttop, +.widget_recent_comments td.recentcommentstextend { + vertical-align: top; +} +.widget_recent_comments td.recentcommentstextend { + line-height: 1.1em; +} +/* Authors Widget */ +.widget_authors ul { + list-style-type: none; + padding-left: 0; +} +.widget_authors img { + vertical-align: middle; +} +.widget_authors img + strong { + font-weight: normal; + margin-left: 8px; +} +.widget_authors a:hover { + text-decoration: none; +} +/* Flickr Widget (WP.com) */ +#flickr_badge_uber_wrapper a { + color: #eb374b !important; + text-decoration: underline !important; +} +#flickr_badge_uber_wrapper a:hover{ + color: #05b2c2 !important; +} +.widget_flickr #flickr_badge_wrapper { + background-color: transparent !important; + border: none !important; +} +.widget_flickr table { + margin: 0 !important; +} +.widget_flickr .flickr-size-thumbnail { + margin: 0 auto; +} +.widget_flickr .flickr-size-thumbnail br, +.widget_flickr .flickr-size-small br { + display: none; +} +.widget_flickr .flickr-size-thumbnail img { + display: block; + margin-bottom: 10px; +} +.widget_flickr .flickr-size-small img { + display: block; + margin-bottom: 10px; + max-width: 100%; +} +/* Authors Widget */ +.widget_author_grid ul, +.widget_authors ul { + list-style: none; + margin: 0; +} +/* Twitter Widget */ +.widget .tweets li { + margin: 0 0 10px 0; +} + /* Cloud Widgets */ +.wp_widget_tag_cloud div, +.widget_tag_cloud div { + word-wrap: break-word; +} + /* RSS Widgets */ +.widget_rss li { + margin: 0 0 10px 0; +} +.widget_rss_links p img { + margin-bottom: 0; + vertical-align: middle; +} + + +/* =Footer +----------------------------------------------- */ +#footer { + border-top: 1px solid #ddd; + clear: both; + color: #555; + font-size: 11px; + font-weight: bold; + height: auto; + margin: 50px 0 30px; + padding-top: 25px; + text-align: center; + width: 800px; +} +#footer a { + color: #36bcab; + text-decoration: none; +} + + +/* =WP.com +----------------------------------------------- */ +.sharedaddy { + clear: both; +} \ No newline at end of file diff --git a/templates/archives.html b/templates/archives.html new file mode 100644 index 0000000..22e99fa --- /dev/null +++ b/templates/archives.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% block content %} +
+
+
+

Archives for {{ SITENAME }}

+
+
+ {% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+ {% endfor %} +
+
+
+
+
+{% endblock %} diff --git a/templates/article.html b/templates/article.html new file mode 100644 index 0000000..553f11d --- /dev/null +++ b/templates/article.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} +{% block content %} +
+
+ +
+

{{ article.title }}

+
+ {{ article.content }} +
+
+
+
+{% endblock %} \ No newline at end of file diff --git a/templates/author.html b/templates/author.html new file mode 100644 index 0000000..e9f7870 --- /dev/null +++ b/templates/author.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} +{% block content_title %} +

Articles by {{ author }}

+{% endblock %} + diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..34c2005 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,84 @@ + + + + {% block head %} + {% block title %}{{ SITENAME }}{% endblock title %} + + + + + + + {% if FEED_RSS %} + + {% endif %} + + {% if MINT %} + + {% endif %} + {% endblock head %} + + + +
+ + + + + + {% block content %} + {% endblock %} + + +
+
+ + diff --git a/templates/categories.html b/templates/categories.html new file mode 100644 index 0000000..e29be0c --- /dev/null +++ b/templates/categories.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} + +{% endblock %} diff --git a/templates/category.html b/templates/category.html new file mode 100644 index 0000000..4e6fd24 --- /dev/null +++ b/templates/category.html @@ -0,0 +1,5 @@ +{% extends "index.html" %} +{% block content_title %} +

Articles in the {{ category }} category

+{% endblock %} + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..eedfb23 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} +
+ {% for article in articles_page.object_list %} +
+ +
+

+ {{ article.title }} +

+
+ {{ article.content }} +
+
+
+ {% endfor %} +
+{% include 'pagination.html' %} +{% endblock content %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..fa7242d --- /dev/null +++ b/templates/page.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{% endblock %} +{% block content %} +
+
+ +
+

+
+ {{ page.content }} +
+
+
+
+{% endblock %} + + diff --git a/templates/pagination.html b/templates/pagination.html new file mode 100644 index 0000000..83c587a --- /dev/null +++ b/templates/pagination.html @@ -0,0 +1,15 @@ +{% if DEFAULT_PAGINATION %} +

+ {% if articles_page.has_previous() %} + {% if articles_page.previous_page_number() == 1 %} + « + {% else %} + « + {% endif %} + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + » + {% endif %} +

+{% endif %} diff --git a/templates/tag.html b/templates/tag.html new file mode 100644 index 0000000..e69de29 diff --git a/templates/tags.html b/templates/tags.html new file mode 100644 index 0000000..e69de29