-
Notifications
You must be signed in to change notification settings - Fork 32
/
peekobot.css
104 lines (103 loc) · 2.4 KB
/
peekobot.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
#peekobot-container {
border: 1px solid hsl(0, 0%, 90%);
border-radius: 12px;
box-shadow: 2px 2px 5px hsl(0, 0%, 60%);
padding: 1rem 1rem 2rem 1rem;
height: var(--peekobot-height);
position: relative;
}
#peekobot-inner {
height: 100%;
overflow-y: scroll;
overflow-x: hidden;
scroll-behavior: smooth;
position: relative;
/* Hiding scrollbars is a pain. This is from: https://redstapler.co/css-hidden-scrollbar-while-scrollable-element/ */
scrollbar-width: none;
-ms-overflow-style: none;
}
#peekobot-inner::-webkit-scrollbar {
display: none; /* Chrome Safari */
}
.chat-response,
.chat-ask {
opacity: 0; /* Set to activated to show */
transform: translateY(-50%); /* Set to activated to move down */
transition: all 0.3s 0.3s;
border-radius: 12px;
background-color: hsl(0, 0%, 90%);
padding: 0.5rem 0.7rem;
line-height: 1.4;
color: black;
width: 80%;
margin-bottom: 0.5rem;
}
.chat-response {
margin-left: 26px;
position: relative;
}
.chat-response:before {
display: block;
content: '';
width: 24px;
height: 24px;
position: absolute;
left: -26px;
top: 6px;
background-image: var(--peekobot-avatar);
background-color: #999;
background-repeat: no-repeat;
background-size: 100%;
border-radius: 100%;
}
.chat-ask {
background-color: hsl(207, 96%, 55%);
margin-right: 0;
margin-left: auto;
color: hsl(0, 0%, 100%);
}
.choices {
opacity: 0; /* Set to active to show */
transform: translateY(-50%); /* Set to activated to move down */
transition: all 0.3s 0.3s;
transition: opacity 0.3s 0.3s;
margin-top: 0.5rem;
margin-left: 22px;
}
.choice {
display: inline-block;
outline: none;
border: 1px solid hsl(0, 0%, 0%);
padding: 0.3rem 0.8rem;
background-color: hsl(0, 0%, 100%);
border-radius: 1rem;
font-size: 0.9rem;
line-height: 1.3;
margin-bottom: 0.5rem;
margin-right: 0.5rem;
text-decoration: none;
color: inherit;
cursor: pointer;
}
.choice:disabled {
color: hsl(0, 0%, 80%);
border-color: hsl(0, 0%, 80%);
}
.activated {
opacity: 1;
transform: translateY(0);
}
.restart {
position: absolute;
bottom: 0.5rem;
right: 0.5rem;
outline: none;
font-size: 12px;
color: hsl(0, 0%, 50%);
box-shadow: none;
border: 1px solid hsl(0, 0%, 60%);
border-radius: 1rem;
background: hsl(0, 0%, 100%);
padding: 0.2rem 0.5rem;
cursor: pointer;
}