mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
ENHANCEMENT: adding scss stlying
This commit is contained in:
parent
236857bc80
commit
d6740d8482
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.sass-cache
|
@ -430,6 +430,7 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
|
|||||||
function getCMSFields() {
|
function getCMSFields() {
|
||||||
//include JS to handling showing and hiding of bottom "action" tabs
|
//include JS to handling showing and hiding of bottom "action" tabs
|
||||||
Requirements::javascript('dms/javascript/DMSDocumentCMSFields.js');
|
Requirements::javascript('dms/javascript/DMSDocumentCMSFields.js');
|
||||||
|
Requirements::css('dms/css/DMSDocumentCMSFields.css');
|
||||||
|
|
||||||
$fields = new FieldList(); //don't use the automatic scaffolding, it is slow and unnecessary here
|
$fields = new FieldList(); //don't use the automatic scaffolding, it is slow and unnecessary here
|
||||||
|
|
||||||
|
20
config.rb
Normal file
20
config.rb
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# Require any additional compass plugins here.
|
||||||
|
require 'compass-colors'
|
||||||
|
|
||||||
|
project_type = :stand_alone
|
||||||
|
# Set this to the root of your project when deployed:
|
||||||
|
http_path = "/"
|
||||||
|
css_dir = "css"
|
||||||
|
sass_dir = "scss"
|
||||||
|
images_dir = "images"
|
||||||
|
javascripts_dir = "javascript"
|
||||||
|
output_style = :compact
|
||||||
|
|
||||||
|
# To enable relative paths to assets via compass helper functions. Uncomment:
|
||||||
|
relative_assets = true
|
||||||
|
|
||||||
|
# disable comments in the output. We want admin comments
|
||||||
|
# to be verbose
|
||||||
|
line_comments = false
|
||||||
|
|
||||||
|
asset_cache_buster :none
|
1
css/DMSDocumentCMSFields.css
Normal file
1
css/DMSDocumentCMSFields.css
Normal file
@ -0,0 +1 @@
|
|||||||
|
#test { /* Test SCSS */ }
|
3
scss/DMSDocumentCMSFields.scss
Normal file
3
scss/DMSDocumentCMSFields.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#test {
|
||||||
|
/* Test SCSS */
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user