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

[WICKET-7068] Tree styles are updated to be RTL-friendly #600

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
padding: 0px;
}

html[dir="rtl"] .tree-theme-human div.tree-subtree {
margin: 0px 18px 0px 0px;
}

.tree-theme-human div.tree-branch {
margin: 0px;
padding: 0px;
Expand All @@ -39,6 +43,10 @@
width: 18px;
}

html[dir="rtl"] .tree-theme-human .tree-junction {
float: right;
}

.tree-theme-human .tree-junction-expanded {
display: block;
float: left;
Expand All @@ -49,10 +57,20 @@
text-decoration: none;
}

html[dir="rtl"] .tree-theme-human .tree-junction-expanded {
float: right;
background-image: url(tree-rtl.gif);
background-position-x: -36px;
}

.tree-theme-human .tree-junction-expanded:hover {
background-position: -54px center;
}

html[dir="rtl"] .tree-theme-human .tree-junction-expanded:hover {
background-position-x: 0px;
}

.tree-theme-human .tree-junction-collapsed {
display: block;
float: left;
Expand All @@ -63,15 +81,29 @@
text-decoration: none;
}

html[dir="rtl"] .tree-theme-human .tree-junction-collapsed {
float: right;
background-image: url(tree-rtl.gif);
background-position-x: -54px;
}

.tree-theme-human .tree-junction-collapsed:hover {
background-position: -36px center;
}

html[dir="rtl"] .tree-theme-human .tree-junction-collapsed:hover {
background-position: -18px center;
}

.tree-theme-human span.tree-content {
display: block;
margin-left: 18px;
}

html[dir="rtl"] .tree-theme-human span.tree-content {
margin-right: 18px;
}

/* tabletree */

.tree-theme-human table {
Expand Down Expand Up @@ -105,22 +137,46 @@
}

.tree-theme-human .tree-folder-closed {
display: inline-block;
padding-left: 18px;
background-image: url(folder.gif);
background-position: 0px 50%;
background-repeat: no-repeat;
}

html[dir="rtl"] .tree-theme-human .tree-folder-closed {
background-image: url(folder-rtl.gif);
background-position-x: right;
padding-right: 18px;
padding-left: initial;
}

.tree-theme-human .tree-folder-open {
display: inline-block;
padding-left: 18px;
background-image: url(folder.gif);
background-position: 0px 50%;
background-repeat: no-repeat;
}

html[dir="rtl"] .tree-theme-human .tree-folder-open {
background-image: url(folder-rtl.gif);
background-position-x: right;
padding-right: 18px;
padding-left: initial;
}

.tree-theme-human .tree-folder-other {
display: inline-block;
padding-left: 18px;
background-image: url(folder-other.gif);
background-position: 0px 50%;
background-repeat: no-repeat;
}
}

html[dir="rtl"] .tree-theme-human .tree-folder-other {
background-image: url(folder-rtl-other.gif);
background-position-x: right;
padding-right: 18px;
padding-left: initial;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
padding: 0px;
}

html[dir="rtl"] .tree-theme-windows div.tree-subtree {
margin: 0px 18px 0px 0px;
padding: 0px;
}

.tree-theme-windows div.tree-branch {
margin: 0px;
padding: 0px;
Expand All @@ -31,6 +36,11 @@
background-repeat: repeat-y;
}

html[dir="rtl"] .tree-theme-windows div.tree-branch-mid {
background-image: url(tree-rtl.gif);
background-position-x: calc(100%/* to skip */ +/* minimizer */ 54px);
}

.tree-theme-windows div.tree-branch-last {
}

Expand All @@ -45,6 +55,12 @@
background-repeat: no-repeat;
}

html[dir="rtl"] .tree-theme-windows .tree-junction {
float: right;
background-image: url(tree-rtl.gif);
background-position-x: -18px;
}

.tree-theme-windows .tree-junction-expanded {
display: block;
float: left;
Expand All @@ -55,6 +71,12 @@
text-decoration: none;
}

html[dir="rtl"] .tree-theme-windows .tree-junction-expanded {
float: right;
background-image: url(tree-rtl.gif);
background-position-x: -36px;
}

.tree-theme-windows .tree-junction-collapsed {
display: block;
float: left;
Expand All @@ -65,11 +87,22 @@
text-decoration: none;
}

html[dir="rtl"] .tree-theme-windows .tree-junction-collapsed {
float: right;
background-image: url(tree-rtl.gif);
background-position-x: -54px;
}

.tree-theme-windows span.tree-content {
display: block;
margin-left: 18px;
}

html[dir="rtl"] .tree-theme-windows span.tree-content {
margin-right: 18px;
margin-left: initial;
}

/* tabletree */

.tree-theme-windows table {
Expand Down Expand Up @@ -111,16 +144,37 @@
background-repeat: no-repeat;
}

html[dir="rtl"] .tree-theme-windows .tree-folder-closed {
padding-right: 18px;
padding-left: initial;
background-image: url(folder-rtl-closed.gif);
background-position-x: right;
}

.tree-theme-windows .tree-folder-open {
padding-left: 18px;
background-image: url(folder-open.gif);
background-position: 0px 50%;
background-repeat: no-repeat;
}

html[dir="rtl"] .tree-theme-windows .tree-folder-open {
padding-right: 18px;
padding-left: initial;
background-image: url(folder-rtl-open.gif);
background-position-x: right;
}

.tree-theme-windows .tree-folder-other {
padding-left: 18px;
background-image: url(folder-other.gif);
background-position: 0px 50%;
background-repeat: no-repeat;
}
}

html[dir="rtl"] .tree-theme-windows .tree-folder-other {
padding-right: 18px;
padding-left: initial;
background-image: url(folder-rtl-other.gif);
background-position-x: right;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.