Skip to content

Add :root css vars for bs-breakpoints#36494

Closed
pine3ree wants to merge 1 commit intotwbs:mainfrom
pine3ree:patch-5
Closed

Add :root css vars for bs-breakpoints#36494
pine3ree wants to merge 1 commit intotwbs:mainfrom
pine3ree:patch-5

Conversation

@pine3ree
Copy link
Copy Markdown
Contributor

@pine3ree pine3ree commented Jun 3, 2022

breakpoint css vars can then be read in javascript code, e.g.:

const breakpoint_md = parseInt(
    window.getComputedStyle(document.documentElement).getPropertyValue('--bs-breakpoint-md')
);

breakpoint css vars can then be read in javascript code
```js
const breakpoint_md = parseInt(window.getComputedStyle(document.documentElement).getPropertyValue('--bs-breakpoint-md'));
```
@pine3ree pine3ree requested a review from a team as a code owner June 3, 2022 15:47
@mdo
Copy link
Copy Markdown
Member

mdo commented Jun 3, 2022

Duplicate of #36095.

@mdo mdo closed this Jun 3, 2022
@pine3ree
Copy link
Copy Markdown
Contributor Author

pine3ree commented Jun 3, 2022

Sorry @mdo , lately my search skills inside :issue and :pr are failing me!!! ...and it also felt very strange to me nobody else thought about it before. kind regards.

@pine3ree pine3ree deleted the patch-5 branch July 15, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants