Skip to content

Commit

Permalink
Fix styles when rtl is used for every div, fixes #121
Browse files Browse the repository at this point in the history
  • Loading branch information
sconix committed May 28, 2018
1 parent 9323bb2 commit d8d3494
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions example/src/app/app.component.css
@@ -1,3 +1,9 @@
html,
body,
div {
direction: rtl;
}

input {
width: 150px;
margin-bottom: 16px;
Expand Down
6 changes: 6 additions & 0 deletions src/lib/color-picker.component.scss
Expand Up @@ -243,6 +243,8 @@
}

.hue {
direction: ltr;

width: 100%;
height: 16px;
margin-bottom: 16px;
Expand All @@ -254,6 +256,8 @@
}

.alpha {
direction: ltr;

width: 100%;
height: 16px;
border: none;
Expand Down Expand Up @@ -297,6 +301,8 @@
}

.saturation-lightness {
direction: ltr;

width: 100%;
height: 130px;
border: none;
Expand Down
3 changes: 2 additions & 1 deletion stylelint.json
Expand Up @@ -88,7 +88,8 @@
[
{
"properties": [
"content"
"content",
"direction"
]
}, {
"emptyLineBefore": "always",
Expand Down

0 comments on commit d8d3494

Please sign in to comment.