@seedcss/seed-link
v1.0.1
Published
Link component pack for Seed
Downloads
9
Readme
seed-link
Link component pack for Seed
Install
npm install @seedcss/seed-link --save
Documentation
Check out our documentation of this pack.
Basic Usage
SCSS
This seed pack needs to be imported into your sass pipeline. Below is an example using Gulp:
const gulp = require("gulp");
const sass = require("gulp-sass");
const pathfinder = require("sass-pathfinder");
const pack = require("@seedcss/seed-link");
gulp.task("sass", function() {
return gulp
.src("./sass/**/*.scss")
.pipe(
sass({
includePaths: pathfinder(
// Other includePaths...
pack
)
})
)
.pipe(gulp.dest("./css"));
});
Once that is setup, simply @import
seed-link as needed in your .scss
file:
// Packs
@import "pack/seed-link/_index";
Options
The following variables can be found in _config.scss
// Link :: Config
@import "pack/seed-color-scheme/__index";
// Namespaces
$seed-link-namespace: "c-link" !default;
// Config
$seed-link-include-a-selector: true !default;
// Colors
$seed-link-color: _color(link, base) !default;
$seed-link-color-hover: _color(link, hover) !default;
$seed-link-color-active: _color(link, active) !default;
// Outline
$seed-link-focus-outline: 5px auto -webkit-focus-ring-color !default;
$seed-link-focus-outline-offset: -2px !default;
// Transition
$seed-link-transition: none !default;