Skip to content
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

chore: Converts builtin block Sass variables into CSS variables #35369

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
Next Next commit
chore: Converts builtin block Sass variables into CSS variables
  • Loading branch information
farhan committed Aug 23, 2024
commit cc35a629c521fcfeaa7abe8463dc4456ff7d6fd7
20 changes: 10 additions & 10 deletions xmodule/assets/annotatable/_display.scss
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
@import 'bootstrap/scss/variables';
@import 'lms/theme/variables-v1';

$annotatable--border-color: $gray-l3;
$annotatable--border-color: var(--gray-l3);
$annotatable--body-font-size: em(14);

.annotatable-wrapper {
@@ -116,18 +116,18 @@ $annotatable--body-font-size: em(14);
border: 1px solid #333;
border-radius: 1em;
background-color: rgba(0, 0, 0, 0.85);
color: $white;
color: var(--white);
-webkit-font-smoothing: antialiased;

.ui-tooltip-titlebar {
font-size: em(16);
color: inherit;
background-color: transparent;
padding: ($baseline/4) ($baseline/2);
padding: calc((var(--baseline)/4)) calc((var(--baseline)/2));
border: none;

.ui-tooltip-title {
padding: ($baseline/4) 0;
padding: calc((var(--baseline)/4)) 0;
border-bottom: 2px solid #333;
font-weight: bold;
}
@@ -139,7 +139,7 @@ $annotatable--body-font-size: em(14);

.ui-state-hover {
color: inherit;
border: 1px solid $gray-l3;
border: 1px solid var(--gray-l3);
}
}

@@ -148,7 +148,7 @@ $annotatable--body-font-size: em(14);
font-size: em(14);
text-align: left;
font-weight: 400;
padding: 0 ($baseline/2) ($baseline/2) ($baseline/2);
padding: 0 calc((var(--baseline)/2)) calc((var(--baseline)/2)) calc((var(--baseline)/2));
background-color: transparent;
border-color: transparent;
}
@@ -163,11 +163,11 @@ $annotatable--body-font-size: em(14);
max-width: 375px;

.ui-tooltip-content {
padding: 0 ($baseline/2);
padding: 0 calc((var(--baseline)/2));

.annotatable-comment {
display: block;
margin: 0 0 ($baseline/2) 0;
margin: 0 0 calc((var(--baseline)/2)) 0;
max-height: 225px;
overflow: auto;
line-height: normal;
@@ -176,7 +176,7 @@ $annotatable--body-font-size: em(14);
.annotatable-reply {
display: block;
border-top: 2px solid #333;
padding: ($baseline/4) 0;
padding: calc((var(--baseline)/4)) 0;
margin: 0;
text-align: center;
}
@@ -190,7 +190,7 @@ $annotatable--body-font-size: em(14);
left: 50%;
height: 0;
width: 0;
margin-left: -($baseline/4);
margin-left: -calc((var(--baseline)/4));
border: 10px solid transparent;
border-top-color: rgba(0, 0, 0, 0.85);
}
Loading