Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Setup option to add css class on html element #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ js_include:
- 'http://code.jquery.com/jquery-1.10.2.min.js'
- '../assets/js/main.js'

# Add one or more css classes to the <html> element. E.g. 'no-js' if you want to use Modernizr in your styleguide
# html_class: 'no-js'

# String who is used to split the category name and create category wrapper
name_scope: ' - '
````
Expand Down
4 changes: 3 additions & 1 deletion _header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<% nameScope = @config['name_scope'] %>
<% htmlClass = @config['html_class'] %>
<!DOCTYPE html>
<html ng-app="cortana">
<html ng-app="cortana" <% if htmlClass %>class="<%= htmlClass %>"<% end %>>
<head>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
Expand Down