mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Rename z-indexes config / Update easing comment / Move font-face include to document.scss
This commit is contained in:
@@ -5,14 +5,16 @@
|
||||
//
|
||||
// Simple page-level setup.
|
||||
//
|
||||
// 1. Ensure the page always fills at least the entire height of the viewport.
|
||||
// 2. Set the default `font-size` and `line-height` for the entire project,
|
||||
// 1. Includes fonts
|
||||
// 2. Ensure the page always fills at least the entire height of the viewport.
|
||||
// 3. Set the default `font-size` and `line-height` for the entire project,
|
||||
// sourced from our default variables.
|
||||
|
||||
@include font-faces($font-faces, $font-dir); // [1]
|
||||
|
||||
html {
|
||||
min-height: 100%; // [1]
|
||||
line-height: $line-height; // [2]
|
||||
min-height: 100%; // [2]
|
||||
line-height: $line-height; // [3]
|
||||
font-family: ff("sans");
|
||||
color: $font-color;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
@import "settings/config.colors";
|
||||
@import "settings/config.eases";
|
||||
@import "settings/config.fonts";
|
||||
@import "settings/config.indexes";
|
||||
@import "settings/config.timings";
|
||||
@import "settings/config.zindexes";
|
||||
@import "settings/config";
|
||||
@import "settings/config.variables";
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ $eases: (
|
||||
// ```
|
||||
//
|
||||
// @param {string} $key - The ease key in $eases.
|
||||
// @return {bezier curve}
|
||||
// @return {easing-function}
|
||||
|
||||
@function ease($key) {
|
||||
@if not map-has-key($eases, $key) {
|
||||
|
||||
@@ -33,6 +33,9 @@ $font-families: (
|
||||
sans: join("Source Sans", $font-fallback-sans, $separator: comma),
|
||||
);
|
||||
|
||||
// Font directory
|
||||
$font-dir: "../fonts/";
|
||||
|
||||
// Functions
|
||||
// ==========================================================================
|
||||
|
||||
@@ -93,12 +96,3 @@ $font-families: (
|
||||
$value: map-get($font-families, $font-family);
|
||||
@return $value;
|
||||
}
|
||||
|
||||
|
||||
// Include fonts
|
||||
// ==========================================================================
|
||||
|
||||
// Font directory
|
||||
$font-dir: "../fonts/";
|
||||
|
||||
@include font-faces($font-faces, $font-dir);
|
||||
|
||||
Reference in New Issue
Block a user