22
33* { margin : 0 ; padding : 0 ; font-weight : 300 ; }
44body {
5- position : relative; height : 100% ;
5+ position : relative; height : 100% ; overflow : hidden;
66 margin : 0 ; padding : 1em ; word-break : break-word;
77 font-family : Malgun Gothic, Dotum, AppleGothic, Arial, Sans-serif; font-size : 16px ;
88}
@@ -25,44 +25,107 @@ button:hover { background-color: #cf402f; }
2525button [disabled ] { color : # ccc ; cursor : default; }
2626.btn [disabled ]: hover ,
2727button [disabled ]: hover { background-color : # d84a38 }
28+ .btn .small { padding : 0.2em 0.4em ; font-size : 0.6em ; margin-bottom : 0.2em ; }
29+ .btn .small .black { background-color : # 000 ; }
30+
31+
2832h1 {
2933 border-bottom : 1px solid # ccc ; height : 50px ; line-height : 50px ;
3034 font-weight : bold; margin : 0 ; padding : 0 0 0.2em 0 ;
3135}
3236h1 a { font-weight : 300 ; margin : 0 10px 0 0 ; white-space : nowrap; }
3337
3438# wrap {
35- position : relative; width : 600 px ; margin : 200 px auto; font-size : 1.2em ; text-align : center ;
39+ position : relative; width : 340 px ; margin : 30 px auto; font-size : 1.2em ;
3640}
3741input [type = "text" ] { padding : 2px 5px ; border : solid 1px # bbb ; font-size : 1.3em ; width : 120px ; }
3842# your-name { width : 250px ; }
39- # wrap button { vertical-align : top; min-width : 80px ; }
40- # wrap p { margin : 10px 0 ; }
43+ # wrap button { vertical-align : top; min-width : 72px ; }
4144
4245header { position : relative; margin-bottom : 10px ; }
46+ # lobby { display : none; }
4347
4448/* chat */
45- # chat-wrap { margin : 0 auto; width : 340 px ; }
49+ # chat-wrap { position : relative; margin : 0 auto ; }
4650# chat-wrap input [type = "text" ] {
47- width : 200px ; font-size : 14px ; padding : 6px ; background : rgba (255 , 255 , 255 , 0.8 ); font-family : inherit;
51+ padding : 10px ; width : 238px ;
52+ font-size : 14px ; background : rgba (255 , 255 , 255 , 0.8 );
4853}
4954# chat-content {
50- padding : 10px ; margin-bottom : 5px ; height : 300 px ;
55+ padding : 10px ; margin-bottom : 5px ; height : 380 px ;
5156 overflow-y : auto; border : solid 1px # ccc ; background : rgba (255 , 255 , 255 , 0.8 );
5257}
5358
54- # chat-content li { clear : both; margin-bottom : 8px ; padding-bottom : 1px ; height : auto; overflow : hidden; }
55- # chat-content li * { padding : 2px 5px ; font-size : 10px ; display : inline-block; }
56- # chat-content .name { background : # 333 ; color : # fff ; border-radius : 3px ; vertical-align : top; }
59+ # chat-content li {
60+ clear : both; margin-bottom : 12px ; padding-bottom : 1px ;
61+ height : auto; overflow : hidden;
62+ }
63+
64+ # chat-content .name ,
65+ # chat-content .message { padding : 4px 5px 2px ; font-size : 10px ; }
66+ # chat-content .name {
67+ max-width : 100px ; text-overflow : ellipsis;
68+ background : # 333 ; color : # fff ; border-radius : 3px 3px 0 0 ;
69+ }
5770# chat-content .message {
58- max-width : 170 px ; font-size : 12px ; background : # E5F1FB; border-radius : 3 px ; color : # 000 ;
59- box-shadow : 1px 1px 0 rgba (80 , 80 , 80 , 0.3 );
71+ max-width : 306 px ; font-size : 12px ; background : # E5F1FB ;
72+ border-radius : 0 3 px 3 px 3 px ; color : # 000 ; box-shadow : 1px 1px 0 rgba (80 , 80 , 80 , 0.3 );
6073}
6174# chat-content .message .date {
62- padding : 2px 0 ; margin-top : 5px ; border-top : dotted 1px # fff ; color : # 666 ; font-size : 10px ;
75+ display : block; padding : 2px 0 ; margin-top : 5px ;
76+ border-top : dotted 1px # fff ; color : # 666 ; font-size : 10px ;
6377}
64- # chat-content .me * { float : right; }
65- # chat-content .me .name { margin-left : 5px ; }
78+ # chat-content .system .message {
79+ padding : 2px 5px ; border-radius : 3px ; background : # ebebeb ;
80+ }
81+ # chat-content .system strong { font-weight : bold; }
82+ # chat-content .me { position : relative; }
6683# chat-content .me .message { background-color : rgba (243 , 178 , 176 , 0.3 ); }
67- # chat-content .notice { margin : 0 0 8px ; font-size : 0.8em ; }
6884
85+ /* typing */
86+ # typing-icon {
87+ position : absolute; bottom : 68px ; right : 142px ; height : 14px ; line-height : 12px ;
88+ padding : 2px 10px ; background : # ebebeb ; border-radius : 6px ;
89+ transition : opacity 0.3s ease-out; opacity : 0 ; border : solid 1px # ccc ;
90+ }
91+ .visible { opacity : 1 !important ; }
92+ # typing-icon span {
93+ display : inline-block; margin : 0 ; width : 7px ; height : 7px ;
94+ background : # 000 ; border-radius : 50% ;
95+
96+ animation : bouncedelay 1.4s infinite ease-in-out;
97+ -moz-animation : bouncedelay 1.4s infinite ease-in-out;
98+ -webkit-animation : bouncedelay 1.4s infinite ease-in-out;
99+
100+ /* Prevent first frame from flickering when animation starts */
101+ animation-fill-mode : both;
102+ -moz-animation-fill-mode : both;
103+ -webkit-animation-fill-mode : both;
104+ }
105+
106+ # typing-icon .bounce1 {
107+ animation-delay : -0.32s ;
108+ -moz-animation-delay : -0.32s ;
109+ -webkit-animation-delay : -0.32s ;
110+ }
111+
112+ # typing-icon .bounce2 {
113+ animation-delay : -0.16s ;
114+ -moz-animation-delay : -0.16s ;
115+ -webkit-animation-delay : -0.16s ;
116+ }
117+
118+ @keyframes bouncedelay {
119+ 0% , 80% , 100% { transform : scale (0.0 ); }
120+ 40% { transform : scale (1.0 ); }
121+ }
122+
123+ @-webkit-keyframes bouncedelay {
124+ 0% , 80% , 100% { -webkit-transform : scale (0.0 ); }
125+ 40% { -webkit-transform : scale (1.0 ); }
126+ }
127+
128+ @-moz-keyframes bouncedelay {
129+ 0% , 80% , 100% { -moz-transform : scale (0.0 ); }
130+ 40% { -moz-transform : scale (1.0 ); }
131+ }
0 commit comments