Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Explain how to use custom.css and custom.js in the docs #393

Merged
merged 1 commit into from

2 participants

@sepastian

It took me some time to figure out how to overwrite CSS coming with typus. The documentation did not contain an explanation, I found the solution browsing the source code.

This commit adds an explanation on how to implement custom CSS in Typus' UI to the documentation.

See #392.

@sepastian sepastian #392: CSS in application.css ignored.
Updating documentation to explain how to implement custom.css (and custom.js).
dae9c9a
@fesplugas fesplugas merged commit 6577e62 into typus:master

1 check failed

Details default The Travis build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 3, 2012
  1. @sepastian

    #392: CSS in application.css ignored.

    sepastian authored
    Updating documentation to explain how to implement custom.css (and custom.js).
This page is out of date. Refresh to see the latest.
View
9 doc/user_guide/source/customization/custom_css_and_js.rst
@@ -0,0 +1,9 @@
+Custom CSS and Javascript
+=========================
+
+To override styles defined by Typus, create a file named ``app/assets/stylesheets/typus/custom.css``.
+Place your custom CSS into that file. Likewise, to load custom Javascript, create ``app/assets/javascripts/typus/custom.js``.
+
+Most likely, you will need to create the folders ``app/assets/stylesheets/typus`` and ``app/assets/javascripts/typus`` first.
+
+(Don't forget to do ``rake assets:precompile`` if you are in a production environment.)
View
1  doc/user_guide/source/index.rst
@@ -53,6 +53,7 @@ Configuration
configuration/resource
configuration/roles
customization/selectors
+ customization/custom_css_and_js
Customization
Something went wrong with that request. Please try again.