mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-07 16:48:02 +08:00
d6336dae08
commit d1c455515e04424d429c87a07aff248a4a767f23 Merge: 72e5536 512f8db Author: Ben Gotow <bengotow@gmail.com> Date: Thu Feb 19 18:42:29 2015 -0800 Merge sheet and flexbox components, fonts, and more Conflicts: static/workspace-view.less commit 72e553652f5b26a96155c51e04db46baafb916be Author: Ben Gotow <bengotow@gmail.com> Date: Wed Feb 18 12:33:08 2015 -0800 Start transitioning to a better set of ui-variables (from bootstrap) commit ed22fb7fe1c6544af44fae69b83e7e63965ddf4d Author: Ben Gotow <bengotow@gmail.com> Date: Wed Feb 18 11:55:58 2015 -0800 I hate CSS commit 512f8db414ceef74712c9d63ba5a67b44cf778c4 Author: Ben Gotow <bengotow@gmail.com> Date: Mon Feb 16 10:10:44 2015 -0800 Initial work on top toolbar commit c2d7a0e0a2f6f6ebe254cca24ad0735336d57b70 Author: Ben Gotow <bengotow@gmail.com> Date: Thu Feb 12 18:47:26 2015 -0800 New UI Prototype interaction / stores for sheets
463 lines
14 KiB
Text
463 lines
14 KiB
Text
//
|
|
// Variables
|
|
// --------------------------------------------------
|
|
|
|
// Mostly drawn from Bootstrap's variables.less
|
|
|
|
//== Colors
|
|
//
|
|
//## Gray and brand colors for use across Bootstrap.
|
|
|
|
@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
|
|
|
|
@brand-primary: #428bca;
|
|
@brand-success: #5cb85c;
|
|
@brand-info: #5bc0de;
|
|
@brand-warning: #f0ad4e;
|
|
@brand-danger: #d9534f;
|
|
|
|
|
|
//== Scaffolding
|
|
//
|
|
//## Settings for some of the most global styles.
|
|
|
|
//** Background color for `<body>`.
|
|
@body-bg: #fff;
|
|
//** Global text color on `<body>`.
|
|
@text-color: @gray-dark;
|
|
@text-muted: @gray-light;
|
|
|
|
//** Global textual link color.
|
|
@link-color: @brand-primary;
|
|
//** Link hover color set via `darken()` function.
|
|
@link-hover-color: darken(@link-color, 15%);
|
|
//** Link hover decoration.
|
|
@link-hover-decoration: underline;
|
|
|
|
|
|
|
|
//== Panels and Sidebars
|
|
//
|
|
//
|
|
@panel-background-color: @gray-lighter;
|
|
@toolbar-background-color: @gray-lighter;
|
|
|
|
|
|
//== Typography
|
|
//
|
|
//## Font, line-height, and color for body text, headings, and more.
|
|
|
|
@font-face {
|
|
font-family: 'FaktPro';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: local('FaktPro-Normal'), url('fonts/Fakt/FaktPro-Normal.ttf'), local('Comic Sans MS');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'FaktPro';
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
src: local('FaktPro-Medium'), url('fonts/Fakt/FaktPro-Medium.ttf'), local('Comic Sans MS');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'FaktPro';
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
src: local('FaktPro-SemiBold'), url('fonts/Fakt/FaktPro-SemiBold.ttf'), local('Comic Sans MS');
|
|
}
|
|
|
|
@font-family-sans-serif: "FaktPro", "Helvetica", 'Lucida Grande', 'Segoe UI', sans-serif;
|
|
@font-family-smallcap: "Proxima Nova Regular Small Cap", "sans-serif";
|
|
@font-family-serif: Georgia, "Times New Roman", Times, serif;
|
|
@font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
@font-family-base: @font-family-sans-serif;
|
|
@font-family: @font-family-sans-serif;
|
|
|
|
@font-size-base: 15px;
|
|
@font-size-large: ceil((@font-size-base * 1.25)); // ~18px
|
|
@font-size-small: ceil((@font-size-base * 0.85)); // ~12px
|
|
|
|
@font-size-h1: floor((@font-size-base * 2.6)); // ~36px
|
|
@font-size-h2: floor((@font-size-base * 2.15)); // ~30px
|
|
@font-size-h3: ceil((@font-size-base * 1.7)); // ~24px
|
|
@font-size-h4: ceil((@font-size-base * 1.25)); // ~18px
|
|
@font-size-h5: @font-size-base;
|
|
@font-size-h6: ceil((@font-size-base * 0.85)); // ~12px
|
|
|
|
//** Unit-less `line-height` for use in components like buttons.
|
|
@line-height-base: 1.428571429; // 20/14
|
|
//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
|
|
@line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px
|
|
|
|
//** By default, this inherits from the `<body>`.
|
|
@headings-font-family: inherit;
|
|
@headings-font-weight: 500;
|
|
@headings-line-height: 1.1;
|
|
@headings-color: inherit;
|
|
|
|
|
|
//== Iconography
|
|
//
|
|
//## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
|
|
|
|
//** 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";
|
|
|
|
|
|
//== Components
|
|
//
|
|
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
|
|
|
|
@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;
|
|
|
|
//** Global color for active items (e.g., navs or dropdowns).
|
|
@component-active-color: #fff;
|
|
//** Global background color for active items (e.g., navs or dropdowns).
|
|
@component-active-bg: #3a3e44;
|
|
|
|
//== Tables
|
|
//
|
|
//## Customizes the `.table` component with basic values, each used across all table variations.
|
|
|
|
//** Padding for `<th>`s and `<td>`s.
|
|
@table-cell-padding: 8px;
|
|
//** Padding for cells in `.table-condensed`.
|
|
@table-condensed-cell-padding: 5px;
|
|
|
|
//** Default background color used for all tables.
|
|
@table-bg: transparent;
|
|
//** Background color used for `.table-striped`.
|
|
@table-bg-accent: #f9f9f9;
|
|
//** Background color used for `.table-hover`.
|
|
@table-bg-hover: #f5f5f5;
|
|
@table-bg-active: @table-bg-hover;
|
|
|
|
//** Border color for table and cell borders.
|
|
@table-border-color: #ddd;
|
|
|
|
|
|
//== Buttons
|
|
//
|
|
//## For each of Bootstrap's buttons, define text, background and border color.
|
|
|
|
@btn-font-weight: normal;
|
|
|
|
@btn-toolbar-color: #333;
|
|
@btn-toolbar-bg: #fff;
|
|
@btn-toolbar-border: transparent;
|
|
|
|
@btn-default-color: #333;
|
|
@btn-default-bg: #fff;
|
|
@btn-default-border: #ccc;
|
|
|
|
@btn-primary-color: #fff;
|
|
@btn-primary-bg: @brand-primary;
|
|
@btn-primary-border: darken(@btn-primary-bg, 5%);
|
|
|
|
@btn-success-color: #fff;
|
|
@btn-success-bg: @brand-success;
|
|
@btn-success-border: darken(@btn-success-bg, 5%);
|
|
|
|
@btn-info-color: #fff;
|
|
@btn-info-bg: @brand-info;
|
|
@btn-info-border: darken(@btn-info-bg, 5%);
|
|
|
|
@btn-warning-color: #fff;
|
|
@btn-warning-bg: @brand-warning;
|
|
@btn-warning-border: darken(@btn-warning-bg, 5%);
|
|
|
|
@btn-danger-color: #fff;
|
|
@btn-danger-bg: @brand-danger;
|
|
@btn-danger-border: darken(@btn-danger-bg, 5%);
|
|
|
|
@btn-link-disabled-color: @gray-light;
|
|
|
|
|
|
//== Forms
|
|
//
|
|
//##
|
|
|
|
//** `<input>` background color
|
|
@input-bg: #fff;
|
|
//** `<input disabled>` background color
|
|
@input-bg-disabled: @gray-lighter;
|
|
|
|
//** 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;
|
|
|
|
|
|
//-- Z-index master list
|
|
//
|
|
// 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.
|
|
//
|
|
// 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;
|
|
|
|
//== Source List (used in Sidebar, iTunes-style)
|
|
//
|
|
// ##
|
|
|
|
//** Background color on `.list-group-item`
|
|
@source-list-bg: @panel-background-color;
|
|
//** Text color of active list items
|
|
@source-list-active-color: @component-active-color;
|
|
//** Background color of active list items
|
|
@source-list-active-bg: @component-active-bg;
|
|
|
|
//== 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
|
|
@list-hover-bg: #f5f5f5;
|
|
//** Text color of active list items
|
|
@list-active-color: @component-active-color;
|
|
//** Background color of active list items
|
|
@list-active-bg: @component-active-bg;
|
|
//** Border color of active list elements
|
|
@list-active-border: @list-active-bg;
|
|
//** Text color for content within active list items
|
|
@list-active-color-muted: lighten(@list-active-bg, 40%);
|
|
|
|
//** 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;
|
|
|
|
//== Type
|
|
//
|
|
//##
|
|
|
|
//** Horizontal offset for forms and lists.
|
|
@component-offset-horizontal: 180px;
|
|
//** Text muted color
|
|
@text-color-muted: @gray-light;
|
|
|
|
//** Abbreviations and acronyms border color
|
|
@abbr-border-color: @gray-light;
|
|
//** Headings small color
|
|
@headings-small-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;
|
|
|
|
|
|
//== 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%);
|
|
|
|
/////
|
|
|
|
|
|
// 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;
|
|
@white: #f1f1f1;
|
|
|
|
@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
|
|
|
|
@unread-color: #009ec4; //!
|
|
@action-color: @green;
|
|
|
|
@text-color-highlight: @black;
|
|
@text-color-selected: @white;
|
|
@text-color-subtle: fadeout(@text-color, 50%);
|
|
@text-color-inverse: white;
|
|
@text-color-info: @light-blue;
|
|
@text-color-link: @light-blue;
|
|
@text-color-success: @green;
|
|
@text-color-warning: #ff982d;
|
|
@text-color-error: @red;
|
|
@text-color-destructive: @red;
|
|
|
|
@progress-bar-fill: @light-blue;
|
|
@progress-bar-background: @light-gray;
|
|
|
|
@background-color: #fff;
|
|
@background-color-highlight: darken(@background-color, 2.5%);
|
|
@background-color-selected: @light-blue;
|
|
@background-color-secondary: darken(@background-color, 5%);
|
|
@background-color-accent: @blue-gray;
|
|
|
|
@background-color-info: @light-blue;
|
|
@background-color-success: @green;
|
|
@background-color-warning: #ff4800;
|
|
@background-color-error: @red;
|
|
@background-color-pending: @light-gray;
|
|
|
|
@base-border-color: darken(@background-color, 15%);
|
|
@border-color: darken(@background-color, 15%);
|
|
@border-color-subtle: darken(@background-color, 8%);
|
|
@border-color-divider: darken(@background-color, 12%);
|
|
|
|
// Inputs
|
|
|
|
@input-background-color: white;
|
|
|
|
@input-border-color: fadeout(@border-color, 10%);
|
|
@input-border-color-blurred: desaturate(@input-border-color, 100%);
|
|
|
|
@input-tint-color: fade(@background-color-selected, 10%);
|
|
@input-tint-color-hover: fade(@input-tint-color, 30%);
|
|
@input-tint-color-blurred: desaturate(@input-tint-color, 100%);
|
|
|
|
@input-accessory-color-hover: @light-blue;
|
|
@input-accessory-color: @cool-gray;
|
|
|
|
// Buttons
|
|
|
|
@button-background-color: @white;
|
|
@button-background-color-hover: white;
|
|
@button-background-color-selected: white;
|
|
@button-border-color: @border-color;
|
|
|
|
// Menus
|
|
|
|
@menu-color: white;
|
|
@menu-divider-color: @light-gray;
|
|
@menu-item-color-hover: fade(@background-color-selected, 10%);
|
|
@menu-item-color-selected: @background-color-selected;
|
|
@menu-text-color-selected: @text-color-inverse;
|
|
|
|
// Sizes
|
|
|
|
@font-size: 15px;
|
|
@minor-font-size: 13px;
|
|
@major-font-size: 17px;
|
|
|
|
@input-font-size: 14px;
|
|
@disclosure-arrow-size: 12px;
|
|
|
|
@component-padding: 10px;
|
|
@component-icon-padding: 5px;
|
|
@component-icon-size: 16px;
|
|
@component-line-height: 25px;
|
|
@component-border-radius: 2px;
|
|
|
|
|
|
// Other
|
|
|
|
@standard-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.22);
|
|
@standard-shadow-up: 0 -1px 2px 0 rgba(0, 0, 0, 0.22);
|