/** * Copyright (C) 2023 Griffith University * * This file is part of Canvas Collections. * * Canvas Collections is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Canvas Collections is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Canvas Collections. If not, see . */ /* CSS file designed to improve Claytons design. The Canvas RCE is configured to remove some inline styles (e.g. object-fit used for banner images for cards). CIDI Labs DesignPlus - if installed - allows a course to define custom CSS that it will inject. This file is designed to be used with CIDI Labs. It should be easily adapted to inclusion via the Canvas Theme Editor To use - Place this file in a folder name "css" in the course Files area */ #claytons-canvas-collections { overflow: hidden; } #claytons-card-interface { margin-top: 0.5em !important; flex-wrap: wrap; display: flex; } .claytons-unclickable { pointer-events: none ! important; } .claytons-clickable-card, .claytons-unclickable-card, .claytons-coming-soon-card { padding: 0.75rem; flex-direction: column; display: flex; width: 30%; } @media (max-width:640px) { .claytons-clickable-card, .claytons-coming-soon-card { width: 50% } } @media (max-width:480px) { .claytons-coming-soon-card, .claytons-unclickable-card, .claytons-clickable-card { width: 100%; } } /*.claytons-clickable-card:hover { */ .claytons-card-banner-container:hover, .cc-card-label:hover { /*cursor: pointer; */ opacity: 0.8; } .claytons-card { box-shadow: 0 10px 15px -3px rgb(0 0 0/ 0.1); background-color: #fff; } .claytons-card-flex { overflow: hidden; flex-direction: column; flex: 1 1 0%; display: flex; position: relative; border-radius: 1em; background-color: inherit !important; } .claytons-card:hover { background-color: #f5f5f5; box-shadow: none; } .cc-card-image { height: 10rem; width: 100%; } .claytons-object-fit-old-kludge { background-size: contain !important; background-repeat: no-repeat; background-position: center; } .claytons-object-fit-cover { object-fit: cover; } .claytons-object-fit-contain { object-fit: contain; } .claytons-object-fit-fill { object-fit: fill; } .claytons-object-fit-scale-down { object-fit: scale-down; } .claytons-object-fit-none { object-fit: none; } .claytons-card-content-height { height: 12rem; overflow: auto; border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; background-color: inherit !important } .claytons-card-content { padding: 0.5rem; flex: 1 1 0%; display: flex; flex-direction: column; background: inherit !important; } .claytons-card-description:hover { cursor: auto !important; } .claytons-card-description { font-size: 0.75rem; } .claytons-card-description a { text-decoration: underline; flex: 1 1 0%; margin-bottom: 1rem; } .claytons-progress { position: absolute; bottom: 0; left: 0; padding: 0.5em; } .claytons-card-title { font-size: 1rem; font-weight: bold; } .claytons-card-label { font-size: 0.9rem; /*margin-bottom: 1rem; */ } .claytons-card-fyi { /*position: absolute; Canvas RCE removes the bottom property bottom: 0; */ background: rgba(0, 0, 0, 0.75); color: white; width: 100%; padding: 0.25rem; font-size: x-small; text-align: center; } .claytons-card-engage { /* padding: 1rem; padding-top: 1.5rem; background-color: inherit !important; */ } .claytons-card-engage-button { float: right; padding-top: 0.5rem; padding-bottom: 0.5rem; padding-left: 1rem; padding-right: 1rem; color: rgba(30, 58, 138, 1); border-style: solid; border-width: 1px; border-radius: 0.25rem; border-color: rgba(30, 58, 138, 1); } .claytons-card-engage-button:hover { background-color: rgba(30, 58, 138, 1); color: white ! important; text-decoration: none !important; border: transparent; border-radius: 0.25rem; } .cc-card-date { text-align: center; background-color: #f5f5f5; border-radius: 0.25rem; overflow: hidden; width: 5rem; display: block; position: absolute; top: 0; right: 0; } .cc-card-date-label { color: white; font-size: 0.75rem; padding-top: 0.25rem; padding-bottom: 0.25rem; background-color: black; border-color: black; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; } .cc-card-date-week { color: black; background-color: #fff9c2; font-size: 0.75rem; padding-top: 0.15rem; } .cc-card-date-time { font-size: 0.75rem; color: black; background-color: #fff382; padding-top: 0.25rem; padding-bottom: 0.25rem; } .cc-card-date-month { color: white; background-color: red; padding-top: 0.25rem; padding-bottom: 0.25rem; border-color: black; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; font-size: 0.9rem; line-height: 1rem; } .cc-card-date-date { padding-top: 0.25rem; padding-bottom: 0.25rem; border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: 0.25rem; border-bottom-left-radius: 0.25rem; border-color: black; font-size: 0.9rem; font-weight: bold; line-height: 1rem; } .claytons-progress { float: right; } .claytons-card-published { background-color: red; color: white; font-size: x-small; font-weight: bold; padding-top: 0.25rem; padding-bottom: 0.25rem; text-align: center; width: 100%; } .claytons-coming-soon-message { font-size: 0.75rem; padding: .5em; background-color: #feee88; } .claytons-gu-engage { text-decoration: none; } .claytons-card-link-title { text-decoration: none !important; color: inherit !important; } .claytons-assessment-table-fyi-text { width:100%; padding: 0.25rem; font-size: x-small; text-align: center; color: white; background: black; } .cc-card-date-dual-date { text-align: center; padding-top: 0.25rem; align-items: stretch; display: flex; border-left-width: 1px; border-right-width: 1px; border-bottom-right-radius: 0.25rem; border-bottom-left-radius: 0.25rem; border-color: black; } .cc-card-date-date-from { width: 50%; } .cc-card-date-date-to { width: 50%; } .cc-card-date-time-from { width: 50%; } .cc-card-date-time-to { width: 50%; } .cc-card-date-day { font-size: 0.7rem; } .cc-card-date-day-from { width: 50%; } .cc-card-date-day-to { width: 50%; } .cc-card-date-dual-day { display: flex; font-size: 0.7rem; } .cc-card-date-dual-month { text-align: center; align-items: stretch; display: flex; color: white; background-color: red; padding-top: 0.25rem; padding-bottom: 0.25rem; border-color: black; border-top-width: 1px; } .cc-card-date-month-from { width: 50%; } .cc-card-date-month-to { width: 50%; } .cc-object-fit-cover { object-fit: cover; } .cc-object-fit-contain { object-fit: contain; } .cc-object-fit-fill { object-fit: fill; } .cc-object-fit-scale-down { object-fit: scale-down; } .cc-object-fit-none { object-fit: none; }