Initial site-wide typography improvments and UI/UX adjustments/fixes.
This commit is contained in:
parent
be65647ed7
commit
b30501af4b
@ -28,7 +28,7 @@
|
|||||||
<link rel="stylesheet" href="{{ root }}docs/css/normalize.css" />
|
<link rel="stylesheet" href="{{ root }}docs/css/normalize.css" />
|
||||||
<link rel="stylesheet" href="{{ root }}docs/css/main.css" />
|
<link rel="stylesheet" href="{{ root }}docs/css/main.css" />
|
||||||
|
|
||||||
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>
|
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,300' rel='stylesheet' type='text/css'>
|
||||||
|
|
||||||
<script src="{{ root }}docs/highlight/highlight.pack.js"></script>
|
<script src="{{ root }}docs/highlight/highlight.pack.js"></script>
|
||||||
<link rel="stylesheet" href="{{ root }}docs/highlight/styles/github.css" />
|
<link rel="stylesheet" href="{{ root }}docs/highlight/styles/github.css" />
|
||||||
@ -106,14 +106,16 @@
|
|||||||
{{ content }}
|
{{ content }}
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<p>© 2014 <a href="http://agafonkin.com/en">Vladimir Agafonkin</a>. Maps © <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors.</p>
|
<p>© 2015 <a href="http://agafonkin.com/en">Vladimir Agafonkin</a>. Maps © <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a class="ext-link twitter" href="http://twitter.com/LeafletJS" title="Follow LeafletJS on Twitter"><img alt="Follow LeafletJS on Twitter" src="{{root}}docs/images/twitter-round.png" width="46" /></a>
|
<nav class="ext-links">
|
||||||
<a class="ext-link github" href="http://github.com/Leaflet/Leaflet" title="View Source on GitHub"><img alt="View Source on GitHub" src="{{root}}docs/images/github-round.png" width="46" /></a>
|
<a class="ext-link twitter" href="http://twitter.com/LeafletJS" title="Follow LeafletJS on Twitter"><img alt="Follow LeafletJS on Twitter" src="{{root}}docs/images/twitter-round.png" width="46" /></a>
|
||||||
<a class="ext-link forum" href="https://groups.google.com/forum/#!forum/leaflet-js" title="Ask for help on the Leaflet forum"><img alt="Official Leaflet forum" src="{{root}}docs/images/forum-round.png" width="46" /></a>
|
<a class="ext-link github" href="http://github.com/Leaflet/Leaflet" title="View Source on GitHub"><img alt="View Source on GitHub" src="{{root}}docs/images/github-round.png" width="46" /></a>
|
||||||
|
<a class="ext-link forum" href="https://groups.google.com/forum/#!forum/leaflet-js" title="Ask for help on the Leaflet forum"><img alt="Official Leaflet forum" src="{{root}}docs/images/forum-round.png" width="46" /></a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
hljs.tabReplace = ' ';
|
hljs.tabReplace = ' ';
|
||||||
|
@ -1,16 +1,31 @@
|
|||||||
|
|
||||||
/* general styles */
|
/* general styles */
|
||||||
|
|
||||||
body {
|
html, body, input, select, button, textarea, table {
|
||||||
font: 16px/1.5 'Open Sans', Arial, Helvetica, sans-serif;
|
font-size: 100%;
|
||||||
color: #333;
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
line-height: 1.5;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin: 24px 0;
|
margin: 24px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #0a6;
|
color: #1EB300;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a:hover, a:focus {
|
||||||
|
color: #160;
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
background: #ddd;
|
background: #ddd;
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
@ -34,41 +49,60 @@ table {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
th, td {
|
th, td {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 8px 10px;
|
border: 0;
|
||||||
border: 1px solid #ccc;
|
padding: 1em;
|
||||||
vertical-align: top;
|
|
||||||
}
|
}
|
||||||
th {
|
|
||||||
background: #eee;
|
table td {
|
||||||
text-shadow: 1px 1px 0 white;
|
color: #666;
|
||||||
background-color: #eeeeee;
|
}
|
||||||
background-image: -webkit-linear-gradient(top, #eeeeee, #d7d7d7);
|
|
||||||
background-image: linear-gradient(to bottom, #eeeeee, #d7d7d7);
|
table td:first-child {
|
||||||
|
color: #777;
|
||||||
|
}
|
||||||
|
|
||||||
|
table td:last-child {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
table td code i {
|
||||||
|
color: #00A707;
|
||||||
|
}
|
||||||
|
|
||||||
|
table td code b {
|
||||||
|
color: black;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
table tbody tr {
|
||||||
|
background-color: #fafafa;
|
||||||
|
}
|
||||||
|
|
||||||
|
table tbody tr:nth-child(odd) {
|
||||||
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* headings */
|
/* headings */
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin: 50px 0 20px;
|
margin: 30px 0 20px;
|
||||||
font-weight: 400;
|
padding-top: 20px;
|
||||||
font-size: 28px;
|
font-weight: 400;
|
||||||
font-weight: bold;
|
font-size: 2em;
|
||||||
padding: 3px 15px 5px;
|
font-weight: 300;
|
||||||
margin-bottom: 22px;
|
color: black;
|
||||||
background: #edeeef;
|
}
|
||||||
|
|
||||||
color: white;
|
.container > h2:first-child {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
background-color: #b0de5c;
|
h2:target {
|
||||||
background-image: -webkit-linear-gradient(top, #b0de5c, #82cb00);
|
color: #1EB300;
|
||||||
background-image: linear-gradient(top, #b0de5c, #82cb00);
|
|
||||||
|
|
||||||
border-radius: 7px;
|
|
||||||
|
|
||||||
text-shadow: 0 -1px 1px rgba(0,0,0,0.35);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
@ -84,8 +118,8 @@ h4 {
|
|||||||
/* general layout */
|
/* general layout */
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
max-width: 920px;
|
max-width: 54em;
|
||||||
padding: 0 30px;
|
padding: 0 6em 1.5em;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
.footer {
|
.footer {
|
||||||
@ -97,16 +131,28 @@ h4 {
|
|||||||
/* header */
|
/* header */
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin: 50px 0 20px;
|
margin: 1.25em 0 1.5em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 a {
|
h1 a {
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
|
padding: 0 2em;
|
||||||
-webkit-transition: 0.8s all;
|
-webkit-transition: 0.8s all;
|
||||||
-webkit-animation: leafanim 3s ease 3s 1 normal none;
|
-webkit-animation: leafanim 3s ease 3s 1 normal none;
|
||||||
}
|
transition: 0.8s all;
|
||||||
|
animation: leafanim 3s ease 3s 1 normal none;
|
||||||
|
}
|
||||||
|
|
||||||
@-webkit-keyframes leafanim {
|
@-webkit-keyframes leafanim {
|
||||||
50% { -webkit-filter: hue-rotate(-70deg) saturate(1.2); }
|
50% { -webkit-filter: hue-rotate(-70deg) saturate(1.2); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes leafanim {
|
||||||
|
50% { -webkit-filter: hue-rotate(-70deg) saturate(1.2); }
|
||||||
|
}
|
||||||
|
|
||||||
h1 a:hover, h1 a:focus {
|
h1 a:hover, h1 a:focus {
|
||||||
-webkit-filter: hue-rotate(-70deg) saturate(1.5);
|
-webkit-filter: hue-rotate(-70deg) saturate(1.5);
|
||||||
}
|
}
|
||||||
@ -130,26 +176,29 @@ h3.tagline {
|
|||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav li {
|
.nav li {
|
||||||
display: inline;
|
display: inline;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
font-weight: 300;
|
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav li a {
|
.nav li a {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #0b3;
|
|
||||||
}
|
}
|
||||||
.nav li a:hover {
|
|
||||||
color: #0d5;
|
.ext-links {
|
||||||
|
position: fixed;
|
||||||
|
top: 1.5em;
|
||||||
|
right: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ext-link {
|
.ext-link {
|
||||||
position: fixed;
|
display: block;
|
||||||
right: 20px;
|
opacity: 0.5;
|
||||||
opacity: 0.5;
|
-webkit-animation: fadein 1s;
|
||||||
-webkit-animation: fadein 1s;
|
animation: fadein 1s;
|
||||||
}
|
}
|
||||||
.ext-link:hover {
|
.ext-link:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
@ -158,14 +207,9 @@ h3.tagline {
|
|||||||
from { opacity: 0; }
|
from { opacity: 0; }
|
||||||
to { opacity: 0.5; }
|
to { opacity: 0.5; }
|
||||||
}
|
}
|
||||||
.github {
|
@keyframes fadein {
|
||||||
top: 20px;
|
from { opacity: 0; }
|
||||||
}
|
to { opacity: 0.5; }
|
||||||
.twitter {
|
|
||||||
top: 76px;
|
|
||||||
}
|
|
||||||
.forum {
|
|
||||||
top: 132px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -173,16 +217,16 @@ h3.tagline {
|
|||||||
|
|
||||||
.container code, .container pre code {
|
.container code, .container pre code {
|
||||||
font-family: "Consolas", "Menlo", "Lucida Console", "Courier New", monospace;
|
font-family: "Consolas", "Menlo", "Lucida Console", "Courier New", monospace;
|
||||||
|
-webkit-font-smoothing: subpixel-antialiased;
|
||||||
}
|
}
|
||||||
.container pre code {
|
.container pre code {
|
||||||
padding: 10px 15px;
|
padding: .75em 1em;
|
||||||
background: white;
|
background: white;
|
||||||
color: #444;
|
color: #444;
|
||||||
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
.container pre {
|
.container pre {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border: 1px dotted #aaa;
|
|
||||||
box-shadow: 0 0 15px rgba(0,0,0,0.05);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.container .map {
|
.container .map {
|
||||||
@ -264,8 +308,15 @@ h2.usedby-title {
|
|||||||
|
|
||||||
.example-img {
|
.example-img {
|
||||||
float: left;
|
float: left;
|
||||||
margin: 0 18px 18px 0;
|
width: 10em;
|
||||||
|
max-width: 100%;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin: 0 1.5em 1.5em 0;
|
||||||
|
border: thin solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.examples .container h3 {
|
||||||
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
.post-date {
|
.post-date {
|
||||||
float: left;
|
float: left;
|
||||||
@ -288,6 +339,11 @@ h2.usedby-title {
|
|||||||
.plugins td:last-child a {
|
.plugins td:last-child a {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.plugins td:first-child a {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
.plugins-page .toc-col {
|
.plugins-page .toc-col {
|
||||||
float: left;
|
float: left;
|
||||||
width: 230px;
|
width: 230px;
|
||||||
@ -326,6 +382,10 @@ h2.usedby-title {
|
|||||||
.api-page table td:last-child {
|
.api-page table td:last-child {
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
.api-page table td:last-child code {
|
||||||
|
word-break: break-word;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
.api-page table td code i {
|
.api-page table td code i {
|
||||||
color: #9a9;
|
color: #9a9;
|
||||||
}
|
}
|
||||||
@ -373,7 +433,7 @@ tr:target {
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
.api-page h2[id]:before {
|
.api-page h2[id]:before {
|
||||||
margin-left: -40px;
|
margin-left: -40px;
|
||||||
@ -381,11 +441,18 @@ tr:target {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.api-page tr[id] td:first-child:before {
|
.api-page tr[id] td:first-child:before {
|
||||||
opacity:0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.api-page tr[id]:hover td:first-child:before {
|
.api-page tr[id]:hover td:first-child:before {
|
||||||
opacity:1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.api-page h2[id]:hover:before { opacity:1; }
|
.api-page h2[id]:hover:before { opacity: 1; }
|
||||||
|
|
||||||
|
@media (-webkit-min-device-pixel-ratio: 1.25),(min-resolution: 120dpi) {
|
||||||
|
.api-page h2[id]:before,
|
||||||
|
.api-page tr[id] td:first-child:before {
|
||||||
|
background-image: url(../images/sprite.svg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: v2
|
layout: v2
|
||||||
title: Tutorials
|
title: Tutorials
|
||||||
|
bodyclass: examples
|
||||||
---
|
---
|
||||||
|
|
||||||
## Leaflet Tutorials
|
## Leaflet Tutorials
|
||||||
|
Loading…
Reference in New Issue
Block a user