Add light theme
parent
7785c1b57e
commit
3e36f139f7
9
dark.css
9
dark.css
|
@ -9,3 +9,12 @@
|
||||||
.lichess_theme_dark.lichess_widget:hover {
|
.lichess_theme_dark.lichess_widget:hover {
|
||||||
background: #4A4A4A;
|
background: #4A4A4A;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lichess_theme_dark.lichess_long hr {
|
||||||
|
background: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lichess_theme_dark.lichess_widget b {
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
||||||
|
|
93
index.html
93
index.html
|
@ -5,19 +5,25 @@
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||||
<link rel="stylesheet" href="lichess_widgets.css" />
|
<link rel="stylesheet" href="lichess_widgets.css" />
|
||||||
<link rel="stylesheet" href="dark.css" />
|
<link rel="stylesheet" href="dark.css" />
|
||||||
|
<link rel="stylesheet" href="light.css" />
|
||||||
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
|
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
|
||||||
<script src="lichess_widgets.js"></script>
|
<script src="lichess_widgets.js"></script>
|
||||||
<style>
|
<style>
|
||||||
html {
|
html, body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-family: "Arial", sans-serif;
|
font-family: "Arial", sans-serif;
|
||||||
}
|
}
|
||||||
body {
|
.container {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
max-width: 950px;
|
max-width: 950px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 0;
|
}
|
||||||
|
#black_section {
|
||||||
|
display: block;
|
||||||
|
margin: 20px 0 0 0;
|
||||||
|
padding: 5px 0 20px 0;
|
||||||
|
background: #2a2a2a;
|
||||||
}
|
}
|
||||||
table {
|
table {
|
||||||
margin: 20px 0 0 0;
|
margin: 20px 0 0 0;
|
||||||
|
@ -32,9 +38,14 @@
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
#black_section blockcode {
|
||||||
|
background: #333;
|
||||||
|
color: #e0e0e0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="container">
|
||||||
<h1>Widgets for Lichess (Work in progress)</h1>
|
<h1>Widgets for Lichess (Work in progress)</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
@ -44,11 +55,80 @@
|
||||||
|
|
||||||
<blockcode>
|
<blockcode>
|
||||||
<link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/lichess_widgets.css" /><br />
|
<link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/lichess_widgets.css" /><br />
|
||||||
<link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/dark.css" /><br />
|
|
||||||
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script><br />
|
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script><br />
|
||||||
<script src="http://rubenwardy.github.io/lichess_widgets/lichess_widgets.js"></script>
|
<script src="http://rubenwardy.github.io/lichess_widgets/lichess_widgets.js"></script><br />
|
||||||
|
<!-- For the light theme --> <link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/light.css" /> <br />
|
||||||
|
<!-- For the dark theme --> <link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/dark.css" />
|
||||||
</blockcode>
|
</blockcode>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<script>lichess.profile("light", "rubenwardy", "Lichess");</script>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<blockcode>
|
||||||
|
<script>lichess.profile("light", "rubenwardy", "Lichess");</script>
|
||||||
|
</blockcode>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<script>lichess.profile("light", "rubenwardy");</script>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<blockcode>
|
||||||
|
<script>lichess.profile("light", "rubenwardy");</script>
|
||||||
|
</blockcode>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<script>lichess.profile_scores("light", "rubenwardy");</script>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<blockcode>
|
||||||
|
<script>lichess.profile_scores("light", "rubenwardy");</script>
|
||||||
|
</blockcode>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<script>lichess.profile_scores("light", "rubenwardy", "");</script>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<blockcode>
|
||||||
|
<script>lichess.profile_scores("light", "rubenwardy", "");</script>
|
||||||
|
</blockcode>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<script>lichess.profile_big("light", "rubenwardy");</script>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<blockcode>
|
||||||
|
<script>lichess.profile_big("light", "rubenwardy");</script>
|
||||||
|
</blockcode>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<script>lichess.profile_big("light", "rubenwardy", "My Lichess");</script>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<blockcode>
|
||||||
|
<script>lichess.profile_big("light", "rubenwardy", "My Lichess");</script>
|
||||||
|
</blockcode>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="black_section">
|
||||||
|
<div class="container">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
@ -112,3 +192,6 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</html>
|
||||||
|
|
|
@ -8,11 +8,6 @@
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lichess_widget b {
|
|
||||||
font-weight: 700;
|
|
||||||
font-size: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.lichess_widget img {
|
.lichess_widget img {
|
||||||
margin: 0 10px 0 0;
|
margin: 0 10px 0 0;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -30,7 +25,6 @@
|
||||||
|
|
||||||
.lichess_long hr {
|
.lichess_long hr {
|
||||||
margin: 6px 0 2px 0;
|
margin: 6px 0 2px 0;
|
||||||
background: #666;
|
|
||||||
border: none;
|
border: none;
|
||||||
height: 1px
|
height: 1px
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
/* Light Style */
|
||||||
|
.lichess_theme_light.lichess_widget {
|
||||||
|
background: #EEE;
|
||||||
|
border: 1px solid #E0E0E0;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lichess_theme_light.lichess_widget:hover {
|
||||||
|
background: #e0e0e0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lichess_theme_light..lichess_long hr {
|
||||||
|
background: #e0e0e0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lichess_theme_light.lichess_widget b {
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
Loading…
Reference in New Issue