New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@beisen-phoenix/mobile-style-token

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beisen-phoenix/mobile-style-token - npm Package Compare versions

Comparing version 1.0.21 to 1.0.22

2

package.json
{
"name": "@beisen-phoenix/mobile-style-token",
"version": "1.0.21",
"version": "1.0.22",
"description": "平台移动端UI组件的原子设计",

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

@@ -70,3 +70,35 @@ #### 组件说明

### 关于scss
###### 1、在样式scss中引入mobile-style-token中index.scss(自动引入相关的mixins和variable.scss)
`
@import '@beisen-phoenix/mobile-style-token/scss/index.scss';
`
###### 2、mixins介绍
> hairline.scss 实现1px像素,边框默认颜色为:#E1E6EB;
`
@include hairline_top(); // 上边框1px,可以传递颜色值
@include hairline_right(); // 右边框1px, 可以传递颜色值
@include hairline_bottom();// 底边框1px, 可以传递颜色值
@include hairline_left();// 左边框1px, 可以传递颜色值
@include hairline(); // 1px边框, 可以传递颜色值和圆角(第一个参数为颜色值,第二个参数为圆角大小,默认为0)
`
> helper.scss 封装常用的mixins
`
@include text-ellipsis; //文本溢出显示...
@include text-ellipsis(2); //超过两行显示...
@include clearfix; //清除浮动
`
#### 结合 Styled-components 完成样式的定义
##### 参照[示例](http://gitlab.beisencorp.com/ux-share-platform/change-theme-example/tree/master)

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