question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

breakpoint configuration

See original GitHub issue

currently, the logic generates breakpoints based on the following breakpoint so it seems, that the breakpoint ns which is available in the regular tachyons cannot be produced

I want to mirror the material design breakpoints, which include not only xs, sm, md, lg, xl, but also gt-xs, gt-sm, gt-md, gt-lg (greater-than). They have the same semantic logic as tachyons’ ns, basically only describing the min-width

as for the json config, this could be indicated with <= and/or >=

  "customMedia": [
    { "sm": "600px" },
    { "md": "960px" },
    { "lg": "1280px" },
    { "xl": "1920px" },
    { "gt-xs": ">=600px" },
    { "gt-sm": ">=960px" },
    { "gt-md": ">=1280px" },
    { "gt-lg": ">=1920px" }
  ],

where >=600px would result in screen and min-width(600px) I admit, this does not look nice, but thats only from the top of my head

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
johnocommented, Nov 3, 2017

That’s a great idea. I’ve gone ahead and spiked out an implementation (#66) that also adds further customization allowing you to pass an object instead of a media query value for further configurability:

customMedia: [
     { "sm": "600px" },
    { "md": "960px" },
    { "lg": "1280px" },
    { "xl": "1920px" },
    { "gt-xs": { "value": "600px", "minWidth": true } },
    { "gt-sm":  { "value": "960px", "minWidth": true }  },
    { "gt-md":  { "value": "1280px", "minWidth": true }  },
    { "gt-lg":  { "value": "1920px", "minWidth": true, "prefix": true, "delimiter": "@" }  }
]

The last mq options make the class naming become db@gt-lg for that breakpoint : )

0reactions
johnocommented, Nov 5, 2017

No worries, glad it works! 😸

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use breakpoints in the Visual Studio debugger - Microsoft Learn
Hover over the breakpoint symbol, choose the Settings icon, and then select Remove breakpoint once hit in the Breakpoint Settings window. Choose ...
Read more >
Breakpoints | IntelliJ IDEA Documentation - JetBrains
Configure breakpoints ' properties · To access breakpoint intentions, place the caret at the line with the breakpoint and press Alt+Enter . Use ......
Read more >
Debugging in Visual Studio Code
Set breakpoints, step-in, inspect variables and more. ... VS Code keeps debugging configuration information in a launch.json file located in a .vscode ...
Read more >
Setting and Modifying Breakpoints - RAD Studio
You can set data breakpoints and address breakpoints only when the application is running in debug mode (F9). Breakpoint Icons. During a debugging...
Read more >
Setting Breakpoints - Eclipse
To add a condition to a breakpoint: Right-click the breakpoint in the vertical marker bar and select Breakpoint Properties... ... The PHP Conditional...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found