2015-03-05 07:19:51 +08:00
|
|
|
// Color abstraction hierarchy:
|
2015-03-04 04:00:04 +08:00
|
|
|
// 1. Hex code (#428bca)
|
|
|
|
// 2. Common color name (@blue)
|
|
|
|
// 3. Generic color descriptor (@accent-primary, @background-primary)
|
|
|
|
// --------
|
|
|
|
// 4. Generic usage descriptor (@input-background, @button-background)
|
|
|
|
// 5. Application-specific usage (@unread-label-background)
|
|
|
|
|
2015-03-05 07:19:51 +08:00
|
|
|
// Typography abstraction hierarchy
|
2015-10-02 02:48:19 +08:00
|
|
|
// 1. Font-face (Nylas-Pro)
|
2015-03-04 04:00:04 +08:00
|
|
|
// 2. Common name (@bold, @italic)
|
|
|
|
// 3. Generic font descriptor mixins (.bold, .italic, .h1, .h2)
|
|
|
|
// --------
|
|
|
|
// 4. Generic usage descriptor (.btn-text, .p-body)
|
2015-08-29 03:16:32 +08:00
|
|
|
// 5. Application-specific usage (.message-list-h1)
|
2015-03-04 04:00:04 +08:00
|
|
|
|
|
|
|
//=============================== Colors ===============================//
|
|
|
|
//== Brand colors
|
2015-05-15 08:08:30 +08:00
|
|
|
@nylas-yellow: #D5DC28;
|
|
|
|
@nylas-yellow-dark: #A0C23A;
|
|
|
|
@nylas-green: #5CB346;
|
|
|
|
@nylas-green-dark: #078E46;
|
|
|
|
@nylas-blue: #11A1A2;
|
|
|
|
@nylas-blue-dark: #0F7982;
|
|
|
|
@nylas-black: #313435;
|
|
|
|
@nylas-gray: #434648;
|
2015-03-04 04:00:04 +08:00
|
|
|
|
|
|
|
//== Generic colors
|
2015-05-15 08:08:30 +08:00
|
|
|
@black: @nylas-black;
|
2015-03-04 04:00:04 +08:00
|
|
|
@gray-base: #0a0b0c;
|
|
|
|
@gray-darker: lighten(@gray-base, 13.5%); // #222
|
|
|
|
@gray-dark: lighten(@gray-base, 20%); // #333
|
|
|
|
@gray: lighten(@gray-base, 33.5%); // #555
|
|
|
|
@gray-light: lighten(@gray-base, 46.7%); // #777
|
|
|
|
@gray-lighter: lighten(@gray-base, 92.5%); // #eee
|
|
|
|
@white: #ffffff;
|
|
|
|
|
2015-04-09 10:25:00 +08:00
|
|
|
@blue: #419bf9;
|
|
|
|
@blue-dark: #3187e1;
|
2015-03-11 02:29:14 +08:00
|
|
|
|
2015-03-04 04:00:04 +08:00
|
|
|
//== Color descriptors
|
2015-03-11 02:29:14 +08:00
|
|
|
@accent-primary: @blue;
|
|
|
|
@accent-primary-dark: @blue-dark;
|
2015-05-15 08:08:30 +08:00
|
|
|
@accent-secondary: @nylas-yellow;
|
2015-03-04 04:00:04 +08:00
|
|
|
|
2015-03-12 04:17:11 +08:00
|
|
|
@background-primary: #ffffff;
|
2015-06-09 08:02:50 +08:00
|
|
|
@background-off-primary: #fdfdfd;
|
2015-03-12 04:17:11 +08:00
|
|
|
@background-secondary: #f6f6f6;
|
|
|
|
@background-tertiary: #6d7987;
|
2015-11-10 10:52:24 +08:00
|
|
|
@background-selected: @light-blue;
|
2015-03-04 04:00:04 +08:00
|
|
|
|
2015-03-04 10:51:56 +08:00
|
|
|
@border-primary-bg: darken(@background-primary, 10%);
|
|
|
|
@border-secondary-bg: darken(@background-secondary, 10%);
|
|
|
|
@border-tertiary-bg: darken(@background-tertiary, 10%);
|
2015-03-05 07:52:40 +08:00
|
|
|
@border-color-divider: @border-secondary-bg;
|
2015-03-04 10:51:56 +08:00
|
|
|
|
2015-03-11 02:29:14 +08:00
|
|
|
@info-color: @blue-dark;
|
2015-05-15 08:08:30 +08:00
|
|
|
@success-color: @nylas-green;
|
2015-03-04 04:00:04 +08:00
|
|
|
@warning-color: #f0ad4e;
|
|
|
|
@error-color: #d9534f;
|
|
|
|
@danger-color: #d9534f;
|
|
|
|
|
|
|
|
|
|
|
|
//============================= Typography =============================//
|
|
|
|
|
2015-03-04 04:24:48 +08:00
|
|
|
// ----- Colors -----
|
|
|
|
@text-color: @black;
|
2015-03-04 10:09:57 +08:00
|
|
|
@text-color-subtle: fadeout(@text-color, 20%);
|
|
|
|
@text-color-very-subtle: fadeout(@text-color, 50%);
|
2015-03-04 04:00:04 +08:00
|
|
|
@text-color-inverse: @white;
|
2015-03-04 10:09:57 +08:00
|
|
|
@text-color-inverse-subtle: fadeout(@text-color-inverse, 20%);
|
|
|
|
@text-color-inverse-very-subtle: fadeout(@text-color-inverse, 50%);
|
2015-07-29 09:21:30 +08:00
|
|
|
@text-color-alert: #e64d65;
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-05-15 08:08:30 +08:00
|
|
|
@text-color-heading: @nylas-gray;
|
2015-03-05 01:49:09 +08:00
|
|
|
|
2015-03-11 02:29:14 +08:00
|
|
|
@text-color-link: @blue;
|
|
|
|
@text-color-link-hover: @blue-dark;
|
|
|
|
@text-color-link-active: @blue-dark;
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-03-04 04:24:48 +08:00
|
|
|
@text-color-selected: @text-color-inverse;
|
|
|
|
@text-color-highlight: @text-color;
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-03-04 04:24:48 +08:00
|
|
|
@text-color-info: @info-color;
|
|
|
|
@text-color-success: @success-color;
|
|
|
|
@text-color-warning: @warning-color;
|
|
|
|
@text-color-error: @error-color;
|
|
|
|
@text-color-destructive: @danger-color;
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-10-02 08:54:41 +08:00
|
|
|
@font-family-sans-serif: "Nylas-Pro", "Helvetica", sans-serif;
|
|
|
|
@font-family-sans-serif: "Nylas-Pro", "Helvetica", sans-serif;
|
2015-02-21 05:17:11 +08:00
|
|
|
@font-family-serif: Georgia, "Times New Roman", Times, serif;
|
|
|
|
@font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
|
2015-03-04 04:24:48 +08:00
|
|
|
|
2015-02-21 05:17:11 +08:00
|
|
|
@font-family-base: @font-family-sans-serif;
|
2015-03-04 04:24:48 +08:00
|
|
|
@font-family: @font-family-base;
|
|
|
|
@font-family-heading: @font-family-sans-serif;
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-03-04 10:09:57 +08:00
|
|
|
// ----- Font Weights -----
|
2015-03-04 10:51:56 +08:00
|
|
|
@font-weight-blond: 300;
|
2015-03-04 10:09:57 +08:00
|
|
|
@font-weight-normal: 400;
|
|
|
|
@font-weight-medium: 500;
|
|
|
|
@font-weight-semi-bold: 600;
|
2015-03-04 10:51:56 +08:00
|
|
|
@headings-font-weight: 600;
|
2015-03-04 10:09:57 +08:00
|
|
|
|
2015-03-04 04:24:48 +08:00
|
|
|
// ----- Font Sizes -----
|
2015-02-21 05:17:11 +08:00
|
|
|
@font-size-base: 15px;
|
2015-03-04 10:09:57 +08:00
|
|
|
|
2015-10-29 06:50:04 +08:00
|
|
|
@font-size-tiny: @font-size-base * 0.70; // 10.5px
|
2015-03-04 10:09:57 +08:00
|
|
|
@font-size-smaller: @font-size-base * 0.80; // 12px
|
|
|
|
@font-size-small: @font-size-base * 0.93; // 14px
|
|
|
|
@font-size: @font-size-base; // 15px
|
|
|
|
@font-size-large: @font-size-base * 1.06; // 16px
|
|
|
|
@font-size-larger: @font-size-base * 1.20; // 18px
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-03-04 10:51:56 +08:00
|
|
|
@font-size-h1: @font-size-base * 1.6; // 24px
|
|
|
|
@font-size-h2: @font-size-base * 1.6; // 24px
|
|
|
|
@font-size-h3: @font-size-base * 1.7; // 24px
|
|
|
|
@font-size-h4: @font-size-base * 1.25; // 18px
|
2015-02-21 05:17:11 +08:00
|
|
|
@font-size-h5: @font-size-base;
|
2015-03-04 10:51:56 +08:00
|
|
|
@font-size-h6: @font-size-base * 0.85; // 12px
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-03-04 04:24:48 +08:00
|
|
|
// ----- Line Height -----
|
2015-03-04 10:09:57 +08:00
|
|
|
@line-height-base: 1.5; // 22.5/15
|
2015-03-04 04:24:48 +08:00
|
|
|
@line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px
|
|
|
|
@line-height-heading: 1.1;
|
2015-02-21 05:17:11 +08:00
|
|
|
|
|
|
|
|
2015-03-04 04:24:48 +08:00
|
|
|
//============================ Iconography =============================//
|
|
|
|
// Specify custom location and filename of the included Glyphicons icon
|
|
|
|
// font. Useful for those including Bootstrap via Bower.
|
2015-02-21 05:17:11 +08:00
|
|
|
|
|
|
|
//** Load fonts from this directory.
|
|
|
|
@icon-font-path: "../fonts/";
|
|
|
|
//** File name for all font files.
|
|
|
|
@icon-font-name: "glyphicons-halflings-regular";
|
|
|
|
//** Element ID within SVG icon file.
|
|
|
|
@icon-font-svg-id: "glyphicons_halflingsregular";
|
|
|
|
|
|
|
|
|
2015-03-04 04:24:48 +08:00
|
|
|
//============================== Spacing ===============================//
|
|
|
|
// Define common padding and border radius sizes and more. Values based on
|
|
|
|
// 14px text and 1.428 line-height (~20px to start).
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-03-04 10:09:57 +08:00
|
|
|
@spacing-standard: @font-size-base;
|
2015-03-05 01:49:09 +08:00
|
|
|
|
|
|
|
@spacing-quarter: @spacing-standard * 0.25;
|
2015-03-04 10:09:57 +08:00
|
|
|
@spacing-half: @spacing-standard * 0.5;
|
2015-03-05 01:49:09 +08:00
|
|
|
@spacing-three-quarters: @spacing-standard * 0.75;
|
|
|
|
|
|
|
|
@spacing-sub-double: @spacing-standard * 1.75;
|
|
|
|
@spacing-double: @spacing-standard * 2;
|
|
|
|
@spacing-super-double: @spacing-standard * 2.25;
|
|
|
|
|
2015-03-04 10:09:57 +08:00
|
|
|
|
2015-02-21 05:17:11 +08:00
|
|
|
@padding-base-vertical: 6px;
|
|
|
|
@padding-base-horizontal: 12px;
|
|
|
|
|
|
|
|
@padding-large-vertical: 10px;
|
|
|
|
@padding-large-horizontal: 16px;
|
|
|
|
|
|
|
|
@padding-small-vertical: 5px;
|
|
|
|
@padding-small-horizontal: 10px;
|
|
|
|
|
|
|
|
@padding-xs-vertical: 1px;
|
|
|
|
@padding-xs-horizontal: 5px;
|
|
|
|
|
|
|
|
@line-height-large: @line-height-computed * 1.3;
|
|
|
|
@line-height-small: @line-height-computed * 0.95;
|
|
|
|
|
|
|
|
@border-radius-base: 4px;
|
|
|
|
@border-radius-large: 6px;
|
|
|
|
@border-radius-small: 3px;
|
|
|
|
|
2015-03-04 04:24:48 +08:00
|
|
|
|
2015-03-12 04:17:11 +08:00
|
|
|
//============================== Shadows ===============================//
|
|
|
|
@standard-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.21);
|
|
|
|
@standard-shadow-up: 0 -1px 4px 0 rgba(0, 0, 0, 0.21);
|
|
|
|
|
2015-03-04 04:24:48 +08:00
|
|
|
//=============================== Buttons ==============================//
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-03-12 04:17:11 +08:00
|
|
|
@btn-shadow: @standard-shadow;
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-03-04 10:09:57 +08:00
|
|
|
@btn-default-bg-color: @background-primary;
|
|
|
|
@btn-default-text-color: @text-color;
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-03-04 10:09:57 +08:00
|
|
|
@btn-action-bg-color: @success-color;
|
|
|
|
@btn-action-text-color: @text-color;
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-03-24 07:33:28 +08:00
|
|
|
@btn-emphasis-bg-color: #5b90fb;
|
2015-03-04 10:09:57 +08:00
|
|
|
@btn-emphasis-text-color: @text-color-inverse;
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-03-04 10:09:57 +08:00
|
|
|
@btn-danger-bg-color: @danger-color;
|
|
|
|
@btn-danger-text-color: @text-color-inverse;
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-10-22 02:27:53 +08:00
|
|
|
//=============================== Dropdowns ============================//
|
|
|
|
|
|
|
|
@dropdown-default-bg-color: @background-primary;
|
|
|
|
@dropdown-default-text-color: @text-color;
|
|
|
|
@dropdown-default-border-color: fadeout(@border-color, 10%);
|
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
//=============================== Inputs ===============================//
|
2015-02-21 05:17:11 +08:00
|
|
|
|
|
|
|
//** `<input>` background color
|
|
|
|
@input-bg: #fff;
|
|
|
|
//** `<input disabled>` background color
|
|
|
|
@input-bg-disabled: @gray-lighter;
|
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
@input-background-color: white;
|
|
|
|
|
|
|
|
@input-border-color: fadeout(@border-color, 10%);
|
|
|
|
@input-border-color-blurred: desaturate(@input-border-color, 100%);
|
|
|
|
|
2015-11-10 10:52:24 +08:00
|
|
|
@input-tint-color: fade(@background-selected, 10%);
|
2015-03-05 04:30:54 +08:00
|
|
|
@input-tint-color-hover: fade(@input-tint-color, 30%);
|
|
|
|
@input-tint-color-blurred: desaturate(@input-tint-color, 100%);
|
|
|
|
|
|
|
|
|
|
|
|
@input-accessory-color-hover: @light-blue;
|
2015-06-19 00:43:18 +08:00
|
|
|
@input-accessory-color: @gray-light;
|
2015-03-26 02:17:57 +08:00
|
|
|
@input-cancel-color: @red;
|
2015-03-05 04:30:54 +08:00
|
|
|
|
2015-02-21 05:17:11 +08:00
|
|
|
//** Text color for `<input>`s
|
|
|
|
@input-color: @gray;
|
|
|
|
//** `<input>` border color
|
|
|
|
@input-border: #ccc;
|
|
|
|
|
|
|
|
// TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
|
|
|
|
//** Default `.form-control` border radius
|
|
|
|
@input-border-radius: @border-radius-base;
|
|
|
|
//** Large `.form-control` border radius
|
|
|
|
@input-border-radius-large: @border-radius-large;
|
|
|
|
//** Small `.form-control` border radius
|
|
|
|
@input-border-radius-small: @border-radius-small;
|
|
|
|
|
|
|
|
//** Border color for inputs on focus
|
|
|
|
@input-border-focus: #66afe9;
|
|
|
|
|
|
|
|
//** Placeholder text color
|
|
|
|
@input-color-placeholder: #999;
|
|
|
|
|
|
|
|
//** Default `.form-control` height
|
|
|
|
@input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2);
|
|
|
|
//** Large `.form-control` height
|
|
|
|
@input-height-large: (ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
|
|
|
|
//** Small `.form-control` height
|
|
|
|
@input-height-small: (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
|
|
|
|
|
|
|
|
//** Background color for textual input addons
|
|
|
|
@input-group-addon-bg: @gray-lighter;
|
|
|
|
//** Border color for textual input addons
|
|
|
|
@input-group-addon-border-color: @input-border;
|
|
|
|
|
|
|
|
|
2015-03-04 04:24:48 +08:00
|
|
|
//=============================== Z-Index ==============================//
|
2015-02-21 05:17:11 +08:00
|
|
|
//-- Z-index master list
|
|
|
|
//
|
2015-03-04 04:24:48 +08:00
|
|
|
// Warning: Avoid customizing these values. They're used for a bird's eye
|
|
|
|
// view of components dependent on the z-axis and are designed to all work
|
|
|
|
// together.
|
2015-02-21 05:17:11 +08:00
|
|
|
//
|
|
|
|
// Note: These variables are not generated into the Customizer.
|
|
|
|
|
|
|
|
@zindex-navbar: 1000;
|
|
|
|
@zindex-dropdown: 1000;
|
|
|
|
@zindex-popover: 1060;
|
|
|
|
@zindex-tooltip: 1070;
|
|
|
|
@zindex-navbar-fixed: 1030;
|
|
|
|
@zindex-modal: 1040;
|
|
|
|
|
2015-03-04 04:24:48 +08:00
|
|
|
|
|
|
|
|
2015-04-09 10:25:00 +08:00
|
|
|
//** Global color for active items (e.g., navs or dropdowns).
|
|
|
|
@component-active-color: @accent-primary-dark;
|
|
|
|
//** Global background color for active items (e.g., navs or dropdowns).
|
|
|
|
@component-active-bg: @background-primary;
|
2015-03-04 04:24:48 +08:00
|
|
|
|
2015-04-09 10:25:00 +08:00
|
|
|
@component-secondary-active-bg: @background-primary;
|
2015-03-04 04:24:48 +08:00
|
|
|
|
2015-02-21 05:17:11 +08:00
|
|
|
//== Source List (used in Sidebar, iTunes-style)
|
|
|
|
//
|
|
|
|
// ##
|
|
|
|
|
|
|
|
//** Background color on `.list-group-item`
|
2015-06-09 08:02:50 +08:00
|
|
|
@source-list-bg: @panel-background-color;
|
|
|
|
//** Background color of active list items
|
|
|
|
@source-list-active-bg: @panel-background-color;
|
2015-02-21 05:17:11 +08:00
|
|
|
//** Text color of active list items
|
|
|
|
@source-list-active-color: @component-active-color;
|
|
|
|
|
|
|
|
//== List
|
|
|
|
//
|
|
|
|
//##
|
|
|
|
|
|
|
|
//** Background color on `.list-group-item`
|
|
|
|
@list-bg: #fff;
|
|
|
|
//** `.list-item` border color
|
|
|
|
@list-border: #ddd;
|
|
|
|
//** List group border radius
|
|
|
|
@list-border-radius: @border-radius-base;
|
|
|
|
|
|
|
|
//** Background color of single list items on hover
|
2015-11-10 10:52:24 +08:00
|
|
|
@list-hover-bg: darken(@list-bg, 4%);
|
2015-04-09 10:25:00 +08:00
|
|
|
|
|
|
|
//** Text color of active list items
|
|
|
|
@list-focused-color: @list-bg;
|
|
|
|
//** Background color of active list items
|
|
|
|
@list-focused-bg: @component-active-color;
|
|
|
|
//** Border color of active list elements
|
|
|
|
@list-focused-border: @list-focused-bg;
|
|
|
|
//** Text color for content within active list items
|
|
|
|
@list-focused-color-muted: lighten(@list-focused-bg, 40%);
|
|
|
|
|
2015-02-21 05:17:11 +08:00
|
|
|
//** Text color of active list items
|
2015-04-09 10:25:00 +08:00
|
|
|
@list-selected-color: inherit;
|
2015-02-21 05:17:11 +08:00
|
|
|
//** Background color of active list items
|
2015-06-12 09:38:57 +08:00
|
|
|
@list-selected-bg: mix(@component-active-color, @list-bg, 17%);
|
2015-02-21 05:17:11 +08:00
|
|
|
//** Border color of active list elements
|
2015-06-12 09:38:57 +08:00
|
|
|
@list-selected-border: mix(@component-active-color, @list-bg, 50%);
|
2015-02-21 05:17:11 +08:00
|
|
|
//** Text color for content within active list items
|
2015-06-12 09:38:57 +08:00
|
|
|
@list-selected-color-muted: lighten(@list-selected-bg, 40%);
|
2015-02-21 05:17:11 +08:00
|
|
|
|
|
|
|
//** Text color of disabled list items
|
|
|
|
@list-disabled-color: @gray-light;
|
|
|
|
//** Background color of disabled list items
|
|
|
|
@list-disabled-bg: @gray-lighter;
|
|
|
|
//** Text color for content within disabled list items
|
|
|
|
@list-disabled-text-color: @list-disabled-color;
|
|
|
|
|
|
|
|
|
|
|
|
//** Abbreviations and acronyms border color
|
|
|
|
@abbr-border-color: @gray-light;
|
|
|
|
//** Blockquote small color
|
|
|
|
@blockquote-small-color: @gray-light;
|
|
|
|
//** Blockquote font size
|
|
|
|
@blockquote-font-size: (@font-size-base * 1.25);
|
|
|
|
//** Blockquote border color
|
|
|
|
@blockquote-border-color: @gray-lighter;
|
|
|
|
|
|
|
|
|
2015-03-05 01:49:09 +08:00
|
|
|
|
2015-02-21 05:17:11 +08:00
|
|
|
//== Form states and alerts
|
|
|
|
//
|
|
|
|
//## Define colors for form feedback states and, by default, alerts.
|
|
|
|
|
|
|
|
@state-success-text: #3c763d;
|
|
|
|
@state-success-bg: #dff0d8;
|
|
|
|
@state-success-border: darken(spin(@state-success-bg, -10), 5%);
|
|
|
|
|
|
|
|
@state-info-text: #31708f;
|
|
|
|
@state-info-bg: #d9edf7;
|
|
|
|
@state-info-border: darken(spin(@state-info-bg, -10), 7%);
|
|
|
|
|
|
|
|
@state-warning-text: #8a6d3b;
|
|
|
|
@state-warning-bg: #fcf8e3;
|
|
|
|
@state-warning-border: darken(spin(@state-warning-bg, -10), 5%);
|
|
|
|
|
|
|
|
@state-danger-text: #a94442;
|
|
|
|
@state-danger-bg: #f2dede;
|
|
|
|
@state-danger-border: darken(spin(@state-danger-bg, -10), 5%);
|
|
|
|
|
|
|
|
/////
|
|
|
|
|
2015-03-05 07:19:51 +08:00
|
|
|
// -------------
|
|
|
|
// EVERYTHING BELOW THIS NEEDS TO BE DEPRECATED OR MOVED ABOVE THIS
|
|
|
|
// old stuff
|
|
|
|
// -------------
|
2015-02-21 05:17:11 +08:00
|
|
|
|
2015-02-07 08:57:33 +08:00
|
|
|
// Private
|
|
|
|
//
|
|
|
|
// Do not use these colors outside of this file.
|
|
|
|
// You should choose variables based on the role of your
|
|
|
|
// interface elements. In other themes, @light-blue may
|
|
|
|
// not be light or blue.
|
|
|
|
|
|
|
|
@PANTONE-340-UP: #00ac6f;
|
|
|
|
@PANTONE-7704-UP: #009ec4;
|
|
|
|
@PANTONE-7547-UP: #3c505f;
|
|
|
|
@PANTONE-296-UP: #003c56;
|
|
|
|
@PANTONE-421-UP: #b4babd;
|
|
|
|
@PANTONE-Red-032-UP: #f15f4b;
|
|
|
|
@PANTONE-326-UP: #3bbeb4;
|
|
|
|
@PANTONE-Process-Black-UP: #231f20;
|
|
|
|
@PANTONE-Cool-Gray-1-UP: #e1e0dc;
|
|
|
|
|
|
|
|
@green: @PANTONE-340-UP;
|
|
|
|
@light-blue: @PANTONE-7704-UP;
|
|
|
|
@blue-gray: @PANTONE-7547-UP;
|
|
|
|
@dark-blue: @PANTONE-296-UP;
|
|
|
|
@light-gray: @PANTONE-421-UP;
|
|
|
|
@red: @PANTONE-Red-032-UP;
|
|
|
|
@teal: @PANTONE-326-UP;
|
|
|
|
@black: @PANTONE-Process-Black-UP;
|
|
|
|
@cool-gray: @PANTONE-Cool-Gray-1-UP;
|
|
|
|
|
|
|
|
@blue-grey: @blue-gray;
|
|
|
|
@light-grey: @light-gray;
|
|
|
|
|
|
|
|
// Public
|
|
|
|
//
|
|
|
|
// Use these variables in your packages. Choose the variable
|
|
|
|
// that best matches the role of the element you are styling.
|
|
|
|
|
|
|
|
// TEXT
|
|
|
|
|
2015-03-11 02:29:14 +08:00
|
|
|
@unread-color: @blue; //!
|
2015-02-07 08:57:33 +08:00
|
|
|
@action-color: @green;
|
|
|
|
|
|
|
|
@progress-bar-fill: @light-blue;
|
|
|
|
@progress-bar-background: @light-gray;
|
|
|
|
|
|
|
|
@background-color-info: @light-blue;
|
|
|
|
@background-color-success: @green;
|
fix(drafts): Various improvements and fixes to drafts, draft state management
Summary:
This diff contains a few major changes:
1. Scribe is no longer used for the text editor. It's just a plain contenteditable region. The toolbar items (bold, italic, underline) still work. Scribe was causing React inconcistency issues in the following scenario:
- View thread with draft, edit draft
- Move to another thread
- Move back to thread with draft
- Move to another thread. Notice that one or more messages from thread with draft are still there.
There may be a way to fix this, but I tried for hours and there are Github Issues open on it's repository asking for React compatibility, so it may be fixed soon. For now contenteditable is working great.
2. Action.saveDraft() is no longer debounced in the DraftStore. Instead, firing that action causes the save to happen immediately, and the DraftStoreProxy has a new "DraftChangeSet" class which is responsbile for batching saves as the user interacts with the ComposerView. There are a couple big wins here:
- In the future, we may want to be able to call Action.saveDraft() in other situations and it should behave like a normal action. We may also want to expose the DraftStoreProxy as an easy way of backing interactive draft UI.
- Previously, when you added a contact to To/CC/BCC, this happened:
<input> -> Action.saveDraft -> (delay!!) -> Database -> DraftStore -> DraftStoreProxy -> View Updates
Increasing the delay to something reasonable like 200msec meant there was 200msec of lag before you saw the new view state.
To fix this, I created a new class called DraftChangeSet which is responsible for accumulating changes as they're made and firing Action.saveDraft. "Adding" a change to the change set also causes the Draft provided by the DraftStoreProxy to change immediately (the changes are a temporary layer on top of the database object). This means no delay while changes are being applied. There's a better explanation in the source!
This diff includes a few minor fixes as well:
1. Draft.state is gone—use Message.object = draft instead
2. String model attributes should never be null
3. Pre-send checks that can cancel draft send
4. Put the entire curl history and task queue into feedback reports
5. Cache localIds for extra speed
6. Move us up to latest React
Test Plan: No new tests - once we lock down this new design I'll write tests for the DraftChangeSet
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1125
2015-02-04 08:24:31 +08:00
|
|
|
@background-color-warning: #ff4800;
|
2015-02-07 08:57:33 +08:00
|
|
|
@background-color-error: @red;
|
2015-02-21 04:24:15 +08:00
|
|
|
@background-color-pending: @light-gray;
|
fix(drafts): Various improvements and fixes to drafts, draft state management
Summary:
This diff contains a few major changes:
1. Scribe is no longer used for the text editor. It's just a plain contenteditable region. The toolbar items (bold, italic, underline) still work. Scribe was causing React inconcistency issues in the following scenario:
- View thread with draft, edit draft
- Move to another thread
- Move back to thread with draft
- Move to another thread. Notice that one or more messages from thread with draft are still there.
There may be a way to fix this, but I tried for hours and there are Github Issues open on it's repository asking for React compatibility, so it may be fixed soon. For now contenteditable is working great.
2. Action.saveDraft() is no longer debounced in the DraftStore. Instead, firing that action causes the save to happen immediately, and the DraftStoreProxy has a new "DraftChangeSet" class which is responsbile for batching saves as the user interacts with the ComposerView. There are a couple big wins here:
- In the future, we may want to be able to call Action.saveDraft() in other situations and it should behave like a normal action. We may also want to expose the DraftStoreProxy as an easy way of backing interactive draft UI.
- Previously, when you added a contact to To/CC/BCC, this happened:
<input> -> Action.saveDraft -> (delay!!) -> Database -> DraftStore -> DraftStoreProxy -> View Updates
Increasing the delay to something reasonable like 200msec meant there was 200msec of lag before you saw the new view state.
To fix this, I created a new class called DraftChangeSet which is responsible for accumulating changes as they're made and firing Action.saveDraft. "Adding" a change to the change set also causes the Draft provided by the DraftStoreProxy to change immediately (the changes are a temporary layer on top of the database object). This means no delay while changes are being applied. There's a better explanation in the source!
This diff includes a few minor fixes as well:
1. Draft.state is gone—use Message.object = draft instead
2. String model attributes should never be null
3. Pre-send checks that can cancel draft send
4. Put the entire curl history and task queue into feedback reports
5. Cache localIds for extra speed
6. Move us up to latest React
Test Plan: No new tests - once we lock down this new design I'll write tests for the DraftChangeSet
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1125
2015-02-04 08:24:31 +08:00
|
|
|
|
2015-09-19 05:43:49 +08:00
|
|
|
@background-gradient: linear-gradient(to top, rgba(241,241,241,0.75) 0%,
|
|
|
|
rgba(253,253,253,0.75) 100%);
|
|
|
|
|
2015-11-10 10:52:24 +08:00
|
|
|
@base-border-color: darken(@background-primary, 15%);
|
|
|
|
@border-color: darken(@background-primary, 15%);
|
|
|
|
@border-color-subtle: darken(@background-primary, 8%);
|
fix(drafts): Various improvements and fixes to drafts, draft state management
Summary:
This diff contains a few major changes:
1. Scribe is no longer used for the text editor. It's just a plain contenteditable region. The toolbar items (bold, italic, underline) still work. Scribe was causing React inconcistency issues in the following scenario:
- View thread with draft, edit draft
- Move to another thread
- Move back to thread with draft
- Move to another thread. Notice that one or more messages from thread with draft are still there.
There may be a way to fix this, but I tried for hours and there are Github Issues open on it's repository asking for React compatibility, so it may be fixed soon. For now contenteditable is working great.
2. Action.saveDraft() is no longer debounced in the DraftStore. Instead, firing that action causes the save to happen immediately, and the DraftStoreProxy has a new "DraftChangeSet" class which is responsbile for batching saves as the user interacts with the ComposerView. There are a couple big wins here:
- In the future, we may want to be able to call Action.saveDraft() in other situations and it should behave like a normal action. We may also want to expose the DraftStoreProxy as an easy way of backing interactive draft UI.
- Previously, when you added a contact to To/CC/BCC, this happened:
<input> -> Action.saveDraft -> (delay!!) -> Database -> DraftStore -> DraftStoreProxy -> View Updates
Increasing the delay to something reasonable like 200msec meant there was 200msec of lag before you saw the new view state.
To fix this, I created a new class called DraftChangeSet which is responsible for accumulating changes as they're made and firing Action.saveDraft. "Adding" a change to the change set also causes the Draft provided by the DraftStoreProxy to change immediately (the changes are a temporary layer on top of the database object). This means no delay while changes are being applied. There's a better explanation in the source!
This diff includes a few minor fixes as well:
1. Draft.state is gone—use Message.object = draft instead
2. String model attributes should never be null
3. Pre-send checks that can cancel draft send
4. Put the entire curl history and task queue into feedback reports
5. Cache localIds for extra speed
6. Move us up to latest React
Test Plan: No new tests - once we lock down this new design I'll write tests for the DraftChangeSet
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1125
2015-02-04 08:24:31 +08:00
|
|
|
|
2015-02-07 08:57:33 +08:00
|
|
|
// Inputs
|
fix(drafts): Various improvements and fixes to drafts, draft state management
Summary:
This diff contains a few major changes:
1. Scribe is no longer used for the text editor. It's just a plain contenteditable region. The toolbar items (bold, italic, underline) still work. Scribe was causing React inconcistency issues in the following scenario:
- View thread with draft, edit draft
- Move to another thread
- Move back to thread with draft
- Move to another thread. Notice that one or more messages from thread with draft are still there.
There may be a way to fix this, but I tried for hours and there are Github Issues open on it's repository asking for React compatibility, so it may be fixed soon. For now contenteditable is working great.
2. Action.saveDraft() is no longer debounced in the DraftStore. Instead, firing that action causes the save to happen immediately, and the DraftStoreProxy has a new "DraftChangeSet" class which is responsbile for batching saves as the user interacts with the ComposerView. There are a couple big wins here:
- In the future, we may want to be able to call Action.saveDraft() in other situations and it should behave like a normal action. We may also want to expose the DraftStoreProxy as an easy way of backing interactive draft UI.
- Previously, when you added a contact to To/CC/BCC, this happened:
<input> -> Action.saveDraft -> (delay!!) -> Database -> DraftStore -> DraftStoreProxy -> View Updates
Increasing the delay to something reasonable like 200msec meant there was 200msec of lag before you saw the new view state.
To fix this, I created a new class called DraftChangeSet which is responsible for accumulating changes as they're made and firing Action.saveDraft. "Adding" a change to the change set also causes the Draft provided by the DraftStoreProxy to change immediately (the changes are a temporary layer on top of the database object). This means no delay while changes are being applied. There's a better explanation in the source!
This diff includes a few minor fixes as well:
1. Draft.state is gone—use Message.object = draft instead
2. String model attributes should never be null
3. Pre-send checks that can cancel draft send
4. Put the entire curl history and task queue into feedback reports
5. Cache localIds for extra speed
6. Move us up to latest React
Test Plan: No new tests - once we lock down this new design I'll write tests for the DraftChangeSet
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1125
2015-02-04 08:24:31 +08:00
|
|
|
|
2015-02-07 08:57:33 +08:00
|
|
|
// Menus
|
fix(drafts): Various improvements and fixes to drafts, draft state management
Summary:
This diff contains a few major changes:
1. Scribe is no longer used for the text editor. It's just a plain contenteditable region. The toolbar items (bold, italic, underline) still work. Scribe was causing React inconcistency issues in the following scenario:
- View thread with draft, edit draft
- Move to another thread
- Move back to thread with draft
- Move to another thread. Notice that one or more messages from thread with draft are still there.
There may be a way to fix this, but I tried for hours and there are Github Issues open on it's repository asking for React compatibility, so it may be fixed soon. For now contenteditable is working great.
2. Action.saveDraft() is no longer debounced in the DraftStore. Instead, firing that action causes the save to happen immediately, and the DraftStoreProxy has a new "DraftChangeSet" class which is responsbile for batching saves as the user interacts with the ComposerView. There are a couple big wins here:
- In the future, we may want to be able to call Action.saveDraft() in other situations and it should behave like a normal action. We may also want to expose the DraftStoreProxy as an easy way of backing interactive draft UI.
- Previously, when you added a contact to To/CC/BCC, this happened:
<input> -> Action.saveDraft -> (delay!!) -> Database -> DraftStore -> DraftStoreProxy -> View Updates
Increasing the delay to something reasonable like 200msec meant there was 200msec of lag before you saw the new view state.
To fix this, I created a new class called DraftChangeSet which is responsible for accumulating changes as they're made and firing Action.saveDraft. "Adding" a change to the change set also causes the Draft provided by the DraftStoreProxy to change immediately (the changes are a temporary layer on top of the database object). This means no delay while changes are being applied. There's a better explanation in the source!
This diff includes a few minor fixes as well:
1. Draft.state is gone—use Message.object = draft instead
2. String model attributes should never be null
3. Pre-send checks that can cancel draft send
4. Put the entire curl history and task queue into feedback reports
5. Cache localIds for extra speed
6. Move us up to latest React
Test Plan: No new tests - once we lock down this new design I'll write tests for the DraftChangeSet
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1125
2015-02-04 08:24:31 +08:00
|
|
|
|
2015-02-07 08:57:33 +08:00
|
|
|
@menu-divider-color: @light-gray;
|
2015-11-10 10:52:24 +08:00
|
|
|
@menu-item-color-hover: fade(@background-selected, 10%);
|
|
|
|
@menu-item-color-selected: @background-selected;
|
2015-02-07 08:57:33 +08:00
|
|
|
@menu-text-color-selected: @text-color-inverse;
|
fix(drafts): Various improvements and fixes to drafts, draft state management
Summary:
This diff contains a few major changes:
1. Scribe is no longer used for the text editor. It's just a plain contenteditable region. The toolbar items (bold, italic, underline) still work. Scribe was causing React inconcistency issues in the following scenario:
- View thread with draft, edit draft
- Move to another thread
- Move back to thread with draft
- Move to another thread. Notice that one or more messages from thread with draft are still there.
There may be a way to fix this, but I tried for hours and there are Github Issues open on it's repository asking for React compatibility, so it may be fixed soon. For now contenteditable is working great.
2. Action.saveDraft() is no longer debounced in the DraftStore. Instead, firing that action causes the save to happen immediately, and the DraftStoreProxy has a new "DraftChangeSet" class which is responsbile for batching saves as the user interacts with the ComposerView. There are a couple big wins here:
- In the future, we may want to be able to call Action.saveDraft() in other situations and it should behave like a normal action. We may also want to expose the DraftStoreProxy as an easy way of backing interactive draft UI.
- Previously, when you added a contact to To/CC/BCC, this happened:
<input> -> Action.saveDraft -> (delay!!) -> Database -> DraftStore -> DraftStoreProxy -> View Updates
Increasing the delay to something reasonable like 200msec meant there was 200msec of lag before you saw the new view state.
To fix this, I created a new class called DraftChangeSet which is responsible for accumulating changes as they're made and firing Action.saveDraft. "Adding" a change to the change set also causes the Draft provided by the DraftStoreProxy to change immediately (the changes are a temporary layer on top of the database object). This means no delay while changes are being applied. There's a better explanation in the source!
This diff includes a few minor fixes as well:
1. Draft.state is gone—use Message.object = draft instead
2. String model attributes should never be null
3. Pre-send checks that can cancel draft send
4. Put the entire curl history and task queue into feedback reports
5. Cache localIds for extra speed
6. Move us up to latest React
Test Plan: No new tests - once we lock down this new design I'll write tests for the DraftChangeSet
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1125
2015-02-04 08:24:31 +08:00
|
|
|
|
|
|
|
// Sizes
|
|
|
|
|
|
|
|
@disclosure-arrow-size: 12px;
|
2015-03-04 04:24:48 +08:00
|
|
|
@input-font-size: 14px;
|
fix(drafts): Various improvements and fixes to drafts, draft state management
Summary:
This diff contains a few major changes:
1. Scribe is no longer used for the text editor. It's just a plain contenteditable region. The toolbar items (bold, italic, underline) still work. Scribe was causing React inconcistency issues in the following scenario:
- View thread with draft, edit draft
- Move to another thread
- Move back to thread with draft
- Move to another thread. Notice that one or more messages from thread with draft are still there.
There may be a way to fix this, but I tried for hours and there are Github Issues open on it's repository asking for React compatibility, so it may be fixed soon. For now contenteditable is working great.
2. Action.saveDraft() is no longer debounced in the DraftStore. Instead, firing that action causes the save to happen immediately, and the DraftStoreProxy has a new "DraftChangeSet" class which is responsbile for batching saves as the user interacts with the ComposerView. There are a couple big wins here:
- In the future, we may want to be able to call Action.saveDraft() in other situations and it should behave like a normal action. We may also want to expose the DraftStoreProxy as an easy way of backing interactive draft UI.
- Previously, when you added a contact to To/CC/BCC, this happened:
<input> -> Action.saveDraft -> (delay!!) -> Database -> DraftStore -> DraftStoreProxy -> View Updates
Increasing the delay to something reasonable like 200msec meant there was 200msec of lag before you saw the new view state.
To fix this, I created a new class called DraftChangeSet which is responsible for accumulating changes as they're made and firing Action.saveDraft. "Adding" a change to the change set also causes the Draft provided by the DraftStoreProxy to change immediately (the changes are a temporary layer on top of the database object). This means no delay while changes are being applied. There's a better explanation in the source!
This diff includes a few minor fixes as well:
1. Draft.state is gone—use Message.object = draft instead
2. String model attributes should never be null
3. Pre-send checks that can cancel draft send
4. Put the entire curl history and task queue into feedback reports
5. Cache localIds for extra speed
6. Move us up to latest React
Test Plan: No new tests - once we lock down this new design I'll write tests for the DraftChangeSet
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1125
2015-02-04 08:24:31 +08:00
|
|
|
|
|
|
|
@component-padding: 10px;
|
|
|
|
@component-icon-padding: 5px;
|
|
|
|
@component-icon-size: 16px;
|
|
|
|
@component-line-height: 25px;
|
|
|
|
@component-border-radius: 2px;
|
|
|
|
|
|
|
|
|
2015-03-03 06:15:39 +08:00
|
|
|
|
2015-03-04 04:00:04 +08:00
|
|
|
@body-bg: @white;
|
|
|
|
//== Panels and Sidebars
|
|
|
|
@panel-background-color: @gray-lighter;
|
2015-09-28 18:00:20 +08:00
|
|
|
@toolbar-background-color: darken(@white, 17.5%);
|
2015-06-03 10:51:00 +08:00
|
|
|
|
|
|
|
// Helpers for Specs - Do Not Remove
|
|
|
|
@spec-test-variable: rgb(152,123,0);
|