/* * https://github.com/morethanwords/tweb * Copyright (C) 2019-2021 Eduard Kuzmenko * https://github.com/morethanwords/tweb/blob/master/LICENSE */ $row-border-radius: $border-radius-medium; .row { min-height: 3.5rem; position: relative; padding: .4375rem 1rem; display: flex; flex-direction: column; justify-content: center; @include animation-level(2) { transition: opacity var(--transition-standard-in); } &.is-disabled { pointer-events: none !important; opacity: var(--disabled-opacity); } a { position: relative; z-index: 1; } &-title-row { display: flex; justify-content: space-between; align-items: center; order: 0; .row-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; } } // &-title, // &-title-row, // &-subtitle { // pointer-events: none; // } &-title { color: var(--primary-text-color); line-height: var(--line-height); order: 0; @include text-overflow(false); &-right { flex: 0 0 auto !important; margin-left: 1rem; &-secondary { color: var(--secondary-text-color); } } } &-midtitle { font-size: .875rem; order: 1; } &-with-padding { padding-left: 4.5rem; .row-title.tgico:before { position: absolute; left: 1rem; font-size: 1.5rem; color: var(--secondary-text-color); pointer-events: none; margin-top: -.125rem; } .row-subtitle:not(:empty):not(.hide) + .row-title.tgico:before { margin-top: .25rem; } } &-clickable { cursor: pointer; overflow: hidden; @include respond-to(not-handhelds) { border-radius: $row-border-radius; } } .radio-field-main, .checkbox-field { padding-left: 3.375rem; margin-left: -3.375rem; } .radio-field, .radio-field-main, .checkbox-field { position: unset; } .radio-field, .checkbox-field { --offset-left: 1rem; } .radio-field { margin-top: 0; margin-bottom: 0; } .checkbox-field { margin-top: 0; margin-right: 0; margin-bottom: 0; height: auto; .checkbox-caption { padding-left: 0; } &-toggle { margin: 0; margin-right: .125rem; padding: 0; } } &-subtitle { color: var(--secondary-text-color) !important; font-size: .875rem !important; line-height: var(--line-height-14); margin-top: .125rem; margin-bottom: .0625rem; order: 1; &:empty { display: none; } } &-media { width: 3rem !important; height: 3rem !important; position: absolute !important; margin: 0 !important; left: .5rem; display: flex; align-items: center; justify-content: center; &-small { width: 2rem !important; height: 2rem !important; left: .75rem !important; } } &.menu-open { background-color: var(--light-secondary-text-color); } }