Leaflet/docs/css/screen.css
Vladimir Agafonkin 925d764b4c first design pass
2015-06-30 14:00:53 +03:00

552 lines
10 KiB
CSS
Raw Blame History

body {
background: #f0f0f0 url(../images/paper.png);
}
.container {
background: white;
position: relative;
z-index: 1;
padding: 15px 40px 20px;
width: 790px;
/*border: 1px solid #dfdfdf;*/
border-top: 0;
box-shadow: 0 0 60px rgba(0,0,0,0.15);
}
h1 {
margin-bottom: 0;
}
h1 a {
display: block;
height: 0;
padding-top: 73px;
width: 220px;
overflow: hidden;
background: url(../images/logo.png) 0 0 no-repeat;
margin-left: -10px;
margin-bottom: 8px;
text-decoration: none;
-webkit-transition: 0.8s all;
}
h1 a:hover, h1 a:focus {
-webkit-filter: hue-rotate(-70deg) saturate(1.5);
}
h2 {
font-size: 1.8em;
margin-top: 20px;
margin-bottom: 16px;
font-weight: bold;
padding: 4px 12px 3px;
margin-left: 0;
margin-right: 0;
background: #edeeef;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
color: white;
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;
text-shadow: 0 -1px 1px rgba(0,0,0,0.35);
}
.api-page h2, .plugins-page h2, .plugins-page h3 {
cursor: pointer;
}
.api-page h2[id]:before,
.plugins-page h2[id]:before,
.plugins-page h3[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;
overflow: hidden;
cursor: pointer;
position: absolute;
}
.plugins-page h3[id]:before {
margin: 0px 5px 0px -23px;
}
.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,
.plugins-page h2[id]:hover:before,
.plugins-page h3[id]:hover:before {
opacity:1;
}
.api-page h2 {
margin-top: 2.5em;
}
h3 {
margin-top: 1.5em;
}
h3.alt {
margin-top: 0;
}
h4 {
margin-bottom: 0.5em;
line-height: inherit;
font-size: 1.1em;
font-weight: bold;
color: #777;
}
h3.alt {
color: #999;
font-family: Georgia, serif;
font-style: italic;
font-weight: normal;
font-size: 1.7em;
}
.container code, .container pre code {
font-family: "Consolas", "Menlo", "Lucida Console", "Courier New", monospace;
}
.container pre code {
padding: 10px 15px;
border: 1px solid #ccc;
background: white;
color: #444;
box-shadow: 0 0 15px #ddd;
border-radius: 5px;
}
pre code a {
text-decoration: none;
}
pre code a:hover {
text-decoration: underline;
}
p code, td:last-child code {
color: #666;
}
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;
box-shadow: 0 3px 15px #f0f0f0;
}
th {
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;
}
th, td {
vertical-align: top;
/*line-height: 1.4;*/
}
td {
padding: 8px 10px;
/*border-right: 1px solid #eee;*/
}
.nav {
padding: 0;
margin: 28px 0 28px;
list-style: none;
font-size: 1.2em;
border: 1px solid #dcddde;
overflow: hidden;
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-IE9 */
border-radius: 10px;
box-shadow: 0 0 8px #eee;
}
.nav li a, .nav li span {
float: left;
padding: 0 13px;
border-right: 1px solid #ddd;
text-shadow: 1px 1px 0 white;
line-height: 40px;
}
.nav a {
text-decoration: none;
color: #000;
background-color: rgba(0,0,0,0);
background-repeat: no-repeat;
-webkit-transition: 0.08s all;
}
.nav li span {
color: #000;
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');
}
.nav li a:hover, .nav li a:focus {
color: black;
background-color: rgba(0,0,0,0.03);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#eff0f1', EndColorStr='#f6f7f8');
}
.nav li a.active {
color: black;
background-color: rgba(0,0,0,0.06);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#eff0f1', EndColorStr='#f6f7f8');
}
.nav li a.github-link,
.nav li a.twitter-link,
.nav li a.forum-link {
font-size: 12px;
color: #555;
float: right;
border-right: none;
border-left: 1px solid #ddd;
padding-left: 30px;
padding-right: 10px;
filter: none;
background-position: 9px 12px;
}
.nav li a.github-link {
background-image: url(../images/github.png);
background-position: 10px 12px;
padding-left: 32px;
}
.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;
}
#toc {
padding-left: 20px;
}
#toc ul {
list-style-type: none;
padding-left: 0;
}
#toc .colborder {
padding-right: 14px;
}
#map-class {
margin-top: 1em;
}
a.nodocs {
color: #bbb;
}
#features {
margin-top: -1.5em;
}
#features .quiet {
color: #777;
}
.noimpl {
color: #bbb;
}
.container .map {
border: 1px solid #ccc;
margin: 1.5em 0;
}
.container .map:focus {
border-color: #999;
}
h3 span {
color: #888;
}
h3.alt a {
color: #56b1ee;
text-decoration: none;
}
h3.alt a:hover {
text-decoration: underline;
}
.example-img {
float: left;
margin: 0 18px 18px 0;
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;
}
.last ul {
margin-right: 0;
}
table td {
color: #666;
}
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;
}
.width250 {
width: 250px;
}
.width200 {
width: 200px;
}
.width300 {
width: 300px;
}
.width100 {
width: 100px;
}
.width140 {
width: 140px;
}
.minwidth {
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;
}
.social-buttons {
margin: 18px 0 0;
padding: 6px 0 2px 8px;
background: #f3f3f3;
position: absolute;
top: 10px;
right: 40px;
border-radius: 5px;
}
.twitter-follow-button {
margin-left: 10px;
}
.footer {
margin-top: 2.5em;
}
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;
}
#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;
}
p.notice {
border: none;
border-radius: 10px;
color: #444;
background: #DBF8A7;
padding: 5px 10px;
margin-bottom: 1.5em;
}
.usedby a {
text-decoration: none;
margin: 0 2px;
color: #777;
font-size: 13px;
}
.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;
}
.post-title {
margin-top: 0;
}
.post-date {
color: #777;
font-size: 18px;
line-height: 1;
}
.post-meta {
color: #888;
margin-top: -1em;
}
#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; }
}