mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-22 07:14:21 +00:00
define base theme : add palette definitions to module initialization
This commit is contained in:
1 parent
ee4c1c0706
commit
1a7bfee6b6
12 files changed
+178
-79
No files matched your search
@@ -74,8 +74,8 @@ $h6-margin-base: 2.33em 0 !default;
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
color: $foreground-primary-color;
|
||||
background: $background-color-base;
|
||||
//color: $foreground-primary-color;
|
||||
//background: $background-color-base;
|
||||
|
||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||
-webkit-touch-callout: none;
|
||||
@@ -290,20 +290,20 @@ md-tab {
|
||||
}
|
||||
@return $map-str + '}';
|
||||
}
|
||||
.md-color-palette-definition {
|
||||
$content-rule: '{';
|
||||
$map-str: '';
|
||||
$keys: map-keys($colors);
|
||||
$len: length($keys);
|
||||
@for $i from 1 through $len {
|
||||
$key: nth($keys, $i);
|
||||
$value: map-get($colors, $key);
|
||||
$content-rule: $content-rule + '_' + $key + '_: ' + map-to-string($value);
|
||||
@if $i != $len {
|
||||
$content-rule: $content-rule + ',';
|
||||
}
|
||||
}
|
||||
$content-rule: $content-rule + '}';
|
||||
background-image: url("data:image/svg+xml;utf8,#{$content-rule}");
|
||||
display: none;
|
||||
}
|
||||
//.md-color-palette-definition {
|
||||
// $content-rule: '{';
|
||||
// $map-str: '';
|
||||
// $keys: map-keys($colors);
|
||||
// $len: length($keys);
|
||||
// @for $i from 1 through $len {
|
||||
// $key: nth($keys, $i);
|
||||
// $value: map-get($colors, $key);
|
||||
// $content-rule: $content-rule + '_' + $key + '_: ' + map-to-string($value);
|
||||
// @if $i != $len {
|
||||
// $content-rule: $content-rule + ',';
|
||||
// }
|
||||
// }
|
||||
// $content-rule: $content-rule + '}';
|
||||
// background-image: url("data:image/svg+xml;utf8,#{$content-rule}");
|
||||
// display: none;
|
||||
//}
|
||||
@@ -6,30 +6,32 @@
|
||||
// palettes import -
|
||||
// ------------------------------------------------------------------------------
|
||||
// fixme : consolidate all settings and imports in a decent 'settings' file
|
||||
@import '../themes/color-palette'; // fixme : clarify if it is deeded or assure by javascript
|
||||
//@import '../themes/color-palette'; // fixme : clarify if it is deeded or assure by javascript
|
||||
|
||||
// Font Variables
|
||||
$font-family: RobotoDraft, Roboto, 'Helvetica Neue', sans-serif !default;
|
||||
$font-family: Ubuntu, 'Helvetica Neue', sans-serif; //override
|
||||
$dark-theme: false !default;
|
||||
$foreground-color-palette: $color-grey !default;
|
||||
$foreground-base-color: map-get($foreground-color-palette, '1000') !default;
|
||||
$foreground-primary-color: rgba($foreground-base-color, 0.73) !default; $foreground-primary-color: rgba($foreground-base-color, 0.87);//override
|
||||
$foreground-secondary-color: rgba($foreground-base-color, 0.54) !default;
|
||||
$foreground-tertiary-color: rgba($foreground-base-color, 0.26) !default;
|
||||
$foreground-quarternary-color: rgba($foreground-base-color, 0.12) !default;
|
||||
$foreground-text-shadow: none !default;
|
||||
//$dark-theme: false !default;
|
||||
//$foreground-color-palette: $color-grey !default;
|
||||
//$foreground-base-color: map-get($foreground-color-palette, '1000') !default;
|
||||
//$foreground-primary-color: rgba($foreground-base-color, 0.73) !default; $foreground-primary-color: rgba($foreground-base-color, 0.87);//override
|
||||
//$foreground-secondary-color: rgba($foreground-base-color, 0.54) !default;
|
||||
//$foreground-tertiary-color: rgba($foreground-base-color, 0.26) !default;
|
||||
//$foreground-quarternary-color: rgba($foreground-base-color, 0.12) !default;
|
||||
//$foreground-text-shadow: none !default;
|
||||
|
||||
|
||||
$input-border-color: $foreground-secondary-color !default;
|
||||
$input-disabled-border-color: $foreground-tertiary-color !default;
|
||||
|
||||
$background-color-palette: $color-grey !default;
|
||||
$background-color-base: map-get($background-color-palette, 'A100') !default;
|
||||
|
||||
$primary-color-palette: $color-light-blue !default;
|
||||
$warn-color-palette: $color-red !default;
|
||||
$primary-color-palette-contrast-color: white !default;
|
||||
//$input-border-color: $foreground-secondary-color !default;
|
||||
//$input-disabled-border-color: $foreground-tertiary-color !default;
|
||||
//
|
||||
//$background-color-palette: $color-paper !default;
|
||||
//$background-color-base: map-get($background-color-palette, '200') !default;
|
||||
//
|
||||
//$primary-color-palette: $color-light-blue !default;
|
||||
//$warn-color-palette: $color-red !default;
|
||||
//$primary-color-palette-contrast-color: white !default;
|
||||
//todo ; create grey map
|
||||
$bottombar-color: #121212;
|
||||
|
||||
// Layout
|
||||
// ------------------------------
|
||||
|
||||
Reference in new issue
Block a user