Use css variables for colours. Move color, font and variable files to sass root folder.
This commit is contained in:
parent
b83756a1c4
commit
a3a1294c4e
2 changed files with 167 additions and 152 deletions
|
|
@ -1,73 +0,0 @@
|
|||
// stylelint-disable color-no-hex, color-named
|
||||
|
||||
// Base colors.
|
||||
$black: #000;
|
||||
$nearblack: lighten($black, 20%); // #333
|
||||
$grey-dark: lighten($black, 40%); // #666
|
||||
$grey: lighten($black, 60%); // #999
|
||||
$grey-light: lighten($black, 80%); // #ccc
|
||||
$grey-extra-light: lighten($black, 93.33%); // #eee
|
||||
$white: #fff;
|
||||
|
||||
$blue: #0072b9;
|
||||
$red: #c00;
|
||||
$green: #43a808;
|
||||
$yellow: #fd0;
|
||||
|
||||
// Colors used in the main content area.
|
||||
$brand: $nearblack;
|
||||
$brand-alt: $grey;
|
||||
$brand-dark: $grey-dark;
|
||||
$text: $black;
|
||||
$text-bg: $white;
|
||||
$text-meta: $grey-dark;
|
||||
|
||||
$link: $black;
|
||||
$link-visited: $black;
|
||||
$link-hover: $brand;
|
||||
$link-active: $red;
|
||||
|
||||
$border: $grey-light;
|
||||
$border-dark: $nearblack;
|
||||
|
||||
$autocomplete: $text;
|
||||
$autocomplete-bg: $text-bg;
|
||||
$autocomplete-select: $white;
|
||||
$autocomplete-select-bg: $blue;
|
||||
|
||||
$body-bg: $white;
|
||||
$header-bg: $brand;
|
||||
$backdrop: $grey-extra-light;
|
||||
|
||||
$mobile-menu: $header-bg;
|
||||
$mobile-menu-cover: rgba($black, .2);
|
||||
|
||||
$button: $nearblack;
|
||||
$button-disabled: $grey;
|
||||
|
||||
$form-error: $red;
|
||||
|
||||
$mark-highlight: $red;
|
||||
$mark-bg: $yellow;
|
||||
|
||||
$menu-active: $text;
|
||||
|
||||
$preview-bg: lighten($yellow, 43%);
|
||||
|
||||
$row-stripe: $white;
|
||||
$row-disabled: $grey-light;
|
||||
|
||||
$status: $green;
|
||||
$status-bg: lighten($status, 62%);
|
||||
$status-highlight: $text;
|
||||
$warning: $text;
|
||||
$warning-bg: lighten($yellow, 45%);
|
||||
$warning-border: $yellow;
|
||||
$error: $red;
|
||||
$error-bg: lighten($error, 57%);
|
||||
|
||||
$watermark: $grey-extra-light;
|
||||
|
||||
$headings: $nearblack;
|
||||
|
||||
$code: $nearblack;
|
||||
|
|
@ -1,154 +0,0 @@
|
|||
// Variables
|
||||
//
|
||||
// Set variables for this site before a library sets its !default value.
|
||||
|
||||
|
||||
// Font faces, stacks and sizes.
|
||||
//
|
||||
// Font styling and line heights are controlled by the several variables that
|
||||
// used by mixins like `type-layout()`, `margin-top()`, and `margin-bottom()`.
|
||||
// These variable and mixins are documented on the [Typey
|
||||
// homepage](https://github.com/jptaranto/typey).
|
||||
|
||||
// The font size set on the root html element.
|
||||
$base-font-size: 22px;
|
||||
$base-font-size-2: 18px;
|
||||
|
||||
// The base line height determines the basic unit of vertical rhythm.
|
||||
$base-line-height: 31px;
|
||||
$base-line-height-2: 25px;
|
||||
|
||||
$base-multiplier: $base-font-size / $base-font-size-2;
|
||||
|
||||
$xxl-2: 34px * $base-multiplier;
|
||||
$xl-2: 28px * $base-multiplier;
|
||||
$l-2: 22px * $base-multiplier;
|
||||
$m-2: 18px * $base-multiplier;
|
||||
$s-2: 16px * $base-multiplier;
|
||||
$xs-2: 14px * $base-multiplier;
|
||||
|
||||
// The font sizes in our type hierarchy as tee shirt sizes.
|
||||
$font-size: (
|
||||
xxl: 28px,
|
||||
xl: 26px,
|
||||
l: 24px,
|
||||
m: $base-font-size,
|
||||
s: 18px,
|
||||
xs: 16px,
|
||||
xxl-2: $xxl-2,
|
||||
xl-2: $xl-2,
|
||||
l-2: $l-2,
|
||||
m-2: $m-2,
|
||||
s-2: $s-2,
|
||||
xs-2: $xs-2
|
||||
);
|
||||
|
||||
// Typey allows you to alter font weights site-wide with this map.
|
||||
$font-weight: (
|
||||
bold: bold,
|
||||
medium: 500,
|
||||
normal: normal,
|
||||
light: 300,
|
||||
lighter: lighter,
|
||||
);
|
||||
|
||||
// The following font family declarations use widely available fonts.
|
||||
// A user's web browser will look at the comma-separated list and will
|
||||
// attempt to use each font in turn until it finds one that is available
|
||||
// on the user's computer. The final "generic" font (sans-serif, serif or
|
||||
// monospace) hints at what type of font to use if the web browser doesn't
|
||||
// find any of the fonts in the list.
|
||||
|
||||
// Serif font stacks.
|
||||
$times-new-roman: 'Times New Roman', Times, Georgia, 'DejaVu Serif', serif;
|
||||
$times: Times, 'Times New Roman', Georgia, 'DejaVu Serif', serif;
|
||||
$georgia: Georgia, 'Times New Roman', 'DejaVu Serif', serif;
|
||||
$garamond: 'Garamond Premier Pro', Charter, 'Times New Roman', serif;
|
||||
|
||||
// Sans-serif font stacks.
|
||||
$verdana: Verdana, Tahoma, 'DejaVu Sans', sans-serif;
|
||||
$tahoma: Tahoma, Verdana, 'DejaVu Sans', sans-serif;
|
||||
$helvetica: Helvetica, Arial, 'Nimbus Sans L', sans-serif;
|
||||
$arial: Arial, Helvetica, 'Nimbus Sans L', sans-serif;
|
||||
$impact: Impact, 'Arial Narrow', Helvetica, sans-serif;
|
||||
$lucida: 'Lucida Grande', 'Lucida Sans Unicode', Lucida, Verdana, sans-serif;
|
||||
$futura: Futura, 'Century Gothic', AppleGothic, sans-serif;
|
||||
|
||||
// System-ui font stack.
|
||||
$system-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
||||
|
||||
// Monospace font stacks.
|
||||
// For an explanation of why "sans-serif" is at the end of this list, see
|
||||
// http://meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/
|
||||
//$menlo: Menlo, 'DejaVu Sans Mono', 'Ubuntu Mono', Courier, 'Courier New', monospace, sans-serif;
|
||||
$menlo: Menlo, 'Ubuntu Mono', 'DejaVu Sans Mono', 'Courier New', Courier, monospace, sans-serif;
|
||||
|
||||
// The font faces you specify in the $typefaces map can be used in the
|
||||
// typeface() mixin.
|
||||
$typefaces: (
|
||||
body: (
|
||||
font-family: $garamond,
|
||||
),
|
||||
headings: (
|
||||
font-family: $futura,
|
||||
),
|
||||
monospace: (
|
||||
font-family: $menlo,
|
||||
),
|
||||
compact: (
|
||||
font-family: $impact,
|
||||
weight: bold,
|
||||
case: uppercase,
|
||||
// We could also specify the following property:
|
||||
// letter-spacing: .5px,
|
||||
),
|
||||
); // stylelint-disable indentation
|
||||
|
||||
// Output a horizontal grid to help with debugging typography.
|
||||
$typey-debug: false;
|
||||
$with-wireframes: false;
|
||||
|
||||
// The length unit in which to output font size and margin values.
|
||||
// Supported values: px, em, rem.
|
||||
$base-unit: 'rem';
|
||||
|
||||
// px fallbacks for rem units are needed for IE 8 and earlier.
|
||||
$rem-fallback: false;
|
||||
|
||||
// We have separate print file.
|
||||
$auto-print-sizing: false;
|
||||
|
||||
// Breakpoints
|
||||
//
|
||||
// Use the `respond-to()` mixin to use named breakpoints.
|
||||
|
||||
$breakpoints: (
|
||||
'xxxs': 333px,
|
||||
'xxs': 444px,
|
||||
'xs': 555px,
|
||||
's': 666px,
|
||||
'm': 777px,
|
||||
'l': 888px,
|
||||
'xl': 999px,
|
||||
'xxl': 1111px,
|
||||
'xxxl': 1222px
|
||||
) !default;
|
||||
|
||||
// Layout
|
||||
|
||||
// The max content width.
|
||||
$max-content-width: 960px;
|
||||
|
||||
// The default left/right gutter/padding.
|
||||
$zen-gutters: 20px;
|
||||
|
||||
|
||||
// Miscellaneous variables
|
||||
//
|
||||
// `$indent-amount` controls the amount lists, blockquotes and comments are indented.
|
||||
//
|
||||
// `$include-rtl` controls whether RTL styles are output.
|
||||
|
||||
$indent-amount: 2 * $base-font-size;
|
||||
|
||||
$include-rtl: false;
|
||||
Loading…
Reference in a new issue