forked from unsupported/canvas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catalog courses as list (unsupported#112)
* 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
1 parent
0790ebc
commit 7178baa
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
43
branding/css/catalog_courses_as_list/catalog_courses_as_list.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.