mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-05 21:16:26 -05:00
486 lines
10 KiB
CSS
486 lines
10 KiB
CSS
/*********************************************************
|
|
* Global
|
|
*********************************************************/
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
body {
|
|
color: white;
|
|
font-size: 11pt;
|
|
font-family: Verdana, Helvetica, Arial, sans-serif;
|
|
|
|
/* license: CC-BY source: http://commons.wikimedia.org/wiki/File:%22La_piedra%22_(2809466426).jpg */
|
|
background: #546bac url(/fx/client-bg-2.jpg) no-repeat center center fixed;
|
|
-webkit-background-size: cover;
|
|
-moz-background-size: cover;
|
|
-o-background-size: cover;
|
|
background-size: cover;
|
|
}
|
|
|
|
.pad {
|
|
margin: 0;
|
|
padding: 0 15px;
|
|
}
|
|
.label {
|
|
font-size: 9pt;
|
|
font-weight: bold;
|
|
display: block;
|
|
}
|
|
.optlabel {
|
|
font-size: 9pt;
|
|
display: block;
|
|
}
|
|
.label .textbox {
|
|
display: block;
|
|
}
|
|
.textbox {
|
|
border: 1px solid #AAAAAA;
|
|
border-radius: 3px;
|
|
padding: 2px 3px;
|
|
font-family: Verdana, Helvetica, Arial, sans-serif;
|
|
font-size: 9pt;
|
|
|
|
box-shadow: inset 0px 1px 2px #CCCCCC, 1px 1px 0 rgba(255,255,255,.6);
|
|
background: #F8FBFD;
|
|
}
|
|
.textbox:hover
|
|
{
|
|
border-color: #474747;
|
|
box-shadow: inset 0px 1px 2px #D2D2D2, 1px 1px 0 rgba(255,255,255,.6);
|
|
background: #FFFFFF;
|
|
}
|
|
.textbox:focus
|
|
{
|
|
outline: 0 none;
|
|
border: 1px solid #004488;
|
|
box-shadow: inset 0px 1px 2px #D2D2D2, 0px 0px 5px #2266AA;
|
|
background: #FFFFFF;
|
|
}
|
|
|
|
/*********************************************************
|
|
* Header
|
|
*********************************************************/
|
|
|
|
.header {
|
|
position: relative;
|
|
height: 50px;
|
|
background: url(/fx/client-topbar-bg.png) repeat-x left top scroll;
|
|
}
|
|
.header h1 {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.header .logo {
|
|
float: left;
|
|
margin: 2px 0 0 2px;
|
|
}
|
|
|
|
.tabbar {
|
|
position: absolute;
|
|
bottom: -8px;
|
|
left: 0;
|
|
right: 0;
|
|
|
|
display: block;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0 0 0 0;
|
|
text-align: left;
|
|
|
|
color: white;
|
|
text-shadow: 0 1px 0 black;
|
|
font-size: 10pt;
|
|
|
|
line-height: 100%;
|
|
}
|
|
.tabbar:after {
|
|
content: "";
|
|
display: block;
|
|
height: 6px;
|
|
background: #f8f8f8;
|
|
border: solid 1px #AAAAAA;
|
|
border-left: 0;
|
|
margin: -1px 0 0 0;
|
|
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
|
|
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
|
|
box-shadow: 0 1px 2px rgba(0,0,0,.2);
|
|
}
|
|
.tabbar.maintabbar {
|
|
padding-left: 144px;
|
|
}
|
|
.tabbar.maintabbar:after {
|
|
margin-left: -144px;
|
|
}
|
|
|
|
.tabbar li,
|
|
.tabbar ul {
|
|
display: inline;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.tabbar a.button {
|
|
outline: none;
|
|
display: inline-block;
|
|
height: 28px;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.4);
|
|
border-radius: 5px;
|
|
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 -1px 2px rgba(255,255,255,1);
|
|
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 -1px 2px rgba(255,255,255,1);
|
|
box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 -1px 2px rgba(255,255,255,1);
|
|
white-space: nowrap;
|
|
|
|
/* default colors */
|
|
color: #222222;
|
|
text-shadow: 0 1px 0 white;
|
|
border: solid 1px #AAAAAA;
|
|
background: #e3e3e3;
|
|
background: -webkit-gradient(linear, left top, left bottom, from(#f6f6f6), to(#e3e3e3));
|
|
background: -moz-linear-gradient(top, #f6f6f6, #e3e3e3);
|
|
background: linear-gradient(top, #f6f6f6, #e3e3e3);
|
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6f6f6', endColorstr='#e3e3e3');
|
|
|
|
position: relative;
|
|
padding: 3px 10px 3px 10px;
|
|
margin: 0 -1px 0 0;
|
|
top: 1px;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
font-size: 11px;
|
|
}
|
|
.tabbar a.button i {
|
|
display: block;
|
|
text-align: center;
|
|
margin: 1px auto 0 auto;
|
|
font-style: normal;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
}
|
|
.tabbar a.button:hover {
|
|
background: #cfcfcf;
|
|
background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#cfcfcf));
|
|
background: -moz-linear-gradient(top, #f2f2f2, #cfcfcf);
|
|
background: linear-gradient(top, #f2f2f2, #cfcfcf);
|
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f2f2', endColorstr='#cfcfcf');
|
|
border-color: #606060;
|
|
|
|
z-index: 10;
|
|
}
|
|
.tabbar a.button:active {
|
|
background: -webkit-gradient(linear, left top, left bottom, from(#cfcfcf), to(#f2f2f2));
|
|
background: -moz-linear-gradient(top, #cfcfcf, #f2f2f2);
|
|
background: linear-gradient(top, #cfcfcf, #f2f2f2);
|
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cfcfcf', endColorstr='#f2f2f2');
|
|
}
|
|
.tabbar a.button.cur,
|
|
.tabbar a.button.cur:hover {
|
|
color: #777777;
|
|
background: #f8f8f8;
|
|
box-shadow: none;
|
|
border-color: #AAAAAA;
|
|
border-bottom: 0;
|
|
cursor: default;
|
|
padding-top: 3px;
|
|
padding-bottom: 5px;
|
|
top: 0px;
|
|
}
|
|
.tabbar li:first-child a.button {
|
|
border-top-left-radius: 5px;
|
|
margin-left: 6px;
|
|
}
|
|
.tabbar li:last-child a.button {
|
|
border-top-right-radius: 5px;
|
|
}
|
|
.tabbar a.closable {
|
|
padding-right: 14px;
|
|
}
|
|
.tabbar .closebutton {
|
|
display: inline-block;
|
|
margin: 0 0 0 -17px;
|
|
width: 17px;
|
|
padding: 0;
|
|
border: 0;
|
|
position: relative;
|
|
z-index: 11;
|
|
top: -14px;
|
|
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
color: #999999;
|
|
text-shadow: none;
|
|
}
|
|
.tabbar a.cur + .closebutton {
|
|
top: -15px;
|
|
}
|
|
.tabbar .closebutton:hover {
|
|
color: #BB2222;
|
|
}
|
|
.tabbar .closebutton:active {
|
|
color: #661111;
|
|
}
|
|
|
|
/*********************************************************
|
|
* Rooms
|
|
*********************************************************/
|
|
|
|
.ps-room {
|
|
position: absolute;
|
|
display: block;
|
|
top: 58px;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch,
|
|
overflow-scrolling: touch,
|
|
}
|
|
.ps-room.ps-room-light {
|
|
background: rgba(242,247,250,.85);
|
|
color: black;
|
|
}
|
|
|
|
/*********************************************************
|
|
* Main menu
|
|
*********************************************************/
|
|
|
|
.leftmenu {
|
|
float: left;
|
|
}
|
|
.rightmenu {
|
|
float: right;
|
|
}
|
|
.mainmessage,
|
|
.mainmenu {
|
|
display: block;
|
|
padding: 10px 15px;
|
|
margin: 40px 40px 0 40px;
|
|
max-width: 360px;
|
|
border-radius: 20px;
|
|
|
|
background: rgba(201, 207, 219, .6);
|
|
color: black;
|
|
}
|
|
.mainmenu {
|
|
background: rgba(201, 207, 219, .4);
|
|
width: 240px;
|
|
text-align: center;
|
|
}
|
|
.rightmenu .mainmenu {
|
|
margin-left: 0;
|
|
}
|
|
.mainmessage p,
|
|
.mainmenu p {
|
|
margin: 10px 0;
|
|
}
|
|
.mainmenu .button {
|
|
box-sizing: border-box;
|
|
font-size: 12pt;
|
|
font-family: Verdana, Helvetica, Arial, sans-serif;
|
|
|
|
display: inline-block;
|
|
padding: 5px 7px 3px 7px;
|
|
|
|
width: 200px;
|
|
|
|
outline: none;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
text-shadow: 0 -1px 0 hsl(210,40%,10%);
|
|
border-radius: 5px;
|
|
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 1px rgba(255,255,255,.8);
|
|
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 1px rgba(255,255,255,.8);
|
|
box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 1px rgba(255,255,255,.8);
|
|
|
|
/* default colors */
|
|
color: #FFFFFF;
|
|
border: solid 1px #AAAAAA;
|
|
background: #779EC5;
|
|
background: hsl(210,40%,62%);
|
|
background: -webkit-gradient(linear, left top, left bottom, from(hsl(210,40%,72%)), to(hsl(210,40%,52%)));
|
|
background: -moz-linear-gradient(top, hsl(210,40%,72%), hsl(210,40%,52%));
|
|
background: linear-gradient(top, hsl(210,40%,72%), hsl(210,40%,52%));
|
|
border-color: hsl(210,40%,40%);
|
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6f6f6', endColorstr='#e3e3e3');
|
|
}
|
|
.mainmenu button.big {
|
|
width: 230px;
|
|
padding: 7px 7px 5px 7px;
|
|
font-size: 14pt;
|
|
}
|
|
.mainmenu .button:hover {
|
|
background: #5485B6;
|
|
background: hsl(210,40%,52%);
|
|
background: -webkit-gradient(linear, left top, left bottom, from(hsl(210,40%,62%)), to(hsl(210,40%,42%)));
|
|
background: -moz-linear-gradient(top, hsl(210,40%,62%), hsl(210,40%,42%));
|
|
background: linear-gradient(top, hsl(210,40%,62%), hsl(210,40%,42%));
|
|
border-color: hsl(210,40%,21%);
|
|
}
|
|
.mainmenu .button:active {
|
|
box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 -1px 1px rgba(255,255,255,.3), inset 0 1px 1px rgba(0,0,0,.4);
|
|
background: #406B96;
|
|
background: hsl(210,40%,42%);
|
|
background: -webkit-gradient(linear, left top, left bottom, from(hsl(210,40%,42%)), to(hsl(210,40%,58%)));
|
|
background: -moz-linear-gradient(top, hsl(210,40%,42%), hsl(210,40%,58%));
|
|
background: linear-gradient(top, hsl(210,40%,42%), hsl(210,40%,58%));
|
|
border-color: hsl(210,40%,21%);
|
|
}
|
|
.mainmenu .button.disabled,
|
|
.mainmenu .button.disabled:hover,
|
|
.mainmenu .button.disabled:active {
|
|
background: #EEEEEE;
|
|
border: 1px solid #CCCCCC;
|
|
color: #BBBBBB;
|
|
text-shadow: none;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,.1);
|
|
}
|
|
|
|
/*********************************************************
|
|
* Chat
|
|
*********************************************************/
|
|
|
|
.chat-log {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 40px;
|
|
font-size: 10pt;
|
|
background: rgba(242,247,250,.4);
|
|
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch,
|
|
overflow-scrolling: touch,
|
|
}
|
|
.chat-log-add {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
min-height: 36px;
|
|
padding: 3px 4px 0 4px;
|
|
border-top: 1px solid #AAAAAA;
|
|
}
|
|
.chat-log .message,
|
|
.chat-log .chat {
|
|
padding: 4px 0 2px 0;
|
|
font-size: 8pt;
|
|
}
|
|
.chat-log .chat em {
|
|
padding: 0 4px 0 3px;
|
|
font-style: normal;
|
|
}
|
|
.chat-log .chat small {
|
|
font-weight: normal;
|
|
font-size: 8pt;
|
|
color: #888888;
|
|
}
|
|
.chat-log .inner {
|
|
padding: 4px 8px 0px 8px;
|
|
}
|
|
.chat-log .inner-after {
|
|
margin-top: 0.5em;
|
|
}
|
|
|
|
.chatbox {
|
|
margin: 0 10px 0 80px;
|
|
padding: 5px 0 0 0;
|
|
}
|
|
.chatbox label {
|
|
float: left;
|
|
margin-left: -78px;
|
|
padding-top: 2px;
|
|
width: 73px;
|
|
text-align: right;
|
|
overflow: hidden;
|
|
white-space: pre;
|
|
|
|
font-weight: bold;
|
|
font-size: 8pt;
|
|
}
|
|
.chatbox textarea {
|
|
display: block;
|
|
height: 1.1em;
|
|
width: 100%;
|
|
resize: none;
|
|
font-size: 9pt;
|
|
font-family: Verdana, Helvetica, Arial, sans-serif;
|
|
}
|
|
|
|
.userlist {
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 145px;
|
|
border-right: 1px solid #AAAAAA;
|
|
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch,
|
|
overflow-scrolling: touch,
|
|
}
|
|
.chat-log.hasuserlist,
|
|
.chat-log-add.hasuserlist {
|
|
left: 146px;
|
|
}
|
|
.userlist,
|
|
.userlist li {
|
|
display: block;
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
text-align: left;
|
|
}
|
|
.userlist li {
|
|
border-bottom: 1px solid #CCCCCC;
|
|
height: 19px;
|
|
font: 10pt Verdana, sans-serif;
|
|
white-space: nowrap;
|
|
}
|
|
.userlist li em.group {
|
|
font-style: normal;
|
|
font-size: 8pt;
|
|
color: #AAAAAA;
|
|
display: block;
|
|
float: left;
|
|
text-align: center;
|
|
padding: 1px 0 0 1px;
|
|
width: 14px;
|
|
}
|
|
.userlist li button {
|
|
box-sizing: border-box;
|
|
display: block;
|
|
height: auto;
|
|
background: transparent;
|
|
border: 0;
|
|
padding: 1px 0;
|
|
margin: 0;
|
|
height: 19px;
|
|
width: 100%;
|
|
white-space: nowrap;
|
|
font: 9pt Verdana, sans-serif;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.userlist li button:hover {
|
|
background: #DEE2E5;
|
|
}
|
|
.userlist li button:active {
|
|
background: #CED2D5;
|
|
}
|
|
.userlist li.cur {
|
|
background: white;
|
|
}
|
|
.userlist li.cur button,
|
|
.userlist li.cur button:hover {
|
|
background: white;
|
|
margin: 0 0 0 -1px;
|
|
}
|