UNPKG

@findify/react-components

Version:
113 lines (101 loc) 2 kB
.root { width: 100%; height: 100%; background-color: transparent; box-sizing: border-box; display: flex; position: relative; &.vertical{ text-align: $text-align-vertical; flex-direction: column; min-width: 100px; &.autocomplete{ margin-bottom: 20px; } } &.horizontal{ text-align: $text-align-horizontal; flex-direction: row; border-radius: 2px; padding: 10px; box-sizing: border-box; margin-left: -10px; } &.bubble{ padding: 8px 15px; margin: 0 12px 12px 0px; background: $color-grey-1; display: inline-block; width: auto; border-radius: 17px; & .title{ line-height: 1; } } &.highlighted, &:focus-within{ &:after{ content: ' '; position: absolute; left: 0; right: 0; bottom: 0; top: 0; border: 2px solid Highlight; border-color: -webkit-focus-ring-color; } a:focus { text-decoration: none; } } } .content{ font-size: 14px; } .image{ cursor: pointer; margin-bottom: 12px; order: -1; .horizontal &{ min-width: 60px; margin: 0 16px 0 0; } } .title { $font-size: 1; $font-family: $font-base; $text-transform: none; $color: $color-black; color: $color; font-family: $font-family; text-transform: $text-transform; font-size: calc($font-size-medium * $font-size)!important; /* FIXME: figure out issue with import order of styles */ line-height: calc($font-size-medium * $font-size * 1.6); margin: 0; padding: 0; width: 100%; } .title-link{ color: currentColor; text-decoration: none; &:after{ content: ' '; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 1; } &:focus{ text-decoration: underline; } } .description { $font-size: 1; $color: #b2b2b2; $font-family: $font-base; font-family: $font-family; font-size: calc($font-size-medium * $font-size); color: $color; margin: 5px 0; }