lila/public/stylesheets/common.css

1036 lines
22 KiB
CSS

.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
.clearfix {
display:inline-block;
}
.none {
display: none;
}
.s16 {
padding-left: 20px;
background: transparent url(../images/s16.png) top left no-repeat;
}
body {
font:12px'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, Sans-Serif;
color: #848484;
background: #F7F7F7 url(../images/head_bg.png) top left repeat-x;
background-position: left +25px;
}
a, a:visited {
color: #848484;
text-decoration: underline;
cursor: pointer;
}
a:hover {
text-decoration: none;
}
a.revert-underline {
text-decoration: none;
}
a.revert-underline:hover {
text-decoration: underline;
}
strong {
font-weight: bold;
}
.small {
font-size: 11.5px;
}
div.header {
width: 200px;
float: left;
position: relative;
}
body.tight div.header {
display: none;
}
div.header strong {
font-weight: normal;
}
body > div.content {
width: 1005px;
min-height: 590px;
margin: 30px auto 30px auto;
}
body.tight > div.content {
width: auto;
min-width: 780px;
margin-top: 5px;
}
#top {
width: 100%;
min-width: 1005px;
height: 24px;
border-bottom: 1px solid #c4c4c4;
}
body.tight #top {
min-width: 780px;
}
#site_description {
position: absolute;
top: -100px;
}
#lichess {
margin-left: 211px;
}
body.tight #lichess {
margin-left: 10px;
}
#site_title {
width: 130px;
color: #666;
font-family:'Trebuchet MS', 'Helvetica Neue', Arial, Sans-Serif;
font-size: 30px;
color: #afafaf;
text-decoration: none;
display: block;
margin-bottom: 3px;
}
body.tight #site_title {
margin-left: 10px;
}
#site_title span.extension {
color: #c8c8c8;
font-weight: normal;
}
#site_title:hover {
color: #8899aa;
}
#site_title:hover span.extension {
color: #99aabb;
}
#site_baseline {
font-style: italic;
color: #afafaf;
}
body.tight #site_baseline {
display: none;
}
div.footer_wrap {
width: 100%;
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
background: #EEE;
padding: 20px 0;
display: block;
}
div.footer {
width: 1000px;
margin: auto;
line-height: 2em;
}
body.tight div.footer {
width: auto;
padding: 0 10px;
}
div.footer div.right {
float: right;
text-align: right;
}
.button, a.button {
border-radius: 5px;
border: 1px solid #DADADA;
padding: 0.4em 1em;
text-decoration: none;
cursor: pointer;
}
a.easy_button {
font-weight: normal;
}
div.content_box {
border: 1px solid #ccc;
border-radius: 5px;
background: #fff;
padding: 20px 24px 24px 24px;
text-align: left;
}
div.content_box h1 {
font-size: 1.8em;
color: #666;
font-weight: normal;
display: inline;
}
div.content_box h1 a.user_link {
display: inline;
}
div.content_box.small_box {
width: 530px;
}
div.content_box.no_padding {
padding: 0;
}
div.content_box.no_padding h1 {
display: block;
padding: 20px 25px;
}
.content_box_title {
padding: 20px 25px 0 25px;
}
div.content_box_top {
padding-left: 25px;
height: 40px;
line-height: 40px;
border-radius: 4px 4px 0 0;
border-bottom: 1px solid #ccc;
}
div.content_box_top a {
float: right;
text-decoration: none;
font-size: 1.2em;
font-weight: bold;
line-height: 40px;
padding: 0 12px;
border-left: 1px solid #ccc;
}
div.content_box_top .link:hover {
background: #fff;
}
div.content_box_top h1.lichess_title {
display: inline;
padding: 0;
}
div.content_box_top .icon {
display: block;
width: 16px;
height: 16px;
float: left;
background: transparent url(/assets/images/s16.png) top left no-repeat;
margin: 12px 8px 0 -10px;
}
.content_box_content {
padding: 20px 25px 25px 25px;
}
div.content_box_inter {
padding-left: 25px;
background: #f0f0f0;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
display: block;
}
div.content_box_inter .intertab {
float: left;
text-align: center;
line-height: 1.5em;
margin: 5px 0 -1px 0;
padding: 0.5em 0.7em;
font-size: 1em;
text-decoration: none;
text-transform: capitalize;
}
div.content_box_inter a.intertab:hover {
text-transform: underline;
}
div.content_box_inter a.intertab.active {
background: white;
border: 1px solid #ccc;
border-bottom: 0;
text-decoration: none;
}
div.content_box .lichess_title {
font-size: 2em;
display: block;
margin-bottom: 0.5em;
}
div.content_box table.datatable {
width: 100%;
margin-top: 20px;
}
div.content_box table.datatable td {
padding: 5px 10px 5px 10px;
}
div.content_box table.datatable tr:nth-child(odd) {
background: #f7f7f7;
}
table.slist {
width: 100%;
border-bottom: 1px solid #d4d4d4;
}
table.slist thead th {
border-top: 1px solid #d4d4d4;
padding: 0.4em 0.6em;
}
table.slist thead th.large {
font-size: 1.4em;
}
table.slist td {
padding: 0.6em;
font-size: 1.2em;
}
table.slist td .label {
font-family: monospace;
font-size: 10px;
}
table.slist .s16 {
display: block;
height: 16px;
padding: 0 0 0 20px;
}
table.slist tbody tr:nth-child(even) {
background: #f4f4f4;
}
table.slist td:first-child, table.slist th:first-child {
padding-left: 25px;
}
div.lichess_goodies div.box {
margin-top: 1em;
margin-left: -30px;
width: 212px;
border: 1px solid #C0C0C0;
padding: 7px;
border-radius: 4px;
}
div.lichess_goodies div.box .player {
margin: 4px 0;
}
div.header div.side_menu {
margin-top: 15px;
}
div.header div.side_menu a {
padding: 8px 0 8px 8px;
display: block;
text-decoration: none;
width: 203px;
font-weight: bold;
}
body.tight div.side_menu a {
padding-right: 10px;
}
div.header div.side_menu a.active {
background: white;
border: 1px solid #dadada;
border-right: none;
border-radius: 4px 0 0 4px;
box-shadow: -3px 0 5px #d0d0d0;
}
#nb_connected_players, #reconnecting, a.goto_nav, #top a.toggle, #top a.bgpicker, a#sound_state {
text-decoration: none;
font-size: 13px;
height: 24px;
line-height: 24px;
padding: 0 8px;
text-decoration: none;
}
#reconnecting {
display: none;
font-style: italic;
}
#nb_connected_players {
float: left;
color: #999;
}
#nb_connected_players, #reconnecting {
border-left: 1px solid #ccc;
}
a.goto_nav {
float: left;
}
a.goto_nav:hover, #top a.toggle:hover, #top a.bgpicker:hover, a#sound_state:hover {
background: #fff;
}
#top .s16 {
display:block;
height: 16px;
margin-top: 4px;
line-height: 16px;
}
#top span.new_messages {
padding: 1px 5px 1px 4px;
background: #bbb;
color: white;
font-weight: bold;
border-radius:4px;
font-size: 0.9em;
}
#top span.new_messages.unread {
font-size: 1em;
}
#top .shown a.toggle {
background: #fff;
}
#top a.signin {
float: right;
position: relative;
display: block;
margin: 3px 0.5em 0 0;
padding: 1px 5px;
text-decoration: none;
line-height: normal;
border: 1px solid #d85000;
border-radius: 3px;
}
#top div.auth {
float: right;
position: relative;
}
#top div.auth.shown form, #top div.auth.shown .links {
display: block;
}
#top div.auth .links a {
display: block;
padding: 6px 10px;
text-decoration: none;
text-transform: capitalize;
}
#top div.auth .links a:hover {
background: #F0F0F0;
color: #444;
}
#top div.auth .links .goto_logout {
background-position: 0 -48px;
}
#top div.auth .links .goto_profile {
background-position: 0 -208px;
}
form.wide input[type="text"], form.wide textarea {
padding: 0.5em;
border: 1px solid #D4D4D4;
}
#top a.toggle {
display:block;
padding-right: 4px;
float: left;
}
#top .dropdown {
display: none;
position: absolute;
right: -1px;
top: 24px;
background: #fff;
border: 1px solid #dadada;
border-top: none;
z-index: 1;
}
div.auth input.username, div.auth input.password {
border: 1px solid #dadada;
padding: 2px 3px;
width: 100px;
background: #fff;
}
div.auth input.login {
padding: 0 3px;
}
div.lichess_language {
float: right;
position: relative;
}
ul.language_links {
width: 620px;
padding: 10px;
max-height: 700px;
overflow:auto;
}
#top div.lichess_language.shown ul.language_links {
display: block;
}
ul.language_links a {
display: block;
padding: 0.4em 0.5em;
text-decoration: none;
}
ul.language_links a.current {
font-weight: bold;
}
ul.language_links a:hover, ul.language_links a.current {
background: #F0F0F0;
color: #444;
}
ul.language_links li {
width: 25%;
height: 24px;
float: left;
display: block;
overflow: hidden;
}
ul.language_links li:last-child {
width: 50%;
font-weight: bold;
font-style: italic;
}
#top div.themepicker {
float: right;
position: relative;
}
#top div.themepicker span.down {
display: block;
margin: 3px 0.5em 0 0;
padding: 1px 5px;
text-decoration: none;
line-height: normal;
}
#top div.themepicker.shown div.themes {
display: block;
}
#top div.themepicker.shown div.theme {
padding: 5px 10px;
cursor: pointer;
}
#top div.themepicker.shown div.theme:hover {
background: #f0f0f0;
}
#top div.themepicker.shown div.color_demo {
border: 1px solid #dadada;
position: relative;
width: 128px;
height: 64px;
}
#top a.bgpicker {
float: right;
}
#top a.bgpicker span {
width: 24px;
height: 24px;
opacity: 0.7;
background: url(../images/s24.png) no-repeat;
background-position: 0 -48px;
display: block;
}
a#sound_state {
float: right;
}
a#sound_state span {
margin-top: 4px;
width: 18px;
height: 15px;
opacity: 0.7;
background: url(../images/s16.png) no-repeat;
background-position: 0 -64px;
display: block;
}
a#sound_state.sound_state_on span {
background-position: 0 -80px;
}
a#sound_state.unavailable {
display: none;
}
#call_boxes {
position: absolute;
top: 30px;
right: 10px;
width: 250px;
}
#translation_call {
margin-top: 1em;
padding: 0.5em;
border: 1px solid #d0d0d0;
display: block;
border-radius: 4px;
text-decoration: none;
position: relative;
}
#translation_call span.action {
float: right;
margin-right: 2px;
}
#translation_call span.name {
font-weight: bold;
}
#translation_call div.progressbar {
margin-top: 0.5em;
background: #fff;
margin-bottom: 0.4em;
}
#translation_call .close {
position: absolute;
bottom: 0.4em;
right: 0.6em;
text-decoration: none;
font-weight: bold;
}
#translation_call .close:hover {
color: red;
font-size: 1.4em;
bottom: 0.2em;
right: 0.3em;
}
#quick_requests {
margin-top: 2em;
}
#quick_requests a {
margin: 5px 0;
}
#friend_box {
position: fixed;
bottom: 0px;
right: 10px;
background: #fff;
border: 1px solid #ccc;
border-radius: 4px 4px 0 0;
}
#friend_box .title {
padding: 3px 5px;
border-bottom: 1px solid #ccc;
border-radius: 4px 4px 0 0;
}
#friend_box .content a {
padding: 3px 5px;
text-decoration: none;
display: block;
}
#friend_box .content a:hover {
background: #F0F0F0;
}
#friend_box .nobody {
text-align: center;
display: none;
padding: 3px 5px;
font-style: italic;
}
#friend_box .nobody span {
display: block;
margin: 5px;
}
#friend_box a.find {
display: block;
margin: 7px;
font-style: normal;
}
span.s16.clock {
background-position: 0 -224px;
padding-bottom: 1px;
}
.s16.tournament {
background-position: 0 -304px;
padding-bottom: 1px;
}
.s16.team {
background-position: 0 -336px;
padding-bottom: 1px;
display: block;
height: 15px;
}
.s16.team.mine {
background-position: 0 -352px;
}
.s16.ddown {
background-position: right -192px;
padding-left: 0;
padding-right: 20px;
}
.s16.message {
background-position: 0 -144px;
}
.s16.nuclear {
background-position: 0 -400px;
}
.s16.download {
background-position: 0 -416px;
}
.user_link.white, .user_link.black, .user_link.online, .user_link.offline {
line-height: 16px;
display: block;
background: url(../images/s16.png) no-repeat;
padding-left: 20px;
white-space: nowrap;
}
.user_link.white {
background-position: 0 -240px;
}
.user_link.black {
background-position: 0 -256px;
}
.user_link.offline {
padding-left: 20px;
background-position: 0 -160px;
}
.user_link.online {
padding-left: 20px;
background-position: 0 -208px;
}
.user_link.inline {
display: inline-block;
}
.tournament_link {
padding-left: 20px;
background-position: 0 -304px;
}
div.engine_warning {
padding: 5px 5px 5px 40px;
background: #f2dede url(../images/engine_big.png) 8px 5px no-repeat;
line-height: 16px;
border: 1px solid #eed3d7;
color: #894a48;
width: 240px;
margin-bottom: 15px;
}
div.ui-tooltip div.engine_warning {
margin: 10px 0 10px 5px;
width: auto;
background-position: 8px 0px;
}
.engine_mark {
display: inline-block;
width: 16px;
height: 16px;
background: transparent url(../images/engine_small.png) top left no-repeat;
opacity: 0.8;
vertical-align: bottom;
}
div.lichess_social {
height: 0px;
text-align: center;
}
div.lichess_social div.addtochrome {
display: none;
margin-bottom: 15px;
}
/* soft inactive gradient */
#top, div.lichess_chat_top, #friend_box .title, div.undertable_top, .button, .button:visited, .ui-state-default, div.content_box_top, div.hooks tr, #translation_call, div.notification, div.locale_menu a, table.slist thead {
color: #666;
background: #fafafa;
background: -moz-linear-gradient(center top, #fafafa, #e0e0e0) repeat scroll 0 0 #fafafa;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fafafa), to(#e0e0e0));
background: -webkit-linear-gradient(top, #fafafa, #e0e0e0) repeat scroll 0 0 #fafafa;
background: -ms-linear-gradient(top, #fafafa, #e0e0e0) repeat scroll 0 0 #fafafa;
background: -o-linear-gradient(top, #fafafa, #e0e0e0) repeat scroll 0 0 #fafafa;
}
/* active gradient */
#top a.goto_nav.active, .button.active, .button.active:hover, .ui-state-active, .ui-widget-header, div.pagination span.current, #top span.new_messages.unread, div.hooks td.action:hover, div.hooks table.empty tr:hover, div.progressbar.flashy div, .button.strong:hover, div.locale_menu a.active, #import_game .progression {
color: #fff;
background: #d85000;
background: -moz-linear-gradient(center top, #f49c00, #d85000) repeat scroll 0 0 #d85000;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f49c00), to(#d85000));
background: -webkit-linear-gradient(top, #f49c00, #d85000) repeat scroll 0 0 #d85000;
background: -ms-linear-gradient(top, #f49c00, #d85000) repeat scroll 0 0 #d85000;
background: -o-linear-gradient(top, #f49c00, #d85000) repeat scroll 0 0 #d85000;
}
/* strong inactive gradient */
div.hooks td.action, .button:hover, .button.strong {
background: #ffffff;
background: -moz-linear-gradient(center top, #ffffff, #c0c0c0) repeat scroll 0 0 #ffffff;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffffff), to(#c0c0c0));
background: -webkit-linear-gradient(top, #ffffff, #c0c0c0) repeat scroll 0 0 #ffffff;
background: -ms-linear-gradient(top, #ffffff, #c0c0c0) repeat scroll 0 0 #ffffff;
background: -o-linear-gradient(top, #ffffff, #c0c0c0) repeat scroll 0 0 #ffffff;
}
/* current gradient */
#top a.goto_nav.current {
color: #fff;
background: #999;
background: -moz-linear-gradient(center top, #aaa, #999) repeat scroll 0 0 #999;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#aaa), to(#999));
background: -webkit-linear-gradient(top, #aaa, #999) repeat scroll 0 0 #999;
background: -ms-linear-gradient(top, #aaa, #999) repeat scroll 0 0 #999;
background: -o-linear-gradient(top, #aaa, #999) repeat scroll 0 0 #999;
}
/* standard shadow */
div.lichess_chat, div.undertable, div.lichess_board_wrap, .button.strong, .button.shadowed, #friend_box, div.content_box, div.undergame_box, div.lichess_goodies div.box, #powerTip {
box-shadow: 0 0 7px #d0d0d0;
border-radius: 4px;
}
div.checkmateFen {
float: left;
width: 250px;
margin-left: 110px;
cursor: pointer;
}
div.checkmateFen div.lmcs:hover {
background: #eebb77!important;
}
div.checkmateFen div.lmcs.selected {
background: #77eeaa!important;
}
div.checkmateSection {
float: left;
font-size: 0.9em;
}
div.checkmateSection label {
display: block;
width: 310px;
}
div.checkmateSection div.result {
display: none;
height: 48px;
line-height: 48px;
vertical-align: middle;
padding-left: 54px;
font-weight: bold;
}
div.checkmateSection div.success {
background: url(../images/tick-48.png) no-repeat;
color: #00aa00;
}
div.checkmateSection div.failure {
background: url(../images/cross-48.png) no-repeat;
color: #aa0000;
}
div.checkmateCaptcha.success div.success {
display: block;
}
div.checkmateCaptcha.failure div.failure {
display: block;
}
div.undergame_box {
margin-top: 10px;
width: 512px;
border: 1px solid #ccc;
border-radius: 5px;
line-height: 24px;
}
div.undergame_box div.inner {
padding: 10px 10px 0 10px;
width: 492px;
}
div.undergame_box .opponent_choice {
display: none;
}
div.undergame_box a {
text-decoration: none;
}
div.undergame_box a:hover {
text-decoration: underline;
}
div.game_analysis {
padding: 10px;
width: 492px;
}
div.game_analysis a {
background: url("../images/s24.png") no-repeat 0 -72px;
display: block;
height: 24px;
padding-left: 30px;
}
div.game_more div.more_top {
padding: 3px 10px;
width: 492px;
height: 29px;
border-bottom: 1px solid #ccc;
}
div.game_more div.more_top span.bookmark {
margin-top: 2px;
margin-right: 34px;
}
div.game_more a.game_permalink {
float: left;
margin-top: 3px;
}
div.game_more textarea {
display: block;
width: 100%;
height: 200px;
font-family: monospace;
line-height: normal;
margin: 0;
background: #fff;
color: #888;
border: 1px solid #eaeaea;
padding: 5px;
border-radius: 3px;
}
div.game_extra div.bookmarkers {
float: right;
max-width: 48%;
}
#timeline {
margin-top: 2em;
}
#timeline > .entry {
padding-bottom: 1em;
border-bottom: 1px solid #c0c0c0;
margin-bottom: 1em;
}
#timeline time {
font-size: 0.8em;
color: #afafaf;
}
span.bookmark {
position: relative;
float: right;
margin-right: 14px;
}
span.bookmark .icon {
position: absolute;
top: 0;
left: 0;
background: transparent url(../images/s24.png) top left no-repeat;
height: 24px;
display: block;
padding-left: 28px;
line-height: 28px;
text-decoration: none;
color: #a0a0a0;
}
span.bookmark .icon.bookmarked {
background-position: 0 -24px;
}
span.bookmark a {
outline: none;
}
div.progressbar {
background: #eaeaea;
border: 1px solid #e0e0e0;
border-radius: 5px;
padding: 1px;
}
div.progressbar div {
background: #d8a050;
height: 12px;
border-radius: 4px;
}
div.progressbar.flashy.green div {
background: #90d050;
}
div.notifications {
width: 1005px;
margin: 0 auto -10px auto;
}
div.notifications > div {
margin-left: 211px;
width: 498px;
border: 1px solid #c0c0c0;
padding: 6px 8px 7px 8px;
margin-bottom: 8px;
border-radius: 3px;
}
div.notifications > div a.close {
text-decoration: none;
float: right;
}
div.notifications > div a.close:hover {
font-weight: bold;
}
#tournament_reminder .action {
float: right;
display: block;
margin-left: 8px;
}
a.hover_text > .base, a.hover_text:hover > .hover {
display: inline-block;
}
a.hover_text > .hover, a.hover_text:hover > .base {
display: none;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
input:focus:-ms-input-placeholder {
color: transparent;
}
div.relation_actions a.button {
padding: 0.6em 1em;
padding-right: 0.6em;
/* required for some reason */
}
div.relation_actions a.relation.processing {
opacity: 0.2
}
div.relation_actions .icon {
margin-right: 6px;
}
div.relation_actions .icon span {
display: inline-block;
vertical-align: text-top;
padding: 0;
margin: 0;
width: 16px;
height: 16px;
}
#powerTip {
width: 200px;
min-height: 6em;
cursor: default;
background-color: #f0f0f0;
border: 1px solid #c0c0c0;
border-radius: 4px;
display: none;
position: absolute;
z-index: 2147483647;
}
#powerTip > .title {
padding: 8px;
border-bottom: 1px solid #c0c0c0;
}
#powerTip > .content {
text-align: right;
padding: 16px 8px;
}
#powerTip:before {
content:"";
position: absolute;
}
#powerTip.n:before, #powerTip.s:before {
border-right: 5px solid transparent;
border-left: 5px solid transparent;
left: 50%;
margin-left: -5px;
}
#powerTip.e:before, #powerTip.w:before {
border-bottom: 5px solid transparent;
border-top: 5px solid transparent;
margin-top: -5px;
top: 50%;
}
#powerTip.n:before {
border-top: 10px solid #acacac;
border-top: 10px solid rgba(172, 172, 172, 0.8);
bottom: -10px;
}
#powerTip.e:before {
border-right: 10px solid #acacac;
border-right: 10px solid rgba(172, 172, 172, 0.8);
left: -10px;
}
#powerTip.s:before {
border-bottom: 10px solid #acacac;
border-bottom: 10px solid rgba(172, 172, 172, 0.8);
top: -10px;
}
#powerTip.w:before {
border-left: 10px solid #acacac;
border-left: 10px solid rgba(172, 172, 172, 0.8);
right: -10px;
}
#powerTip.ne:before, #powerTip.se:before {
border-right: 10px solid transparent;
border-left: 0;
left: 10px;
}
#powerTip.nw:before, #powerTip.sw:before {
border-left: 10px solid transparent;
border-right: 0;
right: 10px;
}
#powerTip.ne:before, #powerTip.nw:before {
border-top: 10px solid #acacac;
border-top: 10px solid rgba(172, 172, 172, 0.8);
bottom: -10px;
}
#powerTip.se:before, #powerTip.sw:before {
border-bottom: 10px solid #acacac;
border-bottom: 10px solid rgba(172, 172, 172, 0.8);
top: -10px;
}
#powerTip.nw-alt:before, #powerTip.ne-alt:before, #powerTip.sw-alt:before, #powerTip.se-alt:before {
border-top: 10px solid #acacac;
border-top: 10px solid rgba(172, 172, 172, 0.8);
bottom: -10px;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
left: 10px;
}
#powerTip.ne-alt:before {
left: auto;
right: 10px;
}
#powerTip.sw-alt:before, #powerTip.se-alt:before {
border-top: none;
border-bottom: 10px solid #acacac;
border-bottom: 10px solid rgba(172, 172, 172, 0.8);
bottom: auto;
top: -10px;
}
#powerTip.se-alt:before {
left: auto;
right: 10px;
}