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

logical properties #15

Closed
chharvey opened this issue Sep 26, 2017 · 1 comment
Closed

logical properties #15

chharvey opened this issue Sep 26, 2017 · 1 comment

Comments

@chharvey
Copy link
Owner

chharvey commented Sep 26, 2017

__tool.border-radius.less

(note that the @radius variable could take the form of one or two values, e.g. @radius: 2px 4px for the x- and y- radii, in that order)

// could the following 4 mixins be css shorthand properties?
.border-block-start-radius(@radius: 0) {
  border-start-start-radius: @radius;
  border-start-end-radius:   @radius;
}
.border-block-end-radius(@radius: 0) {
  border-end-start-radius: @radius;
  border-end-end-radius:   @radius;
}
.border-inline-start-radius(@radius: 0) {
  border-start-start-radius: @radius;
  border-end-start-radius:   @radius;
}
.border-inline-end-radius(@radius: 0) {
  border-start-end-radius: @radius;
  border-end-end-radius:   @radius;
}

Related: w3c/csswg-drafts#491

__tool.borders.less

.border-block(start; @width: 0) {
  border-block-start-width: @width;
  margin-block-start: (-@width);
}
.border-block(end; @width: 0) {
  border-block-end-width: @width;
  margin-block-start: (-@width);
}
.border-block(block; @width: 0) {
  border-block-width: @width;
  margin-block-start: (-2 * @width);
}
.border-block(all; @width: 0) {
  border-width: @width;
  margin-block-start: (-2 * @width);
}

_c-Permalink.less

.c-Permalink {
  margin-inline-start: 1rem;
}

_h-Hidden.less

.h-Hidden {
  inset-inline-start: -999999px;
}

_h-Ruled.less

.h-Ruled {
  background-position-block: end;
}
@chharvey chharvey added this to the v6.2.0 milestone Oct 13, 2017
@chharvey
Copy link
Owner Author

xmeter v6.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant