Commit 5ebe91e1 by Chris

Merge pull request #7395 from Stanford-Online/kluo/fix-modal-display-issue

Fix modal css to be hidden immediately
parents 7dd7e652 8d56fe3b
...@@ -666,67 +666,63 @@ hr.divider { ...@@ -666,67 +666,63 @@ hr.divider {
} }
} }
// +JS Dependent // lean/simple modal window
// ==================== .content-modal {
body.js { @include border-bottom-radius(2px);
@include box-sizing(border-box);
// lean/simple modal window position: relative;
.content-modal { display: none;
@include border-bottom-radius(2px); width: 700px;
@include box-sizing(border-box); padding: ($baseline);
box-shadow: 0 2px 4px $shadow-d1; border: 1px solid $gray-d1;
position: relative; background: $white;
display: none; box-shadow: 0 2px 4px $shadow-d1;
width: 700px; overflow: hidden;
overflow: hidden;
border: 1px solid $gray-d1;
padding: ($baseline);
background: $white;
.action-modal-close {
@include transition(top $tmg-f3 ease-in-out 0s);
@include border-bottom-radius(3px);
position: absolute;
top: -3px;
right: $baseline;
padding: ($baseline/4) ($baseline/2) 0 ($baseline/2);
background: $gray-l3;
text-align: center;
.label {
@extend %cont-text-sr;
}
.icon {
@extend %t-action1;
color: $white;
}
&:hover { .action-modal-close {
background: $blue; @include transition(top $tmg-f3 ease-in-out 0s);
top: 0; @include border-bottom-radius(3px);
} position: absolute;
top: -3px;
right: $baseline;
padding: ($baseline/4) ($baseline/2) 0 ($baseline/2);
background: $gray-l3;
text-align: center;
.label {
@extend %cont-text-sr;
} }
img { .icon {
@include box-sizing(border-box); @extend %t-action1;
width: 100%; color: $white;
overflow-y: scroll;
padding: ($baseline/10);
border: 1px solid $gray-l4;
} }
.title { &:hover {
@extend %t-title5; top: 0;
@extend %t-strong; background: $blue;
margin: 0 0 ($baseline/2) 0;
color: $gray-d3;
} }
}
.description { img {
@extend %t-copy-sub2; @include box-sizing(border-box);
margin-top: ($baseline/2); width: 100%;
color: $gray-l1; overflow-y: scroll;
} padding: ($baseline/10);
border: 1px solid $gray-l4;
}
.title {
@extend %t-title5;
@extend %t-strong;
margin: 0 0 ($baseline/2) 0;
color: $gray-d3;
}
.description {
@extend %t-copy-sub2;
margin-top: ($baseline/2);
color: $gray-l1;
} }
} }
...@@ -405,10 +405,3 @@ table { ...@@ -405,10 +405,3 @@ table {
border-spacing: 0; border-spacing: 0;
} }
/**
* Hide staticpage preview on load (Studio).
*/
#preview-lms-staticpages {
display: none;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment