Skip to content

Commit 44b5b28

Browse files
author
Dennis Labordus
committed
Updating and adding pages.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 2833181 commit 44b5b28

File tree

4 files changed

+118
-0
lines changed

4 files changed

+118
-0
lines changed

docs/_includes/git-logo.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2021 Alliander N.V.
3+
4+
SPDX-License-Identifier: CC-BY-4.0
5+
-->
6+
7+
<svg viewBox="0 0 16 16">
8+
<path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.3\
9+
53-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7\
10+
.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.4\
11+
23,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.\
12+
028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
13+
</svg>

docs/_includes/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/poole.css">
2525
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/syntax.css">
2626
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/hyde.css">
27+
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/gitbutton.css">
2728
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
2829

2930
<!-- Icons -->

docs/_layouts/page.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: default
3+
---
4+
5+
<!--
6+
SPDX-FileCopyrightText: 2021 Alliander N.V.
7+
8+
SPDX-License-Identifier: CC-BY-4.0
9+
-->
10+
11+
<div class="page">
12+
<a href="https://www.github.com/{{ site.github_username }}/{{ site.git_repo }}/blob/{{ site.git_branch }}/{{ page.path }}" class="gitbutton pill">
13+
<span class="icon medium">
14+
{% include git-logo.html %}
15+
</span>
16+
Edit on GitHub!
17+
</a>
18+
{{ content }}
19+
</div>

docs/public/css/gitbutton.css

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2021 Alliander N.V.
3+
*
4+
* SPDX-License-Identifier: CC-BY-4.0
5+
*/
6+
7+
.icon.medium > svg {
8+
display: inline-block;
9+
width: 24px;
10+
height: 24px;
11+
vertical-align: middle;
12+
}
13+
14+
.icon.medium > svg path {
15+
fill: #828282
16+
}
17+
18+
.gitbutton {
19+
position: relative;
20+
overflow: visible;
21+
display: inline-block;
22+
padding: 0.5em 1em;
23+
border: 1px solid #d4d4d4;
24+
margin: 0;
25+
text-decoration: none;
26+
text-align: center;
27+
text-shadow: 1px 1px 0 #fff;
28+
/*
29+
* I removed the original CSS defining the font type, as it did not play nicely with
30+
* the CSS defining my link size.
31+
*/
32+
/*font:11px/normal sans-serif; */
33+
color: #333;
34+
white-space: nowrap;
35+
cursor: pointer;
36+
outline: none;
37+
background-color: #ececec;
38+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f4f4f4), to(#ececec));
39+
background-image: -moz-linear-gradient(#f4f4f4, #ececec);
40+
background-image: -ms-linear-gradient(#f4f4f4, #ececec);
41+
background-image: -o-linear-gradient(#f4f4f4, #ececec);
42+
background-image: linear-gradient(#f4f4f4, #ececec);
43+
-moz-background-clip: padding; /* for Firefox 3.6 */
44+
background-clip: padding-box;
45+
border-radius: 0.2em;
46+
/* IE hacks */
47+
zoom: 1;
48+
*display: inline;
49+
}
50+
51+
.gitbutton:hover,
52+
.gitbutton:focus,
53+
.gitbutton:active,
54+
.gitbutton.active {
55+
border-color: #3072b3;
56+
border-bottom-color: #2a65a0;
57+
text-decoration: none;
58+
text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
59+
color: #fff;
60+
background-color: #3c8dde;
61+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#599bdc), to(#3072b3));
62+
background-image: -moz-linear-gradient(#599bdc, #3072b3);
63+
background-image: -o-linear-gradient(#599bdc, #3072b3);
64+
background-image: linear-gradient(#599bdc, #3072b3);
65+
}
66+
.gitbutton:active,
67+
.gitbutton.active {
68+
border-color: #2a65a0;
69+
border-bottom-color: #3884cd;
70+
background-color: #3072b3;
71+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3072b3), to(#599bdc));
72+
background-image: -moz-linear-gradient(#3072b3, #599bdc);
73+
background-image: -ms-linear-gradient(#3072b3, #599bdc);
74+
background-image: -o-linear-gradient(#3072b3, #599bdc);
75+
background-image: linear-gradient(#3072b3, #599bdc);
76+
}
77+
/* overrides extra padding on gitbutton elements in Firefox */
78+
.gitbutton::-moz-focus-inner {
79+
padding: 0;
80+
border: 0;
81+
}
82+
83+
.gitbutton.pill {
84+
border-radius: 50em;
85+
}

0 commit comments

Comments
 (0)