Files
edx-platform/cms/static/sass/elements/_course-unit-mfe-iframe.scss
Ihor Romaniuk f5c17bb88c feat: [FC-0070] add events and style for rendering Split xblock in chromeless template (#35813)
This feature introduces functionalities to improve XBlock interactions within iframes:

  * Add styles that adopt default styles for Split Test which renders chromless template via iframe in MFE Authoring.
  * When the isIframeEmbed option is enabled, the XBlock sends a postMessage to the parent window. When sending such a message, the standard link transition is cancelled and the transition is carried out in MFE Authoring.
2025-03-31 18:31:59 -03:00

97 lines
1.9 KiB
SCSS

%button-styles {
width: 44px;
height: 44px;
border-radius: 50%;
}
%input-styles {
font-size: $base-font-size;
color: $text-color !important;
background-color: $white;
border: 1px solid $border-color !important;
border-radius: $input-border-radius !important;
padding: 10px 16px !important;
background-image: none;
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
%modal-actions-button {
font-size: $base-font-size;
line-height: 20px;
padding: 10px 16px;
border-radius: $btn-border-radius;
}
%primary-button {
@extend %modal-actions-button;
background-color: $primary;
color: $white;
border: 1px solid $primary;
cursor: pointer;
background-image: none;
display: block;
box-shadow: none;
text-shadow: none;
&:hover {
background: darken($primary, 5%);
border-color: #2d494e;
box-shadow: none;
color: $white;
}
&:focus {
background: $primary;
outline: none;
box-shadow: none;
}
}
%button-primary-outline {
@extend %modal-actions-button;
color: $primary;
border-color: $primary;
text-shadow: none;
font-weight: 400;
position: relative;
&:focus {
color: $primary;
background: transparent;
&:before {
content: "";
position: absolute;
inset: -5px;
border: 2px solid $primary;
border-radius: 10px;
}
}
&:hover {
color: darken($primary, 10%);
background-color: lighten($primary, 80%);
border-color: darken($primary, 15%);
}
}
%light-button {
@extend %modal-actions-button;
color: $black;
background-color: $light-background-color;
border-color: $light-background-color;
box-shadow: none;
border: 1px solid $transparent;
font-weight: 500;
}
%icon-position {
top: 11px;
left: 11px;
width: 20px;
height: 20px;
}