Skip to content

Breakpoint visualizer #238

Open
Open
@soniktrooth

Description

@soniktrooth

I recently did this on a project to help when developing which breakpoint I'm looking at. It's super handy and I think we could roll it in.

This was also suggested for adding to Kalastatic so we need to watch we don't step on each others toes for when Kalatheme and Kalastatic both exist in a project but I think this could be implemented with a handy little theme setting toggle.

body {
  position: relative;

  &:before {
    @media(min-width: $screen-xs) {
      content: 'xs';
      width: 25px;
      height: 20px;
      padding: 3px;
      position: fixed;
      bottom: 0;
      left: 0;
      z-index: 999;
      background-color: #000;
      color: #fff;
      text-align: center;
      font-size: 12px;
      border-top-right-radius: 5px;
    }

    @media(min-width: $screen-sm) {
      content: 'sm';
    }

    @media(min-width: $screen-md) {
      content: 'md';
    }

    @media(min-width: $screen-lg) {
      content: 'lg';
    }
  }
}

breakpoint vizualizer

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions