.flex(@direction: row; @justify: flex-start; @align: center) { display: flex; flex-direction: @direction; justify-content: @justify; align-items: @align; } .ellipsis() { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .multi-ellipsis(@lines: 2) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: @lines; overflow: hidden; } .scrollbar(@width: 6px) { &::-webkit-scrollbar { width: @width; height: @width; } &::-webkit-scrollbar-thumb { background: @border-color-dark; border-radius: @radius-round; } &::-webkit-scrollbar-track { background: transparent; } } .section-title() { position: relative; padding-left: 15px; font-size: @font-size-lg; font-weight: 600; line-height: 20px; color: @heading-color; &::before { content: ''; position: absolute; top: 50%; left: 0; width: 5px; height: 20px; border-radius: @radius-round; background: @project-accent; transform: translateY(-50%); } } .text-control() { width: 100%; padding: 0 @spacing-base; border: 1px solid @border-color; border-radius: @radius-sm; background: @white; font-size: @font-size-base; font-family: inherit; color: @heading-color; outline: none; box-sizing: border-box; transition: border-color 0.2s; &:focus { border-color: @primary-color; } &::placeholder { color: @text-color-secondary; } }