Leaflet/docs/css/screen.css

581 lines
11 KiB
CSS
Raw Normal View History

2011-04-09 21:16:00 +08:00
body {
2012-12-20 23:57:21 +08:00
background: #f0f0f0 url(../images/paper.png);
2011-04-09 21:16:00 +08:00
}
2011-03-24 00:35:06 +08:00
.container {
2011-04-09 21:16:00 +08:00
background: white;
2012-07-17 04:56:58 +08:00
position: relative;
2012-07-17 06:11:39 +08:00
z-index: 1;
padding: 15px 40px 20px;
2011-03-24 00:35:06 +08:00
width: 790px;
2012-07-26 21:58:48 +08:00
/*border: 1px solid #dfdfdf;*/
border-top: 0;
2012-07-26 21:58:48 +08:00
box-shadow: 0 0 60px rgba(0,0,0,0.15);
2011-03-24 00:35:06 +08:00
}
2012-07-17 06:26:48 +08:00
h1 {
2012-12-20 23:57:21 +08:00
margin-bottom: 0;
2012-07-17 06:26:48 +08:00
}
2012-07-17 06:11:39 +08:00
h1 a {
display: block;
height: 0;
2012-07-17 06:11:39 +08:00
padding-top: 73px;
width: 220px;
overflow: hidden;
background: url(../images/logo.png) 0 0 no-repeat;
margin-left: -10px;
2012-07-17 06:11:39 +08:00
margin-bottom: 8px;
text-decoration: none;
-webkit-transition: 0.8s all;
/*-webkit-animation-duration: 2s;
2012-07-18 18:43:23 +08:00
-webkit-animation-delay: 15s;
-webkit-animation-name: autumn;
-webkit-animation-iteration-count: 2;
-webkit-animation-direction: alternate;*/
2011-03-24 00:35:06 +08:00
}
@-webkit-keyframes autumn {
from { -webkit-filter: none; }
2012-07-18 18:43:23 +08:00
to { -webkit-filter: hue-rotate(-70deg) saturate(1.5); }
}
h1 a:hover, h1 a:focus {
2012-07-18 18:43:23 +08:00
-webkit-filter: hue-rotate(-70deg) saturate(1.5);
}
2011-03-24 00:35:06 +08:00
h2 {
font-size: 1.8em;
2012-07-24 06:41:55 +08:00
margin-top: 1.3em;
2012-07-24 15:41:48 +08:00
margin-bottom: 1em;
font-weight: bold;
2012-07-24 15:41:48 +08:00
padding: 4px 12px 3px;
margin-left: 0;
margin-right: 0;
2011-04-06 22:47:11 +08:00
background: #edeeef;
2011-04-06 17:43:50 +08:00
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
color: white;
2011-04-06 17:43:50 +08:00
background-color: #b0de5c;
background-image: -moz-linear-gradient(top, #b0de5c, #82cb00); /* FF3.6 */
background-image: -o-linear-gradient(top, #b0de5c, #82cb00); /* Opera 11.10+ */
background-image: -webkit-gradient(linear, left top, left bottom, from(#b0de5c), to(#82cb00)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #b0de5c, #82cb00); /* Chrome 10+, Saf5.1+ */
background-image: linear-gradient(top, #b0de5c, #82cb00);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#b0de5c', EndColorStr='#82cb00'); /* IE6<45>IE9 */
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
2012-07-24 15:41:48 +08:00
text-shadow: 0 -1px 1px rgba(0,0,0,0.35);
cursor: pointer;
}
.api-page h2[id]:before,
.api-page tr[id] td:first-child:before {
content:'Permalink';
display:inline-block;
margin:0px 5px 0px -35px;
width:30px;
height:20px;
line-height:20px;
vertical-align:baseline;
background:url(../images/sprite.png) -0px -0px no-repeat;
opacity:0.2;
border-radius:50%;
text-indent:-9999px;
border-radius:50%;
overflow:hidden;
}
.api-page tr[id] td:first-child:before {
opacity:0;
}
.api-page tr[id]:hover td:first-child:before {
opacity:1;
}
.api-page h2[id]:hover:before { opacity:1; }
2012-07-19 16:32:09 +08:00
.api-page h2 {
margin-top: 2.5em;
}
2011-04-01 21:09:19 +08:00
h3 {
margin-top: 1.5em;
}
h3.alt {
margin-top: 0;
}
2011-03-28 23:27:20 +08:00
h4 {
2012-07-21 01:10:30 +08:00
margin-bottom: 0.5em;
2011-03-28 23:27:20 +08:00
line-height: inherit;
2012-07-21 01:10:30 +08:00
font-size: 1.1em;
2011-03-28 23:27:20 +08:00
font-weight: bold;
2012-07-21 01:10:30 +08:00
color: #777;
2011-03-28 23:27:20 +08:00
}
2012-07-19 16:32:09 +08:00
2011-04-06 23:35:45 +08:00
h3.alt {
2011-04-06 22:47:11 +08:00
color: #999;
font-family: Georgia, serif;
2011-03-24 00:35:06 +08:00
font-style: italic;
font-weight: normal;
2012-12-20 23:57:21 +08:00
font-size: 1.7em;
2011-03-24 00:35:06 +08:00
}
.container code, .container pre code {
2012-11-06 02:58:42 +08:00
font-family: "Consolas", "Menlo", "Lucida Console", "Courier New", monospace;
2011-04-06 23:35:45 +08:00
}
.container pre code {
padding: 10px 15px;
2011-03-24 00:35:06 +08:00
border: 1px solid #ccc;
2011-04-06 23:35:45 +08:00
background: white;
color: #444;
2011-04-06 23:35:45 +08:00
box-shadow: 0 0 15px #ddd;
2011-04-06 23:56:00 +08:00
-moz-box-shadow: 0 0 15px #ddd;
-webkit-box-shadow: 0 0 15px #ddd;
border-radius: 5px;
2011-04-06 23:35:45 +08:00
}
2012-06-27 18:33:33 +08:00
pre code a {
2012-07-12 06:21:04 +08:00
text-decoration: none;
}
2012-06-27 18:33:33 +08:00
pre code a:hover {
2012-07-12 06:21:04 +08:00
text-decoration: underline;
}
2012-07-19 22:11:26 +08:00
p code, td:last-child code {
color: #666;
}
2013-06-26 23:16:14 +08:00
p, ul, ol, table {
font-size: 13px;
}
code {
font-size: 12px;
}
/*.api-page td:last-child pre {
margin-top: 0.5em;
}*/
table {
border-collapse: collapse;
2012-07-12 06:18:00 +08:00
box-shadow: 0 3px 15px #f0f0f0;
2011-03-24 00:35:06 +08:00
}
th {
2012-07-19 22:11:26 +08:00
background-color: #eeeeee;
background-image: -webkit-gradient(linear, left top, left bottom, from(#eeeeee), to(#d7d7d7)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #eeeeee, #d7d7d7); /* Chrome 10+, Saf5.1+, iOS 5+ */
background-image: -moz-linear-gradient(top, #eeeeee, #d7d7d7); /* FF3.6+ */
background-image: -o-linear-gradient(top, #eeeeee, #d7d7d7); /* Opera 11.10+ */
background-image: linear-gradient(to bottom, #eeeeee, #d7d7d7);
text-shadow: 1px 1px 0 white;
padding: 5px 10px;
2011-04-06 23:35:45 +08:00
}
th, td {
2012-07-12 06:00:34 +08:00
vertical-align: top;
2012-07-12 06:18:00 +08:00
/*line-height: 1.4;*/
2011-04-06 23:35:45 +08:00
}
2012-07-12 06:18:00 +08:00
td {
2012-07-19 22:11:26 +08:00
padding: 8px 10px;
2012-07-12 06:18:00 +08:00
/*border-right: 1px solid #eee;*/
}
2011-04-06 23:35:45 +08:00
2011-03-24 00:35:06 +08:00
.nav {
2011-04-06 22:47:11 +08:00
padding: 0;
2012-07-25 06:09:31 +08:00
margin: 28px 0 28px;
2011-04-06 23:35:45 +08:00
list-style: none;
2011-04-06 22:47:11 +08:00
font-size: 1.2em;
border: 1px solid #dcddde;
overflow: hidden;
2011-04-06 23:56:00 +08:00
background-color: #ffffff;
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eaebec)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #ffffff, #eaebec); /* Chrome 10+, Saf5.1+, iOS 5+ */
background-image: -moz-linear-gradient(top, #ffffff, #eaebec); /* FF3.6+ */
background-image: -o-linear-gradient(top, #ffffff, #eaebec); /* Opera 11.10+ */
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#eff0f1'); /* IE6<45>IE9 */
2011-04-06 23:56:00 +08:00
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
2011-04-06 22:47:11 +08:00
box-shadow: 0 0 8px #eee;
2011-04-06 23:56:00 +08:00
-moz-box-shadow: 0 0 8px #eee;
-webkit-box-shadow: 0 0 8px #eee;
2011-04-06 22:47:11 +08:00
}
2011-04-06 23:35:45 +08:00
.nav li a, .nav li span {
float: left;
padding: 0 13px;
2011-04-06 23:35:45 +08:00
border-right: 1px solid #ddd;
text-shadow: 1px 1px 0 white;
line-height: 40px;
2011-04-06 23:35:45 +08:00
}
2011-04-06 22:47:11 +08:00
.nav a {
text-decoration: none;
color: #000;
background-color: rgba(0,0,0,0);
background-repeat: no-repeat;
-webkit-transition: 0.08s all;
2011-04-06 22:47:11 +08:00
}
.nav li span {
color: #000;
2011-04-06 23:35:45 +08:00
background-color: #e8e9ea;
background-color: #f3f4f5;
background-image: -webkit-gradient(linear, left top, left bottom, from(#f3f4f5), to(#cacbcc)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #f3f4f5, #cacbcc); /* Chrome 10+, Saf5.1+, iOS 5+ */
background-image: -moz-linear-gradient(top, #f3f4f5, #cacbcc); /* FF3.6+ */
background-image: -o-linear-gradient(top, #f3f4f5, #cacbcc); /* Opera 11.10+ */
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f8f9fa', EndColorStr='#d4d5d6');
2011-04-06 22:47:11 +08:00
}
.nav li a:hover, .nav li a:focus {
2011-04-06 22:47:11 +08:00
color: black;
background-color: rgba(0,0,0,0.03);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#eff0f1', EndColorStr='#f6f7f8');
2011-04-06 22:47:11 +08:00
}
2012-07-23 15:20:49 +08:00
.nav li a.active {
color: black;
background-color: rgba(0,0,0,0.06);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#eff0f1', EndColorStr='#f6f7f8');
}
2011-04-06 22:47:11 +08:00
.nav li a.github-link,
2012-07-17 21:04:55 +08:00
.nav li a.twitter-link,
.nav li a.forum-link {
font-size: 12px;
color: #555;
2011-04-06 22:47:11 +08:00
float: right;
border-right: none;
border-left: 1px solid #ddd;
2012-07-18 05:32:50 +08:00
padding-left: 30px;
padding-right: 10px;
filter: none;
background-position: 9px 12px;
}
.nav li a.github-link {
background-image: url(../images/github.png);
2012-07-18 05:32:50 +08:00
background-position: 10px 12px;
padding-left: 32px;
2011-03-24 00:35:06 +08:00
}
.nav li a.twitter-link {
background-image: url(../images/twitter.png);
}
.nav li a.forum-link {
padding-right: 12px;
background-image: url(../images/forum.png);
}
.nav li a.github-link:hover,
.nav li a.twitter-link:hover,
.nav li a.forum-link:hover {
color: black;
2012-07-17 21:04:55 +08:00
}
2011-03-24 00:41:52 +08:00
#forkme {
position: absolute;
top: 0;
right: 0;
2011-03-24 00:41:52 +08:00
border: 0;
opacity: 0.3;
-webkit-filter: blur(1px);
-webkit-transform: scale(0.8);
-webkit-transform-origin: 100% 0;
-webkit-transition: all 0.3s ease-out; /* Saf3.2+, Chrome */
-moz-transition: all 0.3s ease-out; /* FF4+ */
-o-transition: all 0.3s ease-out; /* Opera 10.5+ */
transition: all 0.3s ease-out;
2011-03-24 20:23:37 +08:00
}
a:hover #forkme, a:focus #forkme {
2011-04-06 22:47:11 +08:00
opacity: 1;
-webkit-filter: none;
-webkit-transform: scale(1);
2011-03-24 22:18:53 +08:00
}
2011-03-28 23:37:24 +08:00
#toc {
padding-left: 20px;
2011-03-28 20:36:32 +08:00
}
2011-04-06 23:35:45 +08:00
#toc ul {
list-style-type: none;
padding-left: 0;
}
#toc .colborder {
padding-right: 14px;
}
2011-03-28 20:36:32 +08:00
#map-class {
2011-04-06 23:35:45 +08:00
margin-top: 1em;
2011-03-28 20:36:32 +08:00
}
a.nodocs {
color: #bbb;
2011-04-01 22:14:41 +08:00
}
2011-04-01 22:14:41 +08:00
#features {
margin-top: -1.5em;
}
2011-04-06 23:35:45 +08:00
#features .quiet {
color: #777;
}
.noimpl {
color: #bbb;
}
2012-07-26 21:12:20 +08:00
.container .map {
border: 1px solid #ccc;
margin: 1.5em 0;
}
.container .map:focus {
border-color: #999;
}
2012-07-26 21:12:20 +08:00
2011-04-16 01:30:42 +08:00
h3 span {
color: #888;
}
h3.alt a {
color: #56b1ee;
text-decoration: none;
}
h3.alt a:hover {
text-decoration: underline;
}
2011-04-27 19:41:58 +08:00
.example-img {
float: left;
2011-04-27 19:41:58 +08:00
margin: 0 18px 18px 0;
2011-05-18 19:54:58 +08:00
padding: 1px;
}
.bordered-img {
padding: 0;
border: 1px solid #ddd;
}
.text-cut[class] {
font-size: 0;
color: white;
}
.text-cut:after {
content: attr(data-cut);
font-size: 12px;
color: #777;
}
2012-02-25 18:46:14 +08:00
.last ul {
margin-right: 0;
2012-06-27 18:33:33 +08:00
}
2012-07-06 17:42:00 +08:00
2012-07-11 19:33:56 +08:00
table td {
color: #666;
}
table td:first-child {
color: #777;
}
table td:last-child {
color: black;
}
table td code i {
2012-07-23 17:45:18 +08:00
color: #00A707;
2012-07-11 19:33:56 +08:00
}
table td code b {
color: black;
font-weight: normal;
2012-07-12 16:22:58 +08:00
}
2012-07-25 21:24:11 +08:00
.width250 {
2012-07-12 16:22:58 +08:00
width: 250px;
}
2012-07-25 21:24:11 +08:00
.width200 {
2012-07-12 16:22:58 +08:00
width: 200px;
}
2012-07-25 21:24:11 +08:00
.width300 {
2012-07-12 16:22:58 +08:00
width: 300px;
}
2012-07-25 21:24:11 +08:00
.width100 {
2012-07-12 16:22:58 +08:00
width: 100px;
}
2012-07-25 21:24:11 +08:00
.width140 {
2012-07-21 01:10:30 +08:00
width: 140px;
}
2012-07-25 21:24:11 +08:00
.minwidth {
2012-07-12 16:22:58 +08:00
width: 1px;
}
table.factory-table {
width: 1px;
}
table.factory-table td, table.factory-table th {
white-space: nowrap;
color: black;
}
.factory-usage {
white-space: nowrap;
}
.factory-usage code {
color: black;
2012-07-17 04:56:58 +08:00
}
.social-buttons {
2012-12-20 23:57:21 +08:00
margin: 18px 0 0;
2012-07-17 04:56:58 +08:00
padding: 6px 0 2px 8px;
background: #f3f3f3;
2012-07-17 04:56:58 +08:00
position: absolute;
top: 10px;
right: 40px;
border-radius: 5px;
}
.twitter-follow-button {
2012-10-26 17:06:53 +08:00
margin-left: 10px;
}
.footer {
margin-top: 2.5em;
}
2012-07-19 00:12:01 +08:00
dl {
overflow: hidden;
}
dl dt {
font-size: 14px;
font-weight: normal;
float: left;
clear: left;
width: 160px;
}
dl dd {
margin-bottom: 2em;
float: left;
width: 500px;
}
.plugins td:first-child, .plugins td:last-child {
white-space: nowrap;
}
.plugins td {
color: black;
}
2012-07-23 17:45:18 +08:00
#back-to-top {
text-decoration: none;
padding: 0px 10px 2px;
background: white;
color: black;
font-weight: bold;
font-size: 16px;
position: fixed;
top: -1px;
left: 0;
box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
}
.api-page td pre {
margin: 1em 0 0;
}
.api-page td pre code {
padding: 0 10px;
border: 0;
box-shadow: none;
}
2012-07-25 06:09:31 +08:00
p.notice {
border: none;
border-radius: 10px;
color: #444;
background: #DBF8A7;
padding: 5px 10px;
margin-bottom: 1.5em;
}
2012-07-25 18:05:51 +08:00
.usedby a {
text-decoration: none;
margin: 0 2px;
color: #777;
2012-10-18 00:05:24 +08:00
font-size: 13px;
2012-07-25 18:05:51 +08:00
}
.usedby a:hover {
text-decoration: underline;
color: black;
}
.usedby {
background: #f3f3f3;
border-radius: 5px;
padding: 5px 7px;
margin: 1.5em -7px;
white-space: nowrap;
overflow: hidden;
}
2012-07-29 07:20:15 +08:00
.post-title {
margin-top: 0;
}
.post-date {
color: #777;
font-size: 18px;
line-height: 1;
}
.post-meta {
color: #888;
margin-top: -1em;
}
2012-07-30 06:34:17 +08:00
#disqus_thread {
margin-top: 3em;
}
tr:target {
background: yellow;
-webkit-animation: highlight 2s ease 0.5s 1 normal forwards;
-moz-animation: highlight 2s ease 0.5s 1 normal forwards;
-o-animation: highlight 2s ease 0.5s 1 normal forwards;
animation: highlight 2s ease 0.5s 1 normal forwards;
}
@-webkit-keyframes highlight {
0% { background: yellow; }
100% { background: white; }
}
@-moz-keyframes highlight {
0% { background: yellow; }
100% { background: white; }
}
@keyframes highlight {
0% { background: yellow; }
100% { background: white; }
}