-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathumux-popup.css
93 lines (84 loc) · 1.94 KB
/
umux-popup.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/* umux-popup.css */
#umux-popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 10000;
display: none;
}
#umux-popup {
background: white;
border-radius: 8px;
overflow: hidden;
width: var(--popup-width, 600px);
height: var(--popup-height, 400px);
display: flex;
flex-direction: column;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#umux-popup iframe {
width: 100%;
height: calc(100% - 40px);
border: none;
}
#umux-popup-close {
text-align: right;
padding: 10px;
background: #f0f0f0;
border-bottom: 1px solid #ddd;
font-size: 14px;
cursor: pointer;
font-family: "Noto Sans", sans-serif;
font-weight: normal;
}
#umux-trigger {
position: fixed;
bottom: 20px;
right: 0;
background: #007bff;
color: white;
height: 3em; /* Höhe des Buttons basierend auf Schriftgröße */
padding: 0 1em; /* Innenabstand für die Breite des Buttons */
border-radius: 1.5em 0 0 1.5em; /* Rundung basierend auf Höhe */
cursor: pointer;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
z-index: 1000;
font-size: 1em; /* Schriftgröße, die Höhe bestimmt */
font-weight: bold;
display: flex;
align-items: center;
justify-content: flex-start;
overflow: hidden;
width: 1em; /* Anfangsbreite (nur Icon sichtbar) */
font-family: "Noto Sans", sans-serif;
transition: all 0.3s;
}
#umux-trigger:hover {
width: calc(
1em + 13em
); /* Dynamische Breite: 1em (Icon) + 13em (Text und Abstand) */
background: #0056b3;
}
#umux-trigger .icon {
font-family: "Material Icons", sans-serif;
font-size: 1.5em;
margin-right: 0.5em; /* Abstand zwischen Icon und Text */
display: flex;
align-items: center;
justify-content: center;
}
#umux-trigger .text {
opacity: 0;
white-space: nowrap;
transition: opacity 0.3s;
font-size: 1em;
}
#umux-trigger:hover .text {
opacity: 1;
}