Leaflet/docs/css/main.css

1002 lines
14 KiB
CSS
Raw Normal View History

2014-04-22 20:05:11 +08:00
2014-04-30 20:36:43 +08:00
/* general styles */
html, body, input, select, button, textarea, table {
2015-06-30 23:45:59 +08:00
font-size: 100%;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
2014-04-22 20:05:11 +08:00
body {
2015-06-30 23:45:59 +08:00
line-height: 1.5;
color: #333;
2014-04-30 20:36:43 +08:00
}
2014-04-30 20:36:43 +08:00
p {
margin: 24px 0;
}
2015-07-01 05:26:34 +08:00
a, a span.hljs-string {
2015-06-30 23:45:59 +08:00
color: #1EB300;
2014-04-30 20:36:43 +08:00
}
a:hover, a:focus {
2015-06-30 23:45:59 +08:00
color: #160;
}
2014-04-30 20:36:43 +08:00
hr {
background: #ddd;
color: #ddd;
height: 1px;
margin: 0 0 1.4em;
border: none;
clear: both;
}
.clearfix:before,
.clearfix:after {
2015-06-30 23:45:59 +08:00
content: " ";
display: table;
2014-04-30 20:36:43 +08:00
}
.clearfix:after {
2015-06-30 23:45:59 +08:00
clear: both;
2014-04-30 20:36:43 +08:00
}
table {
width: 100%;
border-collapse: collapse;
2015-07-01 00:16:31 +08:00
margin-bottom: 2em;
2014-04-30 20:36:43 +08:00
}
2014-04-30 20:36:43 +08:00
th, td {
text-align: left;
2015-06-30 23:45:59 +08:00
border: 0;
2015-07-01 05:26:34 +08:00
border: 1px solid #eee;
padding: 0.5em 1em 0.5em 1em;
2015-07-01 00:16:31 +08:00
}
table th {
background: #eee;
2014-04-30 20:36:43 +08:00
}
table td {
2015-06-30 23:45:59 +08:00
color: #666;
2014-04-30 20:36:43 +08:00
}
table td:first-child {
2015-06-30 23:45:59 +08:00
color: #777;
}
2014-04-30 20:36:43 +08:00
table td:last-child {
2015-06-30 23:45:59 +08:00
color: black;
}
2014-04-30 20:36:43 +08:00
table td code i {
2015-06-30 23:45:59 +08:00
color: #00A707;
}
2014-04-30 20:36:43 +08:00
table td code b {
2015-06-30 23:45:59 +08:00
color: black;
font-weight: normal;
}
2014-04-30 20:36:43 +08:00
/* headings */
h2 {
2015-06-30 23:45:59 +08:00
font-weight: 400;
font-size: 2em;
font-weight: 300;
color: black;
2015-07-01 18:11:05 +08:00
margin-top: 1.8em;
}
2015-07-01 18:11:05 +08:00
h2:first-child {
margin-top: 1em;
}
h2:target {
2015-06-30 23:45:59 +08:00
color: #1EB300;
2014-04-30 20:36:43 +08:00
}
h3 {
2015-07-01 21:01:25 +08:00
margin-top: 1.5em;
padding-top: .5em;
2015-07-01 17:51:57 +08:00
color: black;
font-weight: 500;
font-size: 1.4em;
2014-04-30 20:36:43 +08:00
}
2015-07-01 21:01:25 +08:00
2014-04-30 20:36:43 +08:00
h4 {
2015-07-01 17:51:57 +08:00
font-size: 1.1em;
font-weight: 500;
2015-07-01 00:16:31 +08:00
margin: 1em 0 1em;
2014-04-30 20:36:43 +08:00
}
/* general layout */
2014-04-22 20:05:11 +08:00
.container {
max-width: 54em;
2015-06-30 23:45:59 +08:00
padding: 0 6em 1.5em;
2014-04-22 20:05:11 +08:00
margin: 0 auto;
}
2014-04-30 20:36:43 +08:00
.footer {
margin-top: 50px;
color: #777;
}
2014-04-22 20:05:11 +08:00
2014-04-30 20:36:43 +08:00
/* header */
2014-04-22 20:05:11 +08:00
h1 {
margin: 1.25em 0 1.5em;
2014-04-22 21:51:21 +08:00
text-align: center;
}
2014-04-22 20:05:11 +08:00
h1 a {
2015-06-30 23:45:59 +08:00
display: block;
margin: auto;
padding: 0 2em;
2014-04-22 20:05:11 +08:00
-webkit-transition: 0.8s all;
2014-04-30 05:00:37 +08:00
-webkit-animation: leafanim 3s ease 3s 1 normal none;
2015-06-30 23:45:59 +08:00
transition: 0.8s all;
animation: leafanim 3s ease 3s 1 normal none;
}
2014-04-30 05:00:37 +08:00
@-webkit-keyframes leafanim {
2015-06-30 23:45:59 +08:00
50% { -webkit-filter: hue-rotate(-70deg) saturate(1.2); }
2014-04-30 05:00:37 +08:00
}
@keyframes leafanim {
2015-06-30 23:45:59 +08:00
50% { -webkit-filter: hue-rotate(-70deg) saturate(1.2); }
}
h1 a img {
2015-06-30 23:45:59 +08:00
display: block;
margin: auto;
max-width: 100%;
}
2014-04-22 20:05:11 +08:00
h1 a:hover, h1 a:focus {
2015-06-30 23:45:59 +08:00
-webkit-filter: hue-rotate(-70deg) saturate(1.5);
2014-04-30 20:36:43 +08:00
}
2014-04-22 20:05:11 +08:00
h3.tagline {
font-weight: 300;
font-size: 1.5em;
margin-top: -.75em;
2014-04-22 20:05:11 +08:00
color: #777;
text-align: center;
margin-bottom: 30px;
2014-04-25 00:12:27 +08:00
}
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;
font-size: 1.25em;
2014-04-30 04:15:06 +08:00
margin-bottom: 40px;
border-bottom: 1px solid #ddd;
padding-bottom: 40px;
2014-04-30 20:36:43 +08:00
}
2014-04-22 20:05:11 +08:00
.nav li {
2015-06-30 23:45:59 +08:00
display: inline-block;
padding: .333em .5em;
2014-04-23 04:54:27 +08:00
color: #999;
2014-04-30 20:36:43 +08:00
}
2014-04-22 20:05:11 +08:00
.nav li a {
font-weight: 400;
text-decoration: none;
2014-04-30 20:36:43 +08:00
}
.ext-links {
2015-06-30 23:45:59 +08:00
position: fixed;
top: 1.5em;
right: 1.5em;
2014-04-30 20:36:43 +08:00
}
2014-04-22 20:05:11 +08:00
2014-04-30 20:36:43 +08:00
.ext-link {
2015-06-30 23:45:59 +08:00
display: block;
opacity: 0.5;
-webkit-animation: fadein 1s;
animation: fadein 1s;
2014-04-30 20:36:43 +08:00
}
.ext-link:hover {
opacity: 1;
}
@-webkit-keyframes fadein {
from { opacity: 0; }
to { opacity: 0.5; }
}
@keyframes fadein {
2015-06-30 23:45:59 +08:00
from { opacity: 0; }
to { opacity: 0.5; }
2014-04-22 20:05:11 +08:00
}
2014-04-30 20:36:43 +08:00
/* content */
.container code, .container pre code {
font-family: "Consolas", "Menlo", "Lucida Console", "Courier New", monospace;
2015-06-30 23:45:59 +08:00
-webkit-font-smoothing: subpixel-antialiased;
2014-04-30 20:36:43 +08:00
}
.container pre code {
2015-06-30 23:45:59 +08:00
font-size: 14px;
padding: .75em 1em;
2015-06-30 23:45:59 +08:00
border-radius: 5px;
white-space: pre;
overflow: auto;
2014-04-30 20:36:43 +08:00
}
.container pre {
border-radius: 5px;
2014-04-30 04:15:06 +08:00
}
2014-04-30 20:36:43 +08:00
.container .map {
border: 1px solid #ccc;
}
.container .map:focus {
border-color: #999;
}
2014-04-22 20:05:11 +08:00
2014-04-30 20:36:43 +08:00
.quiet {
color: #999;
2014-04-22 20:05:11 +08:00
}
2014-04-22 21:51:21 +08:00
2014-04-30 20:36:43 +08:00
/* frontpage */
.map-home {
height: 300px;
margin-top: 50px;
margin-bottom: 50px;
}
2015-06-30 21:14:24 +08:00
.usedby-title {
2015-06-30 23:45:59 +08:00
text-align: center;
background-color: #f5f5f5;
2015-07-01 00:46:29 +08:00
padding: 1.5em 1em 0.5em;
2015-06-30 23:45:59 +08:00
margin: 0;
2014-04-30 06:24:41 +08:00
}
2015-06-30 21:14:24 +08:00
2014-04-22 21:51:21 +08:00
.usedby {
2015-06-30 23:45:59 +08:00
margin: 0;
text-align: center;
2015-07-01 00:46:29 +08:00
padding: 0 3em 2em;
2015-06-30 23:45:59 +08:00
background-color: #f5f5f5;
2014-04-22 22:29:42 +08:00
}
.logo {
2015-06-30 23:45:59 +08:00
display: inline-block;
opacity: 0.6;
height: 32px;
overflow: hidden;
text-indent: -9999px;
margin: 1em;
background: url(../images/logos.png);
background-size: 100%;
vertical-align: middle;
2014-04-30 20:36:43 +08:00
}
2015-06-30 21:14:24 +08:00
.logo:hover { opacity: 1; }
.logo-github {
2015-06-30 23:45:59 +08:00
background-position: 4px -529px;
width: 110px;
background-size: 110px;
2015-06-30 21:14:24 +08:00
}
.logo-foursquare {
2015-06-30 23:45:59 +08:00
background-position: 50% -4px;
width: 135px;
2015-06-30 21:14:24 +08:00
}
.logo-pinterest {
2015-06-30 23:45:59 +08:00
background-position: 50% -39px;
width: 115px;
2015-06-30 21:14:24 +08:00
}
.logo-500px {
2015-06-30 23:45:59 +08:00
background-position: 50% -48px;
width: 55px;
background-size: 5em;
2015-06-30 21:14:24 +08:00
}
.logo-evernote {
2015-06-30 23:45:59 +08:00
background-position: 50% -713px;
width: 170px;
height: 43px;
2015-06-30 21:14:24 +08:00
}
.logo-ftimes {
2015-06-30 23:45:59 +08:00
background-position: 9px -189px;
width: 130px;
height: 40px;
background-size: 145px;
2015-06-30 21:14:24 +08:00
}
.logo-wpost {
2015-06-30 23:45:59 +08:00
background-position: 50% -870px;
width: 170px;
2015-06-30 21:14:24 +08:00
}
.logo-npr {
2015-06-30 23:45:59 +08:00
background-position: 50% -641px;
width: 120px;
height: 40px;
2015-06-30 21:14:24 +08:00
}
.logo-usatoday {
2015-06-30 23:45:59 +08:00
background-position: 50% -682px;
width: 120px;
height: 30px;
2015-06-30 21:14:24 +08:00
}
.logo-hipmunk {
2015-06-30 23:45:59 +08:00
background-position: 50% -741px;
width: 125px;
2014-04-22 21:51:21 +08:00
}
2014-04-23 04:54:27 +08:00
.features {
-webkit-column-count: 3;
2015-07-01 01:01:03 +08:00
-moz-column-count: 3;
column-count: 3;
2014-04-23 04:54:27 +08:00
}
.features ul {
2015-07-01 17:51:57 +08:00
padding-left: 1.6em;
margin: 0 0 1.5em;
2014-04-23 04:54:27 +08:00
}
.features h3 {
2015-07-01 17:51:57 +08:00
margin: 0 0 0.5em;
2014-04-23 04:54:27 +08:00
}
.features h4 {
2015-07-01 17:51:57 +08:00
margin: 0 0 0.3em;
2014-04-23 04:54:27 +08:00
}
2014-04-30 20:36:43 +08:00
/* tutorials */
2014-04-24 21:24:41 +08:00
.example-img {
float: left;
2015-07-01 01:03:55 +08:00
width: 14em;
2015-06-30 23:45:59 +08:00
max-width: 100%;
border-radius: 5px;
margin: 0 1.5em 1.5em 0;
border: thin solid #ccc;
}
2014-04-24 21:24:41 +08:00
.examples .container h3 {
2015-06-30 23:45:59 +08:00
margin-top: 0;
2014-04-24 21:24:41 +08:00
}
.post-date {
float: left;
width: 130px;
line-height: 1.6;
color: #999;
font-size: 18px;
}
.post-info {
overflow: hidden;
}
.post-title {
margin-top: 0;
}
2014-04-25 00:12:27 +08:00
2014-04-30 20:36:43 +08:00
/* plugins */
2014-04-25 00:12:27 +08:00
.plugins td:first-child,
2014-04-30 20:36:43 +08:00
.plugins td:last-child a {
2014-04-25 00:12:27 +08:00
white-space: nowrap;
}
table.plugins td:first-child a {
2015-06-30 23:45:59 +08:00
font-weight: bold;
}
2015-06-30 19:14:39 +08:00
.plugins-page .toc-col {
float: left;
width: 25%;
2015-06-30 19:14:39 +08:00
}
2014-04-25 00:16:54 +08:00
2014-04-30 20:36:43 +08:00
/* API docs */
2014-04-30 18:17:20 +08:00
2015-06-30 19:14:39 +08:00
.api-page .toc-col {
2015-06-30 23:45:59 +08:00
position: relative;
float: left;
width: 20%;
padding-right: 1em;
margin: 0;
box-sizing: border-box;
}
.api-page .toc-col.map-col {
2015-06-30 23:45:59 +08:00
border-right: thin solid #eee;
2014-04-30 18:17:20 +08:00
}
2015-06-30 20:35:58 +08:00
.api-page .toc-col.map-col ~ .toc-col {
2015-06-30 23:45:59 +08:00
right: -1.5em;
}
2015-07-01 17:51:57 +08:00
.api-page h2 {
border-bottom: 7px solid #bbb;
}
.api-page h2:target {
border-color: #1EB300;
}
.api-page h2:first-child {
border: none;
}
2014-04-30 18:17:20 +08:00
#toc h4 {
margin-top: 0;
}
#toc ul {
padding: 0;
list-style: none;
margin-top: 0;
margin-bottom: 25px;
}
2015-06-30 20:35:58 +08:00
#toc .colborder {
2015-06-30 23:45:59 +08:00
padding-right: 14px;
2015-06-30 20:35:58 +08:00
}
#toc .span-3 {
2015-06-30 23:45:59 +08:00
margin: 0;
padding-right: 3em;
width: 16.825%;
box-sizing: border-box;
2015-06-30 20:35:58 +08:00
}
#toc .span-3.last {
2015-06-30 23:45:59 +08:00
padding-right: 0;
2015-06-30 20:35:58 +08:00
}
#toc-copy {
2015-06-30 23:45:59 +08:00
display: none;
2015-06-30 20:35:58 +08:00
}
#toc-copy div {
2015-06-30 23:45:59 +08:00
border: 0;
margin: 0;
padding: 0;
width: auto;
float: none;
2015-06-30 20:35:58 +08:00
}
#toc-copy h4 {
2015-06-30 23:45:59 +08:00
margin: 0;
padding-bottom: .333em;
2015-06-30 20:35:58 +08:00
}
2015-07-01 21:01:25 +08:00
#toc-copy hr {
background-color: transparent;
margin: 0 0 .5em;
}
2015-06-30 20:35:58 +08:00
#toc-copy ul {
2015-07-01 21:01:25 +08:00
display: none;
list-style: none;
2015-06-30 20:35:58 +08:00
}
#toc-copy ul li {
2015-06-30 23:45:59 +08:00
white-space: nowrap;
2015-06-30 20:35:58 +08:00
}
#toc-copy ul li a {
2015-06-30 23:45:59 +08:00
position: relative;
padding: .25em .5em 0;
z-index: 10;
2015-06-30 20:35:58 +08:00
}
2015-06-30 23:40:27 +08:00
#toc-copy .toc-col {
position: static;
}
2015-06-30 20:35:58 +08:00
@media screen and (max-width: 1350px) {
2015-06-30 23:45:59 +08:00
#toc-copy {
display: block;
position: fixed;
top: 0.1em;
left: 0.25em;
width: 32px;
height: 32px;
opacity: 0;
cursor: pointer;
-webkit-transition: opacity .2s ease;
transition: opacity .2s ease;
}
#toc-copy > div { display: none; }
.scrolled #toc-copy {
opacity: 1;
background: white;
}
#toc-copy.active {
background-color: white;
background-color: rgba(255, 255, 255, 0.9);
padding: 2em;
width: 100%;
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
cursor: default;
box-sizing: border-box;
}
#toc-copy:before,
#toc-copy:after {
content: '';
position: absolute;
left: 5px;
width: 22px;
height: 14px;
border-top: 2px solid black;
cursor: pointer;
box-sizing: border-box;
-webkit-transition: -webkit-transform .25s ease;
transition: transform .25s ease;
}
#toc-copy:before {
top: 9px;
border-bottom: 2px solid black;
}
#toc-copy:after {
top: 15px;
}
#toc-copy.active:before {
top: 5px;
left: 9px;
border-bottom: 0;
-webkit-transform: rotate(-135deg);
transform: rotate(-135deg);
}
#toc-copy.active:after {
top: 13px;
left: 9px;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
#toc-copy.active div { display: block; }
#toc-copy h4.active, #toc-copy h4:hover {
color: black;
cursor: pointer;
}
#toc-copy h4.active + ul {
display: block;
padding: 0;
margin: 0 0 .5em;
}
#toc-copy ul li a { padding: .25em 0; }
2015-06-30 20:35:58 +08:00
}
@media screen and (min-width: 900px) and (max-width: 1350px) {
2015-06-30 23:45:59 +08:00
#toc-copy {
width: 40px;
height: 40px;
}
2015-06-30 20:35:58 +08:00
2015-06-30 23:45:59 +08:00
#toc-copy.active {
padding: 2.5em;
}
2015-06-30 20:35:58 +08:00
2015-06-30 23:45:59 +08:00
#toc-copy:before,
#toc-copy:after {
left: 8px;
}
2015-06-30 20:35:58 +08:00
2015-06-30 23:45:59 +08:00
#toc-copy:before { top: 13px; }
2015-06-30 20:35:58 +08:00
2015-06-30 23:45:59 +08:00
#toc-copy:after { top: 19px; }
2015-06-30 20:35:58 +08:00
2015-06-30 23:45:59 +08:00
#toc-copy.active:before {
top: 7px;
left: 10px;
}
2015-06-30 20:35:58 +08:00
2015-06-30 23:45:59 +08:00
#toc-copy.active:after {
top: 15px;
left: 10px;
}
2015-06-30 20:35:58 +08:00
}
@media screen and (min-width: 1350px) and (min-height: 600px) {
2015-06-30 23:45:59 +08:00
#toc-copy {
display: block;
position: fixed;
top: 0;
left: 0;
width: auto;
height: auto;
padding: 2em;
opacity: 0;
transition: opacity .25s ease;
-webkit-transition: opacity .25s ease;
}
#toc-copy:before {
content: 'Table of contents';
display: block;
margin: -.25em 0 1em;
font-size: 75%;
font-weight: 300;
text-transform: uppercase;
}
.scrolled #toc-copy { opacity: 1; }
#toc-copy h4 { padding-right: 5em; }
#toc-copy ul {
position: absolute;
left: 100%;
margin: -4.9em 0 0 -4.5em;
padding: 3em 6em 3em 0;
}
#toc-copy h4:hover + ul,
#toc-copy ul:hover {
display: block;
}
#toc-copy h4:hover + ul:before,
#toc-copy ul:hover:before {
content: '';
position: absolute;
top: 3.775em;
right: 100%;
margin-right: .25em;
width: 1em;
height: 1em;
border-top: 2px solid #eee;
}
#toc-copy h4:hover + ul:after,
#toc-copy ul:hover:after {
content: '';
position: absolute;
z-index: -1;
top: -1000px;
bottom: -1000px;
left: 0;
width: 12.5em;
background: white;
background: rgba(255,255,255,0.9);
}
2015-07-01 21:01:25 +08:00
.plugins-page #toc-copy h4:hover + ul:after,
.plugins-page #toc-copy ul:hover:after {
width: 17em;
}
2015-06-30 23:45:59 +08:00
#toc-copy h4:hover, #toc-copy h4.hover {
color: black;
cursor: pointer;
}
2015-06-30 20:35:58 +08:00
}
/* API docs - tables */
2014-04-30 20:36:43 +08:00
.api-page table td {
2014-04-30 18:17:20 +08:00
color: #666;
}
2014-04-30 20:36:43 +08:00
.api-page table td:first-child {
2014-04-30 18:17:20 +08:00
color: #777;
}
2014-04-30 20:36:43 +08:00
.api-page table td:last-child {
2014-04-30 18:17:20 +08:00
color: black;
}
.api-page table td:last-child code {
2015-06-30 23:45:59 +08:00
word-break: break-word;
white-space: pre-wrap;
}
2014-04-30 20:36:43 +08:00
.api-page table td code i {
2014-04-30 18:17:20 +08:00
color: #9a9;
}
2014-04-30 20:36:43 +08:00
.api-page table td code b {
2014-04-30 18:17:20 +08:00
color: black;
font-weight: normal;
}
.api-page table td,
.api-page table th {
font-size: 14px;
}
2015-07-01 00:16:31 +08:00
.api-page p {
margin-top: 0;
2014-04-30 18:17:20 +08:00
}
2014-04-30 20:48:27 +08:00
tr:target {
background: yellow;
-webkit-animation: highlight 2s ease 0.5s 1 normal forwards;
2015-06-30 23:45:59 +08:00
animation: highlight 2s ease 0.5s 1 normal forwards;
2014-04-30 20:48:27 +08:00
}
@-webkit-keyframes highlight {
0% { background: yellow; }
100% { background: white; }
}
@keyframes highlight {
0% { background: yellow; }
100% { background: white; }
}
.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: 0;
overflow: hidden;
padding-top: 20px;
line-height: 20px;
vertical-align: baseline;
background: url(../images/sprite.png) -0px -0px no-repeat;
opacity: 0.2;
border-radius: 50%;
cursor: pointer;
position: absolute;
}
2014-04-30 20:48:27 +08:00
.api-page h2[id]:before {
2015-06-30 23:45:59 +08:00
margin-left: -32px;
margin-top: 14px;
2014-04-30 20:48:27 +08:00
}
.api-page tr[id] td:first-child:before {
2015-06-30 23:45:59 +08:00
opacity: 0;
}
2014-04-30 20:48:27 +08:00
.api-page tr[id]:hover td:first-child:before {
2015-06-30 23:45:59 +08:00
opacity: 1;
}
.api-page h2[id]:hover:before { opacity: 1; }
2014-04-30 20:48:27 +08:00
@media (-webkit-min-device-pixel-ratio: 1.25),(min-resolution: 120dpi) {
2015-06-30 23:45:59 +08:00
.api-page h2[id]:before,
.api-page tr[id] td:first-child:before {
background-image: url(../images/sprite.svg);
}
}
@media screen and (max-width: 767px) {
2015-06-30 23:45:59 +08:00
#toc .colborder {
padding: 0;
}
.colborder {
margin: 0;
border: 0;
}
#toc .toc-col {
width: 50%;
float: none;
position: static;
display: inline-block;
margin: 0;
border: 0;
padding-right: .5em;
margin-right: -.25em;
vertical-align: top;
box-sizing: border-box;
}
.toc-col.last-col {
clear: both;
}
2015-07-01 15:14:40 +08:00
th,
td {
border: 0;
}
tr {
border-bottom: 1px solid #eee;
}
2015-06-30 23:45:59 +08:00
table.plugins tbody tr {
display: block;
padding-bottom: 1em;
}
table.plugins tbody tr td {
white-space: normal;
display: inline-block;
padding-bottom: 0;
}
table.plugins tr:first-child {
padding-bottom: 0;
}
table.plugins tr:first-child th {
display: block;
}
table.plugins tr:first-child th ~ th {
display: none;
}
table.plugins td:first-child {
display: block;
white-space: normal;
}
.api-page table tbody tr {
display: block;
}
.api-page table tbody tr th,
.api-page table tbody tr td {
display: inline-block;
background-color: transparent;
width: auto;
}
.api-page table tr:first-child th ~ th {
display: none;
}
.api-page table tbody tr th:nth-child(2),
.api-page table tbody tr th:nth-child(3) {
display: inline-block;
}
.api-page table tr th:last-child {
display: none !important;
}
.api-page table tbody tr td:last-child {
display: block;
border-top: thin dashed #ddd;
padding: 1em;
}
2015-07-01 15:14:40 +08:00
/*.api-page table tbody tr td:last-child:before {
2015-06-30 23:45:59 +08:00
content: 'Description';
display: block;
text-transform: uppercase;
font-size: 90%;
margin-bottom: .75em;
color: #666;
2015-07-01 15:14:40 +08:00
}*/
2015-06-30 23:45:59 +08:00
td code {
word-break: break-word;
}
}
@media screen and (max-width: 56em) {
2015-06-30 23:45:59 +08:00
.container {
padding: 0 2em 1.5em;
}
2015-06-30 23:45:59 +08:00
.footer, .social-buttons {
text-align: center;
}
2015-06-30 23:45:59 +08:00
.footer {
margin-top: 2em;
}
2015-06-30 23:45:59 +08:00
.ext-links {
position: static;
margin: 0 auto 2em;
text-align: center;
clear: both;
}
2015-06-30 23:45:59 +08:00
.ext-link {
display: inline-block;
vertical-align: middle;
margin: .25em;
}
2015-06-30 23:45:59 +08:00
.features { -webkit-column-count: 2; }
}
@media screen and (max-width: 500px) {
2015-06-30 23:45:59 +08:00
.nav {
font-size: 1.25em;
2015-07-01 17:29:15 +08:00
padding-bottom: 1em;
line-height: 1.2;
}
h1 {
margin: 1em 0;
2015-06-30 23:45:59 +08:00
}
h3.tagline {
2015-07-01 17:29:15 +08:00
font-size: 1.1em;
margin: 0 1em;
2015-06-30 23:45:59 +08:00
}
.container {
padding: 0 1.5em 1.5em;
}
2015-07-01 17:29:15 +08:00
.logo {
margin: 0.6em;
}
.usedby-title {
padding-top: 1em;
padding-bottom: 0.5em;
font-size: 1.8em;
}
2015-06-30 23:45:59 +08:00
.usedby {
padding-left: 0;
padding-right: 0;
2015-07-01 17:29:15 +08:00
padding-bottom: 0;
2015-06-30 23:45:59 +08:00
}
.features { -webkit-column-count: 1; }
.example-img {
float: none;
display: block;
width: auto;
margin: 0 0 -.25em;
border: 0;
}
.post-date {
float: none;
width: auto;
margin: 0 0 .333em;
}
.api-page h2[id] { text-indent: 24px; }
.api-page h2[id]:before { margin-left: -28px; }
}
2015-07-01 00:16:31 +08:00
.width250 {
width: 250px;
}
.width200 {
width: 200px;
}
.width300 {
width: 300px;
}
.width100 {
width: 100px;
}
.width140 {
width: 140px;
}
.minwidth {
width: 1px;
}
.download-page table td a {
white-space: nowrap;
}
2015-07-01 05:30:43 +08:00
.tutorials-back {
margin-bottom: -3em;
}