_copy.scss 1.76 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
// ------------------------------
// edX Pattern Library: Components - Copy

// About: Contains base styling for copy (general text and type used in content and functionaly).

// #GLOBAL
// #INDIVIDUAL COPY CASES

// ----------------------------
// #GLOBAL
// ----------------------------
.copy {
    color: $text-base-color;

    &.emphasized {
        color: $text-emphasized-color;
        font-weight: $text-emphasized-font-weight;
    }

    &.de-emphasized {
        color: $text-de-emphasized-color;
        font-weight: $text-de-emphasized-font-weight;
    }
}

// ----------------------------
// #INDIVIDUAL COPY CASES
// ----------------------------
// archetypes
%copy-lead {
    font-size: font-size(large);
    line-height: line-height(mid-large);

    p,
    ol,
    ul,
    dl {
        margin-bottom: spacing-vertical(mid-small);
    }
}

%copy-large {
    font-size: font-size(mid-large);
    line-height: line-height(mid-large);

    p,
    ol,
    ul,
    dl {
        margin-bottom: spacing-vertical(small);
    }
}

%copy-base {
    font-size: font-size(base);
    line-height: line-height(mid-large);

    p,
    ol,
    ul,
    dl {
        margin-bottom: spacing-vertical(small);
    }
}

%copy-meta {
    font-size: font-size(small);
    line-height: line-height(mid-large);

    p,
    ol,
    ul,
    dl {
        margin-bottom: spacing-vertical(small);
    }
}

%copy-micro {
    font-size: font-size(x-small);
    line-height: line-height(small);

    p,
    ol,
    ul,
    dl {
        margin-bottom: spacing-vertical(small);
    }
}

// application of archetypes
.copy-lead {
    @extend %copy-lead;
}

.copy-large {
   @extend %copy-large;
}

.copy-base {
    @extend %copy-base;
}

.copy-meta {
    @extend %copy-meta;
}

.copy-micro {
    @extend %copy-micro;
}