-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new fields and sections to the Program detail page #2557
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
// | ||
|
||
.program-detail { | ||
$detail-selector: &; | ||
margin: 0 auto; | ||
padding: 0; | ||
|
||
|
@@ -54,6 +55,79 @@ | |
padding-right: $grid-gutter-width; | ||
} | ||
|
||
&__objectives { | ||
@if r-theme-val(program-detail, checkmark-list-decoration) { | ||
ul { | ||
padding-left: 0.3rem; | ||
list-style-type: none; | ||
|
||
li { | ||
position: relative; | ||
margin-top: 0.5rem; | ||
font-size: 1rem; | ||
padding-left: 1.5rem; | ||
|
||
&::before { | ||
content: ''; | ||
display: block; | ||
position: absolute; | ||
top: 0.2rem; | ||
left: 0; | ||
width: 0.8rem; | ||
height: 0.8rem; | ||
background-repeat: no-repeat; | ||
background-color: r-theme-val(program-detail, checkmark-list-decoration-color); | ||
-webkit-mask: r-theme-val(program-detail, checkmark-list-decoration); | ||
mask: r-theme-val(program-detail, checkmark-list-decoration); | ||
-webkit-mask-size: cover; | ||
mask-size: cover; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
@if $r-program-aside { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. This statement is useless. |
||
&__content { | ||
@include media-breakpoint-up(lg) { | ||
//@include sv-flex(1, 0, #{100% - $r-program-aside}); | ||
padding-right: 3rem; | ||
} | ||
} | ||
|
||
&__aside { | ||
padding: 1rem 0; | ||
|
||
@include media-breakpoint-up(lg) { | ||
@include sv-flex(1, 0, $r-program-aside); | ||
padding: 3rem 1rem; | ||
} | ||
|
||
#{$detail-selector}__row { | ||
margin-bottom: 1.5rem; | ||
} | ||
|
||
#{$detail-selector}__title { | ||
@include font-size($h3-font-size); | ||
padding-bottom: 1rem; | ||
@if r-theme-val(course-detail, aside-title-border) { | ||
border-bottom: $onepixel solid r-theme-val(course-detail, aside-title-border); | ||
} | ||
} | ||
} | ||
|
||
&__main { | ||
@include media-breakpoint-up(lg) { | ||
@include sv-flex(1, 0, calc(100% - #{$r-program-subheader-aside})); | ||
display: flex; | ||
justify-content: flex-start; | ||
align-content: flex-start; | ||
align-items: flex-start; | ||
flex-wrap: wrap; | ||
} | ||
} | ||
} | ||
|
||
&__courses { | ||
@include make-col-ready(); | ||
@include make-col(12); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,6 +192,14 @@ | |
<symbol id="icon-archive" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M19.2 3H4.8C3.9 3 3 3.81 3 4.8v2.709c0 .648.387 1.206.9 1.521V19.2c0 .99.99 1.8 1.8 1.8h12.6c.81 0 1.8-.81 1.8-1.8V9.03c.513-.315.9-.873.9-1.521V4.8c0-.99-.9-1.8-1.8-1.8Zm-5.4 10.8h-3.6a.903.903 0 0 1-.9-.9c0-.495.405-.9.9-.9h3.6c.495 0 .9.405.9.9s-.405.9-.9.9Zm5.4-6.3H4.8V4.8h14.4v2.7Z" fill="currentColor" fill-rule="nonzero"/> | ||
</symbol> | ||
|
||
<symbol id="icon-money" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke-width="1.5" stroke="currentColor"> | ||
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm3 0h.008v.008H18V10.5Zm-12 0h.008v.008H6V10.5Z" /> | ||
</symbol> | ||
|
||
<symbol id="icon-courses" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke-width="1.5" stroke="currentColor"> | ||
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z" /> | ||
Comment on lines
+196
to
+201
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you please update the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Of course. Will do. |
||
</symbol> | ||
|
||
</defs> | ||
</svg> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This statement is useless, as you defined
checkmark-list-decoration
into_theme.scss
, it will be always defined.