forked from evgeny-nadymov/telegram-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditMediaDialog.css
78 lines (70 loc) · 1.75 KB
/
EditMediaDialog.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
* Copyright (c) 2018-present, Evgeny Nadymov
*
* This source code is licensed under the GPL v.3.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
.edit-media-dialog-edit-button {
position: absolute;
top: 30px;
right: 30px;
padding: 6px;
font-size: 18px;
line-height: normal;
color: white;
background: rgba(0, 0, 0, 0.25);
}
.edit-media-dialog-edit-button:hover {
background: rgba(0, 0, 0, 0.25);
}
.edit-media-dialog-content {
flex: 1 1 auto;
display: flex;
flex-direction: column;
position: relative;
border-top-width: 1px;
border-top-style: solid;
border-bottom-width: 1px;
border-bottom-style: solid;
border-color: var(--border);
overflow-y: auto;
-webkit-overflow-scrolling: touch;
cursor: default;
}
#edit-media-dialog-caption {
box-shadow: 0 0 0 0;
max-height: 150px;
width: 324px;
min-height: 24px;
overflow-x: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 12px 24px 12px 24px;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-word;
}
#edit-media-dialog-caption::before {
/*content: attr(placeholder);*/
color: #8e9396;
pointer-events: none;
transform: translateX(20px);
will-change: transform;
opacity: 0;
/*position: absolute;*/
transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
#edit-media-dialog-caption:empty::before {
content: attr(placeholder);
transform: translateX(0px);
opacity: 0.75;
}
#edit-media-dialog-caption:empty:active::before,
#edit-media-dialog-caption:empty:focus::before {
opacity: 0.75;
}
#edit-media-dialog-caption:focus {
border: 0;
outline: none;
box-shadow: 0 0 0 0;
}