1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-24 10:16:27 +02:00
blog/_src/_posts/2008-08-22-the-kremalicious-marsedit-style.markdown

3.4 KiB

author comments date layout slug title wordpress_id categories
Matthias Kretschmann true 2008-08-22 17:04:19+00:00 post the-kremalicious-marsedit-style The Kremalicious MarsEdit Style 122
goodies
other

The Kremalicious MarsEdit StylePersonally I blog everything with RedSweater's awesome application MarsEdit. MarsEdit has a cool preview window included where you can see your writing live while you type. The formatting of this preview is based on simple HTML and CSS so the style is pretty customizable.

A while ago I've made a custom style for the blog on kremalicious.com and would like to share this style with you. The style is based on the colors used on kremalicious.com with a black background and light grey text on top of it. The links have the same blueish hover style as on my website:

The Kremalicious MarsEdit Style

Here's how to apply the style for your blog preview in MarsEdit:

In MarsEdit main window right-click (or ctrl + click) in the sidebar on the blog where you want to have my style applied to and choose Edit Preview Template. The Preview Template editor should open where you can customize the style of the preview with the css instructions in the header.

Just copy and paste the following HTML and CSS into your Preview Template editor. If something goes wrong with the source formatting, I've also provided a txt file with the code:

<code data-language="html"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>#weblogName#: #title#</title>
<style>
body {margin: 0; background-color: #000;}

a {color: #778caa; text-decoration: none;}

a:hover {background-color: #778caa; color: #000; text-shadow: 0px 1px 1px #ddd;}

#title { color: #778caa; background-color: #333; margin: 0; font: normal 2.1em "HelveticaNeue-UltraLight", Helvetica, sans-serif;}

#title a {display: block; position: relative; padding: 10px 20px;}

#title a:hover {text-shadow: 0px 1px 1px #B3B3B3;}

#content {font: 1em "Lucida Grande", Lucida, Verdana, sans-serif; color: #ddd; padding: 10px 20px;}

#meta {margin-top: 20px; padding: 5px; background-color: #333; -webkit-border-radius: 5px;}

#credit {font: italic 0.8em/12px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; text-align: center; margin-top:20px;}
</style>
</head>
<body>

<div id="title">
<a href="#url#">#title#</a>
</div>

<div id="content">
#body#
#extended#

<div id="meta">
<b>url</b>  : <a href="#url#">#url#</a><br />
<b>tags</b> : #tags#
</div>
<div id="credit">
The Kremalicious MarsEdit Style<br />
<a href="http://www.kremalicious.com">www.kremalicious.com</a>
</div>
</div> <-- end content -->
</body>
</html></code>

Now click on Save Changes in the lower right corner of the window and there you have it.

Of course you are free to alter the style provided by me to fit your needs. If you have any additions to my provided code feel free to post them in the comments.