-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Expand file tree
/
Copy pathpopup.css
More file actions
98 lines (93 loc) · 2.42 KB
/
popup.css
File metadata and controls
98 lines (93 loc) · 2.42 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
.popup {
position: absolute;
top: 10px;
right: 30px;
/* visibility must transition immediately so that input elements inside the popup can get focus */
transition: all 0.3s cubic-bezier(0.74, -0.05, 0.27, 1.75), visibility 0s;
z-index: 500;
}
.popup:not(.popup-show):not(#users.chatAndUsers) {
opacity: 0;
transform: scale(0.7);
/* visibility must not change to hidden until the end of the transition */
transition: all 0.3s cubic-bezier(0.74, -0.05, 0.27, 1.75);
visibility: hidden;
}
#mycolorpicker {
top: 0;
}
.popup.toolbar-popup {
right: auto;
margin-left: -10px;
}
.popup-content {
padding: 10px;
border-radius: 6px;
border: 1px solid #ccc;
box-shadow: 0 2px 4px #ddd;
background: #f7f7f7;
min-width: min(300px, 90vw);
max-width: min(600px, 95vw);
/* Constrain height so popups (notably Settings with Pad-wide Settings
enabled) scroll instead of cropping items off-screen on short windows.
Fixes #7696. */
max-height: calc(100vh - 20px);
overflow-y: auto;
}
/* Chat manages its own scroll and floats author-colour pickers outside the
popup, so it must not become a scroll container. */
.popup#users .popup-content {
overflow: visible;
}
.popup input[type=text] {
width: 100%;
padding: 5px;
display: block;
margin-top: 10px;
}
.popup input[type=text], #users input[type=text] {
outline: none;
}
.popup h1 {
font-size: 1.8rem;
margin-bottom: 10px;
}
.popup h2 {
opacity: .7;
margin: 10px 0;
font-size: 1.2rem;
}
.popup:not(.comment-modal) p {
margin: 5px 0;
}
/* When a settings checkbox is disabled (e.g. "Chat always on screen" while
"Disable chat" is ticked), the browser greys the checkbox itself but the
adjacent `<label>` still looks active, leaving the row visually clickable
even though it isn't. Match the row to the checkbox's disabled state.
Fixes #7592. */
.popup input[type="checkbox"]:disabled + label,
.popup input[type="radio"]:disabled + label {
color: #999;
cursor: not-allowed;
}
/* Mobile devices */
@media only screen and (max-width: 800px) {
.popup {
border-radius: 0;
top: 1rem;
margin: 0 !important;
right: 1rem !important;
left: 1rem !important;
max-width: none !important;
}
.popup-content {
max-height: 80vh;
}
}
/* Move popup to the bottom, except popup linked to left toolbar, like hyperklink popup */
.mobile-layout .popup:not(.toolbar-popup) {
top: auto;
left: 1rem;
right: auto;
bottom: 1rem;
}