mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
517 lines
18 KiB
SCSS
517 lines
18 KiB
SCSS
// Brand Colors
|
|
// -------------------------------
|
|
|
|
$primary: #4a87ee !default;
|
|
$secondary: #ffffff !default;
|
|
$tertiary: #f5f5f5 !default;
|
|
|
|
|
|
// Utility Colors
|
|
// -------------------------------
|
|
|
|
$positive: #4a87ee !default;
|
|
$calm: #43cee6 !default;
|
|
$balanced: #66cc33 !default;
|
|
$energized: #f0b840 !default;
|
|
$assertive: #ef4e3a !default;
|
|
$royal: #8a6de9 !default;
|
|
|
|
$light: #ffffff !default;
|
|
$stable: #f8f8f8 !default;
|
|
$dark: #444444 !default;
|
|
|
|
|
|
// Base
|
|
// -------------------------------
|
|
|
|
$font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
|
|
$font-family-light-sans-serif: "Helvetica Neue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
|
|
$font-family-serif: Georgia, "Times New Roman", Times, serif !default;
|
|
$font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace !default;
|
|
|
|
$font-family-base: $font-family-sans-serif !default;
|
|
$font-size-base: 14px !default;
|
|
$font-size-large: 18px !default;
|
|
$font-size-small: 11px !default;
|
|
|
|
$line-height-base: 1.428571429 !default; // 20/14
|
|
$line-height-computed: floor($font-size-base * $line-height-base) !default; // ~20px
|
|
|
|
$headings-font-family: $font-family-base !default;
|
|
$headings-font-weight: 500 !default;
|
|
$headings-line-height: 1.1 !default;
|
|
|
|
$base-background-color: #fff;
|
|
$base-color: #000;
|
|
|
|
$link-color: $primary !default;
|
|
$link-hover-color: darken($link-color, 15%) !default;
|
|
|
|
$content-padding: 10px !default;
|
|
|
|
|
|
// Components
|
|
// -------------------------------
|
|
|
|
$padding-base-vertical: 6px !default;
|
|
$padding-base-horizontal: 12px !default;
|
|
|
|
$padding-large-vertical: 10px !default;
|
|
$padding-large-horizontal: 16px !default;
|
|
|
|
$padding-small-vertical: 5px !default;
|
|
$padding-small-horizontal: 10px !default;
|
|
|
|
$line-height-large: 1.33 !default;
|
|
$line-height-small: 1.5 !default;
|
|
|
|
$border-radius-base: 4px !default;
|
|
$border-radius-large: 6px !default;
|
|
$border-radius-small: 3px !default;
|
|
|
|
$caret-width-base: 4px !default;
|
|
$caret-width-large: 5px !default;
|
|
|
|
$component-active-bg: $primary !default;
|
|
|
|
|
|
// Forms
|
|
// -------------------------------
|
|
|
|
$input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default;
|
|
$input-height-large: (floor($font-size-large * $line-height-large) + ($padding-large-vertical * 2) + 2) !default;
|
|
$input-height-small: (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2) !default;
|
|
|
|
$input-bg: $light;
|
|
$input-bg-disabled: $stable;
|
|
|
|
$input-color: $dark;
|
|
$input-label-color: $dark;
|
|
$input-color-placeholder: darken($stable, 10%);
|
|
|
|
|
|
// Toggle
|
|
// -------------------------------
|
|
|
|
$toggle-width: 54px;
|
|
$toggle-height: 32px;
|
|
$toggle-border-width: 2px;
|
|
$toggle-border-radius: 20px;
|
|
|
|
$toggle-handle-width: $toggle-height - ($toggle-border-width * 2);
|
|
$toggle-handle-height: $toggle-handle-width;
|
|
$toggle-handle-radius: 50%;
|
|
|
|
$toggle-off-bg-color: #E5E5E5;
|
|
$toggle-off-border-color: #E5E5E5;
|
|
|
|
$toggle-on-bg-color: #4A87EE;
|
|
$toggle-on-border-color: $toggle-on-bg-color;
|
|
|
|
$toggle-handle-off-bg-color: $light;
|
|
$toggle-handle-on-bg-color: $toggle-handle-off-bg-color;
|
|
|
|
$toggle-transition-duration: .1s;
|
|
|
|
|
|
// Checkbox
|
|
// -------------------------------
|
|
|
|
$checkbox-width: 28px;
|
|
$checkbox-height: 28px;
|
|
$checkbox-border-radius: 50%;
|
|
$checkbox-border-width: 1px;
|
|
|
|
$checkbox-off-bg-color: #fff;
|
|
$checkbox-off-border-color: #4A87EE;
|
|
|
|
$checkbox-on-bg-color: #4A87EE;
|
|
$checkbox-on-border-color: #4A87EE;
|
|
|
|
$checkbox-check-width: 3px;
|
|
$checkbox-check-color: #fff;
|
|
|
|
|
|
// Range
|
|
// -------------------------------
|
|
|
|
$range-track-height: 4px;
|
|
$range-track-color: #ccc;
|
|
$range-slider-width: 20px;
|
|
$range-slider-height: 20px;
|
|
$range-slider-border-radius: 10px;
|
|
|
|
|
|
// Buttons
|
|
// -------------------------------
|
|
|
|
$button-color: #222;
|
|
$button-block-margin: 10px !default;
|
|
$button-clear-padding: 6px !default;
|
|
$button-border-radius: 2px;
|
|
$button-border-width: 1px;
|
|
|
|
$button-font-size: 16px;
|
|
$button-height: 42px;
|
|
$button-padding: 12px !default;
|
|
$button-icon-size: 24px;
|
|
|
|
$button-large-font-size: 18px;
|
|
$button-large-height: 54px;
|
|
$button-large-padding: 16px !default;
|
|
$button-large-icon-size: 32px;
|
|
|
|
$button-small-font-size: 12px;
|
|
$button-small-height: 28px;
|
|
$button-small-padding: 4px !default;
|
|
$button-small-icon-size: 16px;
|
|
|
|
$button-bar-button-font-size: 12px;
|
|
$button-bar-button-height: 32px;
|
|
$button-bar-button-padding: 8px !default;
|
|
$button-bar-button-icon-size: 24px;
|
|
|
|
$button-default-bg: $stable;
|
|
$button-default-text: #444;
|
|
$button-default-border: darken($stable, 15%);
|
|
$button-default-active-bg: lighten($stable, 5%);
|
|
$button-default-active-border: darken($stable, 25%);
|
|
|
|
$button-primary-bg: $primary;
|
|
$button-primary-text: #fff;
|
|
$button-primary-border: darken($primary, 10%);
|
|
$button-primary-active-bg: darken($primary, 5%);
|
|
$button-primary-active-border: darken($primary, 10%);
|
|
|
|
$button-secondary-bg: $secondary;
|
|
$button-secondary-text: #444;
|
|
$button-secondary-border: darken($secondary, 15%);
|
|
$button-secondary-active-bg: lighten($secondary, 10%);
|
|
$button-secondary-active-border: darken($secondary, 20%);
|
|
|
|
$button-tertiary-bg: $tertiary;
|
|
$button-tertiary-text: #444;
|
|
$button-tertiary-border: darken($tertiary, 25%);
|
|
$button-tertiary-active-bg: lighten($tertiary, 10%);
|
|
$button-tertiary-active-border: darken($tertiary, 15%);
|
|
|
|
$button-positive-bg: $positive;
|
|
$button-positive-text: #fff;
|
|
$button-positive-border: darken($positive, 15%);
|
|
$button-positive-active-bg: darken($positive, 15%);
|
|
$button-positive-active-border: darken($positive, 15%);
|
|
|
|
$button-calm-bg: $calm;
|
|
$button-calm-text: #fff;
|
|
$button-calm-border: darken($calm, 15%);
|
|
$button-calm-active-bg: darken($calm, 15%);
|
|
$button-calm-active-border: darken($calm, 15%);
|
|
|
|
$button-assertive-bg: $assertive;
|
|
$button-assertive-text: #fff;
|
|
$button-assertive-border: darken($assertive, 15%);
|
|
$button-assertive-active-bg: darken($assertive, 15%);
|
|
$button-assertive-active-border: darken($assertive, 15%);
|
|
|
|
$button-balanced-bg: $balanced;
|
|
$button-balanced-text: #fff;
|
|
$button-balanced-border: darken($balanced, 15%);
|
|
$button-balanced-active-bg: darken($balanced, 15%);
|
|
$button-balanced-active-border: darken($balanced, 15%);
|
|
|
|
$button-energized-bg: $energized;
|
|
$button-energized-text: #fff;
|
|
$button-energized-border: darken($energized, 15%);
|
|
$button-energized-active-bg: darken($energized, 15%);
|
|
$button-energized-active-border: darken($energized, 15%);
|
|
|
|
$button-royal-bg: $royal;
|
|
$button-royal-text: #fff;
|
|
$button-royal-border: darken($royal, 15%);
|
|
$button-royal-active-bg: darken($royal, 15%);
|
|
$button-royal-active-border: darken($royal, 15%);
|
|
|
|
$button-light-bg: $light;
|
|
$button-light-text: #444;
|
|
$button-light-border: #ddd;
|
|
$button-light-active-bg: #222;
|
|
$button-light-active-border: #000;
|
|
|
|
$button-stable-bg: $stable;
|
|
$button-stable-text: #444;
|
|
$button-stable-border: #bbb;
|
|
$button-stable-active-bg: #222;
|
|
$button-stable-active-border: #000;
|
|
|
|
$button-dark-bg: $dark;
|
|
$button-dark-text: #fff;
|
|
$button-dark-border: #444;
|
|
$button-dark-active-bg: #222;
|
|
$button-dark-active-border: #000;
|
|
|
|
|
|
// Bars
|
|
// -------------------------------
|
|
|
|
$bar-height: 44px !default;
|
|
$bar-title-font-size: $font-size-large;
|
|
$bar-padding-portrait: 5px;
|
|
$bar-padding-landscape: 5px;
|
|
$bar-transparency: 1;
|
|
|
|
$bar-default-bg: #fff;
|
|
$bar-default-text: #444;
|
|
$bar-default-border: #444;
|
|
$bar-default-active-bg: #fff;
|
|
$bar-default-active-border: #444;
|
|
|
|
$bar-primary-bg: rgba($button-primary-bg, $bar-transparency);
|
|
$bar-primary-text: $button-primary-text;
|
|
$bar-primary-border: $button-primary-border;
|
|
$bar-primary-active-bg: $button-primary-active-bg;
|
|
$bar-primary-active-border: $button-primary-active-border;
|
|
|
|
$bar-secondary-bg: rgba($button-secondary-bg, $bar-transparency);
|
|
$bar-secondary-text: $button-secondary-text;
|
|
$bar-secondary-border: $button-secondary-border;
|
|
$bar-secondary-active-bg: $button-secondary-active-bg;
|
|
$bar-secondary-active-border: $button-secondary-active-border;
|
|
|
|
$bar-tertiary-bg: rgba($button-tertiary-bg, $bar-transparency);
|
|
$bar-tertiary-text: $button-tertiary-text;
|
|
$bar-tertiary-border: $button-tertiary-border;
|
|
$bar-tertiary-active-bg: $button-tertiary-active-bg;
|
|
$bar-tertiary-active-border: $button-tertiary-active-border;
|
|
|
|
$bar-positive-bg: rgba($button-positive-bg, $bar-transparency);
|
|
$bar-positive-text: $button-positive-text;
|
|
$bar-positive-border: $button-positive-border;
|
|
$bar-positive-active-bg: $button-positive-active-bg;
|
|
$bar-positive-active-border: $button-positive-active-border;
|
|
|
|
$bar-calm-bg: rgba($button-calm-bg, $bar-transparency);
|
|
$bar-calm-text: $button-calm-text;
|
|
$bar-calm-border: $button-calm-border;
|
|
$bar-calm-active-bg: $button-calm-active-bg;
|
|
$bar-calm-active-border: $button-calm-active-border;
|
|
|
|
$bar-assertive-bg: rgba($button-assertive-bg, $bar-transparency);
|
|
$bar-assertive-text: $button-assertive-text;
|
|
$bar-assertive-border: $button-assertive-border;
|
|
$bar-assertive-active-bg: $button-assertive-active-bg;
|
|
$bar-assertive-active-border: $button-assertive-active-border;
|
|
|
|
$bar-balanced-bg: rgba($button-balanced-bg, $bar-transparency);
|
|
$bar-balanced-text: $button-balanced-text;
|
|
$bar-balanced-border: $button-balanced-border;
|
|
$bar-balanced-active-bg: $button-balanced-active-bg;
|
|
$bar-balanced-active-border: $button-balanced-active-border;
|
|
|
|
$bar-energized-bg: rgba($button-energized-bg, $bar-transparency);
|
|
$bar-energized-text: $button-energized-text;
|
|
$bar-energized-border: $button-energized-border;
|
|
$bar-energized-active-bg: $button-energized-active-bg;
|
|
$bar-energized-active-border: $button-energized-active-border;
|
|
|
|
$bar-royal-bg: rgba($button-royal-bg, $bar-transparency);
|
|
$bar-royal-text: $button-royal-text;
|
|
$bar-royal-border: $button-royal-border;
|
|
$bar-royal-active-bg: $button-royal-active-bg;
|
|
$bar-royal-active-border: $button-royal-active-border;
|
|
|
|
$bar-light-bg: rgba($button-light-bg, $bar-transparency);
|
|
$bar-light-text: $button-light-text;
|
|
$bar-light-border: $button-light-border;
|
|
$bar-light-active-bg: $button-light-active-bg;
|
|
$bar-light-active-border: $button-light-active-border;
|
|
|
|
$bar-stable-bg: rgba($button-stable-bg, $bar-transparency);
|
|
$bar-stable-text: $button-stable-text;
|
|
$bar-stable-border: $button-stable-border;
|
|
$bar-stable-active-bg: $button-stable-active-bg;
|
|
$bar-stable-active-border: $button-stable-active-border;
|
|
|
|
$bar-dark-bg: rgba($button-dark-bg, $bar-transparency);
|
|
$bar-dark-text: $button-dark-text;
|
|
$bar-dark-border: $button-dark-border;
|
|
$bar-dark-active-bg: $button-dark-active-bg;
|
|
$bar-dark-active-border: $button-dark-active-border;
|
|
|
|
|
|
// Tabs
|
|
// -------------------------------
|
|
|
|
$tabs-height: 49px !default;
|
|
$tabs-text-font-size: 14px !default;
|
|
$tabs-text-with-icon-font-size: 10px !default;
|
|
$tabs-icon-size: 32px !default;
|
|
|
|
$tabs-default-bg: $button-stable-bg;
|
|
$tabs-default-border-color: $button-stable-border;
|
|
$tabs-default-text: $button-stable-text;
|
|
|
|
$tabs-primary-bg: $button-primary-bg;
|
|
$tabs-primary-border-color: $button-primary-border;
|
|
$tabs-primary-text: $button-primary-text;
|
|
|
|
$tabs-secondary-bg: $button-secondary-bg;
|
|
$tabs-secondary-border-color: $button-secondary-border;
|
|
$tabs-secondary-text: $button-secondary-text;
|
|
|
|
$tabs-tertiary-bg: $button-tertiary-bg;
|
|
$tabs-tertiary-border-color: $button-tertiary-border;
|
|
$tabs-tertiary-text: $button-tertiary-text;
|
|
|
|
$tabs-positive-bg: $button-positive-bg;
|
|
$tabs-positive-border-color: $button-positive-border;
|
|
$tabs-positive-text: $button-positive-text;
|
|
|
|
$tabs-calm-bg: $button-calm-bg;
|
|
$tabs-calm-border-color: $button-calm-border;
|
|
$tabs-calm-text: $button-calm-text;
|
|
|
|
$tabs-assertive-bg: $button-assertive-bg;
|
|
$tabs-assertive-border-color: $button-assertive-border;
|
|
$tabs-assertive-text: $button-assertive-text;
|
|
|
|
$tabs-balanced-bg: $button-balanced-bg;
|
|
$tabs-balanced-border-color: $button-balanced-border;
|
|
$tabs-balanced-text: $button-balanced-text;
|
|
|
|
$tabs-energized-bg: $button-energized-bg;
|
|
$tabs-energized-border-color: $button-energized-border;
|
|
$tabs-energized-text: $button-energized-text;
|
|
|
|
$tabs-royal-bg: $button-royal-bg;
|
|
$tabs-royal-border-color: $button-royal-border;
|
|
$tabs-royal-text: $button-royal-text;
|
|
|
|
$tabs-light-bg: $button-light-bg;
|
|
$tabs-light-border-color: $button-light-border;
|
|
$tabs-light-text: $button-light-text;
|
|
|
|
$tabs-stable-bg: $button-stable-bg;
|
|
$tabs-stable-border-color: $button-stable-border;
|
|
$tabs-stable-text: $button-stable-text;
|
|
|
|
$tabs-dark-bg: $button-dark-bg;
|
|
$tabs-dark-border-color: $button-dark-border;
|
|
$tabs-dark-text: $button-dark-text;
|
|
|
|
|
|
// Lists
|
|
// -------------------------------
|
|
|
|
$list-font-size: 16px;
|
|
|
|
$list-header-bg: transparent;
|
|
$list-header-color: #222;
|
|
$list-header-padding: 5px 15px;
|
|
$list-header-margin-top: 20px !default;
|
|
|
|
$list-bg: $light;
|
|
$list-border-color: #ddd;
|
|
|
|
|
|
// Cards
|
|
// -------------------------------
|
|
|
|
$card-header-bg: #F5F5F5;
|
|
$card-body-bg: #fff;
|
|
$card-footer-bg: #F5F5F5;
|
|
|
|
$card-padding: 10px !default;
|
|
$card-border-width: 1px !default;
|
|
|
|
$card-border-color: #ccc;
|
|
$card-border-radius: 2px !default;
|
|
|
|
|
|
// Items
|
|
// -------------------------------
|
|
|
|
$item-border-width: 1px !default;
|
|
$item-border-color: #ddd;
|
|
$item-border-style: solid;
|
|
$item-padding: 15px !default;
|
|
|
|
$item-divider-bg: #f5f5f5;
|
|
$item-divider-color: #222;
|
|
$item-divider-padding: 5px 15px;
|
|
|
|
$item-icon-font-size: 32px !default;
|
|
$item-icon-fill-font-size: 28px !default;
|
|
|
|
$item-avitar-width: 40px !default;
|
|
$item-avitar-height: 40px !default;
|
|
|
|
$item-thumbnail-width: 80px !default;
|
|
$item-thumbnail-height: 80px !default;
|
|
$item-thumbnail-margin: 10px !default;
|
|
|
|
|
|
// Icons
|
|
// -------------------------------
|
|
|
|
$icon-fill-border-radius: 6px !default;
|
|
|
|
|
|
// Menus
|
|
// -------------------------------
|
|
|
|
$menu-bg: #eee;
|
|
$menu-inset-border-color: #bbb;
|
|
$menu-width: 270px;
|
|
$menu-animation-speed: 200ms;
|
|
|
|
$menu-side-shadow: -1px 0px 3px rgba(0, 0, 0, 0.2), 1px 0px 3px rgba(0,0,0,0.2);
|
|
|
|
$split-pane-menu-width: 320px;
|
|
$split-pane-menu-border-color: #eee;
|
|
|
|
|
|
// Modals
|
|
// -------------------------------
|
|
|
|
$modal-bg-color: #fff !default;
|
|
|
|
|
|
// Grids
|
|
// -------------------------------
|
|
|
|
$grid-padding-width: 10px !default;
|
|
|
|
|
|
// Action Sheets
|
|
// -------------------------------
|
|
|
|
$sheet-bg-color: rgba(255, 255, 255, 0.6) !default;
|
|
$sheet-opacity: 0.95 !default;
|
|
|
|
// Border radii for the action sheet button groups
|
|
$sheet-border-radius: 3px 3px 3px 3px !default;
|
|
$sheet-border-radius-top: 3px 3px 0px 0px !default;
|
|
$sheet-border-radius-bottom: 0px 0px 3px 3px !default;
|
|
|
|
|
|
// Badges
|
|
// -------------------------
|
|
|
|
$badge-color: $light !default;
|
|
$badge-link-hover-color: $light !default;
|
|
$badge-bg: $stable !default;
|
|
|
|
$badge-active-color: $link-color !default;
|
|
$badge-active-bg: $light !default;
|
|
|
|
$badge-font-size: 14px !default;
|
|
$badge-line-height: 16px !default;
|
|
$badge-font-weight: bold !default;
|
|
$badge-border-radius: 10px !default;
|
|
|
|
|
|
// Z-Indexes
|
|
// -------------------------------
|
|
|
|
$zindex-modal: 10;
|