Socket
Socket
Sign inDemoInstall

@os-design/core

Package Overview
Dependencies
Maintainers
1
Versions
478
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@os-design/core - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

44

lib/Link/index.js

@@ -21,25 +21,27 @@ "use strict";

const underline = (p) => !p.noUnderline && core_1.css `
position: relative;
padding-bottom: 0.02em;
display: inline-block;
&::after {
position: absolute;
bottom: 0;
left: 0;
content: "";
height: ${UNDERLINE_HEIGHT_EM}em;
background-color: rgb(${p.theme.colorPrimary});
@media (hover: hover) {
position: relative;
padding-bottom: 0.02em;
display: inline-block;
width: 0;
opacity: 0;
${utils_1.transition('width', 'opacity')(p)};
&::after {
position: absolute;
bottom: 0;
left: 0;
content: "";
height: ${UNDERLINE_HEIGHT_EM}em;
background-color: rgb(${p.theme.colorPrimary});
width: 0;
opacity: 0;
${utils_1.transition('width', 'opacity')(p)};
}
&:hover::after {
width: 100%;
opacity: 1;
}
${p.darkMode && core_1.css `&::after { background-color: #fff; }`}
}
&:hover::after {
width: 100%;
opacity: 1;
}
${p.darkMode && core_1.css `&::after { background-color: #fff; }`}
`;

@@ -46,0 +48,0 @@ const Link = styled_1.default('a', utils_1.omitProps(['darkMode', 'sizing', 'noUnderline'])) `

{
"name": "@os-design/core",
"version": "0.0.24",
"version": "0.0.25",
"license": "MIT",

@@ -32,3 +32,3 @@ "main": "lib/index.js",

},
"gitHead": "290b0a848faffe4bad6406ab41fbfb1a674fd808"
"gitHead": "2fda441928f8bf169c553d306e9ccc47e512beff"
}

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