Difference between revisions of "SUNScholar/XMLUI Theme/M2/Customisation/Multiple Themes"

From Libopedia
Jump to navigation Jump to search
m
Line 7: Line 7:
 
==Step 1 - Create folders==
 
==Step 1 - Create folders==
 
Type the following;
 
Type the following;
  cd
+
  cd $HOME/{{Source}}/dspace/modules/xmlui-mirage2/src/main/webapp/themes
 +
 
 +
mkdir {01,02,03,04,05,06,07,08,09,10}
  
 
==Step 2 - Create files==
 
==Step 2 - Create files==

Revision as of 15:32, 27 June 2015

Back to Mirage 2 Customisation

Introduction

Any folder you create in the following folder will be interpreted as a Mirage2 based theme:

$HOME/source/dspace/modules/xmlui-mirage2/src/main/webapp/themes

Step 1 - Create folders

Type the following;

cd $HOME/source/dspace/modules/xmlui-mirage2/src/main/webapp/themes
mkdir {01,02,03,04,05,06,07,08,09,10}

Step 2 - Create files

This means that if I create two folders called 'Red' and 'Green' in that directory, and create the file styles/_style.scss in both folders with the contents respectively and run mvn package -Dmirage2.on=true, two themes will be created called 'Red' and 'Green', with the only difference being the background color of <body>

$brand-primary:          #76273c;
$brand-warning:          #ff7f00;