-
Notifications
You must be signed in to change notification settings - Fork 1
/
chat.css
133 lines (115 loc) · 3.04 KB
/
chat.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
body {
font-family: arial, sans-serif;
height: 100%;
width: 100%;
max-width: 100%;
max-height: 100%;
min-height: 100%;
min-width: 100%;
overflow: hidden;
background-color: #333;
}
div#titlebar {
width: 100%;
position: absolute;
top: 0;
background-color: #04EFE6;
height: 20px;
text-align: center;
}
div#messages {
left: 2px;
right: 2px;
position: absolute;
bottom: 35px;
top: 20px;
margin: 10px;
overflow-y: scroll;
overflow-x: hidden;
background-color: #333;
color: #fff;
}
div.message {
width: inherit;
height: auto;
padding: 10px;
}
div.message span {
padding: 5px;
}
span.username {
color: #04EFE6;
}
span.timestamp {
color: red;
}
textarea#compose {
background-color: #555;
font-family: inherit;
border: none;
padding: .5em;
width: 99%;
color: #fff;
position: absolute;
bottom: 2px;
height: 20px;
overflow-y: scroll;
}
div#nickname_modal {
box-shadow: 0px 0px 5px #111;
width: 400px;
position: absolute;
left: 50%;
top: 50%;
margin-left: -200px;
margin-top: -150px;
z-index: 999999;
background-color: #444;
color: #fff;
text-align: center;
}
input#nickname {
width: 95%;
padding: .5em;
background: #555;
color: #fff;
font-size: 1.2em;
border: none;
}
.metal {
position: relative;
margin: 10px auto;
outline: none;
font-weight: bold;
font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
color: hsla(0,0%,20%,1);
text-shadow: hsla(0,0%,40%,.5) 0 -1px 0, hsla(0,0%,100%,.6) 0 2px 1px;
background-color: hsl(0,0%,90%);
box-shadow: inset hsla(0,0%,15%, 1) 0 0px 0px 4px, /* border */
inset hsla(0,0%,15%, .8) 0 -1px 5px 4px, /* soft SD */
inset hsla(0,0%,0%, .25) 0 -1px 0px 7px, /* bottom SD */
inset hsla(0,0%,100%,.7) 0 2px 1px 7px, /* top HL */
hsla(0,0%, 0%,.15) 0 -5px 6px 4px, /* outer SD */
hsla(0,0%,100%,.5) 0 5px 6px 4px; /* outer HL */
transition: color .2s;
border-radius: .5em;
background-image: -webkit-repeating-linear-gradient(left, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,0) 6%, hsla(0,0%,100%, .1) 7.5%),
-webkit-repeating-linear-gradient(left, hsla(0,0%, 0%,0) 0%, hsla(0,0%, 0%,0) 4%, hsla(0,0%, 0%,.03) 4.5%),
-webkit-repeating-linear-gradient(left, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,0) 1.2%, hsla(0,0%,100%,.15) 2.2%),
linear-gradient(180deg, hsl(0,0%,78%) 0%,
hsl(0,0%,90%) 47%,
hsl(0,0%,78%) 53%,
hsl(0,0%,70%)100%);
}
.metal:active {
color: hsl(210, 100%, 40%);
text-shadow: hsla(210,100%,20%,.3) 0 -1px 0, hsl(210,100%,85%) 0 2px 1px, hsla(200,100%,80%,1) 0 0 5px, hsla(210,100%,50%,.6) 0 0 20px;
box-shadow:
inset hsla(210,100%,30%, 1) 0 0px 0px 4px, /* border */
inset hsla(210,100%,15%, .4) 0 -1px 5px 4px, /* soft SD */
inset hsla(210,100%,20%,.25) 0 -1px 0px 7px, /* bottom SD */
inset hsla(210,100%,100%,.7) 0 2px 1px 7px, /* top HL */
hsla(210,100%,75%, .8) 0 0px 3px 2px, /* outer SD */
hsla(210,50%,40%, .25) 0 -5px 6px 4px, /* outer SD */
hsla(210,80%,95%, 1) 0 5px 6px 4px; /* outer HL */
}