-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
94 lines (79 loc) · 1.32 KB
/
style.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
/* reset browser defaults */
*{
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
font-family: Arial, Helvetica, sans-serif;
text-align: center;
color: rgb(128, 128, 128);
background-color:#141E30;
}
.grid {
display: grid;
grid-template: 1fr 8fr 1fr / 2fr 3fr 2fr;
width: 100vw;
height: 100vh;
align-items: stretch;
}
/* not used, only for debugging purposes */
.box {
border: 0px white solid;
}
.top {
grid-column: 1 / span 3;
padding: 1%;
}
.convo {
grid-row: 2 / span 1;
grid-column: 2 / span 1;
margin: 10px auto;
width: 100%;
padding: 10px;
display: flex;
flex-direction: column;
overflow-y: auto;
}
.input {
grid-row: 3 / span 1;
grid-column: 2/ span 1;
padding: 3%;
}
.sent {
text-align: right;
}
.received {
text-align: left;
}
.message {
border-radius: 5px;
padding: 5px;
display: inline-block;
text-align: justify;
max-width: 80%;
}
.time {
font-size: small;
display: block;
padding: 5px;
}
.received .message {
background-color: lightgoldenrodyellow;
}
.sent .message {
background-color: lightcyan;
}
/* to fill top of convo box and ensure bottom align of messages */
.fill {
flex-grow: 1;
}
input[type=text], button {
background-color: lightcyan;
border: 0px;
padding: 6px;
border-radius: 5px;
}
input[type=text] {
width: 60%;
}