🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@befe/brick-comp-grid

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@befe/brick-comp-grid

@befe/brick component Grid

latest
npmnpm
Version
0.2.82
Version published
Maintainers
2
Created
Source

2021 BREAKING CHANGES

  • 不再支持 props.style (此前的支持是由于不恰当的 props 传递造成)
    • /main/getting-started 中 FAQ.组件原则上不支持 props.style

概念澄清

Responsive Web Design by Ethan Marcotte at 2010

  • Fluid Grids by Ethan Marcotte at 2009
  • media query
  • flexible media (image, video i.e)

Adaptive web design / adaptive delivery

Classical Grid / Typographic Grid / Fixed-Width Grid

沟通中被混淆的概念

  • Grid 对开发来说通常指的是 Fluid Grid,而对于设计师来说 Grid 更多是 Typographic Grid 上的理解,但没关系,如果容器 width fixed 两者就一致了
  • 常见于和设计师的沟通中,我们口中的“自适应”,往往只是狭义上的“子物件宽度随父容器宽度变化”,这常常也就是 Fluid Grid 随其 Container 变化
  • Responsive Web Design 直译为 “自适应网页设计” 或 “响应式网页设计” 其实都没问题
  • 常见的误解是将 Responsive Web Design 片面地理解为 Fluid Grid (内容随容器宽度变化)

web layout design comparison

  • Fluid aka Liquid

    Liquid (also called "Fluid") is characterized by scaling the width of parts of the design relative to the window. It tends to fail when the window is much smaller or much larger than it was originally designed for.

  • Adaptive

    Adaptive is characterized by having defined layouts for different resolutions. Within each layout, resizing the window does not change the layout.

  • Responsive

    Responsive is characterized by having defined layouts for different resolutions. Within each layout, the design is liquid and resizes the width of elements relative to the changing window size. You can think of Responsive as a series of Liquid layouts.

  • Static

    Static layouts are the traditional web: one design that sits in the center of the page and requires horizontal scrolling if the window is too small for it. M dot sites are the traditional answer to this, providing a wholly separate site for a lower resolution - and all the work of creating a separate site.

  • 参考阅读

Grid 组件

  • 基于 Bootstrap Grid System
  • 结果上 PageContainer / BlockContainer > Row > Col
  • 一般来说使用 Fluid Grid 只在 container width 有一定限制时使用才有意义
    • fixed width container
    • proper min/max width limit width container
    • responsive page-container width, also need proper min/max width limit
  • 关于 container 必须有限制,极端但直觉的例子,想像一下以下的情景
    • 从 100px 至 1000px 都用 1:1:1 布局
    • 在 48寸 32:9 超宽屏幕下全屏查看看一个宽度总是占整个屏幕的宽度的页面

FAQs

Package last updated on 03 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts