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

chore: Use iTwinUI-Variables in CSS package #65

Merged
merged 14 commits into from
Nov 16, 2022

Conversation

FlyersPh9
Copy link
Collaborator

@FlyersPh9 FlyersPh9 commented Nov 8, 2022

  • Use itwinui-react 2.0.0.
  • Use itwinui-variables 1.0.0.
  • Remove itwinui-css.
  • Use CSS variables.
  • Replace Open Sans with Noto Sans & Noto Sans Mono.

@FlyersPh9 FlyersPh9 self-assigned this Nov 8, 2022
@gretanausedaite
Copy link
Contributor

gretanausedaite commented Nov 10, 2022

We should update layouts package versions. Are we going 1.0.0 here too or 0.2.0 is ok? @bentleyvk


.app {
padding: $iui-line-height unquote('max(#{$iui-l}, #{$iui-l} + env(safe-area-inset-right))') $iui-line-height unquote('max(#{$iui-l}, #{$iui-l} + env(safe-area-inset-left))');
padding: var(--iui-size-l) unquote('max(var(--iui-size-l), var(--iui-size-l) + env(safe-area-inset-right))') var(--iui-size-l) unquote('max(var(--iui-size-l), var(--iui-size-l) + env(safe-area-inset-left))');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to have alias for line-height in variables package


&-icon {
width: 20%;
background-color: var(--iui-color-background-3);
border-right: 1px solid var(--iui-color-background-5);
background-color: var(--iui-color-background-zebra);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zebra?? wtf? 😀


.demo-template-container {
display: flex;
height: 100vh;
background-color: var(--iui-color-background-4);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened here?

justify-content: space-between;

&-left,
&-right {
display: flex;
justify-content: flex-start;
flex-direction: row;
gap: $iui-s;
gap: var(--iui-size-xs);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only now I understand that our example doesn't have several buttons or inputs in tools area to see how gap looks like. But it is not for this PR.

@gretanausedaite gretanausedaite changed the title Use dev releases of iTwinUI-Variables & iTwinUI-React chore: Use iTwinUI-Variables in CSS package Nov 11, 2022
@gretanausedaite gretanausedaite marked this pull request as ready for review November 15, 2022 15:16
@gretanausedaite gretanausedaite merged commit 3b0470b into main Nov 16, 2022
@gretanausedaite gretanausedaite deleted the jon/itwinui-variables branch November 16, 2022 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants