mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
(ISSUE-9353) Fix pinned item alignment (#9358)
* (ISSUE-9353) Fix pinned item alignment - Get rid of justify-content: space-between to allow flex-start default to be used - Add margin to direct children (item-wrappers) * Issue-9353: Change selector to & > div instead of just > for more explicit selection of direct child divs * Fix rewards item spacing to match Zeplin mockups - Make sure horizontal/vertical spacing between items is 16px - Add use of grid if supported, else use flex
This commit is contained in:
committed by
Sabe Jones
parent
a0f29e970d
commit
218664dfcc
@@ -79,9 +79,20 @@
|
|||||||
|
|
||||||
|
|
||||||
.reward-items {
|
.reward-items {
|
||||||
|
@supports (display: grid) {
|
||||||
|
display: grid;
|
||||||
|
grid-column-gap: 16px;
|
||||||
|
grid-row-gap: 4px;
|
||||||
|
grid-template-columns: repeat(auto-fill, 94px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@supports not (display: grid) {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-between;
|
& > div {
|
||||||
|
margin: 0 16px 4px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tasks-list {
|
.tasks-list {
|
||||||
|
|||||||
Reference in New Issue
Block a user