lila/public/stylesheets/home.css

708 lines
14 KiB
CSS

#lichess {
position: relative;
}
div.lobby_and_ground {
position: relative;
}
#start_buttons {
display: table-cell;
vertical-align: middle;
padding-left: 15px;
height: 512px;
width: 280px;
}
#start_buttons a {
margin: 2.5em 0;
font-size: 1.3em;
padding: 1em;
text-align: center;
display: block;
letter-spacing: -1px;
}
#start_buttons a.disabled {
opacity: 0.2;
}
#lobby_playban {
box-sizing: border-box;
position: absolute;
width: 512px;
height: 512px;
text-align: center;
background: rgba(255,255,255,0.7);
}
#lobby_playban h2 {
font-size: 1.5em;
line-height: 3;
margin-top: 1em;
}
/********** HOOKS **********/
#hooks_wrap {
display: table-cell;
min-width: 512px;
width: 512px;
height: 512px;
max-height: 512px;
overflow: hidden;
border: 1px solid #ccc;
background: #f0f0f0 url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMy41MjkgMzMuNTA0Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNS4yNS02LjI0NikiIG9wYWNpdHk9Ii4xIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxLjUiPjxnIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Im0yMiAxMGMxMC41IDEgMTYuNSA4IDE2IDI5aC0yM2MwLTkgMTAtNi41IDgtMjEiLz48cGF0aCBkPSJtMjQgMThjLjM4IDIuOTEtNS41NSA3LjM3LTggOS0zIDItMi44MiA0LjM0LTUgNC0xLjA0Mi0uOTQgMS40MS0zLjA0IDAtMy0xIDAgLjE5IDEuMjMtMSAyLTEgMC00IDEtNC00IDAtMiA2LTEyIDYtMTIgMCAwIDEuODktMS45IDItMy41LS43My0uOTk0LS41LTItLjUtMyAxLTEgMyAyLjUgMyAyLjVoMmMwIDAgLjc4LTEuOTkyIDIuNS0zIDEgMCAxIDMgMSAzIi8+PC9nPjxnIGZpbGw9IiMwMDAiPjxwYXRoIGQ9Im05LjUgMjUuNWEuNSAuNSAwIDEgMSAtMSAwIC41IC41IDAgMSAxIDEgMHoiLz48cGF0aCBkPSJtMTUgMTUuNWEuNSAxLjUgMCAxIDEgLTEgMCAuNSAxLjUgMCAxIDEgMSAweiIgdHJhbnNmb3JtPSJtYXRyaXgoLjg2Ni41LS41Ljg2NiA5LjY5My01LjE3MykiLz48L2c+PC9nPjwvc3ZnPg==');
background-size: 100% 100%;
}
#hooks_wrap .lobby_box {
position: relative;
}
#hooks_wrap .tabs {
position: absolute;
top: -22px;
left: 0px;
height: 20px;
line-height: 20px;
}
#hooks_wrap .tabs a {
display: inline-block;
text-decoration: none;
padding: 0px 8px;
margin-right: 3px;
border: 1px solid #ccc;
background: #dadada;
transition: 0.13s;
}
#hooks_wrap .tabs a:hover {
background: #f0f0f0;
border-top: 2px solid #808080;
}
#hooks_wrap .tabs a.active {
background: #f0f0f0;
font-weight: bold;
border-bottom-color: #f0f0f0;
border-top: 2px solid #d85000;
}
#hooks_wrap .tabs .unread {
margin-left: 5px;
}
#hooks_wrap .mode_toggle,
#hooks_wrap .filter_toggle {
position: absolute;
top: 10px;
cursor: pointer;
z-index: 2;
font-size: 1.3em;
opacity: 0.7;
transition: 0.13s;
}
#hooks_wrap .mode_toggle {
left: 15px;
}
#hooks_wrap .filter_toggle {
right: 15px;
}
#hooks_wrap .filter_toggle .number {
margin-left: 3px;
font-size: 0.8em;
}
#hooks_wrap .mode_toggle:hover,
#hooks_wrap .filter_toggle:hover {
opacity: 1;
}
#hooks_wrap .hook_filter {
padding: 10px 20px;
}
#hooks_wrap .hook_filter table {
width: 100%;
}
#hooks_wrap .hook_filter td {
padding: 20px 0;
}
#hooks_wrap .hook_filter td:first-child {
font-size: 1.3em;
}
#hooks_wrap .hook_filter .checkable {
padding: 3px 0;
color: #444;
}
#hooks_wrap .hook_filter label.hover,
#hooks_wrap .hook_filter input {
vertical-align: middle;
cursor: pointer;
}
#hooks_wrap .hook_filter .range {
display: block;
text-align: center;
}
#hooks_wrap .hook_filter .actions {
margin-top: 20px;
text-align: right;
}
#hooks_wrap .hook_filter .actions button {
padding: 6px;
margin-left: 3px;
}
#hooks_wrap .table_wrap {
text-shadow: 0px 1px 0px #FFF;
width: 512px;
min-height: 78px;
overflow: hidden;
}
#hooks_wrap .table_wrap th {
padding: 14px 12px;
border-bottom: transparent;
font-family: 'Roboto';
font-weight: 300;
}
#hooks_wrap .table_wrap th.sortable {
cursor: pointer;
}
#hooks_wrap .table_wrap th.sortable:hover,
#hooks_wrap .table_wrap th.sort {
font-weight: normal;
}
#hooks_wrap .table_wrap th.sort .is:before {
opacity: 0.7;
margin-right: 3px;
content: "R";
}
#hooks_wrap .table_wrap th.player {
width: 110px;
}
#hooks_wrap .table_wrap td {
padding: 8px 12px;
border-bottom: 1px solid #ccc;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
background: rgba(255, 255, 255, 0.6);
}
#hooks_wrap .table_wrap tbody.stepping {
opacity: 0.7;
}
#hooks_wrap .table_wrap tr.disabled {
opacity: 0.4;
}
#hooks_wrap .table_wrap tr.disabled td {
cursor: default;
background: transparent!important;
border-color: transparent!important;
}
#hooks_wrap .table_wrap a {
text-decoration: none;
}
#hooks_wrap .table_wrap tr.cancel td {
background: rgba(200, 255, 200, 0.7);
}
#hooks_wrap .table_wrap tr.join:hover td {
background: rgba(191, 231, 255, 0.7);
}
#hooks_wrap .table_wrap td:first-child {
width: 16px;
}
#hooks_wrap .table_wrap td:first-child span {
display: block;
padding: 0;
width: 16px;
height: 16px;
opacity: 0.7;
}
#hooks_wrap .table_wrap .varicon::before {
margin-right: 8px;
line-height: 12px;
font-size: 20px;
opacity: 0.7;
}
#hooks_wrap .table_wrap tr:hover .varicon::before,
#hooks_wrap .table_wrap tr:hover td:first-child span {
opacity: 1;
}
#hooks_wrap .table_wrap tr.disabled:hover .varicon::before,
#hooks_wrap .table_wrap tr.disabled:hover td:first-child span {
opacity: 0.7;
}
#hooks_wrap .table_wrap tr.variants td {
text-align: center;
padding: 3px 0;
background: none;
text-transform: uppercase;
letter-spacing: 3px;
}
#hooks_wrap .create {
margin-top: 20px;
text-align: center;
}
#hooks_wrap .hooks_chart {
position: absolute;
top: 0;
left: 0;
width: 512px;
height: 512px;
}
#hooks_wrap .hooks_chart > span.label {
font-size: 8px;
position: absolute;
left: 3px;
bottom: 1px;
text-shadow: 0 0 3px #fff;
font-weight: bold;
}
#hooks_wrap .hooks_chart > div.grid {
position: absolute;
left: 0px;
bottom: 0px;
}
#hooks_wrap .hooks_chart > div.grid.horiz {
width: 100%;
border-top: 1px dashed #ccc;
}
#hooks_wrap .hooks_chart > div.grid.vert {
height: 100%;
border-right: 1px dashed #ccc;
}
#hooks_wrap .hooks_chart .canvas {
position: relative;
width: 512px;
height: 512px;
}
#hooks_wrap .hooks_chart .plot {
position: absolute;
width: 17px;
height: 17px;
background: #d0d0d0;
border: 3px solid #666;
box-shadow: 0 0 5px #777;
cursor: pointer;
z-index: 1;
}
#hooks_wrap .hooks_chart .plot:hover {
z-index: 2;
}
#hooks_wrap .hooks_chart .plot.casual {
border-radius: 16px;
}
#hooks_wrap .hooks_chart .plot.rated {
border-radius: 3px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
width: 15px;
height: 15px;
}
#hooks_wrap .hooks_chart .plot.variant {
border-style: double;
border-width: 5px;
}
#hooks_wrap .hooks_chart .plot.casual.variant {
width: 13px;
height: 13px;
}
#hooks_wrap .hooks_chart .plot.rated.variant {
width: 11px;
height: 11px;
}
#hooks_wrap .hooks_chart .plot.cancel {
background: #666;
}
#hook {
display: none;
width: 120px;
height: 120px;
color: #444;
text-align: center;
border: none;
box-shadow: 0 0 9px #333;
background: #d0d0d0;
}
#hooks_wrap .hooks_chart .plot:hover {
background-color: #f6f6f6;
}
#hooks_wrap .hooks_chart .plot:hover {
box-shadow: 0 0 9px #d85000 !important;
}
#hook .opponent {
display: block;
height: 20px;
line-height: 20px;
padding: 5px 0;
background: #666;
color: #eee;
overflow: hidden;
text-decoration: none;
}
#hook a.opponent:hover {
text-decoration: underline;
}
#hook .clearfix {
width: 100%;
height: 30px;
}
#hook .rating,
#hook .clock {
display: block;
width: 60px;
height: 20px;
padding: 5px 0;
font-size: 1.25em;
font-weight: bold;
}
#hook .rating {
float: right;
color: #bbb;
background: #666;
}
#hook .clock {
float: left;
color: #555;
}
#hook .clock.nope {
font-size: 2.3em;
padding-top: 3px;
line-height: 20px;
}
#hook .mode {
margin-top: 40px;
}
#hook .mode {
font-size: 1.25em;
display: block;
}
#hook .varicon::before {
font-size: 30px;
margin-right: 10px;
}
#hook .color {
position: absolute;
bottom: 5px;
left: 5px;
display: block;
width: 16px;
height: 16px;
background-position: 0 -240px;
}
#hook .color.black {
background-position: 0 -256px;
}
/*********** MISC *********/
#site_header {
position: relative;
}
#featured_game {
position: absolute;
top: 529px;
}
div.blog.undertable div.undertable_inner {
height: auto;
padding: 5px 5px 0 5px;
}
div.blog.undertable div.undertable_inner:hover {
overflow: hidden;
}
div.blog.undertable div.post {
overflow: hidden;
}
div.blog.undertable div.post a.image {
display: block;
float: left;
margin-right: 10px;
}
div.blog.undertable div.post a.image img {
height: 60px;
}
div.blog.undertable div.post .title {
font-weight: bold;
line-height: 2;
}
div.blog.undertable div.post time {
float: right;
font-weight: 100;
line-height: 2;
}
#lichess .enterable_list {
height: auto;
max-height: 193px;
}
#enterable_simuls td {
padding: 10px 5px;
}
#lichess .enterable_list td:first-child {
padding-left: 1em;
}
#enterable_tournaments tr.create td {
text-align: center;
}
#lichess .enterable_list a {
text-decoration: none;
}
#lichess .enterable_list .button {
padding: 4px 8px;
opacity: 0;
transition: 0.13s;
}
#lichess .enterable_list tr:hover .button {
opacity: 1;
}
#lichess .enterable_list td.name span {
font-size: 17px;
letter-spacing: -5px;
}
#lichess .enterable_list td.name span:last-child {
margin-right: 10px;
}
#lichess .enterable_list td.name a {
font-weight: bold;
}
#lichess .enterable_list tr.scheduled td.name a {
color: #d59120;
}
#lichess .enterable_list tr:not(.scheduled) td.name a {
color: #808080;
}
#lichess .enterable_list td:last-child {
width: 20px;
}
div.new_posts li {
margin: 0.6em 0;
padding-left: 9px;
line-height: 14px;
white-space: nowrap;
}
div.new_posts a {
margin-right: 6px;
}
div.new_posts li span.extract {
font-family: 'Roboto';
font-weight: 300;
}
#call_boxes {
position: absolute;
top: 0px;
right: 10px;
width: 250px;
z-index: 1;
}
#translation_call {
padding: 0.5em;
border: 1px solid #d0d0d0;
display: block;
border-radius: 2px;
text-decoration: none;
position: relative;
}
#translation_call .button {
margin: 5px 0 0 0;
display: inline-block;
}
#translation_call span.name {
font-weight: bold;
}
#translation_call div.progressbar {
margin-top: 0.5em;
background: #fff;
margin-bottom: 0.4em;
}
#daily_puzzle {
width: 224px;
position: absolute;
top: 529px;
left: 529px;
}
#daily_puzzle > div.vstext {
text-align: center;
}
div.game_config {
padding-bottom: 0;
}
div.game_config div.ui-buttonset {
margin-bottom: 1em;
}
div.game_config .ui-button-text {
text-transform: capitalize;
}
#config_level .ui-button-text {
padding-left: 0.82em;
padding-right: 0.82em;
}
div.game_config div.ui-slider {
font-size: 1.3em;
margin: 0 15px;
}
div.game_config .optional_config {
padding: 8px 0;
border-bottom: solid 1px #e4e4e4;
}
div.game_config .mode_choice {
margin-top: 1em;
}
div.game_config .optional_config,
div.game_config .ratings {
background: #f4f4f4;
border-top: solid 1px #e4e4e4;
}
div.game_config .label_select {
overflow: hidden;
text-align: left;
}
div.game_config .label_select.variant {
margin-bottom: 8px;
}
div.game_config .label_select label {
display: block;
float: left;
width: 144px;
text-align: right;
padding: 5px 0;
}
div.game_config .label_select select {
margin-left: 10px;
font-weight: bold;
padding: 5px 8px;
}
div.game_config .fen_position {
padding: 8px 0;
display: none;
}
div.game_config .fen_position .cg-board-wrap {
margin: 8px auto 0 auto;
}
div.game_config .fen_position .fen_form {
width: 95%;
margin: auto;
}
div.game_config .fen_position .fen_form input {
border: 1px solid #ccc;
width: 320px;
padding: 2px 3px;
}
div.game_config .fen_position .fen_form .button {
float: right;
}
div.game_config input {
font-family: monospace;
}
div.game_config input#fen.success {
border-color: #00aa00;
}
div.game_config input#fen.failure {
border-color: #ac524f;
}
div.game_config .slider {
padding-top: 5px;
text-align: left;
text-indent: 15px;
}
div.game_config .slider span {
font-weight: bold;
}
div.game_config label.pointer {
cursor: pointer;
}
div.game_config .ratings {
line-height: 50px;
width: 100%;
text-align: center;
}
div.game_config .ratings > div {
display: none;
}
div.game_config div.color_submits {
margin: 1em auto;
text-align: center;
}
div.game_config button {
display: inline-block;
margin: 0 5px;
}
div.game_config button:disabled {
opacity: 0.3;
}
div.game_config button.black,
div.game_config button.white {
width: 50px;
height: 50px;
padding: 5px;
}
div.game_config button.black span,
div.game_config button.white span {
width: 40px;
height: 40px;
padding: 0;
background-size: 40px 40px;
}
div.game_config button.white span {
background-image: url(../piece/cburnett/wK.svg);
}
div.game_config button.black span {
background-image: url(../piece/cburnett/bK.svg);
}
div.game_config button.random {
width: 75px;
height: 75px;
padding: 10px;
}
div.game_config div.color_submits button.random span {
background-image: url(../piece/cburnett/wbK.svg);
background-size: 55px 55px;
width: 55px;
height: 55px;
padding: 0;
}
#site_header a.paris_meetup {
color: #d59120;
font-weight: bold;
}
#timeline {
margin-top: 2em;
border-top: 1px solid #e4e4e4;
padding-top: 8px;
margin-left: -30px;
width: 230px;
font-size: 0.9em;
}
@media (max-width: 1070px) {
#timeline {
margin-left: 0px;
width: 200px;
}
#featured_game {
display: none;
}
}
#timeline .entries {
height: 380px;
overflow: hidden;
}
#timeline .entry {
padding-bottom: 8px;
border-bottom: 1px solid #e4e4e4;
margin-bottom: 8px;
font-family: 'Roboto';
font-weight: 300;
}
#timeline time {
font-size: 0.9em;
}
#timeline a {
font-family: 'Noto Sans';
font-weight: bold;
color: #a0a0a0;
text-decoration: none;
}
#timeline a:hover {
text-decoration: underline;
}
#timeline a.user_link {
padding-left: 0;
}
#timeline .links {
margin-top: 10px;
width: 100%;
}
#timeline .links a {
font-weight: normal;
}
#timeline a.more {
display: block;
float: right;
}
#timeline a.chat {
display: block;
float: left;
}