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

@binary-com/binary-style

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@binary-com/binary-style - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

2

package.json
{
"name": "@binary-com/binary-style",
"version": "0.2.4",
"version": "0.2.5",
"description": "Style system and guide for Binary.com",

@@ -5,0 +5,0 @@ "main": "binary.js",

@@ -5,3 +5,3 @@ {

"lastOpened": 0,
"created": 1510552800676
"created": 1525341506115
},

@@ -12,2 +12,10 @@ "iconSets": [

{
"order": 48,
"id": 30,
"name": "DAI",
"prevSize": 32,
"code": 59650,
"tempChar": ""
},
{
"order": 36,

@@ -18,3 +26,3 @@ "id": 20,

"code": 36,
"tempChar": ""
"tempChar": ""
},

@@ -27,3 +35,3 @@ {

"code": 8364,
"tempChar": ""
"tempChar": ""
},

@@ -36,3 +44,3 @@ {

"code": 163,
"tempChar": ""
"tempChar": ""
},

@@ -45,3 +53,3 @@ {

"code": 165,
"tempChar": ""
"tempChar": ""
},

@@ -54,3 +62,3 @@ {

"code": 65,
"tempChar": ""
"tempChar": ""
},

@@ -63,3 +71,3 @@ {

"code": 66,
"tempChar": ""
"tempChar": ""
},

@@ -72,3 +80,3 @@ {

"code": 59649,
"tempChar": ""
"tempChar": ""
},

@@ -81,3 +89,3 @@ {

"code": 76,
"tempChar": ""
"tempChar": ""
},

@@ -90,3 +98,3 @@ {

"code": 69,
"tempChar": ""
"tempChar": ""
},

@@ -99,3 +107,3 @@ {

"code": 59648,
"tempChar": ""
"tempChar": ""
}

@@ -107,4 +115,4 @@ ],

"importSize": {
"width": 104,
"height": 172
"width": 18,
"height": 18
}

@@ -116,2 +124,17 @@ },

{
"id": 30,
"paths": [
"M512 0l512 455.111-512 227.556-512-227.556 512-455.111zM512 796.444l512-227.556-512 455.111-512-455.111 512 227.556zM853.333 455.111l-341.333-341.333-341.333 341.333 227.556-0.090 113.778-113.688 113.778 113.778h227.556z"
],
"attrs": [
{}
],
"grid": 0,
"tags": [
"dai"
],
"isMulticolor": false,
"isMulticolor2": false
},
{
"id": 20,

@@ -333,3 +356,4 @@ "paths": [

},
"uid": -1
"uid": -1,
"time": 1525341542218
}

@@ -381,82 +381,2 @@ /*

export function sidebarCollapsible() {
const sidebar = '.sidebar-collapsible';
function getChildrenHeight($el) {
let totalHeight = 0;
$el.children().each(function() {
totalHeight += $(this).outerHeight(true);
});
return totalHeight;
}
function toggleSubmenu($el) {
const $submenu = $el.siblings('ul');
if ($el.is('.selected')) {
const totalHeight = getChildrenHeight($submenu);
$submenu.height(totalHeight);
}
else {
$submenu.height(0);
}
}
function getTargetHref(current_target) {
const submenu = current_target.nextElementSibling;
const target = submenu ? $(submenu).find($(submenu).find('.selected')[0] ? '.selected' : 'a:first')[0] : current_target;
return target.getAttribute('href');
}
function showSelectedContent(current_target) {
const $content = $('.sidebar-collapsible-content');
if (!$content) return;
const target = getTargetHref(current_target);
$content
.find('> div')
.addClass('invisible')
.end()
.find(`${target}-content`)
.removeClass('invisible');
}
function initSidebar() {
$(sidebar).off('click').on('click', (e) => {
const $target = $(e.target);
if (!$target.is('a')) return;
const was_active = $target.is('.selected');
if ($target.siblings('ul').length) {
// parent link
e.preventDefault();
if (!was_active) {
$target.addClass('selected').parent('li').addClass('active');
const $first_link = $target.siblings('ul').find('li:first-child > a');
if ($first_link.length) {
$first_link[0].click();
}
}
else {
$target.removeClass('selected no-transition').parent('li').removeClass('active');
}
toggleSubmenu($target);
}
else if ($target.closest('.has-submenu').length) {
// child link
const $parent_link = $target.closest('.has-submenu').addClass('active').children('a').addClass('selected');
$target.addClass('selected').parent('li').addClass('active');
$parent_link.addClass('no-transition');
toggleSubmenu($parent_link);
}
else {
// childless link
$target.addClass('selected').parent('li').addClass('active');
}
showSelectedContent(e.target);
});
}
initSidebar();
}
$(document).ready(() => {

@@ -468,3 +388,2 @@ navMenuListener();

tabListener();
sidebarCollapsible();
});

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

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