-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
108 lines (98 loc) · 1.95 KB
/
styles.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.url-dot-indicator {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 9999;
}
.button-container {
background: white;
border-radius: 40px;
padding: 2px 6px;
height: 40px;
display: flex;
align-items: center;
color: #59636e;
justify-content: right;
gap: 2px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
border: 1px solid #e1e4e8;
transition: width 0.25s cubic-bezier(0.33, 1, 0.68, 1),
padding 0.25s cubic-bezier(0.33, 1, 0.68, 1),
border-radius 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}
.expanded-container {
opacity: 0;
pointer-events: none;
position: absolute;
bottom: 0;
right: 0;
transition: opacity 0.3s ease;
}
/* New class for single button container */
.button-container.single-button {
padding: 5px;
border-radius: 50%;
width: 40px;
height: 40px;
overflow: hidden;
}
.dot-button {
width: 28px;
height: 28px;
background: transparent;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
position: relative;
border-radius: 6px;
color: #59636e;
transition: opacity 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}
.dot-button:hover {
background-color: #f6f8fa;
color: #24292e;
img {
opacity: 1;
}
}
.dot-button img {
width: 16px;
height: 16px;
opacity: 0.6;
}
.divider {
width: 1px;
height: 16px;
background-color: #e1e4e8;
margin: 0 2px;
}
.tooltip {
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
margin-bottom: 12px;
background: #24292e;
color: white;
padding: 6px 12px;
border-radius: 6px;
font-size: 12px;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s;
/* Add these properties to handle overflow */
max-width: calc(100vw - 32px);
right: auto; /* Reset right position */
}
/* Handle tooltip overflow on right edge */
.dot-button:last-child .tooltip {
left: auto;
right: 0;
transform: none;
}
.dot-button:hover .tooltip {
opacity: 1;
}