Line | |
---|
1 | // Contextual module's mixin definitions are here. For the module itself
|
---|
2 | // check `_contextual.scss`.
|
---|
3 | // Mark color variant mixin:
|
---|
4 | // $mark-alt-name: The name of the class used for the <mark> variant.
|
---|
5 | // $mark-alt-back-color: Background color for <mark> variant.
|
---|
6 | // $mark-alt-fore-color: Text color for <mark> variant.
|
---|
7 | @mixin make-mark-alt-color ($mark-alt-name, $mark-alt-back-color : $mark-back-color,
|
---|
8 | $mark-alt-fore-color : $mark-fore-color) {
|
---|
9 | mark.#{$mark-alt-name} {
|
---|
10 | @if $mark-alt-back-color != $mark-back-color {
|
---|
11 | #{$mark-back-color-var}: $mark-alt-back-color;
|
---|
12 | }
|
---|
13 | @if $mark-alt-fore-color != $mark-fore-color{
|
---|
14 | #{$mark-fore-color-var}: $mark-alt-fore-color;
|
---|
15 | }
|
---|
16 | }
|
---|
17 | }
|
---|
18 | // Mark size variant mixin:
|
---|
19 | // $mark-alt-name: The name of the class used for the <mark> variant.
|
---|
20 | // $mark-alt-padding: The padding of the <mark> variant.
|
---|
21 | // $mark-alt-border-radius: The border radius of the <mark> variant.
|
---|
22 | @mixin make-mark-alt-size ($mark-alt-name, $mark-alt-padding, $mark-alt-border-radius) {
|
---|
23 | mark.#{$mark-alt-name} {
|
---|
24 | padding: $mark-alt-padding;
|
---|
25 | border-radius: $mark-alt-border-radius;
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.