2021-02-03 09:30:07 +00:00
|
|
|
/*
|
|
|
|
* App Global variables SCSS
|
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
* Place here all global variables.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* App colors
|
|
|
|
*/
|
2021-05-07 08:31:06 +00:00
|
|
|
$black: #282828 !default; // Headings, standard text.
|
|
|
|
$gray-darker: #686566 !default; // Text (emphasis-detail), placeholder, background.
|
2021-02-03 09:30:07 +00:00
|
|
|
$gray-dark: #9e9e9e !default; // Borders (never text).
|
|
|
|
$gray: #dddddd !default;
|
|
|
|
$gray-light: #e9e9e9 !default; // Background.
|
|
|
|
$gray-lighter: #f5f5f5 !default;
|
|
|
|
$white: #ffffff !default; // Background, reversed text.
|
|
|
|
|
|
|
|
$blue: #0064d2 !default; // Link, background.
|
|
|
|
$turquoise: #007982 !default; // Accent.
|
|
|
|
$green: #5e8100 !default; // Accent.
|
|
|
|
$red: #cb3d4d !default;
|
|
|
|
$orange: #f98012 !default; // Accent (never text).
|
|
|
|
$yellow: #fbad1a !default; // Accent (never text).
|
|
|
|
$purple: #8e24aa !default; // Accent (never text).
|
|
|
|
|
|
|
|
$blue-light: mix($blue, white, 20%) !default; // Background.
|
|
|
|
$blue-dark: darken($blue, 10%) !default;
|
|
|
|
|
|
|
|
$turquoise-light: mix($turquoise, white, 20%) !default; // Background.
|
|
|
|
$turquoise-dark: darken($turquoise, 10%) !default;
|
|
|
|
|
|
|
|
$green-light: mix($green, white, 20%) !default;
|
|
|
|
$green-dark: darken($green, 10%) !default;
|
|
|
|
|
|
|
|
$red-light: mix($red, white, 20%) !default;
|
|
|
|
$red-dark: darken($red, 10%) !default;
|
|
|
|
|
|
|
|
$orange-light: lighten($orange, 10%) !default;
|
|
|
|
|
|
|
|
$yellow-light: mix($yellow, white, 20%) !default;
|
|
|
|
$yellow-dark: mix($yellow, black, 40%) !default;
|
|
|
|
|
2021-05-07 08:31:06 +00:00
|
|
|
$brand-color: $orange !default;
|
|
|
|
$brand-color-light: lighten($brand-color, 10%) !default;
|
|
|
|
$brand-color-dark: darken($brand-color, 10%) !default;
|
2021-02-03 09:30:07 +00:00
|
|
|
|
2021-05-07 08:31:06 +00:00
|
|
|
$text-color: $black !default;
|
|
|
|
$text-color-dark: $white !default;
|
|
|
|
$link-color: $blue !default;
|
|
|
|
$background-color: $gray-light !default;
|
|
|
|
$background-color-dark: #1e1e1e !default;
|
|
|
|
$subdued-text-color: $gray-darker !default;
|
|
|
|
|
|
|
|
$ion-item-background: $white !default;
|
|
|
|
$ion-item-background-dark: #1e1e1e !default;
|
2021-02-03 09:30:07 +00:00
|
|
|
|
|
|
|
$core-online-color: #5cb85c !default;
|
|
|
|
|
2021-05-07 08:31:06 +00:00
|
|
|
$primary: $blue !default;
|
|
|
|
$secondary: $brand-color !default;
|
2021-02-23 07:53:24 +00:00
|
|
|
$tertiary: $turquoise !default;
|
|
|
|
$danger: $red !default;
|
|
|
|
$warning: $yellow !default;
|
|
|
|
$success: $green !default;
|
|
|
|
$info: $blue !default;
|
|
|
|
$light: $gray-lighter !default;
|
|
|
|
$medium: $gray-light !default;
|
|
|
|
$dark: $black !default;
|
|
|
|
|
|
|
|
$colors: (
|
|
|
|
primary: (
|
|
|
|
base: $primary,
|
2021-05-07 08:31:06 +00:00
|
|
|
contrast: get_contrast_color($primary),
|
2021-02-23 07:53:24 +00:00
|
|
|
shade: get-color-shade($primary),
|
|
|
|
tint: get-color-tint($primary)
|
|
|
|
),
|
|
|
|
secondary: (
|
|
|
|
base: $secondary,
|
2021-05-07 08:31:06 +00:00
|
|
|
contrast: get_contrast_color($secondary),
|
2021-02-23 07:53:24 +00:00
|
|
|
shade: get-color-shade($secondary),
|
|
|
|
tint: get-color-tint($secondary)
|
|
|
|
),
|
|
|
|
tertiary: (
|
|
|
|
base: $tertiary,
|
2021-05-07 08:31:06 +00:00
|
|
|
contrast: get_contrast_color($tertiary),
|
2021-02-23 07:53:24 +00:00
|
|
|
shade: get-color-shade($tertiary),
|
|
|
|
tint: get-color-tint($tertiary)
|
|
|
|
),
|
|
|
|
success: (
|
|
|
|
base: $success,
|
2021-05-07 08:31:06 +00:00
|
|
|
contrast: get_contrast_color($success),
|
2021-02-23 07:53:24 +00:00
|
|
|
shade: get-color-shade($success),
|
|
|
|
tint: get-color-tint($success)
|
|
|
|
),
|
|
|
|
warning: (
|
|
|
|
base: $warning,
|
2021-05-07 08:31:06 +00:00
|
|
|
contrast: get_contrast_color($warning),
|
2021-02-23 07:53:24 +00:00
|
|
|
shade: get-color-shade($warning),
|
|
|
|
tint: get-color-tint($warning)
|
|
|
|
),
|
|
|
|
danger: (
|
|
|
|
base: $danger,
|
2021-05-07 08:31:06 +00:00
|
|
|
contrast: get_contrast_color($danger),
|
2021-02-23 07:53:24 +00:00
|
|
|
shade: get-color-shade($danger),
|
|
|
|
tint: get-color-tint($danger)
|
|
|
|
),
|
|
|
|
info: (
|
|
|
|
base: $info,
|
2021-05-07 08:31:06 +00:00
|
|
|
contrast: get_contrast_color($info),
|
2021-02-23 07:53:24 +00:00
|
|
|
shade: get-color-shade($info),
|
|
|
|
tint: get-color-tint($info)
|
|
|
|
),
|
|
|
|
light: (
|
|
|
|
base: $light,
|
2021-05-07 08:31:06 +00:00
|
|
|
contrast: get_contrast_color($light),
|
2021-02-23 07:53:24 +00:00
|
|
|
shade: get-color-shade($light),
|
|
|
|
tint: get-color-tint($light)
|
|
|
|
),
|
|
|
|
medium: (
|
|
|
|
base: $medium,
|
2021-05-07 08:31:06 +00:00
|
|
|
contrast: get_contrast_color($medium),
|
2021-02-23 07:53:24 +00:00
|
|
|
shade: get-color-shade($medium),
|
|
|
|
tint: get-color-tint($medium)
|
|
|
|
),
|
|
|
|
dark: (
|
|
|
|
base: $dark,
|
2021-05-07 08:31:06 +00:00
|
|
|
contrast: get_contrast_color($dark),
|
2021-02-23 07:53:24 +00:00
|
|
|
shade: get-color-shade($dark),
|
|
|
|
tint: get-color-tint($dark)
|
|
|
|
)
|
|
|
|
) !default;
|
|
|
|
|
|
|
|
// Just swipe light and dark.
|
|
|
|
$colors-dark: (
|
|
|
|
primary: map-get($colors, primary),
|
|
|
|
secondary: map-get($colors, secondary),
|
|
|
|
tertiary: map-get($colors, tertiary),
|
|
|
|
success: map-get($colors, success),
|
|
|
|
warning: map-get($colors, warning),
|
|
|
|
danger: map-get($colors, danger),
|
|
|
|
info: map-get($colors, info),
|
|
|
|
light: map-get($colors, dark),
|
|
|
|
medium: map-get($colors, medium),
|
|
|
|
dark: map-get($colors, light),
|
|
|
|
) !default;
|
|
|
|
|
|
|
|
$core-course-image-background: #81ecec, #74b9ff, #a29bfe, #dfe6e9, #00b894, #0984e3, #b2bec3, #fdcb6e, #fd79a8, #6c5ce7 !default;
|
|
|
|
|
2021-02-18 08:19:38 +00:00
|
|
|
$core-dd-question-colors: $white, $blue-light, #DCDCDC, #D8BFD8, #87CEFA, #DAA520, #FFD700, #F0E68C !default;
|
|
|
|
|
2021-02-03 09:30:07 +00:00
|
|
|
/*
|
|
|
|
* Layout Breakpoints
|
|
|
|
*
|
|
|
|
* https://ionicframework.com/docs/layout/grid#default-breakpoints
|
|
|
|
*/
|
|
|
|
|
2021-03-31 07:17:14 +00:00
|
|
|
// The minimum dimensions at which your layout will change,
|
|
|
|
// adapting to different screen sizes, for use in media queries
|
|
|
|
$screen-breakpoints: (
|
|
|
|
xs: 0,
|
|
|
|
sm: 576px,
|
|
|
|
md: 768px,
|
|
|
|
lg: 992px,
|
|
|
|
tablet: 992px,
|
|
|
|
xl: 1200px
|
|
|
|
) !default;
|
2021-02-03 09:30:07 +00:00
|
|
|
|
2021-03-31 07:17:14 +00:00
|
|
|
$breakpoint-tablet: map-get($screen-breakpoints, tablet), !default;
|
2021-05-05 15:43:40 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Z-indexes.
|
|
|
|
*
|
|
|
|
* https://github.com/ionic-team/ionic-framework/blob/master/core/src/themes/ionic.globals.scss
|
|
|
|
*/
|
|
|
|
|
|
|
|
$z-index-overlay: 1001;
|
|
|
|
$z-index-overlay-wrapper: 10;
|
2021-05-07 08:31:06 +00:00
|
|
|
|
|
|
|
// Top header bar.
|
|
|
|
$toolbar-background: $brand-color !default;
|
|
|
|
$toolbar-color: get_contrast_color($toolbar-background) !default;
|
|
|
|
$toolbar-button-image-size: 44px !default;
|
|
|
|
|
|
|
|
// Bottom tab bar.
|
|
|
|
$bottom-tabs-background: $white !default;
|
|
|
|
$bottom-tabs-color: $gray-darker !default;
|
|
|
|
$bottom-tabs-color-selected: $primary !default;
|
|
|
|
|
|
|
|
$core-text-hightlight-background-color: lighten($blue, 40%) !default;
|
|
|
|
|
|
|
|
$action-sheet-title-color: $primary !default;
|
|
|
|
$action-sheet-selected: $primary !default;
|
|
|
|
|
|
|
|
$core-tabs-background: $white !default;
|
|
|
|
$core-tab-background: $core-tabs-background !default;
|
|
|
|
$core-tab-color: $gray-dark !default;
|
|
|
|
$core-tab-border-color: $gray !default;
|
|
|
|
$core-tab-color-active: $primary !default;
|
|
|
|
$core-tab-border-color-active: $core-tab-color-active !default;
|
|
|
|
|
|
|
|
$core-tabs-background-dark: $black !default;
|
|
|
|
$core-tab-background-dark: $core-tabs-background-dark !default;
|
|
|
|
$core-tab-color-dark: $white !default;
|
|
|
|
$core-tab-border-color-dark: $gray-light !default;
|
|
|
|
|
|
|
|
$core-progressbar-color: $primary !default;
|
|
|
|
$core-progressbar-text-color: $gray-darker !default;
|
|
|
|
$core-progressbar-background: $gray-lighter !default;
|
|
|
|
$core-progressbar-height: 8px !default;
|
|
|
|
|
|
|
|
$core-progressbar-text-color-dark: $gray-lighter !default;
|
|
|
|
|
|
|
|
$core-side-blocks-max-width: 30% !default;
|
|
|
|
$core-side-blocks-min-width: 280px !default;
|
|
|
|
|
|
|
|
////
|
|
|
|
$core-combobox-color: $primary !default;
|
|
|
|
|
|
|
|
$core-selected-item-color: $primary !default;
|
|
|
|
$core-selected-item-border-width: 5px !default;
|
|
|
|
|
|
|
|
$core-login-background: $white !default;
|
|
|
|
$core-login-text-color: $black !default;
|
|
|
|
|
|
|
|
$core-login-background-dark: $black !default;
|
|
|
|
$core-login-text-color-dark: $white !default;
|
|
|
|
|
|
|
|
$core-star-color: $brand-color !default;
|
|
|
|
|
|
|
|
$core-large-avatar-size: 90px !default;
|
|
|
|
$core-avatar-size: 40px !default;
|
|
|
|
|
|
|
|
$core-send-message-input-background: $gray !default;
|
|
|
|
$core-send-message-input-color: $black !default;
|
|
|
|
|
|
|
|
$addon-calendar-event-category-color: $purple !default;
|
|
|
|
$addon-calendar-event-course-color: $red !default;
|
|
|
|
$addon-calendar-event-group-color: $yellow !default;
|
|
|
|
$addon-calendar-event-user-color: $blue !default;
|
|
|
|
$addon-calendar-event-site-color: $green !default;
|
|
|
|
$addon-calendar-today-bgcolor: $primary !default;
|
|
|
|
$addon-calendar-today-color: $white !default;
|
|
|
|
$addon-calendar-border-color: $gray !default;
|
|
|
|
|
|
|
|
$addon-messages-message-bg: $white !default;
|
|
|
|
$addon-messages-message-activated-bg: $gray-light !default;
|
|
|
|
$addon-messages-message-note-text: $gray-dark !default;
|
|
|
|
$addon-messages-message-note-font-size: 75% !default;
|
|
|
|
$addon-messages-message-mine-bg: $gray-light !default;
|
|
|
|
$addon-messages-message-mine-activated-bg: $gray !default;
|
|
|
|
$addon-messages-avatar-size: 30px !default;
|
|
|
|
$addon-messages-discussion-badge: $primary !default;
|
|
|
|
$addon-messages-discussion-badge-text: $white !default;
|
|
|
|
|
|
|
|
$addon-forum-avatar-size: 28px !default;
|
|
|
|
$addon-forum-border-color: $gray !default;
|
|
|
|
$addon-forum-highlight-color: $gray-lighter !default;
|
|
|
|
|
|
|
|
$addon-forum-border-color-dark: $gray-darker !default;
|
|
|
|
$addon-forum-highlight-color-dark: $gray-dark !default;
|