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

[FINNA-2629] Improve hierarchy tree's visual presentation #3096

Merged
Changes from 2 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
31 changes: 27 additions & 4 deletions themes/finna2/scss/finna-other.scss
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,34 @@ label.list-group-item {border-radius:0;font-weight:normal;margin-top:0;padding-l
justify-content: center;
}
}
.hierarchy-tree__item-container .icon {
display: none;
.hierarchy-tree__item-container {
padding: 2px;
.icon {
display: none;
}
}
.hierarchy-tree-container div.alert {
margin-top: 10px;
.hierarchy-tree-container {
.hierarchy-tree {
.hierarchy-tree__children, li:not(.hierarchy-tree__collection) {
@media(min-width: $screen-md-min) {
padding-left: 1rem;
}
}
li:not(.hierarchy-tree__collection) {
border-left: 1px solid $gray-mid-light;
}
button {
font-size: 18px;

Choose a reason for hiding this comment

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

Voisiko käyttää suhteellista kokoa tyyliin 1.2rem?

Copy link
Author

Choose a reason for hiding this comment

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

Se on nyt 1.8rem, mutta buttonilla ei nyt näytä olevan se yleinen fontti, vaan inherit (html:stä??) 10px. (Että jos ok sellainen peritty laittaa suhteelliseksi niin nyt on.)

Choose a reason for hiding this comment

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

Uuh, meiltä puuttui se. #3100...

Copy link
Author

Choose a reason for hiding this comment

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

Aa, vaihdan luvun sen perusteella sitten vielä

color: $brand-primary;
&:hover {
background-color: $gray-lighter;
border-radius: 4px;
}
}
}
div.alert {
margin-top: 10px;
}
}
.hierarchy-tree .hierarchy-tree__search-match > .hierarchy-tree__item-container > a {
color: $link-color;
Expand Down
Loading