Spaces:
Configuration error
Configuration error
File size: 2,811 Bytes
a7060a0 | 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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | .link-state {
display: flex;
flex-direction: row;
align-items: center;
gap: 4px;
font-size: 13px;
line-height: 1.2em;
transition: color 0.2s ease;
padding: 6px 4px 5px;
&_display {
padding: 2px 9px 2px 4px;
gap: 2px;
font-size: 14px;
line-height: 22px;
}
&__prefix {
flex-grow: 0;
display: flex;
flex-flow: row;
align-items: center;
color: var(--color-primary-icon);
.link-state_action & {
color: var(--color-primary-icon);
}
.link-state_display & {
color: var(--color-primary-icon);
/* align linked region icon with the rest */
align-self: flex-start;
transform: translateY(2px);
}
& svg {
width: 20px;
height: 20px;
}
}
}
.link-state-region {
display: flex;
flex-flow: row nowrap;
align-items: flex-start; /* text can be multiline */
gap: 4px;
font-size: 1em;
line-height: 1.2em;
justify-content: stretch;
width: 100%;
opacity: var(--comment-item-region-opacity, 1);
overflow: hidden;
padding-left: var(--spacing-tightest);
&_interactive {
user-select: none;
}
&__icon {
display: flex;
flex: none;
max-width: 24px;
width: min-content;
align-items: center;
justify-content: center;
color: var(--icon-color);
flex-grow: 0;
& svg {
width: 24px;
height: 24px;
}
}
&__index {
width: 18px;
height: 18px;
margin-top: 3px; /* to align with 24px icon */
display: flex;
font-size: 9px;
color: var(--color-neutral-content);
text-align: center;
align-items: center;
border-radius: 4px;
justify-content: center;
background-color: var(--icon-color, var(--color-neutral-surface));
flex-grow: 0;
}
&__title {
align-items: center;
flex: 1;
color: var(--color-neutral-content);
min-width: 0;
margin-top: 3px; /* to align with icon and index */
/* / text-overflow for multiline texts */
/* / @see https://stackoverflow.com/a/41137262/308527 */
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
/* reset style from parent to densify text */
white-space: normal;
* {
display: inline;
}
}
&__label {
flex: auto 1 0;
max-width: 100%;
margin-right: 5px;
& div {
overflow: hidden;
/* // @todo disabled for now to allow multiline texts */
/* white-space: nowrap; */
text-overflow: ellipsis;
}
.labels-list {
display: inline;
}
}
&__text {
color: var(--color-neutral-content);
}
&__close {
flex-grow: 0;
}
}
:global(.ant-btn-icon-only svg) {
color: var(--color-neutral-icon);
}
:global(.ant-btn-icon-only svg:hover) {
color: var(--color-primary-icon);
}
|