-
Notifications
You must be signed in to change notification settings - Fork 1
/
webtexting.css
83 lines (69 loc) · 1.29 KB
/
webtexting.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
.container-fluid {
height: calc(100% - 108px);
}
#main_content {
height: calc(100% - 108px);
}
.thread {
max-width: 50em;
height: calc(100% - 120px);
margin: 0 auto;
border: solid #999 2px;
border-radius: 0.5em;
padding-left: 0.5em;
padding-right: 0.5em;
/* stupid hack to get the text entry box to display inside the bounds of the thread */
display: flex;
flex-direction: column;
}
.message-container {
display: flex;
flex-flow: column;
justify-content: flex-start;
height: 100%;
overflow: scroll;
margin-bottom: 0.5em;
}
.message {
margin-top: 0.5em;
border: solid #aaa 1px;
border-radius: 1em;
padding-left: 0.75em;
padding-right: 1em;
padding-top: 0.25em;
padding-bottom: 0.25em;
width: fit-content
}
.message.incoming {
float: right;
border-radius: 25% 10%;
}
.message.outgoing{
border-radius: 10% 25%;
}
.message-inbound {
float: right;
}
.sendbox {
display: flex;
}
.textentry {
margin-bottom: 0.5em;
border: 0;
background-color: #eee;
resize: none; /* prevent the user from resizing the text box */
flex-grow: 1;
}
.btn-send {
flex-grow: 1;
max-width: fit-content;
}
.textentry:focus {
outline: none; /* hide the browser's extra focus outline */
}
.message .incoming{
border-radius: 10% 25%
}
.message .outgoing{
border-radius: 25% 10%
}