Docs tweak

This commit is contained in:
Sam Potts
2015-07-20 23:03:24 +10:00
parent e49c417e54
commit 20ee77a55e
4 changed files with 11 additions and 5 deletions

2
docs/dist/docs.css vendored

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@
<link rel="stylesheet" href="https://cdn.plyr.io/1.2.0/plyr.css?1"> <link rel="stylesheet" href="https://cdn.plyr.io/1.2.0/plyr.css?1">
<!-- Docs styles --> <!-- Docs styles -->
<link rel="stylesheet" href="https://cdn.plyr.io/1.2.0/docs.css?2"> <link rel="stylesheet" href="https://cdn.plyr.io/1.2.0/docs.css?3">
</head> </head>
<body> <body>
<header> <header>
@ -92,7 +92,7 @@
a.send(); a.send();
a.onload = function(){ a.onload = function(){
var c = d.createElement("div"); var c = d.createElement("div");
c.style.display="none"; c.setAttribute("hidden", "");
c.innerHTML = a.responseText; c.innerHTML = a.responseText;
b.insertBefore(c, b.childNodes[0]); b.insertBefore(c, b.childNodes[0]);
} }

View File

@ -8,13 +8,19 @@
box-sizing: border-box; box-sizing: border-box;
} }
// Hidden
[hidden] {
display: none;
}
// Base // Base
html { html {
height: 100%;
font-size: 100%; font-size: 100%;
background: linear-gradient(#fff, @body-background);
} }
body { body {
font-family: "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
background: @body-background;
line-height: 1.5; line-height: 1.5;
text-align: center; text-align: center;
color: @gray; color: @gray;

View File

@ -123,7 +123,7 @@ nav {
position: relative; position: relative;
margin-left: 6px; margin-left: 6px;
padding: ((@padding-base / 2) - 1px); padding: ((@padding-base / 2) - 1px);
background: @body-background; background: #fff;
border: 1px solid @gray-light; border: 1px solid @gray-light;
&::before { &::before {