Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ encoding: utf-8

# Base variables
latest_major_version: "6"
github_repo: "https://github.com/mendix/docs"
github_branch: "development"

timezone: Netherlands/Amsterdam
permalink: ordinal
Expand Down
1 change: 1 addition & 0 deletions _includes/github_edit_button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a target="_blank" title="Edit this file on Github" class="btn btn-default github-edit-button" href="{{ site.github_repo | append: '/blob/' | append: site.github_branch | append: '/' | append: page.path }}" /><i class="glyphicon glyphicon-pencil"></i><span class="hidden-md hidden-sm hidden-xs">Improve this doc</span></a>
1 change: 1 addition & 0 deletions _layouts/mxdefault.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<header class="post-header">
<h1>{{ page.title }}</h1>
</header>
{% include github_edit_button.html %}
<article class="post-content">
{{ content }}
</article>
Expand Down
20 changes: 20 additions & 0 deletions _sass/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,26 @@
}
}

.post {
position: relative;
.github-edit-button {
margin-top: -30px;
float: right;
background-color: $white-smoke;
border-color: $white-smoke;
color: $link-color;
font-weight: 100;
@include border-radius(2em);
font-size: 12px;
i {
top: 0.1em;
}
span {
padding-left: 0.5em;
}
}
}

.header-link {
font-size: 29px;
font-weight: 100;
Expand Down
2 changes: 2 additions & 0 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ $color-darkgrey: #2d3e4e;
$color-blue: #30a5de;
$color-lightgrey: #f9f9fa;

$white-smoke: #f0f0ee;

$color-blue: #0195db;

$link-color: #0496da;
Expand Down