A simple Django app to make styleguide
Project description
Help you launch your style guide site with django in KSS syntax. you can integrate the style giude in your site easily. I use it every day. feel free to give me any suggestion.
start
pip install django-styleguide
Settings
in yout settings.py
Add the app,
INSTALLED_APPS += (
"compressor",
"django_kss",
)
urls.py settings
Routing, add the following two lines in your project’s urls.py
import:
add the url patterns:
html
for F2E or designer
put your more complete html in templates/prototype/
you can view it automatically in the site
Writing The KSS in your scss/less/css file
/*
Buttons
Styleguide 1
*/
/*
Your standard form button.
.btn-danger - danger
.btn-warning - warning
.btn-info - info
Example:
<button class="liftedBtn $modifier_class" >按鈕</button>
Styleguide 1.1
*/
.liftedBtn{
@extend .btn;
position: relative;
border-width: 0;
letter-spacing: 1px;
border-bottom-color: rgba(30,30,30,0.3);
border-bottom-width: 0;
transition: all 0.2s;
bottom: 0;
&:hover{
bottom: $strong-border-width;
border-bottom-width: $strong-border-width;
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-kss-styleguide-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c04a620c1b0439f60d30b420b31b1c5550795ed1c670aead6c59944c7921f50e |
|
MD5 | 556cb4d78a56c43e0c4f93e2430f2861 |
|
BLAKE2b-256 | ddcd5ca4be7620043858e798add59c725c1e4d400c7c2e16fdd9b4e3e29e9489 |
Close
Hashes for django-kss-styleguide-0.5.0.macosx-10.10-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 453e52285b96679ce42d9eec68526e7f9c86eac57328846fcba05577c5c18e5d |
|
MD5 | 05baf1220a4f94e14853e965fb69f35d |
|
BLAKE2b-256 | 9cf2d513954c3cbaa908da1eb035b10a28b461961d1a06b86c9cf2fda67468ac |