Spaces:
Runtime error
Runtime error
File size: 2,671 Bytes
44eb66e |
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 |
// --------------------------------------------------------------------
// Retrieve Font Size -------------------------------------------------
// Used in _mixins.scss [@mixin font-size] ----------------------------
// --------------------------------------------------------------------
@function get-font-size($size, $elem) {
@return nth(map-get(map-get($font__scale, $elem), $size), 1);
}
// --------------------------------------------------------------------
// Retrieve Line Height -----------------------------------------------
// Used in _mixins.scss [@mixin font-size] ----------------------------
// --------------------------------------------------------------------
@function get-line-height($size, $elem) {
@return nth(map-get(map-get($font__scale, $elem), $size), 2);
}
// --------------------------------------------------------------------
// Retrieve Kerning ---------------------------------------------------
// Used in _mixins.scss [@mixin font-size] ----------------------------
// --------------------------------------------------------------------
@function get-kerning($size, $elem) {
@return nth(map-get(map-get($font__scale, $elem), $size), 3);
}
// --------------------------------------------------------------------
// Retrieve Font Family -----------------------------------------------
// Used in _mixins.scss [@mixin font-family] --------------------------
// --------------------------------------------------------------------
@function get-font-family($elem) {
@return map-get($font__family, $elem);
}
// --------------------------------------------------------------------
// Retrieve Font Weight -----------------------------------------------
// Used in _mixins.scss [@mixin font-weight] --------------------------
// --------------------------------------------------------------------
@function get-font-weight($elem) {
@return map-get($font__weight, $elem);
}
// --------------------------------------------------------------------
// Retrieve Padding of Content Area Elements --------------------------
// Used in _mixins.scss [@mixin font-size] ----------------------------
// --------------------------------------------------------------------
@function get-content-padding($elem) {
@return map-get($content__padding, $elem);
}
// --------------------------------------------------------------------
// Retrieve Colors ----------------------------------------------------
// Usage: color(typography, 1) ----------------------------------------------
// --------------------------------------------------------------------
@function color($elem, $variant) {
@return map-get(map-get($color, $elem), $variant);
}
|