Closed hlashbrooke closed 2 years ago
Adding the custom CSS here for reference
thead th {
color: #555d66;
}
.card, body:not(.single):not(.search) .site-main .card.post.course {
padding: 1.75rem;
}
/* Details summary block START */
details {
border: 1px solid #e7e7e7;
padding: 0 .9em;
background: #f7f7f7;
margin: 1em 0;
display: flex;
}
details summary::before {
content: "\025B8";
margin-right: .5em;
font-size: 200%;
display: inline;
vertical-align: bottom;
line-height: 1.4;
}
details[open] summary::before {
content: "\025BE";
}
details summary {
display: inline-block;
font-weight: bold;
cursor: pointer;
line-height: 2.8;
}
/* Details summary block END */
/* Course/lesson START */
.sensei.course:not(.post-type-archive-course) article.course:first-child,
.sensei.lesson #main-content {
padding: 4rem 0;
}
.sensei.course article.course header,
.sensei.lesson #main-content header {
border-bottom: 1px solid #eee;
margin-bottom: 1rem;
}
.sensei.lesson .bbp-breadcrumb {
display: none;
}
.sensei.lesson #main-content header {
padding-bottom: 1rem;
}
.sensei.course article.course p,
.sensei.course article.course li,
.sensei.lesson #main-content table {
font-size: 16px;
}
.sensei.course article.course
.wp-block-image,
.sensei.lesson #main-content .wp-block-image,
.sensei.course article.course
.wp-block-media-text,
.sensei.lesson #main-content .wp-block-media-text {
margin: 2rem 0;
}
.sensei.course article.course hr,
.sensei.lesson #main-content hr {
margin: 2rem 0;
}
h2.wp-block-sensei-lms-course-outline-module__title {
color: #fff !important;
}
.wp-block-sensei-lms-lesson-properties {
padding: 1rem;
border: 1px solid #e7e7e7;
display: inline-block;
display: flex;
justify-content: center;
margin-bottom: 1rem;
}
.sensei.lesson #main-content nav.post-entries {
width: 100%;
}
.sensei.lesson #main-content nav.post-entries div,
.sensei.quiz #main-content nav.post-entries div {
display: block;
width: 45% !important;
padding: 1rem;
margin: 1rem 0;
font-style: italic;
}
.sensei.lesson #main-content nav.post-entries div.fl,
.sensei.quiz #main-content nav.post-entries div.fl {
padding-left: 0;
}
.sensei.lesson #main-content nav.post-entries div.fr,
.sensei.quiz #main-content nav.post-entries div.fr {
padding-right: 0;
text-align: right;
}
.sensei.lesson #main-content .sensei-breadcrumb, .sensei.quiz #main-content .sensei-breadcrumb {
padding: 1rem;
}
ol#sensei-quiz-list {
padding-left: 2rem;
}
.sensei-quiz-action .button {
height: auto !important;
}
/* Course/lesson END */
/* Meetings plugin START */
.wporg-meeting-calendar__list-event-copy {
display: none;
}
.wporg-meeting-calendar__modal .components-modal__content p:nth-of-type(2) {
display: none;
}
.wporg-meeting-calendar__modal .components-modal__content p:nth-of-type(3) a {
visibility: hidden;
}
.wporg-meeting-calendar__modal .components-modal__content p:nth-of-type(3) a:before {
content: "Register for event";
visibility: visible;
}
.wporg-meeting-calendar__cell {
height: 100px;
}
.wporg-meeting-calendar__cell-event-title {
white-space: normal;
}
.sls-apply-button a {
text-decoration: none !important;
}
/* Meetings plugin END */
I can take care of that
Hello all, I finally added a PR for this.
.card, body:not(.single):not(.search) .site-main .card.post.course { padding: 1.75rem; }
👍 Just reviewed
This has just been deployed and these styles removed from Customiser. I noticed that new styles have been added though:
/* Block Development Course START */
.block-dev-course-activity {
padding: 20px;
margin: 16px 0;
}
.block-dev-course-activity h4 {
padding-bottom: 8px;
}
.block-dev-course-activity p {
padding: 8px 0;
}
.block-dev-course-activity ol, .block-dev-course-activity ul {
list-style-position: inside;
}
/* Block Development Course END */
/* Borderd image for course lessons start */
.sensei-course-theme .wp-block-image.bordered-image {
border: 1px solid #ddd;
}
Is there an issue for moving those into the theme?
No issue moving that into the theme too. I think the bordered-image
class is already in the theme from a recent PR, but the rest isn't in there AFAIK.
Apologies all, the bordered-image
class is mine, I need to open a new PR to get that added for sensei lessons, as my original PR only worked on non sensei content (lesson plans and tutorials). I'll open that today.
There is some CSS in the Customiser that was added there for convenience. This is obviously not ideal for many reasons. Can we please move this CSS into the appropriate theme files.