Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a CSS comment to the c-list__item--pin class #2118

Merged
merged 3 commits into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/frontend/src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1933,6 +1933,12 @@ by all browsers (FF is missing) */
gap: var(--rs-input-inline);
}

/*
* The width of the digits is the result of the gap we want between them and the
* number of digits we want to display.
* 100% is the full width of the container, so we divide it by the number of digits
* and subtract the gap we want between them.
*/
.c-list__item--pin {
flex-basis: calc(100% / var(--pinDigits) - var(--rs-input-inline));
}
Expand Down