Skip to content

Commit

Permalink
Make checklist stack on md and below (#1805)
Browse files Browse the repository at this point in the history
* a11y(go live checklist): make checklist stack on md and below

* chore(refactor): move tailwind classes from markup to css file

* chore: formatting
  • Loading branch information
andrewleith authored Apr 17, 2024
1 parent b077235 commit 9df80d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/index.css

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions app/assets/stylesheets/tailwind/components/task-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
@apply border-t-1 border-solid border-gray-grey2 my-gutter mx-0;
}
.task-list-item {
@apply relative;
@apply relative border-b-1 border-solid border-gray-grey2 pb-3;

@screen md {
@apply pb-0;
}
}
.task-list-item a {
padding-right: 20%;
@apply border-b-1 border-solid border-gray-grey2 block py-gutterHalf px-0 relative;
@apply block py-gutterHalf px-0 relative;
}
.task-list-item a:hover {
@apply text-blue-lightblue;
Expand All @@ -30,9 +34,13 @@
z-index: 2;
min-width: 20%;
margin-top: -15px;
padding: 3px 8px 1px 8px;
padding: 3px 8px 1px 0px;
top: 28px; /* gutter - 2px */
@apply text-small leading-tight font-bold inline-block absolute right-0 pointer-events-none text-right;
@apply text-small leading-tight font-bold inline-block absolute right-0 pointer-events-none text-right static;

@screen md {
@apply absolute;
}
}

.task-list-indicator-completed {
Expand Down

0 comments on commit 9df80d4

Please sign in to comment.