Leaflet/docs/css/main.css

253 lines
3.8 KiB
CSS
Raw Normal View History

2014-04-22 20:05:11 +08:00
body {
2014-04-23 05:48:35 +08:00
font: 16px/1.5 'Open Sans', Arial, Helvetica, sans-serif;
2014-04-22 20:05:11 +08:00
color: #333;
}
.container {
2014-04-22 21:51:21 +08:00
max-width: 920px;
2014-04-23 04:54:27 +08:00
padding: 0 30px;
2014-04-22 20:05:11 +08:00
margin: 0 auto;
}
2014-04-22 20:27:03 +08:00
p {
margin: 1.4em 0;
}
2014-04-22 20:05:11 +08:00
.container code, .container pre code {
font-family: "Consolas", "Menlo", "Lucida Console", "Courier New", monospace;
}
.container pre code {
padding: 10px 15px;
background: white;
color: #444;
}
.container pre {
2014-04-22 21:51:21 +08:00
/*box-shadow: 0 0 15px rgba(0,0,0,0.1);
border-radius: 5px;*/
border: 1px dotted #aaa;
2014-04-23 04:54:27 +08:00
box-shadow: 0 0 15px rgba(0,0,0,0.05);
2014-04-22 20:05:11 +08:00
}
h1 {
margin-top: 50px;
2014-04-22 21:51:21 +08:00
text-align: center;
2014-04-22 20:05:11 +08:00
}
h1 a {
-webkit-transition: 0.8s all;
}
h1 a:hover, h1 a:focus {
-webkit-filter: hue-rotate(-70deg) saturate(1.5);
}
h3.tagline {
font-weight: 300;
font-size: 30px;
margin-top: -15px;
color: #777;
text-align: center;
margin-bottom: 30px;
2014-04-22 20:05:11 +08:00
}
h2 {
margin-top: 40px;
2014-04-23 04:54:27 +08:00
font-weight: 400;
font-size: 28px;
2014-04-22 20:05:11 +08:00
}
.container .map {
border: 1px solid #ccc;
}
.container .map:focus {
border-color: #999;
}
h2, h3, .nav {
font-family: 'Open Sans', sans-serif;
}
2014-04-25 00:12:27 +08:00
h3 {
margin-top: 2em;
color: #777;
}
2014-04-22 20:05:11 +08:00
.nav {
overflow: hidden;
list-style: none;
2014-04-23 04:54:27 +08:00
padding: 0 30px;
2014-04-22 20:05:11 +08:00
text-align: center;
2014-04-22 21:51:21 +08:00
font-size: 24px;
2014-04-22 20:05:11 +08:00
margin-bottom: 50px;
}
.nav li {
display: inline;
padding: 10px;
font-weight: 300;
2014-04-23 04:54:27 +08:00
color: #999;
2014-04-22 20:05:11 +08:00
}
.nav li a {
font-weight: 400;
text-decoration: none;
2014-04-23 04:54:27 +08:00
color: #0b3;
2014-04-22 20:05:11 +08:00
}
2014-04-22 21:51:21 +08:00
.nav li a:hover {
2014-04-23 04:54:27 +08:00
color: #0d5;
2014-04-22 21:51:21 +08:00
}
2014-04-22 20:05:11 +08:00
a {
2014-04-23 04:54:27 +08:00
color: #0a6;
2014-04-22 20:05:11 +08:00
}
.footer {
margin-top: 50px;
color: #777;
}
2014-04-22 21:51:21 +08:00
.usedby {
2014-04-22 22:29:42 +08:00
background: #f7f7f7;
2014-04-23 04:54:27 +08:00
margin: 30px 0 50px;
2014-04-22 22:29:42 +08:00
text-align: center;
padding: 5px 10px 10px;
2014-04-23 04:54:27 +08:00
box-shadow: inset 0 0 25px rgba(0,0,0,0.05);
2014-04-22 22:29:42 +08:00
}
.logo {
2014-04-23 04:54:27 +08:00
opacity: 0.5;
2014-04-22 22:29:42 +08:00
padding-top: 55px;
overflow: hidden;
height: 0;
margin-right: 20px;
display: inline-block;
background: url(https://www.mapbox.com/home/home@2x.png);
background-size: 300px 1360px;
2014-04-22 22:29:42 +08:00
}
.logo:hover {
opacity: 1;
2014-04-22 21:51:21 +08:00
}
2014-04-22 22:29:42 +08:00
.logo-github { background-position: 50% -660px; width: 110px; }
.logo-wpost { background-position: 50% -720px; width: 170px; }
.logo-pinterest { background-position: 50% -1260px; width: 115px; }
.logo-foursquare { background-position: 50% -360px; width: 135px; }
.logo-500px { background-position: 50% -1200px; width: 65px; }
.logo-usatoday { background-position: 50% -420px; width: 100px; }
.logo-npr { background-position: 50% -600px; width: 120px; }
.logo-ftimes { background-position: 50% -780px; width: 145px; }
.logo-hipmunk { background-position: 50% -540px; width: 125px; }
2014-04-23 04:54:27 +08:00
.logo-nps { background-position: 50% -960px; width: 45px; padding-top: 60px; position: relative; top: 5px;}
2014-04-24 21:24:41 +08:00
.clearfix:before,
.clearfix:after {
2014-04-23 04:54:27 +08:00
content: " "; /* 1 */
display: table; /* 2 */
}
2014-04-24 21:24:41 +08:00
.clearfix:after {
2014-04-23 04:54:27 +08:00
clear: both;
}
.features {
-webkit-column-count: 3;
}
.features ul {
padding-left: 1.2em;
margin: 0 0 1em;
}
.features h3 {
margin: 0.5em 0;
}
.features h4 {
margin: 0;
}
.quiet {
color: #999;
}
2014-04-23 05:48:35 +08:00
th, td {
text-align: left;
2014-04-25 00:12:27 +08:00
padding: 8px 10px;
border: 1px solid #ccc;
}
th {
background: #eee;
text-shadow: 1px 1px 0 white;
background-color: #eeeeee;
background-image: -webkit-linear-gradient(top, #eeeeee, #d7d7d7);
background-image: linear-gradient(to bottom, #eeeeee, #d7d7d7);
}
table {
width: 100%;
border-collapse: collapse;
2014-04-23 05:48:35 +08:00
}
2014-04-23 14:44:26 +08:00
.ext-link {
position: fixed;
right: 20px;
2014-04-23 14:44:26 +08:00
opacity: 0.5;
}
.ext-link:hover {
opacity: 1;
}
2014-04-23 14:44:26 +08:00
.github {
top: 20px;
2014-04-23 14:44:26 +08:00
}
.twitter {
top: 76px;
}
.forum {
top: 132px;
2014-04-23 14:44:26 +08:00
}
2014-04-24 21:24:41 +08:00
hr {
background: #ddd;
color: #ddd;
height: 1px;
margin: 0 0 1.4em;
border: none;
clear: both;
}
.example-img {
float: left;
margin: 0 18px 18px 0;
}
.post-date {
float: left;
width: 130px;
line-height: 1.6;
color: #999;
font-size: 18px;
}
2014-04-24 21:24:41 +08:00
.post-info {
overflow: hidden;
}
2014-04-24 21:24:41 +08:00
.post-title {
margin-top: 0;
}
2014-04-25 00:12:27 +08:00
.plugins td:first-child,
.plugins td:last-child {
white-space: nowrap;
}
2014-04-25 00:16:54 +08:00
h4 {
color: #999;
margin: 1em 0 0.5em;
}