@import '../colors.scss'; .connection-content { background-color: $color-primary-0; padding: 10px 10px 0; height: 100%; pre { word-break: break-word; white-space: pre-wrap; overflow-x: hidden; height: calc(100% - 31px); padding: 0 10px; p { margin: 0; padding: 0; } } .connection-message { border: 4px solid $color-primary-3; border-top: 0; margin: 10px 0; position: relative; .connection-message-header { background-color: $color-primary-3; height: 25px; .connection-message-info { font-size: 11px; margin-left: -10px; margin-top: 6px; } .connection-message-actions { margin-right: -18px; display: none; button { margin: 0 3px; font-size: 11px; padding: 5px; } } } .message-content { padding: 10px; } &:hover .connection-message-actions { display: flex; } .connection-message-label { position: absolute; background-color: $color-primary-3; top: 0; padding: 10px 0; font-size: 12px; writing-mode: vertical-rl; text-orientation: mixed; } &.from-client { color: $color-primary-4; margin-right: 100px; .connection-message-label { right: -22px; } } &.from-server { color: $color-primary-4; margin-left: 100px; .connection-message-label { left: -22px; transform: rotate(-180deg); } } } .connection-content-header { background-color: $color-primary-2; padding: 0; height: 33px; .header-info { padding-top: 7px; padding-left: 20px; font-size: 12px; } .header-actions { display: flex; .choice-field { margin-top: -5px; } } } }