Socket
Socket
Sign inDemoInstall

polythene-style

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polythene-style - npm Package Compare versions

Comparing version 1.0.0-rc.9 to 1.0.0-rc.10

120

dist/polythene-style.js

@@ -1,2 +0,120 @@

!function(e,_){"object"==typeof exports&&"undefined"!=typeof module?_(exports,require("polythene-core")):"function"==typeof define&&define.amd?define(["exports","polythene-core"],_):_(e.polythene={},e["polythene-core"])}(this,function(e,_){"use strict";var i={grid_unit:4,grid_unit_component:8,grid_unit_menu:56,grid_unit_icon_button:48,unit_block_border_radius:2,unit_item_border_radius:2,unit_indent:72,unit_side_padding:!_.isClient||window.innerWidth>=1024?24:16,unit_touch_height:48,unit_icon_size_small:16,unit_icon_size:24,unit_icon_size_medium:32,unit_icon_size_large:40,unit_screen_size_extra_large:1280,unit_screen_size_large:960,unit_screen_size_medium:480,unit_screen_size_small:320,animation_duration:".18s",animation_curve_slow_in_fast_out:"cubic-bezier(.4, 0, .2, 1)",animation_curve_slow_in_linear_out:"cubic-bezier(0, 0, .2, 1)",animation_curve_linear_in_fast_out:"cubic-bezier(.4, 0, 1, 1)",animation_curve_default:"ease-out",font_weight_light:300,font_weight_normal:400,font_weight_medium:500,font_weight_bold:700,font_size_title:20,line_height:1.3,color_primary:"33, 150, 243",color_primary_active:"30, 136, 229",color_primary_dark:"25, 118, 210",color_primary_faded:"100, 181, 249",color_primary_foreground:"255, 255, 255",color_light_background:"255, 255, 255",color_light_foreground:"0, 0, 0",color_dark_background:"34, 34, 34",color_dark_foreground:"255, 255, 255",blend_light_text_primary:.87,blend_light_text_regular:.73,blend_light_text_secondary:.54,blend_light_text_tertiary:.4,blend_light_text_disabled:.26,blend_light_border_light:.11,blend_light_background_active:.14,blend_light_background_hover:.06,blend_light_background_hover_medium:.12,blend_light_background_disabled:.09,blend_light_overlay_background:.3,blend_dark_text_primary:1,blend_dark_text_regular:.87,blend_dark_text_secondary:.7,blend_dark_text_tertiary:.4,blend_dark_text_disabled:.26,blend_dark_border_light:.1,blend_dark_background_active:.14,blend_dark_background_hover:.08,blend_dark_background_hoverMedium:.12,blend_dark_background_disabled:.12,blend_dark_overlay_background:.3,prefixes_animation:["o","moz","webkit"],prefixes_appearance:["o","moz","ms","webkit"],prefixes_background_size:["o","moz","webkit"],prefixes_box_shadow:["moz","webkit"],prefixes_keyframes:["o","moz","webkit"],prefixes_transform:["o","moz","ms","webkit"],prefixes_transition:["o","moz","webkit"],prefixes_user_select:["moz","ms","webkit"],breakpoint_small_handset_portrait:0,breakpoint_medium_handset_portrait:360,breakpoint_large_handset_portrait:400,breakpoint_small_tablet_portrait:600,breakpoint_large_tablet_portrait:720,breakpoint_small_handset_landscape:480,breakpoint_medium_handset_landscape:600,breakpoint_large_handset_landscape:720,env_tablet:!!_.isClient&&window.innerWidth>=600,env_desktop:!_.isClient||window.innerWidth>=1024,z_menu:1e3,z_header_container:2e3,z_fixed_header_container:3e3,z_notification:4e3,z_dialog:5e3};e.vars=i,Object.defineProperty(e,"__esModule",{value:!0})});
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.polythene = {})));
}(this, (function (exports) { 'use strict';
// Global style variables
var grid_unit = 4;
var grid_unit_component = 8;
var animation_curve_slow_in_fast_out = "cubic-bezier(.4, 0, .2, 1)";
var animation_curve_slow_in_linear_out = "cubic-bezier(0, 0, .2, 1)";
var animation_curve_linear_in_fast_out = "cubic-bezier(.4, 0, 1, 1)";
var vars = {
// grid
grid_unit: grid_unit,
grid_unit_component: grid_unit_component,
grid_unit_menu: 56,
grid_unit_icon_button: 6 * grid_unit_component, // 48
// common sizes
unit_block_border_radius: 2,
unit_item_border_radius: 2,
unit_indent: 72,
unit_side_padding: 16,
// buttons
unit_touch_height: 48,
unit_icon_size_small: 2 * grid_unit_component, // 16
unit_icon_size: 3 * grid_unit_component, // 24
unit_icon_size_medium: 4 * grid_unit_component, // 32
unit_icon_size_large: 5 * grid_unit_component, // 40
// screen dimensions
unit_screen_size_extra_large: 1280,
unit_screen_size_large: 960,
unit_screen_size_medium: 480,
unit_screen_size_small: 320,
// transitions
animation_duration: ".18s",
animation_curve_slow_in_fast_out: animation_curve_slow_in_fast_out,
animation_curve_slow_in_linear_out: animation_curve_slow_in_linear_out,
animation_curve_linear_in_fast_out: animation_curve_linear_in_fast_out,
animation_curve_default: "ease-out",
// font
font_weight_light: 300,
font_weight_normal: 400,
font_weight_medium: 500,
font_weight_bold: 700,
font_size_title: 20,
line_height: 1.3,
// base colors
color_primary: "33, 150, 243", // blue 500
color_primary_active: "30, 136, 229", // blue 600
color_primary_dark: "25, 118, 210", // blue 700
color_primary_faded: "100, 181, 249", // blue 300
color_primary_foreground: "255, 255, 255",
color_light_background: "255, 255, 255",
color_light_foreground: "0, 0, 0",
color_dark_background: "34, 34, 34",
color_dark_foreground: "255, 255, 255",
// blends
blend_light_text_primary: .87,
blend_light_text_regular: .73,
blend_light_text_secondary: .54,
blend_light_text_tertiary: .40,
blend_light_text_disabled: .26,
blend_light_border_light: .11,
blend_light_background_active: .14,
blend_light_background_hover: .06,
blend_light_background_hover_medium: .12, // for the lighter tinted icon buttons
blend_light_background_disabled: .09,
blend_light_overlay_background: .3,
blend_dark_text_primary: 1,
blend_dark_text_regular: .87,
blend_dark_text_secondary: .70,
blend_dark_text_tertiary: .40,
blend_dark_text_disabled: .26,
blend_dark_border_light: .10,
blend_dark_background_active: .14,
blend_dark_background_hover: .08,
blend_dark_background_hoverMedium: .12, // for the lighter tinted icon buttons
blend_dark_background_disabled: .12,
blend_dark_overlay_background: .3,
/*
Breakpoints
Specs: https://material.io/guidelines/layout/responsive-ui.html#responsive-ui-breakpoints
Breakbpoint naming: inspiration from
https://medium.freecodecamp.org/the-100-correct-way-to-do-css-breakpoints-88d6a5ba1862
*/
breakpoint_for_phone_only: 599, // set max-width cols: 4, gutter: 16
breakpoint_for_tablet_portrait_up: 600, // set min-width cols: 8, gutter: 24
breakpoint_for_tablet_landscape_up: 840, // etc. cols: 12, gutter: 24
breakpoint_for_desktop_up: 1280,
breakpoint_for_big_desktop_up: 1600,
breakpoint_for_tv_up: 1920,
// z-index
z_menu: 1000,
z_header_container: 2000,
z_fixed_header_container: 3000,
z_notification: 4000,
z_dialog: 5000
};
exports.vars = vars;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=polythene-style.js.map

4

package.json
{
"name": "polythene-style",
"version": "1.0.0-rc.9",
"version": "1.0.0-rc.10",
"description": "",

@@ -17,3 +17,3 @@ "main": "dist/polythene-style.js",

"dependencies": {
"polythene-core": "^1.0.0-rc.9"
"polythene-core": "^1.0.0-rc.10"
},

@@ -20,0 +20,0 @@ "author": "Arthur Clemens <arthurclemens@gmail.com> (http://arthurclemens.com)",

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