Difference between revisions of "SUNScholar/XMLUI Theme/M2/Customisation/Extra Customisation"

From Libopedia
Jump to navigation Jump to search
m
m
Line 9: Line 9:
  
 
Removed all the <tt>'''font-size = XXpx;'''</tt> attributes from all the files in the <tt>'''styles'''</tt> folder.
 
Removed all the <tt>'''font-size = XXpx;'''</tt> attributes from all the files in the <tt>'''styles'''</tt> folder.
 +
 +
==Create Custom Buttons==
 +
 +
<pre>
 +
$btn-font-weight:                normal !default;
 +
 +
$btn-default-color:              #333 !default;
 +
$btn-default-bg:                #fff !default;
 +
$btn-default-border:            #ccc !default;
 +
 +
$btn-primary-color:              #fff !default;
 +
$btn-primary-bg:                $brand-primary !default;
 +
$btn-primary-border:            darken($btn-primary-bg, 5%) !default;
 +
 +
$btn-success-color:              #fff !default;
 +
$btn-success-bg:                $brand-success !default;
 +
$btn-success-border:            darken($btn-success-bg, 5%) !default;
 +
 +
$btn-info-color:                #fff !default;
 +
$btn-info-bg:                    $brand-info !default;
 +
$btn-info-border:                darken($btn-info-bg, 5%) !default;
 +
 +
$btn-warning-color:              #fff !default;
 +
$btn-warning-bg:                $brand-warning !default;
 +
$btn-warning-border:            darken($btn-warning-bg, 5%) !default;
 +
 +
$btn-danger-color:              #fff !default;
 +
$btn-danger-bg:                  $brand-danger !default;
 +
$btn-danger-border:              darken($btn-danger-bg, 5%) !default;
 +
 +
$btn-link-disabled-color:        $gray-light !default;
 +
</pre>
 +
 
==Github Repository==
 
==Github Repository==
 
All the changes that were made to customise Mirage 2 for Stellenbosch University library are available on github.
 
All the changes that were made to customise Mirage 2 for Stellenbosch University library are available on github.

Revision as of 00:37, 22 June 2015

Back to Mirage 2 Customisation

Modify Font Size CSS

Absolute font sizing does not scale well with a responsive theme.

Left the font size size attributes that use XXem for font sizing.

Removed all the font-size = XXpx; attributes from all the files in the styles folder.

Create Custom Buttons

$btn-font-weight:                normal !default;

$btn-default-color:              #333 !default;
$btn-default-bg:                 #fff !default;
$btn-default-border:             #ccc !default;

$btn-primary-color:              #fff !default;
$btn-primary-bg:                 $brand-primary !default;
$btn-primary-border:             darken($btn-primary-bg, 5%) !default;

$btn-success-color:              #fff !default;
$btn-success-bg:                 $brand-success !default;
$btn-success-border:             darken($btn-success-bg, 5%) !default;

$btn-info-color:                 #fff !default;
$btn-info-bg:                    $brand-info !default;
$btn-info-border:                darken($btn-info-bg, 5%) !default;

$btn-warning-color:              #fff !default;
$btn-warning-bg:                 $brand-warning !default;
$btn-warning-border:             darken($btn-warning-bg, 5%) !default;

$btn-danger-color:               #fff !default;
$btn-danger-bg:                  $brand-danger !default;
$btn-danger-border:              darken($btn-danger-bg, 5%) !default;

$btn-link-disabled-color:        $gray-light !default;

Github Repository

All the changes that were made to customise Mirage 2 for Stellenbosch University library are available on github.

See link below.

https://github.com/hamslaai/Mirage2