2015-05-04 18:07:15 +02:00
|
|
|
/// variables.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
|
|
|
|
|
2015-01-21 17:20:59 +01:00
|
|
|
// palettes import -
|
|
|
|
// ------------------------------------------------------------------------------
|
|
|
|
// fixme : consolidate all settings and imports in a decent 'settings' file
|
2015-02-06 01:16:49 +01:00
|
|
|
//@import '../themes/color-palette'; // fixme : clarify if it is needed or assure by javascript
|
|
|
|
@import 'components/palette'; // fixme : The maps in color-palettes are more js then scss
|
2015-01-21 17:20:59 +01:00
|
|
|
|
2015-09-09 22:35:09 +02:00
|
|
|
//$primary-color: sg-color($sogoBlue, 300) !default;
|
2015-02-06 01:16:49 +01:00
|
|
|
//$foreground-primary-color: rgba($foreground-base-color, 0.73) !default;
|
2015-09-09 22:35:09 +02:00
|
|
|
//$foreground-primary-color: rgba($primary-color, 0.87);//override
|
|
|
|
//$background-base-color: sg-color($sogoPaper, 200);
|
2015-02-06 01:16:49 +01:00
|
|
|
|
2015-03-27 15:27:06 +01:00
|
|
|
// Typography
|
|
|
|
// ------------------------------
|
|
|
|
$font-family: 'Fira sans', 'Helvetica Neue', sans-serif !default;
|
2015-06-12 21:58:44 +02:00
|
|
|
$font-size: 10px;
|
2015-03-27 15:27:06 +01:00
|
|
|
|
2016-11-17 21:42:14 +01:00
|
|
|
//-- Must be defined before $font-size.
|
|
|
|
@function rem($multiplier) {
|
|
|
|
@return $multiplier * $font-size;
|
|
|
|
}
|
|
|
|
|
2015-06-12 21:58:44 +02:00
|
|
|
$display-4-font-size-base: rem(11.20) !default;
|
|
|
|
$display-3-font-size-base: rem(5.600) !default;
|
|
|
|
$display-2-font-size-base: rem(4.500) !default;
|
|
|
|
$display-1-font-size-base: rem(3.400) !default;
|
|
|
|
$headline-font-size-base: rem(2.400) !default;
|
|
|
|
$title-font-size-base: rem(2.000) !default;
|
|
|
|
$subhead-font-size-base: rem(1.600) !default;
|
2015-03-27 15:27:06 +01:00
|
|
|
|
2015-06-12 21:58:44 +02:00
|
|
|
$body-font-size-base: rem(1.400) !default;
|
|
|
|
$caption-font-size-base: rem(1.200) !default;
|
2015-01-16 13:52:29 +01:00
|
|
|
|
2015-06-12 21:58:44 +02:00
|
|
|
// Layout
|
2015-01-16 13:52:29 +01:00
|
|
|
// ------------------------------
|
|
|
|
|
2015-06-12 21:58:44 +02:00
|
|
|
$baseline-grid: 8px !default;
|
2016-01-18 22:19:12 +01:00
|
|
|
$layout-gutter-width: ($baseline-grid * 2) !default;
|
|
|
|
|
2015-02-06 01:16:49 +01:00
|
|
|
// shortcut aliases for $baseline-grid
|
2015-06-12 21:58:44 +02:00
|
|
|
$bl: $baseline-grid;
|
|
|
|
$line: $baseline-grid;
|
2015-03-03 19:33:22 +01:00
|
|
|
|
2015-06-12 21:58:44 +02:00
|
|
|
$sg-md-grid-pitch: 8 * $baseline-grid;
|
2015-02-06 01:16:49 +01:00
|
|
|
// shortcut alias for $sg-md-grid-pitch
|
2015-06-12 21:58:44 +02:00
|
|
|
$pitch: $sg-md-grid-pitch;
|
2015-03-03 19:33:22 +01:00
|
|
|
|
|
|
|
// touch and pointers
|
|
|
|
// ----------------------------------------------------------------------------
|
2015-07-09 03:14:25 +02:00
|
|
|
$touch-zone-width: 36px;
|
2015-03-03 19:33:22 +01:00
|
|
|
// shortcut alias for $touch-zone-width
|
2015-02-27 04:32:22 +01:00
|
|
|
$touch-zone: $touch-zone-width;
|
|
|
|
|
2015-02-06 01:16:49 +01:00
|
|
|
// Google specifies dimensions in grid pitch
|
|
|
|
// This is a small utility function
|
|
|
|
// Return dimension in px
|
|
|
|
@function grid-step($nb) {
|
|
|
|
@return ($pitch * $nb)
|
|
|
|
}
|
|
|
|
|
2015-03-24 09:04:59 +01:00
|
|
|
// angular-material share breakpoint values between sass and js files (/core/constant.js)
|
|
|
|
// we might consider using a sass library to import values as json single source for both
|
|
|
|
|
2016-07-21 20:34:46 +02:00
|
|
|
/**
|
|
|
|
* Breakpoint: 0 600px 960px 1024px 1280px
|
2017-02-02 03:32:16 +01:00
|
|
|
* |----------------------|----------|----------|-------------|---------->
|
|
|
|
* Slice : . xs · sm · md · lg . xl
|
2016-07-21 20:34:46 +02:00
|
|
|
* · · · · ·
|
|
|
|
* · · · at(md) · ·
|
2017-02-02 03:32:16 +01:00
|
|
|
* · · |----------| ·
|
2016-07-21 20:34:46 +02:00
|
|
|
* · · · · ·
|
|
|
|
* · · · from(md) · ·
|
2017-02-02 03:32:16 +01:00
|
|
|
* · · |----------------------------------->
|
|
|
|
* · · . · ·
|
|
|
|
* · · . to(md) · ·
|
|
|
|
* |--------------------------------------------| ·
|
|
|
|
* . · . . ·
|
|
|
|
* . · between(sm, lg) ·
|
|
|
|
* . |-----------------------------------|
|
2016-07-21 20:34:46 +02:00
|
|
|
*/
|
|
|
|
|
2015-11-30 20:13:15 +01:00
|
|
|
$layout-breakpoint-xs: 600px !default;
|
|
|
|
$layout-breakpoint-sm: 960px !default;
|
|
|
|
$layout-breakpoint-md: 1280px !default;
|
|
|
|
$layout-breakpoint-lg: 1920px !default;
|
2015-06-12 21:58:44 +02:00
|
|
|
|
|
|
|
// Margins
|
|
|
|
$md-base-margin: $layout-gutter-width;
|
|
|
|
// alias
|
|
|
|
$mg: $layout-gutter-width;
|
2015-01-16 13:52:29 +01:00
|
|
|
|
2015-03-19 08:40:46 +01:00
|
|
|
// Redefinitions
|
|
|
|
// $layout-breakpoint-sm: 360px;
|
2015-03-24 09:04:59 +01:00
|
|
|
$layout-breakpoint-md: 1024px;
|
2015-03-19 08:40:46 +01:00
|
|
|
$layout-breakpoint-lg: 1280px;
|
|
|
|
|
2015-03-26 14:58:09 +01:00
|
|
|
// We use column-based responsive grids inspired by Google's Material design metrics
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
$base-grid-total-columns: (
|
2015-11-30 20:13:15 +01:00
|
|
|
'xs': 1,
|
|
|
|
'sm': 16,
|
|
|
|
'md': 20,
|
2015-03-26 14:58:09 +01:00
|
|
|
'lg': 20,
|
|
|
|
);
|
|
|
|
|
2015-03-24 09:04:59 +01:00
|
|
|
// Passing to breakpoint-slicer
|
2015-11-30 20:13:15 +01:00
|
|
|
$slicer-breakpoints: 0 $layout-breakpoint-xs $layout-breakpoint-sm $layout-breakpoint-md $layout-breakpoint-lg;
|
2015-03-26 14:58:09 +01:00
|
|
|
// todo: ? 'md' name is error prone because of possible confusion with the 'md-' prefix
|
2015-11-30 20:13:15 +01:00
|
|
|
$slicer-breakpoint-names: 'xs' 'sm' 'md' 'lg' 'xl';
|
2015-03-24 09:04:59 +01:00
|
|
|
|
|
|
|
$media-pointer: (pointer fine);
|
|
|
|
|
2016-03-08 19:20:34 +01:00
|
|
|
// Button
|
|
|
|
$button-left-right-padding: rem(0.600);
|
|
|
|
|
2015-11-26 16:16:14 +01:00
|
|
|
// Icon
|
|
|
|
$icon-size: rem(2.400) !default;
|
2015-03-24 09:04:59 +01:00
|
|
|
|
2015-01-16 13:52:29 +01:00
|
|
|
// App bar variables
|
2015-02-27 04:32:22 +01:00
|
|
|
$app-bar-height: $sg-md-grid-pitch;
|
2015-01-16 13:52:29 +01:00
|
|
|
|
2015-06-12 21:58:44 +02:00
|
|
|
// Views widths
|
2016-01-18 22:19:12 +01:00
|
|
|
$listView-width: grid-step(6);
|
2015-02-27 04:32:22 +01:00
|
|
|
$detailView-width: grid-step(8);
|
2015-02-16 08:15:01 +01:00
|
|
|
|
2015-01-16 13:52:29 +01:00
|
|
|
$toast-height: $baseline-grid * 3 !default;
|
|
|
|
$toast-margin: $baseline-grid * 1 !default;
|
|
|
|
|
|
|
|
// Whiteframes
|
2015-06-12 21:58:44 +02:00
|
|
|
|
2016-06-06 22:10:39 +02:00
|
|
|
$shadow-key-umbra-opacity: 0.2 !default;
|
|
|
|
$shadow-key-penumbra-opacity: 0.14 !default;
|
|
|
|
$shadow-ambient-shadow-opacity: 0.12 !default;
|
2015-09-21 17:50:47 +02:00
|
|
|
|
|
|
|
$whiteframe-shadow-1dp: 0px 1px 3px 0px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 1px 1px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 2px 1px -1px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-2dp: 0px 1px 5px 0px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 2px 2px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 3px 1px -2px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-3dp: 0px 1px 8px 0px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 3px 4px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 3px 3px -2px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-4dp: 0px 2px 4px -1px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 4px 5px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 1px 10px 0px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-5dp: 0px 3px 5px -1px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 5px 8px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 1px 14px 0px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-6dp: 0px 3px 5px -1px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 6px 10px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 1px 18px 0px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-7dp: 0px 4px 5px -2px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 7px 10px 1px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 2px 16px 1px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-8dp: 0px 5px 5px -3px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 8px 10px 1px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 3px 14px 2px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-9dp: 0px 5px 6px -3px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 9px 12px 1px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 3px 16px 2px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-10dp: 0px 6px 6px -3px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 10px 14px 1px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 4px 18px 3px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-11dp: 0px 6px 7px -4px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 11px 15px 1px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 4px 20px 3px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-12dp: 0px 7px 8px -4px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 12px 17px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 5px 22px 4px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-13dp: 0px 7px 8px -4px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 13px 19px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 5px 24px 4px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-14dp: 0px 7px 9px -4px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 14px 21px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 5px 26px 4px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-15dp: 0px 8px 9px -5px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 15px 22px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 6px 28px 5px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-16dp: 0px 8px 10px -5px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 16px 24px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 6px 30px 5px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-17dp: 0px 8px 11px -5px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 17px 26px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 6px 32px 5px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-18dp: 0px 9px 11px -5px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 18px 28px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 7px 34px 6px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-19dp: 0px 9px 12px -6px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 19px 29px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 7px 36px 6px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-20dp: 0px 10px 13px -6px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 20px 31px 3px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 8px 38px 7px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-21dp: 0px 10px 13px -6px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 21px 33px 3px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 8px 40px 7px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-22dp: 0px 10px 14px -6px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 22px 35px 3px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 8px 42px 7px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-23dp: 0px 11px 14px -7px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 23px 36px 3px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 9px 44px 8px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
|
|
|
$whiteframe-shadow-24dp: 0px 11px 15px -7px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 24px 38px 3px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 9px 46px 8px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
|
2015-01-16 13:52:29 +01:00
|
|
|
|
|
|
|
// Z-indexes
|
|
|
|
//--------------------------------------------
|
|
|
|
|
2015-11-25 14:51:04 +01:00
|
|
|
$z-index-toast: 105 !default;
|
2015-01-16 13:52:29 +01:00
|
|
|
$z-index-tooltip: 100 !default;
|
2016-01-18 22:19:12 +01:00
|
|
|
$z-index-menu: 100 !default;
|
2016-06-06 22:10:39 +02:00
|
|
|
$z-index-calendar-pane: 100 !default;
|
2016-11-17 21:42:14 +01:00
|
|
|
//$z-index-select: 90 !default;
|
|
|
|
$z-index-select: 106 !default;
|
2015-01-16 13:52:29 +01:00
|
|
|
$z-index-dialog: 80 !default;
|
|
|
|
$z-index-bottom-sheet: 70 !default;
|
2015-05-19 17:36:42 +02:00
|
|
|
$z-index-scroll-mask: 65 !default;
|
2016-06-06 22:10:39 +02:00
|
|
|
$z-index-scroll-mask-bar: 65 !default;
|
2015-01-16 13:52:29 +01:00
|
|
|
$z-index-sidenav: 60 !default;
|
|
|
|
$z-index-backdrop: 50 !default;
|
2016-11-17 21:42:14 +01:00
|
|
|
$z-index-fab: 20 !default;
|
2015-11-25 14:51:04 +01:00
|
|
|
$z-index-progress-circular: 2 !default; // Used to fix animation bug in Chrome
|
2015-07-09 03:14:25 +02:00
|
|
|
$z-index-toolbar: 10 !default;
|
2015-03-28 06:24:31 +01:00
|
|
|
$z-index-view: 9;
|
2015-01-16 13:52:29 +01:00
|
|
|
|
|
|
|
// Easing Curves
|
|
|
|
//--------------------------------------------
|
|
|
|
|
|
|
|
$swift-ease-out-duration: 0.4s !default;
|
|
|
|
$swift-ease-out-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
|
|
$swift-ease-out: all $swift-ease-out-duration $swift-ease-out-timing-function !default;
|
|
|
|
|
|
|
|
$swift-ease-in-duration: 0.3s !default;
|
|
|
|
$swift-ease-in-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2) !default;
|
|
|
|
$swift-ease-in: all $swift-ease-in-duration $swift-ease-in-timing-function !default;
|
|
|
|
|
|
|
|
$swift-ease-in-out-duration: 0.5s !default;
|
|
|
|
$swift-ease-in-out-timing-function: cubic-bezier(0.35, 0, 0.25, 1) !default;
|
|
|
|
$swift-ease-in-out: all $swift-ease-in-out-duration $swift-ease-in-out-timing-function !default;
|
2015-08-17 16:10:57 +02:00
|
|
|
|
2015-10-06 19:38:15 +02:00
|
|
|
$swift-linear-duration: 0.08s !default;
|
|
|
|
$swift-linear-timing-function: linear !default;
|
|
|
|
$swift-linear: all $swift-linear-duration $swift-linear-timing-function !default;
|
|
|
|
|
2016-06-06 22:10:39 +02:00
|
|
|
$material-enter-duration: 0.3s;
|
|
|
|
$material-enter-timing-function: cubic-bezier(0.0, 0.0, 0.2, 1);
|
|
|
|
$material-enter: all $material-enter-duration $material-enter-timing-function;
|
|
|
|
|
|
|
|
$material-leave-duration: 0.3s;
|
|
|
|
$material-leave-timing-function: cubic-bezier(0.4, 0.0, 1, 1);
|
|
|
|
$material-leave: all $material-leave-duration $material-leave-timing-function;
|
|
|
|
|
2015-08-17 16:10:57 +02:00
|
|
|
// Fab Buttons (shared between buttons.scss and fab*.scss)
|
|
|
|
// -------------------------------------------
|
|
|
|
$button-fab-width: rem(5.600) !default;
|
|
|
|
$button-fab-height: rem(5.600) !default;
|
2015-10-06 19:38:15 +02:00
|
|
|
$button-fab-padding: rem(1.60) !default;
|
2016-03-30 17:16:05 +02:00
|
|
|
|
2016-11-17 21:42:14 +01:00
|
|
|
|
2016-03-30 17:16:05 +02:00
|
|
|
// Shared Checkbox variables
|
|
|
|
$checkbox-width: 20px !default;
|
|
|
|
$checkbox-height: $checkbox-width !default;
|
|
|
|
$checkbox-border-radius: 2px !default;
|
|
|
|
$checkbox-border-width: 2px !default;
|