mirror of
https://github.com/writefreely/documentation.git
synced 2024-11-14 23:11:03 +00:00
Merge pull request #29 from writefreely/fix-customizing-css
Fix customizing css guide
This commit is contained in:
commit
9f21d607df
@ -2,24 +2,14 @@
|
||||
|
||||
If you can write CSS, you can customize the appearance of your WriteFreely blog.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## Getting Started
|
||||
|
||||
All you need to do is go to the _Customize_ settings of your blog. Scroll down to "Custom CSS" and customize your blog from there.
|
||||
|
||||
The following stylesheet shows a few basic selectors you'll need in order to customize certain elements. In the BASICS section, just grab the selectors (e.g. ```#blog-title a:hover```) for your stylesheet — the properties are only there to illustrate what you can do.
|
||||
|
||||
You should copy entire sections in the RECIPES section verbatim, as each is a complete customization you might want to make, like centering an image.
|
||||
|
||||
```CSS
|
||||
/*
|
||||
|
||||
BASICS
|
||||
Use the following CSS rules to change the elements you're trying to customize.
|
||||
|
||||
*/
|
||||
The following stylesheet shows a few basic selectors you'll need in order to customize certain elements. You can just grab the selectors (e.g. `#blog-title a`) for your stylesheet — the properties are only there to illustrate what you can do.
|
||||
|
||||
```css
|
||||
/* Entire page background */
|
||||
body {
|
||||
background-color: #efefef;
|
||||
}
|
||||
@ -68,14 +58,11 @@ article p a:hover {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
```
|
||||
|
||||
/*
|
||||
|
||||
RECIPES
|
||||
These are common patterns you may want to use on your blog.
|
||||
|
||||
*/
|
||||
Copy these entire sections verbatim, as each is a complete customization you might want to make, like centering an image.
|
||||
|
||||
```css
|
||||
/* Center images */
|
||||
img {
|
||||
display: block;
|
||||
@ -99,4 +86,4 @@ header nav .views {
|
||||
|
||||
## Themes
|
||||
|
||||
If you want to see how you can customize beyond the basic elements of your blog, you can check out our [Themes blog](https://write.as/themes). Here, you can find custom blogs from the WriteFreely/Write.as community whose themes you can use & remix for your own blog.
|
||||
If you want to see how you can customize beyond the basic elements of your blog, you can check out our [Themes blog](https://write.as/themes). Here you can find custom blogs from the WriteFreely/Write.as community whose themes you can use and remix for your own blog.
|
Loading…
Reference in New Issue
Block a user