Skip to content

Commit

Permalink
add colour schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
seibtph authored and Philipp Seibt committed Nov 12, 2018
1 parent 57972f9 commit 33e2f9b
Show file tree
Hide file tree
Showing 13 changed files with 473 additions and 678 deletions.
4 changes: 2 additions & 2 deletions src/Module/MateThemeSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function getFiles($path) {
$pos = strpos($path,"matetheme");
$filesFolder = "files/mate".str_replace("matetheme","",substr($path,$pos))."/".$dir;

if($dir != "_mate_variables.scss" && $dir != "backend.css" && $dir != "mate.scss" && $dir != "materialize.scss") {
if($dir != "_mate_variables.scss" && $dir != "_mate_colors.scss" && $dir != "backend.css" && $dir != "mate.scss" && $dir != "materialize.scss") {
if(!file_exists(TL_ROOT."/".$filesFolder)) {
$objFile = new \File("web/bundles/".substr($path,$pos)."/".$dir, true);
$objFile->copyTo($filesFolder);
Expand All @@ -48,7 +48,7 @@ protected function getFiles($path) {
$folder = $path."/".$dir;
$pos = strpos($path,"matetheme");
$filesFolder = "files/mate".str_replace("matetheme","",substr($path,$pos))."/".$dir;
if($dir != "fonts" && $dir != "js" && $dir != "components") {
if($dir != "fonts" && $dir != "js" && $dir != "components" && $dir != "mate_color_schemes") {
if(!file_exists($filesFolder)) {
new \Folder($filesFolder);
}
Expand Down
50 changes: 50 additions & 0 deletions src/Resources/public/sass/_custom_colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/****
**** mate theme files / custom_variables
**** uncomment to override materialize variables
****
*/

/*
* mate theme files / custom_variables
*
* uncomment to override materialize variables
*/


/* ============================= */
/* Colour Schemes */
/* ============================= */

//@import 'mate_color_schemes/mate_dark_colors';
//@import 'mate_color_schemes/mate_blue_colors';
//@import 'mate_color_schemes/mate_yellow_colors';


/* ============================= */
/* MATE Theme Variables */
/* ============================= */

/* Colors */
//$mateColor1: #b6cf92;
//$mateColor2: #86af49;
//$mateColor3: #476a30;
//$mateColor4: #58774e;
//$mateColor6: #abbdb1;

//$mateColorWhite: #fff;
//$mateColorBlack: #000;
//$mateColorGreyLight: #f5f5f5;
//$mateColorGreyDark: #e6e6e6;
//$pageBackground: #f4f8f0;

/* Text Colors */
//$primary-text-color: #000;
//$secondary-text-color: #fff;

/* Boxes */
//$boxes-background: $mateColorWhite;
//$boxes-text-color: $primary-text-color;

/* Content Box */
//$contentbox-first-background: rgba(255, 255, 255, 0.95);
//$contentbox-second-background: rgba(255, 255, 255, 0.65);
131 changes: 54 additions & 77 deletions src/Resources/public/sass/_custom_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,109 +4,99 @@
****
*/

/****
**** mate theme files / mate_variables
**** overrides materialize variables
****
*/

/*
* please do not edit this file.
* mate theme files / custom_variables
*
* use _custom_variables.scss for update safe overwrites
* uncomment to override materialize variables
*/

//@import '_custom_variables_black.scss';
//@import '_custom_variables_blue.scss';
//@import '_custom_variables_yellow.scss';

//$font1: 'Lato Light';
//$font2: 'Old Standard';
//$font3: 'Lato Regular';

//$mateColor1: #b6cf92;
//$mateColor2: #86af49;
//$mateColor3: #476a30;
//$mateColor4: #58774e;
//$mateColor6: #abbdb1;
//$mateColorWhite: #fff;
//$mateColorBlack: #000;
//$pageBackground: #f4f8f0;

/*
* colors
*/
/* ============================= */
/* MATE Theme Variables */
/* ============================= */

/* Colors */
//$primary-color: $mateColor2;
//$secondary-color: $mateColor3;

//$primary-text-color: $mateColorBlack;
//$secondary-text-color: $mateColorWhite;

/*
* mate theme specific variables
*/

/* Boxen */
//$boxes-background: $mateColorWhite;
//$boxes-text-color: $primary-text-color;

/* header image headline */
//$headerHeadlineBackground: rgba(134, 175, 73, 0.84);
//$headerHeadlineColor: $secondary-text-color;
/* Fonts */
//$font1: 'Lato Light';
//$font2: 'Old Standard';
//$font3: 'Lato Regular';

/* Links */
//$primary-link-font-color: $mateColor2;
//$primary-link-hover-font-color: $mateColor3;

/* Header - Navigation */
//$header-top-color: $secondary-text-color;

//$navbar-bg-color: $mateColorWhite;
//$navbar-color: $primary-text-color;
//$navbar-active-color: $mateColor2;
//$navbar-dropdown-hover-bg-color: $mateColor1;
//$navbar-dropdown-hover-color: $secondary-text-color;
//$navbar-dropdown-bg: $mateColorWhite;
//$navbar-dropdown-color: $primary-text-color;
//$navbar-stuck-bg-color: rgba(134,175,73,0.9);
//$navbar-stuck-color: $secondary-text-color;
//$navbar-stuck-active-color: $mateColor3;
//$navbar-stuck-dropdown-hover-bg-color: rgba(255,255,255,0.5);
//$navbar-stuck-dropdown-hover-color: $primary-text-color;
//$navbar-stuck-dropdown-color: $secondary-text-color;
//$navbar-stuck-dropdown-bg: $navbar-stuck-bg-color;
/* Accordion */
//$accordion-headline-background: $mateColor2;
//$accordion-headline-color: $secondary-text-color;
//$accordion-content-background: $mateColorWhite;
//$accordion-content-color: $primary-text-color;
//$accordion-border-color: $mateColorWhite;

/* Buttons */
//$button-flat-color: $secondary-text-color;
//$button-floating-background: $mateColor2;
//$button-floating-background-hover: $mateColor3;

/* Content Box */
//$contentbox-first-color: $boxes-text-color;
//$contentbox-second-color: $boxes-text-color;

/* Download and FAQ Elements */
//$download-faqlist-background-odd: rgba(134, 175, 73, 0.15);
//$download-faqlist-background-odd: rgba($mateColor2, 0.15);
//$download-faqlist-color-odd: $mateColor2;
//$download-faqlist-color-odd-hover: $mateColor3;

//$download-faqlist-background-even: $mateColorWhite;
//$download-faqlist-color-even: $mateColor2;
//$download-faqlist-color-even-hover: $mateColor3;

/* Events */
/* Events and News */
//$calendar-background: $mateColorWhite;
//$calendar-border-color: $mateColorWhite;
//$calendar-text-color: $mateColor2;

//$news-date-color: $mateColor6;
//$news-category-color: #fff;
//$pagination-color: $mateColor4;

/* Footer */
//$footer-text-color: $secondary-text-color;
//$footer-headline-border-color: $footer-text-color;
//$footer-secondary-bg-color: $secondary-color;
//$footer-headline-border-color: $secondary-text-color;
//$footer-secondary-bg-color: $mateColor3;
//$footer-news-events-time-color: $mateColor3;

//$footer-primary-link-color: $secondary-text-color;
//$footer-primary-link-color-hover: $primary-link-hover-font-color;
//$footer-secondary-link-color: $secondary-text-color;
//$footer-secondary-link-color-hover: $secondary-text-color;

//$footer-newsletter-button-background: $mateColor2;

/* Header Image */
//$headerHeadlineBackground: rgba($mateColor2, 0.9);
//$headerHeadlineColor: $secondary-text-color;

/* Header and Navigation */
//$header-top-color: $secondary-text-color;

//$navbar-bg-color: $mateColorWhite;
//$navbar-color: $primary-text-color;
//$navbar-active-color: $primary-link-font-color;
//$navbar-dropdown-hover-bg-color: $mateColor1;
//$navbar-dropdown-hover-color: $secondary-text-color;
//$navbar-dropdown-bg: $mateColorWhite;
//$navbar-dropdown-color: $primary-text-color;
//$navbar-stuck-bg-color: rgba($mateColor2, 0.9);
//$navbar-stuck-color: $secondary-text-color;
//$navbar-stuck-active-color: $mateColor3;
//$navbar-stuck-dropdown-hover-bg-color: $mateColor1;
//$navbar-stuck-dropdown-hover-color: $primary-text-color;
//$navbar-stuck-dropdown-color: $secondary-text-color;
//$navbar-stuck-dropdown-bg: rgba($mateColor2, 0.9);

/* News Slider */
//$slider-background: $mateColor2;
//$slider-subheadline-color: $secondary-text-color;
Expand All @@ -133,20 +123,7 @@
//$slider-navigation-hover-headline-color: $secondary-text-color;
//$slider-navigation-border-color: $mateColor1;

/* Content Box */
//$contentbox-first-background: rgba(255,255,255,0.95);
//$contentbox-first-color: $boxes-text-color;
//$contentbox-second-background: rgba(255, 255, 255, 0.65);
//$contentbox-second-color: $boxes-text-color;

/* Tables */
//$table-odd-background: $mateColorWhite;
//$table-even-background: #f5f5f5;
//$table-border-color: #e6e6e6;

/* Accordion */
//$accordion-headline-background: $mateColor2;
//$accordion-headline-color: $secondary-text-color;
//$accordion-content-background: $mateColorWhite;
//$accordion-content-color: $primary-text-color;
//$accordion-border-color: $mateColorWhite;
//$table-even-background: $mateColorGreyLight;
//$table-border-color: $mateColorGreyDark;
127 changes: 0 additions & 127 deletions src/Resources/public/sass/_custom_variables_black.scss

This file was deleted.

Loading

0 comments on commit 33e2f9b

Please sign in to comment.