structure-flex-grid
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -22,2 +22,22 @@ // common styles | ||
}); | ||
$(".anchor-link").click(function() { | ||
let targetAnchor = $(this).attr('data-target'); | ||
scrollToAnchor(targetAnchor); | ||
}); | ||
function scrollToAnchor(aid){ | ||
var aTag = $("a[name='"+ aid +"']"); | ||
$('html,body').animate({scrollTop: aTag.offset().top - 80},'fast'); | ||
} | ||
var sideMenu = $(".side-menu"); | ||
$(window).scroll(function() { | ||
var scroll = $(window).scrollTop(); | ||
if (scroll >= 385) { | ||
sideMenu.addClass("side-menu--fixed"); | ||
} else { | ||
sideMenu.removeClass("side-menu--fixed"); | ||
} | ||
}); | ||
}); |
{ | ||
"name": "structure-flex-grid", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Framework agnostic, responsive, BEM-styles Flex Grid (Just the grid)", | ||
@@ -5,0 +5,0 @@ "main": "dist/structure-flex-grid.min.css", |
@@ -20,4 +20,11 @@ ## Structure Flex Grid | ||
... coming soon ... | ||
[Go to Demo Page](https://sambhav-gore.github.io/structure-flex-grid/) | ||
#### Attribution | ||
Structure flex grid is inspired from [Dress Code](https://github.com/zalando/dress-code/). | ||
I made Structure as I wanted only the grid without the overhead of all other styles and something which could be easily | ||
combined other libraries such as Angular-Material (as I find the grid in material library very confusing). | ||
In addition, watch this space for more modular libraries in future which would contribute towards making the `Structure Framework`. |
@@ -125,3 +125,4 @@ const path = require('path'); | ||
new CopyWebpackPlugin([ | ||
{from: './demo/src/common/images', to: './images/'} | ||
{from: './demo/src/common/images', to: './images/'}, | ||
{from: './demo/src/common/favicon', to: '.'} | ||
]), | ||
@@ -128,0 +129,0 @@ new HtmlWebpackPlugin({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237004
34
1274
30
1