codecheck
64 строки · 1.2 Кб
1@use 'sass:math';
2
3// core
4.p-chip {
5display: inline-flex;
6align-items: center;
7}
8
9.p-chip-text {
10line-height: 1.5;
11}
12
13.p-chip-icon.pi {
14line-height: 1.5;
15}
16
17.p-chip-remove-icon {
18line-height: 1.5;
19cursor: pointer;
20}
21
22.p-chip img {
23border-radius: 50%;
24}
25
26// theme
27.p-chip {
28background-color: $chipBg;
29color: $chipTextColor;
30border-radius: $chipBorderRadius;
31padding: 0 nth($inputPadding, 2);
32
33.p-chip-text {
34line-height: 1.5;
35margin-top: math.div(nth($inputPadding, 1), 2);
36margin-bottom: math.div(nth($inputPadding, 1), 2);
37}
38
39.p-chip-icon {
40margin-right: $inlineSpacing;
41}
42
43img {
44width: 1.5 + nth($inputPadding, 1);
45height: 1.5 + nth($inputPadding, 1);
46margin-left: -1 * nth($inputPadding, 2);
47margin-right: $inlineSpacing;
48}
49
50.p-chip-remove-icon {
51margin-left: $inlineSpacing;
52border-radius: $borderRadius;
53transition: $actionIconTransition;
54outline-color: transparent;
55
56&:focus-visible {
57@include focused();
58}
59
60&:focus {
61outline: 0 none;
62}
63}
64}