1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-01 21:57:09 +01:00
blog/content/posts/2008-08-22-the-kremalicious-marsedit-style.md

111 lines
3.5 KiB
Markdown
Raw Normal View History

2013-11-18 23:54:59 +01:00
---
2018-07-19 02:22:01 +02:00
type: post
2013-11-21 20:38:20 +01:00
2013-11-18 23:54:59 +01:00
title: The Kremalicious MarsEdit Style
2013-11-21 20:38:20 +01:00
author: Matthias Kretschmann
date: 2008-08-22 17:04:19+00:00
2018-07-19 02:22:01 +02:00
2018-08-30 22:50:09 +02:00
tags:
2019-05-12 16:37:44 +02:00
- goodies
2013-11-18 23:54:59 +01:00
---
2018-07-17 23:26:36 +02:00
![The Kremalicious MarsEdit Style](../media/marsedit_kremalicious.png)Personally I blog everything with RedSweater's awesome application [MarsEdit](http://www.red-sweater.com/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.
2013-11-18 23:54:59 +01:00
2018-08-08 22:26:42 +02:00
<!-- more -->
2013-11-18 23:54:59 +01:00
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:
2018-07-17 23:26:36 +02:00
[![The Kremalicious MarsEdit Style](../media/marsedit_kremalicious_big.png)](../media/marsedit_kremalicious_big.png)
2013-11-18 23:54:59 +01:00
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.
2018-07-17 23:26:36 +02:00
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](../media/marsedit_kremalicious.txt):
2013-11-18 23:54:59 +01:00
2018-07-18 23:04:31 +02:00
```html
2013-11-21 20:38:20 +01:00
<!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">
2019-05-12 16:37:44 +02:00
<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#
2018-09-29 02:54:31 +02:00
</div>
2019-05-12 16:37:44 +02:00
<div id="credit">
The Kremalicious MarsEdit Style<br />
<a href="http://www.kremalicious.com">www.kremalicious.com</a>
</div>
</div>
<-- end content -->
</body>
2013-11-21 20:38:20 +01:00
</html>
2018-07-18 23:04:31 +02:00
```
2013-11-18 23:54:59 +01:00
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.