Skip to content

armgit / anime

Public Imported from GitHub
0

JavaScript animation engine

Tweak docs design

Julian Garniera4bc5ee59b30
diff --git a/documentation/assets/css/documentation.css b/documentation/assets/css/documentation.css
index 73178ef3..ad0112b4 100644
--- a/documentation/assets/css/documentation.css
+++ b/documentation/assets/css/documentation.css
@@ -7,7 +7,7 @@ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abb
html,
body,
header {
- background-color: #131415; /* Black */
+ background-color: #1A1C1E; /* Black */
}
body {
@@ -16,7 +16,7 @@ body {
height: 100%;
color: white;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
- font-family: RoobertTRIAL-Light;
+ font-family: RoobertTRIAL-Regular;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
@@ -60,6 +60,7 @@ body {
}
.logo {
+ opacity: .6;
display: flex;
align-items: center;
width: 240px;
@@ -73,6 +74,10 @@ body {
height: 100%;
}
+.logo:hover {
+ opacity: 1;
+}
+
header {
position: sticky;
top: 0;
@@ -87,19 +92,12 @@ header {
border-bottom: 1px solid rgba(0,0,0,.35);
}
-.logo, h2 {
- font-size: 22px;
- letter-spacing: 2px;
+h2 {
+ font-size: 16px;
+ letter-spacing: 1px;
text-transform: uppercase;
- font-weight: 200;
-}
-
-.logo {
- opacity: .6;
-}
-
-.logo:hover {
- opacity: 1;
+ /*font-weight: 200;*/
+ font-family: RoobertTRIAL-SemiBold;
}
/* Panes */
@@ -330,27 +328,24 @@ header {
.demo-info table {
margin-bottom: 20px;
- border: 1px solid #2E2E33;
+ border: 1px solid rgba(255,255,255,.15);
border-spacing: 0;
border-radius: 3px;
}
-.demo-info thead {
- font-weight: 200;
- text-transform: uppercase;
- letter-spacing: .15em;
- font-size: 14px;
- color: rgba(255,255,255,.5);
-}
-
.demo-info td {
vertical-align: middle;
padding: 8px 12px;
- border-left: 1px solid #2E2E33;
- border-top: 1px solid #2E2E33;
+ border-left: 1px solid rgba(255,255,255,.15);
+ border-top: 1px solid rgba(255,255,255,.15);
}
.demo-info thead td {
+ text-transform: uppercase;
+ font-size: 16px;
+ line-height: 22px;
+ letter-spacing: 1px;
+ color: rgba(255,255,255,.4);
border-top: none;
}
@@ -401,10 +396,6 @@ article {
justify-content: flex-start;
}
-.demos-title {
- opacity: 1;
-}
-
.demo {
position: relative;
z-index: 1;
diff --git a/documentation/index.html b/documentation/index.html
index 2f5842f2..ecdb5e82 100644
--- a/documentation/index.html
+++ b/documentation/index.html
@@ -26,13 +26,15 @@
<header class="header">
<a class="logo" href="https://github.com/juliangarnier/anime/">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 60">
- <g id="anime-docs-logo" stroke="#FFFFFF" stroke-width="3" fill="none" fill-rule="evenodd" stroke-linecap="square">
- <path id="a" d="M23 23h16a2.663 2.663 0 0 1 2.667 2.66v10.68A2.663 2.663 0 0 1 39 39H25.667A2.663 2.663 0 0 1 23 36.34v-5.37a2.663 2.663 0 0 1 2.667-2.66h10.666"/>
- <path id="n" d="M47 39V25.667A2.663 2.663 0 0 1 49.66 23h13.346c1.47 0 2.66 1.194 2.66 2.667V39"/>
- <path id="i" d="M71.083 39V28.333"/>
- <path id="." d="M71.083 23v.5"/>
- <path id="m" d="M76.333 39V25.667A2.665 2.665 0 0 1 78.997 23H109.67a2.665 2.665 0 0 1 2.663 2.667V39"/>
- <path id="e" d="M136.333 39h-16a2.663 2.663 0 0 1-2.666-2.66V25.66a2.663 2.663 0 0 1 2.666-2.66h13.334a2.663 2.663 0 0 1 2.666 2.66v5.318a2.663 2.663 0 0 1-2.666 2.659H123"/>
+ <g id="anime-docs-logo" fill="none" fill-rule="evenodd" stroke-linecap="square">
+ <g id="Group" stroke="#FFFFFF" stroke-width="2" transform="translate(23 24)">
+ <path id="a" d="M0 0h12c1.105 0 2 .893 2 1.994v8.012A1.997 1.997 0 0 1 12 12H2c-1.105 0-2-.893-2-1.994V5.978c0-1.102.895-1.995 2-1.995h8"/>
+ <path id="n" d="M18 12V2c0-1.105.893-2 1.995-2h10.01C31.107 0 32 .895 32 2v10"/>
+ <path id="i" d="M36.125 12V4"/>
+ <path id="." d="M36.125 0v.5"/>
+ <path id="m" d="M40 12V2c0-1.105.894-2 1.998-2H65.002C66.106 0 67 .895 67 2v10"/>
+ <path id="e" d="M85 12H73c-1.105 0-2-.893-2-1.994V1.994C71 .893 71.895 0 73 0h10c1.105 0 2 .893 2 1.994v3.99a1.997 1.997 0 0 1-2 1.994h-8"/>
+ </g>
</g>
</svg>
</a>