forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_mixins.scss
59 lines (50 loc) · 1.63 KB
/
_mixins.scss
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
//
// Copyright IBM Corp. 2016, 2023
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//
@use '../../spacing' as *;
// Structured List
/// @type Number
/// @access public
/// @group structured-list
$structured-list-padding: 2rem !default;
/// @type Value
/// @access public
/// @group structured-list
$structured-list-text-transform: none !default;
/// Used only for `.#{prefix}--structured-list--condensed`
/// @access private
/// @group structured-list
/// @param {Number} $padding [$structured-list-padding]
@mixin padding-td--condensed($padding: $structured-list-padding) {
padding: $padding * 0.25;
}
/// Used only for [data-structured-list]
/// @access private
/// @group structured-list
/// @param {Number} $padding [$structured-list-padding]
@mixin padding--data-structured-list($padding: $structured-list-padding) {
padding-inline-end: $padding * 0.5;
padding-inline-start: $padding * 0.5;
// Controls gutter sizes for check
&:first-child {
padding-inline-end: $padding * 0.5;
padding-inline-start: $padding * 0.5;
}
}
/// Used only for normal structured-list
/// @access private
/// @group structured-list
/// @param {Number} $padding [$structured-list-padding]
@mixin padding-th($padding: $structured-list-padding) {
padding: $spacing-05 $spacing-03 $spacing-03 $spacing-03;
}
/// Used only for normal structured-list
/// @access private
/// @group structured-list
/// @param {Number} $padding [$structured-list-padding]
@mixin padding-td($padding: $structured-list-padding) {
padding: $spacing-05 $spacing-03 $spacing-06 $spacing-03;
}