Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sources:
description: The role of intrinsic and extrinsic motivation in engagement strategies.
- title: 2. Self-Determination Theory
url: https://selfdeterminationtheory.org/SDT/documents/2000_RyanDeci_SDT.pdf
description: Deci & Ryan, 2000.
description: Ryan & Deci, 2000. American Psychologist.
- title: 3. The Measurement of Experienced Burnout
url: https://doi.org/10.1002/job.4030020205
description: Maslach & Jackson, 1981. Journal of Organizational Behavior.
Expand Down
16 changes: 13 additions & 3 deletions themes/shared/assets/scss/components/_box-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
width: 100%;
max-width: 100%;
padding: 1rem;
overflow: hidden;
border: 1px solid rgba($black, $alpha-standard);
background-color: $highlight-bg-colour;
border-radius: 4px;
Expand All @@ -35,15 +38,19 @@
display: flex;
flex-direction: column;
align-items: flex-start;
flex-grow: 2;
// Allow the text to shrink below its intrinsic width, otherwise long
// headings & descriptions push the arrow outside of the box.
flex: 1 1 auto;
min-width: 0;
max-width: 100%;
}

// Heading
// ==========================================================================

&-heading {
display: block;
width: 80%;
max-width: 100%;
white-space: nowrap;
font-weight: bold;
line-height: 1.2;
Expand All @@ -56,10 +63,12 @@

&-sub {
display: block;
max-width: 100%;
margin-bottom: 4px;
font-weight: 500;
line-height: 1;
line-height: 1.2;
color: $copy-dark-bg;
overflow-wrap: break-word;
}

// Arrow
Expand All @@ -73,6 +82,7 @@
width: $arrow-size;
min-width: $arrow-size;
max-height: 30px;
flex-shrink: 0;

svg {
width: 100%;
Expand Down
Loading