Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 31 additions & 10 deletions cms/static/sass/elements/_xblocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,38 @@
}
}

//UI: default internal xblock content styles
// UI: default internal xblock content styles
// ====================
// TO-DO: clean-up / remove this reset
// internal headings for problems and video components
h2 {
@extend %t-title5;
margin: ($baseline*1.5) ($baseline*2) ($baseline*1.5) 0;
color: $gray;
letter-spacing: 1px;
text-transform: uppercase;
}
h1 {
// unused as of ac-313, ac-328
}

h2 {
// unused as of ac-313, ac-328
}

h3 {
// formerly h2
@extend %t-title5;
@extend %t-regular;
margin: ($baseline*1.5) ($baseline*2) ($baseline*1.5) 0;
letter-spacing: 1px;
text-transform: uppercase;
}

h4 {
// formerly h3
@extend %t-title5;
}

h5 {
// h4 and h5
@extend %t-title5;
}

h6 {
@extend %t-title6;
}


// ====================
Expand Down
53 changes: 23 additions & 30 deletions common/lib/xmodule/xmodule/css/html/display.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ h1 {
margin: 0 0 1.416em 0;
}

h2 {
h2, // backwards-compatibility
h3 {
color: #646464;
font: normal 1.2em/1.2em $sans-serif;
letter-spacing: 1px;
Expand All @@ -24,14 +25,6 @@ h3, h4, h5, h6 {
font-weight: 600;
}

h3 {
font-size: 1.2em;
}

h4 {
font-size: 1em;
}

h5 {
font-size: .83em;
}
Expand Down Expand Up @@ -152,7 +145,7 @@ th {

// modal - image zoom, fill window
.wrapper-modal-image {

.modal-ui-icon {
@extend %ui-fake-link;
position: absolute;
Expand All @@ -163,32 +156,32 @@ th {
background: $white;
color: $black;
border: 2px solid $black;

.label {
font-weight: bold;
}

i {
font-style: normal;
}
}

.image-link {
@extend %ui-fake-link;
position: relative;
display: block;

.action-fullscreen {
display: none;
top: 10px;
left: 10px;
}

&:hover .action-fullscreen {
display: block;
}
}

.image-modal {
@extend %ui-fake-link;
@extend %ui-depth5;
Expand All @@ -199,7 +192,7 @@ th {
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.7);

.image-content {
position: relative;
top: 2.5%;
Expand All @@ -208,10 +201,10 @@ th {
width: 95%;
margin: auto;
overflow: hidden;

.image-wrapper {
position: relative;

img {
position: relative;
display: block;
Expand All @@ -221,29 +214,29 @@ th {
cursor: default;
}
}

.action-close {
top: 10px;
right: 10px;
}

.image-controls {
position: absolute;
right: 10px;
bottom: 10px;
margin: 0;
padding: 0;
list-style: none;

.image-control {
position: relative;
display: inline-block;
margin: 0;
padding: 0;

.modal-ui-icon {
position: relative;

&.action-zoom-in {
margin-right: ($baseline/4);
}
Expand All @@ -258,17 +251,17 @@ th {
}
}
}

&.image-is-fit-to-screen {
display: block;

// !important used here to override jQuery.
.image-content .image-wrapper {
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;

img {
top: 0 !important;
left: 0 !important;
Expand All @@ -277,9 +270,9 @@ th {
}
&.image-is-zoomed {
display: block;

.image-content .image-wrapper {

img {
max-width: none;
max-height: none;
Expand All @@ -289,4 +282,4 @@ th {
}
}
}
}
}
2 changes: 1 addition & 1 deletion lms/static/sass/course/base/_extends.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}

// Older Course Extends - to review/remove with LMS cleanup
h1.top-header {
.top-header {
border-bottom: 1px solid $border-color-2;
@include text-align(left);
font-size: em(24);
Expand Down
4 changes: 1 addition & 3 deletions lms/static/sass/course/courseware/_courseware.scss
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ html.video-fullscreen {
}

header {
@extend h1.top-header;
@extend .top-header;
border-radius: 0 4px 0 0;
margin-bottom: -16px;
border-bottom: 0;
Expand Down Expand Up @@ -661,5 +661,3 @@ section.self-assessment {
font-weight: bold;
}
}