Socket
Socket
Sign inDemoInstall

typography-theme-elk-glen

Package Overview
Dependencies
7
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.16.18 to 0.16.19

66

dist/index.js

@@ -1,2 +0,2 @@

'use strict';
"use strict";

@@ -9,9 +9,9 @@ Object.defineProperty(exports, "__esModule", {

var _grayPercentage = require('gray-percentage');
var _grayPercentage = require("gray-percentage");
var _grayPercentage2 = _interopRequireDefault(_grayPercentage);
var _typographyBreakpointConstants = require('typography-breakpoint-constants');
var _typographyBreakpointConstants = require("typography-breakpoint-constants");
var _compassVerticalRhythm = require('compass-vertical-rhythm');
var _compassVerticalRhythm = require("compass-vertical-rhythm");

@@ -25,17 +25,17 @@ var _compassVerticalRhythm2 = _interopRequireDefault(_compassVerticalRhythm);

var theme = {
title: 'Elk Glen',
baseFontSize: '20px',
title: "Elk Glen",
baseFontSize: "20px",
baseLineHeight: 1.5,
googleFonts: [{
name: 'Oswald',
styles: ['700']
name: "Oswald",
styles: ["700"]
}, {
name: 'PT Sans',
styles: ['400', '400i', '700']
name: "PT Sans",
styles: ["400", "400i", "700"]
}],
headerFontFamily: ['Oswald', 'sans-serif'],
bodyFontFamily: ['PT Sans', 'sans-serif'],
headerColor: 'hsla(0,0%,0%,0.9)',
bodyColor: 'hsla(0,0%,0%,0.8)',
headerWeight: '700',
headerFontFamily: ["Oswald", "sans-serif"],
bodyFontFamily: ["PT Sans", "sans-serif"],
headerColor: "hsla(0,0%,0%,0.9)",
bodyColor: "hsla(0,0%,0%,0.8)",
headerWeight: "700",
bodyWeight: 400,

@@ -48,6 +48,6 @@ boldWeight: 700,

var linkColor = '#292d35';
var linkColor = "#292d35";
var vr = (0, _compassVerticalRhythm2.default)({
baseFontSize: '17px',
baseLineHeight: '24.65px'
baseFontSize: "17px",
baseLineHeight: "24.65px"
});

@@ -57,11 +57,11 @@ return _defineProperty({

color: linkColor,
textDecoration: 'none',
textShadow: '.03em 0 #fff,-.03em 0 #fff,0 .03em #fff,0 -.03em #fff,.06em 0 #fff,-.06em 0 #fff,.09em 0 #fff,-.09em 0 #fff,.12em 0 #fff,-.12em 0 #fff,.15em 0 #fff,-.15em 0 #fff', // eslint-disable-line
backgroundImage: 'linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 1px, ' + linkColor + ' 1px, ' + linkColor + ' 2px, rgba(0, 0, 0, 0) 2px)' // eslint-disable-line
textDecoration: "none",
textShadow: ".03em 0 #fff,-.03em 0 #fff,0 .03em #fff,0 -.03em #fff,.06em 0 #fff,-.06em 0 #fff,.09em 0 #fff,-.09em 0 #fff,.12em 0 #fff,-.12em 0 #fff,.15em 0 #fff,-.15em 0 #fff", // eslint-disable-line
backgroundImage: "linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 1px, " + linkColor + " 1px, " + linkColor + " 2px, rgba(0, 0, 0, 0) 2px)" // eslint-disable-line
},
'a:hover,a:active': {
textShadow: 'none',
backgroundImage: 'none'
"a:hover,a:active": {
textShadow: "none",
backgroundImage: "none"
},
'h1,h2,h3,h4,h5,h6': {
"h1,h2,h3,h4,h5,h6": {
marginTop: rhythm(2)

@@ -71,18 +71,18 @@ },

blockquote: _extends({}, scale(1 / 5), {
borderLeft: rhythm(6 / 16) + ' solid ' + linkColor,
borderLeft: rhythm(6 / 16) + " solid " + linkColor,
color: (0, _grayPercentage2.default)(35),
paddingLeft: rhythm(10 / 16),
fontStyle: 'italic',
fontStyle: "italic",
marginLeft: 0,
marginRight: 0
}),
'blockquote > :last-child': {
"blockquote > :last-child": {
marginBottom: 0
},
'blockquote cite': _extends({}, adjustFontSizeTo(options.baseFontSize), {
"blockquote cite": _extends({}, adjustFontSizeTo(options.baseFontSize), {
color: options.bodyColor,
fontStyle: 'normal',
fontStyle: "normal",
fontWeight: options.bodyWeight
}),
'blockquote cite:before': {
"blockquote cite:before": {
content: '"— "'

@@ -93,6 +93,6 @@ }

blockquote: {
borderLeft: rhythm(3 / 16) + ' solid ' + linkColor,
borderLeft: rhythm(3 / 16) + " solid " + linkColor,
color: (0, _grayPercentage2.default)(41),
paddingLeft: rhythm(9 / 16),
fontStyle: 'italic',
fontStyle: "italic",
marginLeft: rhythm(-3 / 4),

@@ -99,0 +99,0 @@ marginRight: 0

{
"name": "typography-theme-elk-glen",
"description": "A theme for Typography.js",
"version": "0.16.18",
"version": "0.16.19",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",

@@ -9,3 +9,3 @@ "dependencies": {

"gray-percentage": "^2.0.0",
"typography-breakpoint-constants": "^0.16.18"
"typography-breakpoint-constants": "^0.16.19"
},

@@ -33,3 +33,3 @@ "keywords": [

},
"gitHead": "bdd749093e7055b5ab8fdcd7448ae5f1e88cad5f"
"gitHead": "1a3bfc103d41d59f04e89573c2c87e1d95abdd12"
}
// @flow
import gray from 'gray-percentage'
import type { OptionsType } from 'Types'
import { MOBILE_MEDIA_QUERY } from 'typography-breakpoint-constants'
import verticalRhythm from 'compass-vertical-rhythm'
import gray from "gray-percentage"
import type { OptionsType } from "Types"
import { MOBILE_MEDIA_QUERY } from "typography-breakpoint-constants"
import verticalRhythm from "compass-vertical-rhythm"
const theme: OptionsType = {
title: 'Elk Glen',
baseFontSize: '20px',
title: "Elk Glen",
baseFontSize: "20px",
baseLineHeight: 1.5,
googleFonts: [
{
name: 'Oswald',
styles: ['700'],
name: "Oswald",
styles: ["700"],
},
{
name: 'PT Sans',
styles: ['400', '400i', '700'],
name: "PT Sans",
styles: ["400", "400i", "700"],
},
],
headerFontFamily: ['Oswald', 'sans-serif'],
bodyFontFamily: ['PT Sans', 'sans-serif'],
headerColor: 'hsla(0,0%,0%,0.9)',
bodyColor: 'hsla(0,0%,0%,0.8)',
headerWeight: '700',
headerFontFamily: ["Oswald", "sans-serif"],
bodyFontFamily: ["PT Sans", "sans-serif"],
headerColor: "hsla(0,0%,0%,0.9)",
bodyColor: "hsla(0,0%,0%,0.8)",
headerWeight: "700",
bodyWeight: 400,
boldWeight: 700,
overrideStyles: ({ adjustFontSizeTo, scale, rhythm }, options) => {
const linkColor = '#292d35'
const linkColor = "#292d35"
const vr = verticalRhythm({
baseFontSize: '17px',
baseLineHeight: '24.65px',
baseFontSize: "17px",
baseLineHeight: "24.65px",
})

@@ -37,12 +37,12 @@ return {

color: linkColor,
textDecoration: 'none',
textDecoration: "none",
textShadow:
'.03em 0 #fff,-.03em 0 #fff,0 .03em #fff,0 -.03em #fff,.06em 0 #fff,-.06em 0 #fff,.09em 0 #fff,-.09em 0 #fff,.12em 0 #fff,-.12em 0 #fff,.15em 0 #fff,-.15em 0 #fff', // eslint-disable-line
".03em 0 #fff,-.03em 0 #fff,0 .03em #fff,0 -.03em #fff,.06em 0 #fff,-.06em 0 #fff,.09em 0 #fff,-.09em 0 #fff,.12em 0 #fff,-.12em 0 #fff,.15em 0 #fff,-.15em 0 #fff", // eslint-disable-line
backgroundImage: `linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 1px, ${linkColor} 1px, ${linkColor} 2px, rgba(0, 0, 0, 0) 2px)`, // eslint-disable-line
},
'a:hover,a:active': {
textShadow: 'none',
backgroundImage: 'none',
"a:hover,a:active": {
textShadow: "none",
backgroundImage: "none",
},
'h1,h2,h3,h4,h5,h6': {
"h1,h2,h3,h4,h5,h6": {
marginTop: rhythm(2),

@@ -56,16 +56,16 @@ },

paddingLeft: rhythm(10 / 16),
fontStyle: 'italic',
fontStyle: "italic",
marginLeft: 0,
marginRight: 0,
},
'blockquote > :last-child': {
"blockquote > :last-child": {
marginBottom: 0,
},
'blockquote cite': {
"blockquote cite": {
...adjustFontSizeTo(options.baseFontSize),
color: options.bodyColor,
fontStyle: 'normal',
fontStyle: "normal",
fontWeight: options.bodyWeight,
},
'blockquote cite:before': {
"blockquote cite:before": {
content: '"— "',

@@ -81,3 +81,3 @@ },

paddingLeft: rhythm(9 / 16),
fontStyle: 'italic',
fontStyle: "italic",
marginLeft: rhythm(-3 / 4),

@@ -84,0 +84,0 @@ marginRight: 0,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc