2022-11-23 17:44:02 +00:00
|
|
|
@import "../utilities/mixins";
|
|
|
|
|
2022-12-06 10:46:03 +00:00
|
|
|
$title-color: getVar("text-strong") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$title-family: false !default;
|
2022-12-06 10:46:03 +00:00
|
|
|
$title-size: getVar("size-3") !default;
|
|
|
|
$title-weight: getVar("weight-semibold") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$title-line-height: 1.125 !default;
|
|
|
|
$title-strong-color: inherit !default;
|
|
|
|
$title-strong-weight: inherit !default;
|
|
|
|
$title-sub-size: 0.75em !default;
|
|
|
|
$title-sup-size: 0.75em !default;
|
|
|
|
|
2022-12-06 10:46:03 +00:00
|
|
|
$subtitle-color: getVar("text") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$subtitle-family: false !default;
|
2022-12-06 10:46:03 +00:00
|
|
|
$subtitle-size: getVar("size-5") !default;
|
|
|
|
$subtitle-weight: getVar("weight-normal") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$subtitle-line-height: 1.25 !default;
|
2022-12-06 10:46:03 +00:00
|
|
|
$subtitle-strong-color: getVar("text-strong") !default;
|
|
|
|
$subtitle-strong-weight: getVar("weight-semibold") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$subtitle-negative-margin: -1.25rem !default;
|
|
|
|
|
2022-12-06 10:46:03 +00:00
|
|
|
:root {
|
|
|
|
@include register-vars(
|
|
|
|
(
|
|
|
|
title-color: #{$title-color},
|
|
|
|
title-family: #{$title-family},
|
|
|
|
title-size: #{$title-size},
|
|
|
|
title-weight: #{$title-weight},
|
|
|
|
title-line-height: #{$title-line-height},
|
|
|
|
title-strong-color: #{$title-strong-color},
|
|
|
|
title-strong-weight: #{$title-strong-weight},
|
|
|
|
title-sub-size: #{$title-sub-size},
|
|
|
|
title-sup-size: #{$title-sup-size},
|
|
|
|
subtitle-color: #{$subtitle-color},
|
|
|
|
subtitle-family: #{$subtitle-family},
|
|
|
|
subtitle-size: #{$subtitle-size},
|
|
|
|
subtitle-weight: #{$subtitle-weight},
|
|
|
|
subtitle-line-height: #{$subtitle-line-height},
|
|
|
|
subtitle-strong-color: #{$subtitle-strong-color},
|
|
|
|
subtitle-strong-weight: #{$subtitle-strong-weight},
|
|
|
|
subtitle-negative-margin: #{$subtitle-negative-margin},
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}title,
|
|
|
|
.#{$class-prefix}subtitle {
|
2022-11-23 17:44:02 +00:00
|
|
|
@extend %block;
|
|
|
|
|
|
|
|
word-break: break-word;
|
|
|
|
|
|
|
|
em,
|
|
|
|
span {
|
|
|
|
font-weight: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub {
|
2022-12-06 10:46:03 +00:00
|
|
|
font-size: getVar("title-sub-size");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sup {
|
2022-12-06 10:46:03 +00:00
|
|
|
font-size: getVar("title-sup-size");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}tag {
|
2022-11-23 17:44:02 +00:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}title {
|
2022-12-06 10:46:03 +00:00
|
|
|
color: getVar("title-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
|
|
|
|
@if $title-family {
|
2022-12-06 10:46:03 +00:00
|
|
|
font-family: getVar("title-family");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
2022-12-06 10:46:03 +00:00
|
|
|
font-size: getVar("title-size");
|
|
|
|
font-weight: getVar("title-weight");
|
|
|
|
line-height: getVar("title-line-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
|
|
|
|
strong {
|
2022-12-06 10:46:03 +00:00
|
|
|
color: getVar("title-strong-color");
|
|
|
|
font-weight: getVar("title-strong-weight");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
&:not(.is-spaced) + .#{$class-prefix}subtitle {
|
2022-12-06 10:46:03 +00:00
|
|
|
margin-top: getVar("subtitle-negative-margin");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Sizes
|
|
|
|
@each $size in $sizes {
|
|
|
|
$i: index($sizes, $size);
|
|
|
|
|
|
|
|
&.is-#{$i} {
|
2022-12-06 10:46:03 +00:00
|
|
|
font-size: getVar("size-", "", $i);
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}subtitle {
|
2022-12-06 10:46:03 +00:00
|
|
|
color: getVar("subtitle-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
|
|
|
|
@if $subtitle-family {
|
2022-12-06 10:46:03 +00:00
|
|
|
font-family: getVar("subtitle-family");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
2022-12-06 10:46:03 +00:00
|
|
|
font-size: getVar("subtitle-size");
|
|
|
|
font-weight: getVar("subtitle-weight");
|
|
|
|
line-height: getVar("subtitle-line-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
|
|
|
|
strong {
|
2022-12-06 10:46:03 +00:00
|
|
|
color: getVar("subtitle-strong-color");
|
|
|
|
font-weight: getVar("subtitle-strong-weight");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
&:not(.is-spaced) + .#{$class-prefix}title {
|
2022-12-06 10:46:03 +00:00
|
|
|
margin-top: getVar("subtitle-negative-margin");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Sizes
|
|
|
|
@each $size in $sizes {
|
|
|
|
$i: index($sizes, $size);
|
|
|
|
|
|
|
|
&.is-#{$i} {
|
2022-12-06 10:46:03 +00:00
|
|
|
font-size: getVar("size-", "", $i);
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|