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

styled-bootstrap-grid

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-bootstrap-grid - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

.npmignore

15

dist/styled/media.js

@@ -7,3 +7,4 @@ 'use strict';

var _templateObject = _taggedTemplateLiteral(['\n @media (min-width: ', 'px) {\n ', '\n }\n '], ['\n @media (min-width: ', 'px) {\n ', '\n }\n ']);
var _templateObject = _taggedTemplateLiteral(['\n\t @media (max-width: ', 'px) {\n\t ', '\n\t }\n\t'], ['\n\t @media (max-width: ', 'px) {\n\t ', '\n\t }\n\t']),
_templateObject2 = _taggedTemplateLiteral(['\n @media (min-width: ', 'px) {\n ', '\n }\n '], ['\n @media (min-width: ', 'px) {\n ', '\n }\n ']);

@@ -22,5 +23,11 @@ var _styledComponents = require('styled-components');

var media = Object.keys(sizes).reduce(function (accumulator, label) {
accumulator[label] = function () {
return (0, _styledComponents.css)(_templateObject, sizes[label], _styledComponents.css.apply(undefined, arguments));
};
if (label === 'phone') {
accumulator[label] = function () {
return (0, _styledComponents.css)(_templateObject, sizes.tablet - 1, _styledComponents.css.apply(undefined, arguments));
};
} else {
accumulator[label] = function () {
return (0, _styledComponents.css)(_templateObject2, sizes[label], _styledComponents.css.apply(undefined, arguments));
};
}
return accumulator;

@@ -27,0 +34,0 @@ }, {});

{
"name": "styled-bootstrap-grid",
"version": "0.1.1",
"version": "0.1.2",
"description": "bootstrap grid system using styled components",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -11,7 +11,15 @@ import { css } from 'styled-components';

const media = Object.keys(sizes).reduce((accumulator, label) => {
accumulator[label] = (...args) => css`
@media (min-width: ${sizes[label]}px) {
${css(...args)}
}
`;
if (label === 'phone') {
accumulator[label] = (...args) => css`
@media (max-width: ${sizes.tablet - 1}px) {
${css(...args)}
}
`;
} else {
accumulator[label] = (...args) => css`
@media (min-width: ${sizes[label]}px) {
${css(...args)}
}
`;
}
return accumulator;

@@ -18,0 +26,0 @@ }, {});

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