Skip to content

Commit

Permalink
fix: fixed sidebar margin top (#73) (openedx#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang authored Oct 18, 2023
1 parent 618831f commit 6705f63
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 43 deletions.
12 changes: 6 additions & 6 deletions src/advanced-settings/AdvancedSettings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const AdvancedSettings = ({ intl, courseId }) => {

return (
<>
<Container size="xl" className="px-4">
<Container size="xl" className="advanced-settings px-4">
<div className="setting-header mt-5">
{(proctoringErrors?.length > 0) && (
<AlertProctoringError
Expand All @@ -157,11 +157,6 @@ const AdvancedSettings = ({ intl, courseId }) => {
) : null}
</TransitionReplace>
</div>
<SubHeader
subtitle={intl.formatMessage(messages.headingSubtitle)}
title={intl.formatMessage(messages.headingTitle)}
contentTitle={intl.formatMessage(messages.policy)}
/>
<section className="setting-items mb-4">
<Layout
lg={[{ span: 9 }, { span: 3 }]}
Expand All @@ -171,6 +166,11 @@ const AdvancedSettings = ({ intl, courseId }) => {
xl={[{ span: 9 }, { span: 3 }]}
>
<Layout.Element>
<SubHeader
subtitle={intl.formatMessage(messages.headingSubtitle)}
title={intl.formatMessage(messages.headingTitle)}
contentTitle={intl.formatMessage(messages.policy)}
/>
<article>
<div>
<section className="setting-items-policies">
Expand Down
32 changes: 19 additions & 13 deletions src/advanced-settings/scss/AdvancedSettings.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
@import "variables";

.setting-items-policies {
.setting-items-deprecated-setting {
float: right;
margin-bottom: 1.75rem;
.advanced-settings {
.help-sidebar {
margin-top: 8.75rem;
}

.instructions,
strong {
color: $text-color-base;
font-weight: 400;
.setting-items-policies {
.setting-items-deprecated-setting {
float: right;
margin-bottom: 1.75rem;
}

.instructions,
strong {
color: $text-color-base;
font-weight: 400;
}
}
}

.setting-card {
margin-bottom: 1.75rem;
.setting-card {
margin-bottom: 1.75rem;

.pgn__card-header .pgn__card-header-title-md {
font-size: 1.125rem;
.pgn__card-header .pgn__card-header-title-md {
font-size: 1.125rem;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/course-team/CourseTeam.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const CourseTeam = ({ courseId }) => {

return (
<>
<Container size="xl" className="px-4">
<Container size="xl" className="course-team px-4">
<section className="course-team-container mb-4">
<Layout
lg={[{ span: 9 }, { span: 3 }]}
Expand Down
28 changes: 17 additions & 11 deletions src/course-team/CourseTeam.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,27 @@
@import "./add-team-member/AddTeamMember";
@import "./course-team-member/CourseTeamMember";

.course-team-section {
.sidebar-container {
width: 30%;
.course-team {
.help-sidebar {
margin-top: 6.563rem;
}

.course-team-section {
.sidebar-container {
width: 30%;

.help-sidebar {
margin-top: 0;
.help-sidebar {
margin-top: 0;

hr {
display: none;
hr {
display: none;
}
}
}
}

.members-container {
flex-grow: 1;
padding-top: 1.25rem;
.members-container {
flex-grow: 1;
padding-top: 1.25rem;
}
}
}
2 changes: 1 addition & 1 deletion src/grading-settings/GradingSettings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const GradingSettings = ({ intl, courseId }) => {

return (
<>
<Container size="xl" className="px-4">
<Container size="xl" className="grading px-4">
<div className="mt-5">
<AlertMessage
show={showSuccessAlert}
Expand Down
20 changes: 13 additions & 7 deletions src/grading-settings/scss/GradingSettings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
@import "../assignment-section/AssignmentSection.scss";
@import "../grading-scale/GradingScale.scss";

.grading-label {
font: normal $font-weight-bold .75rem/1.25rem $font-family-base;
color: $gray-500;
}
.grading {
.help-sidebar {
margin-top: 8.75rem;
}

.grading-label {
font: normal $font-weight-bold .75rem/1.25rem $font-family-base;
color: $gray-500;
}

.grading-description {
font: normal .75rem/1.5rem $font-family-base;
color: $gray-700;
.grading-description {
font: normal .75rem/1.5rem $font-family-base;
color: $gray-700;
}
}
25 changes: 22 additions & 3 deletions src/schedule-and-details/ScheduleAndDetails.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,27 @@
@import "./requirements-section/RequirementsSection";
@import "./license-section/LicenseSection";

.section-container {
&:not(:last-child) {
margin-bottom: 1.75rem;
.schedule-and-details {
.help-sidebar {
margin-top: 3.438rem;
}

.section-container {
&:not(:last-child) {
margin-bottom: 1.75rem;
}

.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: .75rem;
border-bottom: $border-width solid $light-400;

h2 {
color: $black;
margin-bottom: .75rem;
}
}
}
}
2 changes: 1 addition & 1 deletion src/schedule-and-details/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const ScheduleAndDetails = ({ intl, courseId }) => {

return (
<>
<Container size="xl" className="px-4">
<Container size="xl" className="schedule-and-details px-4">
<div className="mt-5">
<AlertMessage
show={showSuccessfulAlert}
Expand Down

0 comments on commit 6705f63

Please sign in to comment.