UNPKG

@talentsoft-opensource/hylia

Version:

The Hylia design systems. Contains all the building blocks style rules for Talentsoft.

206 lines (162 loc) 4.67 kB
.Hylia-m-boxmessage { width: 100%; &__message { position: relative; width: 100%; } &__textarea { box-sizing: border-box; border: 0.1rem solid @minion; border-radius: @radius; background-color: @stormtrooper; resize: none; overflow: auto; height: auto; padding: 0.8rem 3.5rem 0.8rem 1rem; width: 100%; font-family: @regular_regular; font-size: 1.4rem; line-height: 1.7rem; transition: background-color 0.3s, border 0.3s; &:hover { border-color: darken(@minion, 10%); } &:focus { border-color: lighten(@terran, 20%) !important; } &:disabled { border-color: @apprentice; background-color: @apprentice; background-color: @apprentice; } // Placeholder &::-webkit-input-placeholder { font-family: @regular_regular; font-size: 1.4rem; color: @knight; } &:-ms-input-placeholder { font-family: @regular_regular; font-size: 1.4rem; color: @knight; } &::-moz-placeholder { font-family: @regular_regular; font-size: 1.4rem; color: @knight; } &:-moz-placeholder { font-family: @regular_regular; font-size: 1.4rem; color: @knight; } // Scrollbar pur css for Chrome &::-webkit-scrollbar { width: 0.5rem; height: 0.5rem; } &::-webkit-scrollbar-track { border-radius: 100rem; background-color: rgba(51, 51, 51, 0.1); } &::-webkit-scrollbar-thumb { border-radius: 100rem; background-color: rgba(51, 51, 51, 0.6); } } &__toolbar { display: flex; justify-content: flex-end; padding: 0 1rem; margin-top: .5rem; } &__emojiPicker { position: absolute; top: 2.8rem; right: -1.5rem; visibility: hidden; transition: 0.3s opacity, 0.3s 0.3s visibility; opacity: 0; border-radius: 0.4rem; background-color: @stormtrooper; box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.29); @media screen and (max-width: @md) { top: 3.8rem; right: -0.8rem; } &:before { position: absolute; z-index: 12; top: -0.5rem; right: 1rem; display: block; width: 2rem; height: 2rem; content: ""; transform: rotate(-45deg); background-color: @stormtrooper; box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.29); } &:after { position: absolute; z-index: 14; top: 0; right: 0.3rem; display: block; width: 6rem; height: 2rem; content: ""; background-color: @stormtrooper; } &--active { visibility: visible; z-index: 1; opacity: 1; transition: 0s visibility, 0.3s opacity; } &__wrapper { display: flex; flex-wrap: wrap; justify-content: space-between; font-size: 2.5rem; position: relative; z-index: 20; width: 25.5rem; padding: 1rem; @media screen and (min-width: @md) { font-size: 1.6rem; width: 19.5rem; } span { display: inline-block; margin: 0.2rem; cursor: pointer; } } } &__emoji { position: absolute; top: 0.8rem; right: 1rem; @media screen and (max-width: @md) { top: 0.1rem; font-size: 2.5rem; } i { color: @knight; transition: color 0.3s; cursor: pointer; &:hover { color: @smart; } } } &__send { color: @smart; cursor: pointer; @media screen and (max-width: @md) { top: 0.1rem; font-size: 2.5rem; } } }