Telegram Web K with changes to work inside I2P https://web.telegram.i2p/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

475 lines
11 KiB

.audio {
position: relative;
padding-left: 67px;
overflow: visible!important;
4 years ago
height: 54px;
user-select: none;
@include respond-to(handhelds) {
padding-left: 45px;
}
&-toggle, &-download {
overflow: hidden;
border-radius: 50%;
background-color: $color-blue;
font-size: 0;
align-items: center;
}
&-toggle {
transform: rotate(-119deg);
transition: transform .25s;
}
.tgico-largeplay {
.part {
position: absolute;
background-color: white;
@include respond-to(not-handhelds) {
height: 136px;
width: 136px;
}
@include respond-to(handhelds) {
height: 92px;
width: 92px;
}
&.one {
clip-path: polygon(
43.77666% 55.85251%,
43.77874% 55.46331%,
43.7795% 55.09177%,
43.77934% 54.74844%,
43.77855% 54.44389%,
43.77741% 54.18863%,
43.77625% 53.99325%,
43.77533% 53.86828%,
43.77495% 53.82429%,
43.77518% 53.55329%,
43.7754% 53.2823%,
43.77563% 53.01131%,
43.77585% 52.74031%,
43.77608% 52.46932%,
43.7763% 52.19832%,
43.77653% 51.92733%,
43.77675% 51.65633%,
43.77653% 51.38533%,
43.7763% 51.11434%,
43.77608% 50.84334%,
43.77585% 50.57235%,
43.77563% 50.30136%,
43.7754% 50.03036%,
43.77518% 49.75936%,
43.77495% 49.48837%,
44.48391% 49.4885%,
45.19287% 49.48865%,
45.90183% 49.48878%,
46.61079% 49.48892%,
47.31975% 49.48906%,
48.0287% 49.4892%,
48.73766% 49.48934%,
49.44662% 49.48948%,
50.72252% 49.48934%,
51.99842% 49.4892%,
53.27432% 49.48906%,
54.55022% 49.48892%,
55.82611% 49.48878%,
57.10201% 49.48865%,
58.3779% 49.4885%,
59.6538% 49.48837%,
59.57598% 49.89151%,
59.31883% 50.28598%,
58.84686% 50.70884%,
58.12456% 51.19714%,
57.11643% 51.78793%,
55.78697% 52.51828%,
54.10066% 53.42522%,
52.02202% 54.54581%,
49.96525% 55.66916%,
48.3319% 56.57212%,
47.06745% 57.27347%,
46.11739% 57.79191%,
45.42719% 58.14619%,
44.94235% 58.35507%,
44.60834% 58.43725%,
44.37066% 58.41149%,
44.15383% 58.27711%,
43.99617% 58.0603%,
43.88847% 57.77578%,
43.82151% 57.43825%,
43.78608% 57.06245%,
43.77304% 56.66309%,
43.773% 56.25486%
);
transition: clip-path 250ms;
}
&.two {
clip-path: polygon(
43.77666% 43.83035%,
43.77874% 44.21955%,
43.7795% 44.59109%,
43.77934% 44.93442%,
43.77855% 45.23898%,
43.77741% 45.49423%,
43.77625% 45.68961%,
43.77533% 45.81458%,
43.77495% 45.85858%,
43.77518% 46.12957%,
43.7754% 46.40056%,
43.77563% 46.67156%,
43.77585% 46.94255%,
43.77608% 47.21355%,
43.7763% 47.48454%,
43.77653% 47.75554%,
43.77675% 48.02654%,
43.77653% 48.29753%,
43.7763% 48.56852%,
43.77608% 48.83952%,
43.77585% 49.11051%,
43.77563% 49.38151%,
43.7754% 49.65251%,
43.77518% 49.9235%,
43.77495% 50.1945%,
44.48391% 50.19436%,
45.19287% 50.19422%,
45.90183% 50.19408%,
46.61079% 50.19394%,
47.31975% 50.1938%,
48.0287% 50.19366%,
48.73766% 50.19353%,
49.44662% 50.19338%,
50.72252% 50.19353%,
51.99842% 50.19366%,
53.27432% 50.1938%,
54.55022% 50.19394%,
55.82611% 50.19408%,
57.10201% 50.19422%,
58.3779% 50.19436%,
59.6538% 50.1945%,
59.57598% 49.79136%,
59.31883% 49.39688%,
58.84686% 48.97402%,
58.12456% 48.48572%,
57.11643% 47.89493%,
55.78697% 47.16458%,
54.10066% 46.25764%,
52.02202% 45.13705%,
49.96525% 44.01371%,
48.3319% 43.11074%,
47.06745% 42.4094%,
46.11739% 41.89096%,
45.42719% 41.53667%,
44.94235% 41.3278%,
44.60834% 41.24561%,
44.37066% 41.27137%,
44.15383% 41.40575%,
43.99617% 41.62256%,
43.88847% 41.90709%,
43.82151% 42.24461%,
43.78608% 42.62041%,
43.77304% 43.01978%,
43.773% 43.428%
);
transition: clip-path 250ms;
}
}
}
.tgico-largepause {
transform: rotate(-90deg);
.part {
position: absolute;
background-color: white;
@include respond-to(not-handhelds) {
height: 140px;
width: 140px;
}
@include respond-to(handhelds) {
height: 92px;
width: 92px;
}
&.one {
clip-path: polygon(
56.42249% 57.01763%,
54.93283% 57.0175%,
53.00511% 57.01738%,
50.83554% 57.01727%,
48.62036% 57.01718%,
46.55585% 57.01709%,
44.83822% 57.01702%,
43.66373% 57.01698%,
43.22863% 57.01696%,
42.86372% 57.01904%,
42.56988% 57.01621%,
42.3402% 56.99486%,
42.16778% 56.94152%,
42.0457% 56.84267%,
41.96705% 56.68478%,
41.92493% 56.45432%,
41.91246% 56.13777%,
41.91258% 55.76282%,
41.9129% 55.37058%,
41.91335% 54.96757%,
41.91387% 54.56032%,
41.91439% 54.15537%,
41.91485% 53.75926%,
41.91517% 53.3785%,
41.91529% 53.01965%,
41.94275% 52.72355%,
42.02117% 52.51653%,
42.14465% 52.38328%,
42.30727% 52.30854%,
42.50308% 52.27699%,
42.72619% 52.27341%,
42.97065% 52.28248%,
43.23056% 52.2889%,
43.94949% 52.28896%,
45.45083% 52.28912%,
47.47445% 52.28932%,
49.76027% 52.28957%,
52.04818% 52.28981%,
54.07805% 52.29003%,
55.5898% 52.29019%,
56.32332% 52.29024%,
56.58221% 52.28816%,
56.83726% 52.28948%,
57.07897% 52.30593%,
57.29794% 52.34898%,
57.48468% 52.43029%,
57.62978% 52.56146%,
57.72375% 52.7541%,
57.75718% 53.01981%,
57.75713% 53.37763%,
57.75699% 53.81831%,
57.75679% 54.31106%,
57.75657% 54.82507%,
57.75635% 55.32958%,
57.75615% 55.79377%,
57.75601% 56.18684%,
57.75596% 56.47801%,
57.7549% 56.50122%,
57.74034% 56.5624%,
57.6955% 56.64887%,
57.60334% 56.748%,
57.44691% 56.84712%,
57.20925% 56.93358%,
56.87342% 56.99471%
);
}
&.two {
clip-path: polygon(
56.42249% 42.44625%,
54.93283% 42.44637%,
53.00511% 42.44649%,
50.83554% 42.4466%,
48.62036% 42.4467%,
46.55585% 42.44679%,
44.83822% 42.44685%,
43.66373% 42.4469%,
43.22863% 42.44691%,
42.86372% 42.44483%,
42.56988% 42.44767%,
42.3402% 42.46902%,
42.16778% 42.52235%,
42.0457% 42.6212%,
41.96705% 42.77909%,
41.92493% 43.00956%,
41.91246% 43.32611%,
41.91258% 43.70105%,
41.9129% 44.0933%,
41.91335% 44.49631%,
41.91387% 44.90355%,
41.91439% 45.3085%,
41.91485% 45.70462%,
41.91517% 46.08537%,
41.91529% 46.44422%,
41.94275% 46.74032%,
42.02117% 46.94735%,
42.14465% 47.0806%,
42.30727% 47.15534%,
42.50308% 47.18688%,
42.72619% 47.19047%,
42.97065% 47.1814%,
43.23056% 47.17497%,
43.94949% 47.17491%,
45.45083% 47.17476%,
47.47445% 47.17455%,
49.76027% 47.1743%,
52.04818% 47.17406%,
54.07805% 47.17384%,
55.5898% 47.17369%,
56.32332% 47.17363%,
56.58221% 47.17571%,
56.83726% 47.17439%,
57.07897% 47.15795%,
57.29794% 47.1149%,
57.48468% 47.03359%,
57.62978% 46.90242%,
57.72375% 46.70977%,
57.75718% 46.44406%,
57.75713% 46.08625%,
57.75699% 45.64557%,
57.75679% 45.15282%,
57.75657% 44.6388%,
57.75635% 44.1343%,
57.75615% 43.6701%,
57.75601% 43.27703%,
57.75596% 42.98586%,
57.7549% 42.96265%,
57.74034% 42.90148%,
57.6955% 42.815%,
57.60334% 42.71587%,
57.44691% 42.61675%,
57.20925% 42.53029%,
56.87342% 42.46916%
);
}
}
}
&-download {
z-index: 2;
}
&-waveform {
height: 23px;
4 years ago
margin-top: -3px;
@include respond-to(handhelds) {
margin-top: -4px;
}
//overflow: visible!important;
rect {
//overflow: visible!important;
fill: #CBCBCB;
&.active, .audio.is-unread & {
fill: $color-blue;
}
}
}
4 years ago
//&.audio-54 {
&-details {
margin-top: 4px;
margin-bottom: 2px;
}
//}
&.audio-48 {
.audio-details {
margin-top: 3px;
margin-bottom: 0;
}
.audio-title {
margin-bottom: -2px;
}
}
&-title {
font-size: 1rem;
color: #000;
}
&-time, &-subtitle {
font-size: 14px;
color: $color-gray;
4 years ago
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: flex;
@include respond-to(handhelds) {
font-size: 12px;
}
}
4 years ago
// * for audio
&-subtitle {
align-items: center;
.audio-time {
flex: 0 0 auto;
margin-right: 4px;
}
}
// * for audio
&-title, &-subtitle {
margin-left: -1px;
}
// * for audio
&-title, &:not(.audio-show-progress) &-subtitle {
white-space: nowrap;
overflow: hidden;
max-width: 100%;
text-overflow: ellipsis;
}
4 years ago
&.is-voice {
.audio-time {
line-height: 1;
margin-left: -1px;
4 years ago
margin-top: 7px;
@include respond-to(handhelds) {
margin-top: 2px;
}
}
4 years ago
&.is-unread {
.audio-time {
&:after {
content: " ";
width: .5rem;
height: .5rem;
background-color: $color-blue;
border-radius: 50%;
margin-left: .375rem;
display: inline;
margin-top: 2px;
}
}
}
}
4 years ago
// * for audio
.progress-line {
flex: 1 1 auto;
margin-left: 5px;
margin-top: -1px;
&__filled {
background-color: #0089ff;
transform-origin: left;
height: 2px;
}
&__loaded {
background-color: #cacaca;
}
&__seek {
height: 2px;
//background-color: #e6ecf0;
background: rgba(193, 207, 220, 0.39);
&::-webkit-slider-thumb {
height: 12px;
width: 12px;
border: none;
}
}
}
}