Skip to content

Commit

Permalink
Catalog courses as list (unsupported#112)
Browse files Browse the repository at this point in the history
* catalog_courses_as_list

CSS styles for a Catalog instance to display courses in a list instead of the default grid view.

* fix readme typo for screenshot
  • Loading branch information
thedannywahl authored and colincromar committed Jun 21, 2019
1 parent 0790ebc commit 7178baa
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
10 changes: 10 additions & 0 deletions branding/css/catalog_courses_as_list/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Catalog Courses as List
Adding this CSS to a Catalog Instance will make it display courses in a list format instead of in a tile grid. The list should scale down on mobile devices.
Note: As with any part of Catalog, the links that these CSS Selectors target could change at any time. Be sure to check your beta environment before each production release to be sure that none of your JS/CSS has broken due to an upcoming code change.

![Canvas Catalog courses displayed in a list format](screenshot.png)

## Support
This is an unsupported, community-created project. Keep that in mind. Instructure won't be able to help you fix or debug this. That said, the community will hopefully help support and keep both the script and this documentation up-to-date.

Good luck!
43 changes: 43 additions & 0 deletions branding/css/catalog_courses_as_list/catalog_courses_as_list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/* Working as of 6/21/19
* Displays Catalog Courses in a list view
* Version 0.1
*/

#listings .col-md-3,
#listings .col-sm-6,
#listings .col-xs-12 {
width: 100%;
float: none;
}

#listings .product-tile {
padding: 1%;
}

#listings .product-image,
#listings .product-account-image-wrapper {
display: none;
}

#listings .product-heading,
#listings .product-description,
#listings .product-footer {
display: inline-block;
width: auto;
border: 0 none;
margin: 0 1em;
padding: 0;
vertical-align: top;
height: auto;

}
#listings .product-heading,
#listings .product-footer {
width: 20%;
}
#listings .product-description {
width: calc(60% - 2% - 6em)
}
#listings .product-footer {
width: 20%;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7178baa

Please sign in to comment.