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

Misc Perseus renderer style fixes #8714

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 30 additions & 0 deletions kolibri/plugins/learn/assets/src/views/AssessmentWrapper/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -601,4 +601,34 @@ oriented data synchronization.
margin: 0;
}

.hint-btn-container {
display: flex;
align-items: center;
padding-right: 8px !important;
font-size: medium;

// Ensures the tooltip is visible on the screen in RTL and LTR
/deep/ &.rtl {
/deep/ .k-tooltip {
right: auto !important;
left: 0 !important;
}
}

/deep/ .k-tooltip {
right: 0 !important;
left: auto !important;
transform: translate3d(0, 23px, 0) !important;
}
}

.hint-btn {
padding: 0 4px; // Space from btn in RTL and LTR
vertical-align: text-bottom;

/deep/ .link-text {
text-align: right;
}
}

</style>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
/>
</div>
<KGrid>
<KGridItem :layout="{ span: 8 }">
<!-- Layout notes
- Layout12 span8 -> ~66% width on windowIsLarge
- No other layout definitions means span will be 100%
-->
<KGridItem :layout12="{ span: 6 }">
<div
id="problem-area"
class="problem-area"
Expand All @@ -25,7 +29,7 @@
</div>
</KGridItem>

<KGridItem :layout="{ span: 4 }">
<KGridItem :layout12="{ span: 6 }">
<div v-if="hinted" id="hintlabel" class="hintlabel" :dir="contentDirection">
{{ $tr("hintLabel") }}
</div>
Expand Down Expand Up @@ -603,7 +607,9 @@
}

.solutionarea {
max-width: 100%;
padding: 0 !important;
margin: 0 !important;
border-bottom-style: none !important;
}

Expand All @@ -615,33 +621,6 @@
padding-right: 16px;
}

.hint-btn-container {
display: flex;
align-items: center;
font-size: medium;

&.rtl {
/deep/ .k-tooltip {
right: auto !important;
left: 0 !important;
}
}

/deep/ .k-tooltip {
right: 0 !important;
left: auto !important;
transform: translate3d(0, 23px, 0) !important;
}
}

.hint-btn {
vertical-align: text-bottom;

/deep/ .link-text {
text-align: right;
}
}

.info-icon {
margin: 0 8px;
}
Expand All @@ -652,7 +631,19 @@
}

.problem-area {
padding: 0 16px 16px;
padding: 0 16px;
}

.perseus-mobile {
.perseus {
padding: 16px;
}
.problem-area {
padding: 0;
}
/deep/ .perseus-renderer {
padding: 0;
}
}

/* Perseus Hacks */
Expand Down Expand Up @@ -695,6 +686,11 @@
padding: 16px;
}

/deep/ .pure-g {
// Overrides Perseus smushing the letter spacing on mobile
letter-spacing: inherit;
}

</style>


Expand Down