Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ndla/core

Package Overview
Dependencies
Maintainers
5
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndla/core - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

scss/.DS_Store

23

es/fonts.js

@@ -0,1 +1,20 @@

var baseFontSizeUnit = 18;
var baseLineHeightUnit = 26;
/**
* Should do the same as: https://github.com/inuitcss/inuitcss/blob/c14029caf75b7b69d7551a5e22036ec280b02e9f/tools/_tools.font-size.scss
*/
function sizes(fontSize, lineHeight) {
var fontSizeUnit = parseInt(fontSize, 10);
var fontSizeRem = parseInt(fontSize, 10) / baseFontSizeUnit;
var fontSizeStyling = "font-size: ".concat(fontSize, ";font-size: ").concat(fontSizeRem, "rem;");
if (lineHeight) {
return "".concat(fontSizeStyling, " line-height: ").concat(lineHeight);
}
var defaultLineHeight = Math.ceil(fontSizeUnit / baseLineHeightUnit) * (baseLineHeightUnit / fontSizeUnit);
return "".concat(fontSizeStyling, " line-height: ").concat(defaultLineHeight);
}
export default {

@@ -10,5 +29,3 @@ sans: "'Source Sans Pro',Helvetica,Arial,STKaiti,'华文楷体',KaiTi,SimKai,'楷体',KaiU,DFKai-SB,'標楷體',SongTi,'宋体',sans-serif",

},
sizes: function sizes(fontSize, lineHeightFactor) {
return lineHeightFactor ? "font-size: ".concat(parseFloat(fontSize), "px;\n line-height: ").concat(parseFloat(lineHeightFactor) * parseFloat(fontSize), "px;") : "font-size: ".concat(parseFloat(fontSize), "px;");
}
sizes: sizes
};

@@ -6,3 +6,7 @@ export default {

mastheadHeight: '84px',
transition: {
default: 'all .2s cubic-bezier(0.17, 0.04, 0.03, 0.94)',
long: 'all .5s cubic-bezier(0.17, 0.04, 0.03, 0.94)'
},
textLinkBoxShadow: 'inset 0 -1px'
};

@@ -6,2 +6,21 @@ "use strict";

});
var baseFontSizeUnit = 18;
var baseLineHeightUnit = 26;
/**
* Should do the same as: https://github.com/inuitcss/inuitcss/blob/c14029caf75b7b69d7551a5e22036ec280b02e9f/tools/_tools.font-size.scss
*/
function sizes(fontSize, lineHeight) {
var fontSizeUnit = parseInt(fontSize, 10);
var fontSizeRem = parseInt(fontSize, 10) / baseFontSizeUnit;
var fontSizeStyling = "font-size: ".concat(fontSize, ";font-size: ").concat(fontSizeRem, "rem;");
if (lineHeight) {
return "".concat(fontSizeStyling, " line-height: ").concat(lineHeight);
}
var defaultLineHeight = Math.ceil(fontSizeUnit / baseLineHeightUnit) * (baseLineHeightUnit / fontSizeUnit);
return "".concat(fontSizeStyling, " line-height: ").concat(defaultLineHeight);
}
exports.default = {

@@ -16,5 +35,3 @@ sans: "'Source Sans Pro',Helvetica,Arial,STKaiti,'华文楷体',KaiTi,SimKai,'楷体',KaiU,DFKai-SB,'標楷體',SongTi,'宋体',sans-serif",

},
sizes: function sizes(fontSize, lineHeightFactor) {
return lineHeightFactor ? "font-size: ".concat(parseFloat(fontSize), "px;\n line-height: ").concat(parseFloat(lineHeightFactor) * parseFloat(fontSize), "px;") : "font-size: ".concat(parseFloat(fontSize), "px;");
}
sizes: sizes
};

@@ -11,3 +11,7 @@ "use strict";

mastheadHeight: '84px',
transition: {
default: 'all .2s cubic-bezier(0.17, 0.04, 0.03, 0.94)',
long: 'all .5s cubic-bezier(0.17, 0.04, 0.03, 0.94)'
},
textLinkBoxShadow: 'inset 0 -1px'
};

4

package.json
{
"name": "@ndla/core",
"version": "0.4.3",
"version": "0.4.4",
"description": "UI component library for NDLA.",

@@ -31,3 +31,3 @@ "license": "GPL-3.0",

},
"gitHead": "f51bccb73b427f3fa96fb6df8f2d450a13fab3f9"
"gitHead": "e222847817aa2f92e26a22462614e5cd964a490e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc