-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
displayed a message when no resources are found matching the filters #305
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,20 @@ h1 { | |
list-style: none; | ||
} | ||
|
||
.hidden { | ||
display: none !important; | ||
} | ||
|
||
.visible{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't need a class of visible, and should operate off of things being visible until made invisible. |
||
display: block; | ||
} | ||
|
||
#noThumbnailsMessage p{ | ||
background: var(--vocabulary-neutral-color-lighter-gray); | ||
text-align: center; | ||
font-weight: bold; | ||
} | ||
nandu-99 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.thumbnailbox { | ||
grid-column: span 3; | ||
height: fit-content; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,10 @@ <h1>Resources</h1> | |
|
||
<!-- This is the section that shows all the resource cards in the site. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This documentation should be shifted to just before the |
||
The homepage shows upto 16 'featured' items ordered (1) to (16 or lesser) --> | ||
<ul id="thumbnaillist"> | ||
<div id="noThumbnailsMessage" class="hidden"> | ||
<p>No resources matched the selected filters.</p> | ||
</div> | ||
<ul id="thumbnaillist" class="hidden"> | ||
{% for i in (1..16) %} {% for page in site.pages %} {% if page.layout | ||
=='resource' %} {% if page.featured == i %} | ||
<li | ||
|
@@ -91,7 +94,7 @@ <h3 class="thumbnailtitle"> | |
{% endif %} {% endunless %} {% endif %} {% endif %} {% endfor %} {% | ||
endfor %} {% endunless %} | ||
</ul> | ||
</main> | ||
</main> | ||
|
||
<!-- The standard CC footer, located at docs/_includes/footer.html --> | ||
{% include footer.html %} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we want to avoid the use of !important in our cascade.