Compare commits

...
20 Commits
Author SHA1 Message Date
Michael Rose 8dcd353e90 Release 4.6.0 💎 2017-09-12 14:59:06 -04:00
Michael Rose d5505d2b6f Reference GitHub comment 2017-09-12 13:03:37 -04:00
Michael Rose 84b21b06b7 Update CHANGELOG and history 2017-09-12 13:02:23 -04:00
Michael Rose c19db78c5c Update scripts in /docs/assets/js 2017-09-12 13:02:16 -04:00
Michael Rose 58b8cf8416 Add pre to version 2017-09-12 13:01:45 -04:00
Michael Rose 1570e85fb1 Update Magnific Popup to v1.1.0 2017-09-12 12:54:17 -04:00
Michael Rose 7845654225 Update jQuery Smooth Scroll to v2.2.0 2017-09-12 12:48:59 -04:00
Michael Rose 38c2bdbfd8 Update jQuery
Theme targets IE9+ allowing for using the newer/smaller version
2017-09-12 12:42:52 -04:00
Michael Rose 8fc9bccda8 Allow <head> and footer scripts to be changed via config (#1241)
* Allow `<head>` and footer scripts to be changed via config
* Update JavaScript documentation

Close #1238
2017-09-12 12:27:36 -04:00
Michael Rose 93c4fbc4b9 Color "skins" (#1242)
* Add YIQ Color Contrast mixin
* Remove text underline from `.btn` links
* Move YIQ variables
* Simplify button classes using YIQ color contrast mixin
  - DRY up button CSS using Sass list and YIQ color contrast mixin.
  - Move `color` and `background-color` to new `btn--primary` class instead of assinging on the default class. Removes the need to override them.
* Add `.btn--primary` to buttons that just had `.btn`
* Apply changes to `/docs`
* Add `.btn--primary` class
* Update CHANGELOG and history
* Add sample form
* Abstract colors away into Sass variables for easier themeing
* Add "dark" skin
* Replace hardcoded color with SCSS variable
* Invert Font Awesome icons' colors in author sidebar and footer
* Add Sass changes to `/docs`
* Use primary button type instead of inverse
* Add missing `!default` on `$muted-text-color`
* Add `contrast` and `sunrise` skin colors
* Add `dirt` skin color
* Add `air` skin color option
* Add `mint` skin color
* Add `btn--primary` class to Submit Comment button
* Set skin to `default`
* Document skin color options
* Add note about skin SCSS import

Close #1208
2017-09-12 12:01:43 -04:00
Michael Rose d67aa113c8 Update stale.yml 2017-09-12 10:35:25 -04:00
Michael Rose 1a2a953dfb Configure Probot: Stale 2017-09-12 09:41:26 -04:00
Michael Rose 338df4eb50 Fix history 2017-09-12 08:44:36 -04:00
Michael Rose e0e0fdee4c Add enhancements to Unreleased 2017-09-12 08:41:44 -04:00
Ohad Schneider a369b0dc75 Convert some links from HTTP to HTTPS (#1234) 2017-09-12 08:30:03 -04:00
Michael Rose 0883904f95 Update CHANGELOG and history 2017-09-11 12:14:24 -04:00
Tony Ho 1cc8461f27 Rename gems key to plugins (#1239)
`gems` key in `_config.yml` was deprecated in Jekyll 3.5 and changed to `plugins`.

ref: https://github.com/jekyll/jekyll/pull/5130
2017-09-11 12:12:28 -04:00
Michael Rose 46c172e041 Update CHANGELOG and history 2017-09-11 12:11:53 -04:00
Ohad Schneider 611cecc51a Test strict front matter (#1236) 2017-09-11 12:10:09 -04:00
Michael Rose b5e1eeb007 Add link to #1213 2017-09-06 15:19:49 -04:00
108 changed files with 5072 additions and 4929 deletions
+17
View File
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 30
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: "Status: Stale"
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
+15 -2
View File
@@ -1,3 +1,16 @@
## [4.6.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.6.0)
### Enhancements
- Test strict Front Matter in `/test` site. [#1236](https://github.com/mmistakes/minimal-mistakes/pull/1236)
- Rename `gems` key to `plugins`. [#1239](https://github.com/mmistakes/minimal-mistakes/pull/1239)
- Add [YIQ Color Contrast](https://github.com/easy-designs/yiq-color-contrast) mixin for determining lightness of a color.
- DRY up button CSS using Sass lists and YIQ Color Contrast mixin.
- Add `btn--primary` button class. **Note:** elements that were previously using only a `.btn` class will now also need `.btn--primary` (eg. `<a class="btn btn--primary" href="#">my link</a>`).
- Add `air`, `contrast`, `dark`, `dirt`, `mint`, and `sunrise` skin color options. [#1208](https://github.com/mmistakes/minimal-mistakes/issues/1208)
- Allow scripts in `<head>` and before `</body>` to be added/overridden with `head_scripts` and `footer_scripts` arrays in `_config.yml`. [#1241](https://github.com/mmistakes/minimal-mistakes/pull/1241)
- Update JavaScript dependencies: jQuery `v3.2.1`, jQuery Smooth Scroll `v2.2.0`, and Magnific Popup `v1.1.0`. [#328690652](https://github.com/mmistakes/minimal-mistakes/pull/1241#issuecomment-328690652)
## [4.5.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.2) ## [4.5.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.2)
### Enhancements ### Enhancements
@@ -12,7 +25,7 @@
- Add note to Quick-Start Guide about GitHub Pages hosting alternatives that allow 3rd party gem themes and Jekyll plugins. - Add note to Quick-Start Guide about GitHub Pages hosting alternatives that allow 3rd party gem themes and Jekyll plugins.
- Add note to configuration documentation about Cloudflare minification as an alternative to `layout: compress`. [#1217](https://github.com/mmistakes/minimal-mistakes/pull/1217) - Add note to configuration documentation about Cloudflare minification as an alternative to `layout: compress`. [#1217](https://github.com/mmistakes/minimal-mistakes/pull/1217)
- Show 4 latest posts in "You May Also Enjoy" module when `related: true` and no related posts are found due to `lsi` ([latent semantic indexing](https://en.wikipedia.org/wiki/Latent_semantic_analysis#Latent_semantic_indexing)) being disabled on GitHub Pages. [#554](https://github.com/mmistakes/minimal-mistakes/issues/554) - Show 4 latest posts in "You May Also Enjoy" module when `related: true` and no related posts are found due to `lsi` ([latent semantic indexing](https://en.wikipedia.org/wiki/Latent_semantic_analysis#Latent_semantic_indexing)) being disabled on GitHub Pages. [#554](https://github.com/mmistakes/minimal-mistakes/issues/554)
- Truncate archive item titles' that overflow with an ellipsis. [#1213] - Truncate archive item titles' that overflow with an ellipsis. [#1213](https://github.com/mmistakes/minimal-mistakes/issues/1213)
### Bug Fixes ### Bug Fixes
@@ -20,7 +33,7 @@
- Reduce amount of blank pages when printing in Chrome. [#1196](https://github.com/mmistakes/minimal-mistakes/issues/1196) - Reduce amount of blank pages when printing in Chrome. [#1196](https://github.com/mmistakes/minimal-mistakes/issues/1196)
- Remove `#disqus_thread` duplicate from `comments-providers/disqus.html` as it is already in `comments.html` include. [#1199](https://github.com/mmistakes/minimal-mistakes/issues/1199) - Remove `#disqus_thread` duplicate from `comments-providers/disqus.html` as it is already in `comments.html` include. [#1199](https://github.com/mmistakes/minimal-mistakes/issues/1199)
- Fix Liquid syntax errors in `tag-list.html` and `category-list.html` includes by removing parenthesis in `assign`s. [#1223](https://github.com/mmistakes/minimal-mistakes/issues/1223) - Fix Liquid syntax errors in `tag-list.html` and `category-list.html` includes by removing parenthesis in `assign`s. [#1223](https://github.com/mmistakes/minimal-mistakes/issues/1223)
- Fix Liquid syntax error: "Expected id but found open_square in `"{{page.[include.id] }}"`" in `gallery` and `feature_row` includes. - Fix Liquid syntax error: "Expected id but found open_square in `"{{ page.[include.id] }}"`" in `gallery` and `feature_row` includes.
- Fix Liquid syntax error: "Expected end_of_string but found pipe in `"name in __names | sort"`" in `group-by-array` include. - Fix Liquid syntax error: "Expected end_of_string but found pipe in `"name in __names | sort"`" in `group-by-array` include.
## [4.5.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.1) ## [4.5.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.1)
+6 -4
View File
@@ -5,6 +5,8 @@
# For technical reasons, this file is *NOT* reloaded automatically when you use # For technical reasons, this file is *NOT* reloaded automatically when you use
# `jekyll serve`. If you change this file, please restart the server process. # `jekyll serve`. If you change this file, please restart the server process.
minimal_mistakes_skin : "default" # "air", "contrast", "dark", "dirt", "mint", "sunrise"
# Site Settings # Site Settings
locale : "en" locale : "en"
title : "Site Title" title : "Site Title"
@@ -98,7 +100,7 @@ author:
linkedin : # "john-doe-12345678" (the last part of your profile url, e.g. https://www.linkedin.com/in/john-doe-12345678) linkedin : # "john-doe-12345678" (the last part of your profile url, e.g. https://www.linkedin.com/in/john-doe-12345678)
pinterest : pinterest :
soundcloud : soundcloud :
stackoverflow : # "123456/username" (the last part of your profile url, e.g. http://stackoverflow.com/users/123456/username) stackoverflow : # "123456/username" (the last part of your profile url, e.g. https://stackoverflow.com/users/123456/username)
steam : # "steamId" (the last part of your profile url, e.g. https://steamcommunity.com/id/steamId/) steam : # "steamId" (the last part of your profile url, e.g. https://steamcommunity.com/id/steamId/)
tumblr : tumblr :
twitter : twitter :
@@ -175,11 +177,11 @@ sass:
permalink: /:categories/:title/ permalink: /:categories/:title/
paginate: 5 # amount of posts to show paginate: 5 # amount of posts to show
paginate_path: /page:num/ paginate_path: /page:num/
timezone: # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones timezone: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Plugins # Plugins (previously gems:)
gems: plugins:
- jekyll-paginate - jekyll-paginate
- jekyll-sitemap - jekyll-sitemap
- jekyll-gist - jekyll-gist
+1 -1
View File
@@ -84,7 +84,7 @@
</p> </p>
<!-- End comment form alert messaging --> <!-- End comment form alert messaging -->
<fieldset> <fieldset>
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button> <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--primary btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
</fieldset> </fieldset>
</form> </form>
</div> </div>
+11
View File
@@ -30,3 +30,14 @@
} }
</style> </style>
<![endif]--> <![endif]-->
{% if site.head_scripts %}
{% for script in site.head_scripts %}
{% if script contains "://" %}
{% capture script_path %}{{ script }}{% endcapture %}
{% else %}
{% capture script_path %}{{ script | absolute_url }}{% endcapture %}
{% endif %}
<script src="{{ script_path }}"></script>
{% endfor %}
{% endif %}
+12 -1
View File
@@ -1,4 +1,15 @@
<script src="{{ '/assets/js/main.min.js' | absolute_url }}"></script> {% if site.footer_scripts %}
{% for script in site.footer_scripts %}
{% if script contains "://" %}
{% capture script_path %}{{ script }}{% endcapture %}
{% else %}
{% capture script_path %}{{ script | absolute_url }}{% endcapture %}
{% endif %}
<script src="{{ script_path }}"></script>
{% endfor %}
{% else %}
<script src="{{ '/assets/js/main.min.js' | absolute_url }}"></script>
{% endif %}
{% include analytics.html %} {% include analytics.html %}
{% include /comments-providers/scripts.html %} {% include /comments-providers/scripts.html %}
+1 -1
View File
@@ -3,7 +3,7 @@
<!doctype html> <!doctype html>
<!-- <!--
Minimal Mistakes Jekyll Theme 4.5.2 by Michael Rose Minimal Mistakes Jekyll Theme 4.6.0 by Michael Rose
Copyright 2017 Michael Rose - mademistakes.com | @mmistakes Copyright 2017 Michael Rose - mademistakes.com | @mmistakes
Free for personal and commercial use under the MIT license Free for personal and commercial use under the MIT license
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt
+1 -1
View File
@@ -35,7 +35,7 @@ layout: default
<section class="page__content" itemprop="text"> <section class="page__content" itemprop="text">
{{ content }} {{ content }}
{% if page.link %}<div><a href="{{ page.link }}" class="btn">{{ site.data.ui-text[site.locale].ext_link_label | default: "Direct Link" }}</a></div>{% endif %} {% if page.link %}<div><a href="{{ page.link }}" class="btn btn--primary">{{ site.data.ui-text[site.locale].ext_link_label | default: "Direct Link" }}</a></div>{% endif %}
</section> </section>
<footer class="page__meta"> <footer class="page__meta">
+1 -1
View File
@@ -1,5 +1,5 @@
/*! /*!
* Minimal Mistakes Jekyll Theme 4.5.2 by Michael Rose * Minimal Mistakes Jekyll Theme 4.6.0 by Michael Rose
* Copyright 2017 Michael Rose - mademistakes.com | @mmistakes * Copyright 2017 Michael Rose - mademistakes.com | @mmistakes
* Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt) * Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt)
*/ */
+2 -1
View File
@@ -26,7 +26,7 @@
margin: 1.414em 0 0; margin: 1.414em 0 0;
padding-bottom: 0.5em; padding-bottom: 0.5em;
font-size: $type-size-5; font-size: $type-size-5;
color: mix(#fff, $gray, 25%); color: $muted-text-color;
border-bottom: 1px solid $border-color; border-bottom: 1px solid $border-color;
+ .list__item .archive__item-title { + .list__item .archive__item-title {
@@ -72,6 +72,7 @@
} }
.archive__item:hover { .archive__item:hover {
.archive__item-teaser { .archive__item-teaser {
box-shadow: 0 0 10px rgba(#000, 0.25); box-shadow: 0 0 10px rgba(#000, 0.25);
} }
+8 -7
View File
@@ -118,8 +118,13 @@ a {
&:hover, &:hover,
&:active { &:active {
color: $link-color-hover;
outline: 0; outline: 0;
} }
&:visited {
color: $link-color-visited;
}
} }
/* code */ /* code */
@@ -141,7 +146,7 @@ td > code {
padding-bottom: 0.1rem; padding-bottom: 0.1rem;
font-size: $type-size-6; font-size: $type-size-6;
background: $code-background-color; background: $code-background-color;
border: 1px solid $lighter-gray; border: 1px solid $border-color;
border-radius: $border-radius; border-radius: $border-radius;
box-shadow: $box-shadow; box-shadow: $box-shadow;
@@ -236,20 +241,16 @@ figure {
figcaption { figcaption {
margin-bottom: 0.5em; margin-bottom: 0.5em;
color: mix(#fff, $text-color, 25%); color: $muted-text-color;
font-family: $caption-font-family; font-family: $caption-font-family;
font-size: $type-size-6; font-size: $type-size-6;
a { a {
color: inherit;
text-decoration: none;
border-bottom: 1px solid $light-gray;
-webkit-transition: $global-transition; -webkit-transition: $global-transition;
transition: $global-transition; transition: $global-transition;
&:hover { &:hover {
color: #000; color: $link-color-hover;
border-bottom-color: #000;
} }
} }
} }
+36 -91
View File
@@ -7,25 +7,19 @@
========================================================================== */ ========================================================================== */
.btn { .btn {
/* default button */ /* default */
display: inline-block; display: inline-block;
margin-bottom: 0.25em; margin-bottom: 0.25em;
padding: 0.5em 1em; padding: 0.5em 1em;
color: #fff !important;
font-family: $sans-serif; font-family: $sans-serif;
font-size: $type-size-6; font-size: $type-size-6;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
background-color: $primary-color; border-width: 0;
border: 0 !important;
border-radius: $border-radius; border-radius: $border-radius;
cursor: pointer; cursor: pointer;
&:hover {
background-color: mix(white, #000, 20%);
}
.icon { .icon {
margin-right: 0.5em; margin-right: 0.5em;
} }
@@ -34,8 +28,41 @@
margin-left: -0.5em; /* override for hidden text*/ margin-left: -0.5em; /* override for hidden text*/
} }
/* fills width of parent container */ /* button colors */
$buttoncolors:
(primary, $primary-color),
(inverse, #fff),
(light-outline, transparent),
(success, $success-color),
(warning, $warning-color),
(danger, $danger-color),
(info, $info-color),
(facebook, $facebook-color),
(twitter, $twitter-color),
(google-plus, $google-plus-color),
(linkedin, $linkedin-color);
@each $buttoncolor, $color in $buttoncolors {
&--#{$buttoncolor} {
@include yiq-contrasted($color);
@if ($buttoncolor == inverse) {
border: 1px solid $border-color;
}
@if ($buttoncolor == light-outline) {
border: 1px solid #fff;
}
&:hover {
@include yiq-contrasted(mix(#000, $color, 20%));
}
&:visited {
@include yiq-contrasted($color);
}
}
}
/* fills width of parent container */
&--block { &--block {
display: block; display: block;
width: 100%; width: 100%;
@@ -45,68 +72,7 @@
} }
} }
/* for dark backgrounds */
&--inverse {
color: $gray !important;
border: 1px solid $light-gray !important; /* override*/
background-color: #fff;
&:hover {
color: #fff !important;
border-color: $gray;
}
}
/* light outline */
&--light-outline {
border: 1px solid #fff !important; /* override*/
background-color: transparent;
}
/* information */
&--info {
background-color: $info-color;
&:hover {
background-color: mix(#000, $info-color, 20%);
}
}
/* warning */
&--warning {
background-color: $warning-color;
&:hover {
background-color: mix(#000, $warning-color, 20%);
}
}
/* success */
&--success {
background-color: $success-color;
&:hover {
background-color: mix(#000, $success-color, 20%);
}
}
/* danger */
&--danger {
background-color: $danger-color;
&:hover {
background-color: mix(#000, $danger-color, 20%);
}
}
/* disabled */ /* disabled */
&--disabled { &--disabled {
pointer-events: none; pointer-events: none;
cursor: not-allowed; cursor: not-allowed;
@@ -115,38 +81,17 @@
opacity: 0.65; opacity: 0.65;
} }
/* social buttons */
$social:
(facebook, $facebook-color),
(twitter, $twitter-color),
(google-plus, $google-plus-color),
(linkedin, $linkedin-color);
@each $socialnetwork, $color in $social {
&--#{$socialnetwork} {
background-color: $color;
&:hover {
background-color: mix(#000, $color, 20%);
}
}
}
/* extra large button */ /* extra large button */
&--x-large { &--x-large {
font-size: $type-size-4; font-size: $type-size-4;
} }
/* large button */ /* large button */
&--large { &--large {
font-size: $type-size-5; font-size: $type-size-5;
} }
/* small button */ /* small button */
&--small { &--small {
font-size: $type-size-7; font-size: $type-size-7;
} }
+3 -4
View File
@@ -15,13 +15,12 @@
height: auto; height: auto;
/* sticky footer fix end */ /* sticky footer fix end */
margin-top: 3em; margin-top: 3em;
color: mix(#fff, $gray, 25%); color: $muted-text-color;
-webkit-animation: $intro-transition; -webkit-animation: $intro-transition;
animation: $intro-transition; animation: $intro-transition;
-webkit-animation-delay: 0.45s; -webkit-animation-delay: 0.45s;
animation-delay: 0.45s; animation-delay: 0.45s;
background-color: $lighter-gray; background-color: $footer-background-color;
border-top: 1px solid $light-gray;
footer { footer {
@include clearfix; @include clearfix;
@@ -46,7 +45,7 @@
} }
.fa { .fa {
color: mix(#fff, $gray, 25%); color: $muted-text-color;
} }
} }
+7 -9
View File
@@ -4,6 +4,8 @@
form { form {
margin: 0 0 5px 0; margin: 0 0 5px 0;
padding: 1em;
background-color: $form-background-color;
fieldset { fieldset {
margin-bottom: 5px; margin-bottom: 5px;
@@ -19,7 +21,6 @@ form {
padding: 0; padding: 0;
color: $text-color; color: $text-color;
border: 0; border: 0;
border-bottom: 1px solid mix(#fff, #000, 80%);
white-space: normal; white-space: normal;
} }
@@ -80,14 +81,10 @@ select {
padding: 0.25em; padding: 0.25em;
margin-bottom: 0.5em; margin-bottom: 0.5em;
color: $text-color; color: $text-color;
background-color: #fff; background-color: $background-color;
border: 1px solid mix(#fff, #000, 80%); border: $border-color;
border-radius: $border-radius; border-radius: $border-radius;
box-shadow: $box-shadow; box-shadow: $box-shadow;
&:hover {
border-color: mix(#fff, $primary-color, 50%);
}
} }
.input-mini { .input-mini {
@@ -224,6 +221,7 @@ textarea:focus {
border-color: $primary-color; border-color: $primary-color;
outline: 0; outline: 0;
outline: thin dotted \9; outline: thin dotted \9;
box-shadow: inset 0 1px 3px rgba($text-color, 0.06), 0 0 5px rgba($primary-color, 0.7);
} }
input[type="file"]:focus, input[type="file"]:focus,
@@ -240,7 +238,7 @@ select:focus {
.help-block, .help-block,
.help-inline { .help-inline {
color: $info-color; color: $muted-text-color;
} }
.help-block { .help-block {
@@ -382,7 +380,7 @@ select:focus {
color: #000; color: #000;
border-width: 2px !important; border-width: 2px !important;
border-style: solid !important; border-style: solid !important;
border-color: lighten(#000,50); border-color: $border-color;
border-radius: $border-radius; border-radius: $border-radius;
} }
+39
View File
@@ -51,3 +51,42 @@
display: table; display: table;
} }
} }
/*
Compass YIQ Color Contrast
https://github.com/easy-designs/yiq-color-contrast
========================================================================== */
@function yiq-is-light(
$color,
$threshold: $yiq-contrasted-threshold
) {
$red: red($color);
$green: green($color);
$blue: blue($color);
$yiq: (($red*299)+($green*587)+($blue*114))/1000;
@if $yiq-debug { @debug $yiq, $threshold; }
@return if($yiq >= $threshold, true, false);
}
@function yiq-contrast-color(
$color,
$dark: $yiq-contrasted-dark-default,
$light: $yiq-contrasted-light-default,
$threshold: $yiq-contrasted-threshold
) {
@return if(yiq-is-light($color, $threshold), $yiq-contrasted-dark-default, $yiq-contrasted-light-default);
}
@mixin yiq-contrasted(
$background-color,
$dark: $yiq-contrasted-dark-default,
$light: $yiq-contrasted-light-default,
$threshold: $yiq-contrasted-threshold
) {
background-color: $background-color;
color: yiq-contrast-color($background-color, $dark, $light, $threshold);
}
File diff suppressed because it is too large Load Diff
+1
View File
@@ -13,6 +13,7 @@
@mixin notice($notice-color) { @mixin notice($notice-color) {
margin: 2em 0 !important; /* override*/ margin: 2em 0 !important; /* override*/
padding: 1em; padding: 1em;
color: $dark-gray;
font-family: $global-font-family; font-family: $global-font-family;
font-size: $type-size-6 !important; font-size: $type-size-6 !important;
text-indent: initial; /* override*/ text-indent: initial; /* override*/
+3 -6
View File
@@ -91,8 +91,7 @@
} }
} }
a { a:not(.btn) {
text-decoration: none;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
@@ -250,7 +249,7 @@
.page__meta { .page__meta {
margin-top: 2em; margin-top: 2em;
color: mix(#fff, $gray, 25%); color: $muted-text-color;
font-family: $sans-serif; font-family: $sans-serif;
font-size: $type-size-6; font-size: $type-size-6;
@@ -290,7 +289,7 @@
margin-bottom: 8px; margin-bottom: 8px;
padding: 5px 10px; padding: 5px 10px;
text-decoration: none; text-decoration: none;
border: 1px solid $light-gray; border: 1px solid mix(#000, $border-color, 25%);
border-radius: $border-radius; border-radius: $border-radius;
&:hover { &:hover {
@@ -322,8 +321,6 @@
} }
.page__comments-form { .page__comments-form {
padding: 1em;
background: $lighter-gray;
-webkit-transition: $global-transition; -webkit-transition: $global-transition;
transition: $global-transition; transition: $global-transition;
+2 -2
View File
@@ -189,7 +189,7 @@
list-style-type: none; list-style-type: none;
border: 1px solid $border-color; border: 1px solid $border-color;
border-radius: $border-radius; border-radius: $border-radius;
background: #fff; background: $background-color;
z-index: -1; z-index: -1;
box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12); box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12);
cursor: default; cursor: default;
@@ -234,7 +234,7 @@
width: 0; width: 0;
border-style: solid; border-style: solid;
border-width: 0 10px 10px; border-width: 0 10px 10px;
border-color: #fff transparent; border-color: $background-color transparent;
z-index: 1; z-index: 1;
@include breakpoint($large) { @include breakpoint($large) {
+2 -2
View File
@@ -19,7 +19,7 @@ figure.highlight {
top: 0; top: 0;
right: 0; right: 0;
padding: 0.5em; padding: 0.5em;
background-color: $lighter-gray; background-color: $border-color;
content: "\f121"; content: "\f121";
font-family: "fontawesome" !important; font-family: "fontawesome" !important;
line-height: 1; line-height: 1;
@@ -49,7 +49,7 @@ figure.highlight {
/* line numbers*/ /* line numbers*/
&.gutter { &.gutter {
padding-right: 1em; padding-right: 1em;
color: $light-gray; color: rgba($muted-text-color, 0.5);
} }
} }
+3 -3
View File
@@ -15,8 +15,8 @@ table {
} }
thead { thead {
background-color: $lighter-gray; background-color: $border-color;
border-bottom: 2px solid $light-gray; border-bottom: 2px solid mix(#000, $border-color, 25%);
} }
th { th {
@@ -27,7 +27,7 @@ th {
td { td {
padding: 0.5em; padding: 0.5em;
border-bottom: 1px solid $light-gray; border-bottom: 1px solid mix(#000, $border-color, 25%);
} }
tr, tr,
+2 -2
View File
@@ -57,7 +57,7 @@ body:hover .visually-hidden button {
background: #fff; background: #fff;
z-index: 100000; z-index: 100000;
text-decoration: none; text-decoration: none;
box-shadow: 0 0 2px 2px rgba(0,0,0,.6); box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
} }
@@ -185,7 +185,7 @@ body:hover .visually-hidden button {
.social-icons { .social-icons {
.fa { .fa {
color: #000; color: $text-color;
} }
.fa-behance, .fa-behance,
+89 -82
View File
@@ -6,125 +6,132 @@
Typography Typography
========================================================================== */ ========================================================================== */
$doc-font-size : 16 !default; $doc-font-size : 16 !default;
/* paragraph indention */ /* paragraph indention */
$paragraph-indent : false !default; // true, false (default) $paragraph-indent : false !default; // true, false (default)
$indent-var : 1.3em !default; $indent-var : 1.3em !default;
/* system typefaces */ /* system typefaces */
$serif : Georgia, Times, serif !default; $serif : Georgia, Times, serif !default;
$sans-serif : -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif !default; $sans-serif : -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif !default;
$monospace : Monaco, Consolas, "Lucida Console", monospace !default; $monospace : Monaco, Consolas, "Lucida Console", monospace !default;
/* sans serif typefaces */ /* sans serif typefaces */
$sans-serif-narrow : $sans-serif !default; $sans-serif-narrow : $sans-serif !default;
$helvetica : Helvetica, "Helvetica Neue", Arial, sans-serif !default; $helvetica : Helvetica, "Helvetica Neue", Arial, sans-serif !default;
/* serif typefaces */ /* serif typefaces */
$georgia : Georgia, serif !default; $georgia : Georgia, serif !default;
$times : Times, serif !default; $times : Times, serif !default;
$bodoni : "Bodoni MT", serif !default; $bodoni : "Bodoni MT", serif !default;
$calisto : "Calisto MT", serif !default; $calisto : "Calisto MT", serif !default;
$garamond : Garamond, serif !default; $garamond : Garamond, serif !default;
$global-font-family : $sans-serif !default; $global-font-family : $sans-serif !default;
$header-font-family : $sans-serif !default; $header-font-family : $sans-serif !default;
$caption-font-family : $serif !default; $caption-font-family : $serif !default;
/* type scale */ /* type scale */
$type-size-1 : 2.441em !default; // ~39.056px $type-size-1 : 2.441em !default; // ~39.056px
$type-size-2 : 1.953em !default; // ~31.248px $type-size-2 : 1.953em !default; // ~31.248px
$type-size-3 : 1.563em !default; // ~25.008px $type-size-3 : 1.563em !default; // ~25.008px
$type-size-4 : 1.25em !default; // ~20px $type-size-4 : 1.25em !default; // ~20px
$type-size-5 : 1em !default; // ~16px $type-size-5 : 1em !default; // ~16px
$type-size-6 : 0.75em !default; // ~12px $type-size-6 : 0.75em !default; // ~12px
$type-size-7 : 0.6875em !default; // ~11px $type-size-7 : 0.6875em !default; // ~11px
$type-size-8 : 0.625em !default; // ~10px $type-size-8 : 0.625em !default; // ~10px
/* /*
Colors Colors
========================================================================== */ ========================================================================== */
$gray : #7a8288 !default; $gray : #7a8288 !default;
$dark-gray : mix(#000, $gray, 40%) !default; $dark-gray : mix(#000, $gray, 40%) !default;
$darker-gray : mix(#000, $gray, 60%) !default; $darker-gray : mix(#000, $gray, 60%) !default;
$light-gray : mix(#fff, $gray, 50%) !default; $light-gray : mix(#fff, $gray, 50%) !default;
$lighter-gray : mix(#fff, $gray, 90%) !default; $lighter-gray : mix(#fff, $gray, 90%) !default;
$body-color : #fff !default; $background-color : #fff !default;
$background-color : #fff !default; $code-background-color : #fafafa !default;
$code-background-color : #fafafa !default; $code-background-color-dark : $light-gray !default;
$code-background-color-dark : $light-gray !default; $text-color : $dark-gray !default;
$text-color : $dark-gray !default; $muted-text-color : mix(#fff, $text-color, 35%) !default;
$border-color : $lighter-gray !default; $border-color : $lighter-gray !default;
$form-background-color : $lighter-gray !default;
$footer-background-color : $lighter-gray !default;
$primary-color : #7a8288 !default; $primary-color : #7a8288 !default;
$success-color : #62c462 !default; $success-color : #62c462 !default;
$warning-color : #f89406 !default; $warning-color : #f89406 !default;
$danger-color : #ee5f5b !default; $danger-color : #ee5f5b !default;
$info-color : #52adc8 !default; $info-color : #52adc8 !default;
/* YIQ color contrast */
$yiq-contrasted-dark-default : $dark-gray !default;
$yiq-contrasted-light-default : #fff !default;
$yiq-contrasted-threshold : 175 !default;
$yiq-debug : false !default;
/* brands */ /* brands */
$behance-color : #1769FF !default; $behance-color : #1769FF !default;
$bitbucket-color : #205081 !default; $bitbucket-color : #205081 !default;
$dribbble-color : #ea4c89 !default; $dribbble-color : #ea4c89 !default;
$facebook-color : #3b5998 !default; $facebook-color : #3b5998 !default;
$flickr-color : #ff0084 !default; $flickr-color : #ff0084 !default;
$foursquare-color : #0072b1 !default; $foursquare-color : #0072b1 !default;
$github-color : #171516 !default; $github-color : #171516 !default;
$google-plus-color : #dd4b39 !default; $google-plus-color : #dd4b39 !default;
$instagram-color : #517fa4 !default; $instagram-color : #517fa4 !default;
$lastfm-color : #d51007 !default; $lastfm-color : #d51007 !default;
$linkedin-color : #007bb6 !default; $linkedin-color : #007bb6 !default;
$pinterest-color : #cb2027 !default; $pinterest-color : #cb2027 !default;
$rss-color : #fa9b39 !default; $rss-color : #fa9b39 !default;
$soundcloud-color : #ff3300 !default; $soundcloud-color : #ff3300 !default;
$stackoverflow-color : #fe7a15 !default; $stackoverflow-color : #fe7a15 !default;
$tumblr-color : #32506d !default; $tumblr-color : #32506d !default;
$twitter-color : #55acee !default; $twitter-color : #55acee !default;
$vimeo-color : #1ab7ea !default; $vimeo-color : #1ab7ea !default;
$vine-color : #00bf8f !default; $vine-color : #00bf8f !default;
$youtube-color : #bb0000 !default; $youtube-color : #bb0000 !default;
$xing-color : #006567 !default; $xing-color : #006567 !default;
/* links */ /* links */
$link-color : $info-color !default; $link-color : $info-color !default;
$link-color-hover : mix(#000, $link-color, 25%) !default; $link-color-hover : mix(#000, $link-color, 25%) !default;
$link-color-visited : mix(#fff, $link-color, 25%) !default; $link-color-visited : mix(#fff, $link-color, 25%) !default;
$masthead-link-color : $primary-color !default; $masthead-link-color : $primary-color !default;
$masthead-link-color-hover : mix(#000, $primary-color, 25%) !default; $masthead-link-color-hover : mix(#000, $primary-color, 25%) !default;
$navicon-link-color-hover : mix(#fff, $primary-color, 75%) !default; $navicon-link-color-hover : mix(#fff, $primary-color, 75%) !default;
/* /*
Breakpoints Breakpoints
========================================================================== */ ========================================================================== */
$small : 600px !default; $small : 600px !default;
$medium : 768px !default; $medium : 768px !default;
$medium-wide : 900px !default; $medium-wide : 900px !default;
$large : 1024px !default; $large : 1024px !default;
$x-large : 1280px !default; $x-large : 1280px !default;
/* /*
Grid Grid
========================================================================== */ ========================================================================== */
$right-sidebar-width-narrow : 200px !default; $right-sidebar-width-narrow : 200px !default;
$right-sidebar-width : 300px !default; $right-sidebar-width : 300px !default;
$right-sidebar-width-wide : 400px !default; $right-sidebar-width-wide : 400px !default;
/* /*
Other Other
========================================================================== */ ========================================================================== */
$border-radius : 4px !default; $border-radius : 4px !default;
$box-shadow : 0 1px 1px rgba(0, 0, 0, 0.125) !default; $box-shadow : 0 1px 1px rgba(0, 0, 0, 0.125) !default;
$navicon-width : 1.5rem !default; $navicon-width : 1.5rem !default;
$navicon-height : 0.25rem !default; $navicon-height : 0.25rem !default;
$global-transition : all 0.2s ease-in-out !default; $global-transition : all 0.2s ease-in-out !default;
$intro-transition : intro 0.3s both !default; $intro-transition : intro 0.3s both !default;
+23
View File
@@ -0,0 +1,23 @@
/* ==========================================================================
Air skin
========================================================================== */
/* Colors */
$background-color: #eeeeee !default;
$text-color: #222831 !default;
$muted-text-color: #393e46 !default;
$primary-color: #0092ca !default;
$border-color: mix(#fff, #393e46, 75%) !default;
$footer-background-color: $primary-color !default;
$link-color: #393e46 !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: $text-color !default;
$navicon-link-color-hover: mix(#fff, $text-color, 80%) !default;
.page__footer {
color: #fff !important; // override
}
.page__footer-follow .social-icons .fa {
color: inherit;
}
@@ -0,0 +1,34 @@
/* ==========================================================================
Contrast skin
========================================================================== */
/* Colors */
$text-color: #000 !default;
$muted-text-color: $text-color !default;
$primary-color: #ff0000 !default;
$border-color: mix(#fff, $text-color, 75%) !default;
$footer-background-color: #000 !default;
$link-color: #0000ff !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: $text-color !default;
$navicon-link-color-hover: mix(#fff, $text-color, 80%) !default;
.page__content {
.notice,
.notice--primary,
.notice--info,
.notice--warning,
.notice--success,
.notice--danger {
color: $text-color;
}
}
.page__footer {
color: #fff !important; // override
}
.page__footer-follow .social-icons .fa {
color: inherit;
}
+24
View File
@@ -0,0 +1,24 @@
/* ==========================================================================
Dark skin
========================================================================== */
/* Colors */
$background-color: #252a34 !default;
$text-color: #eaeaea !default;
$primary-color: #00adb5 !default;
$border-color: mix(#fff, $background-color, 20%) !default;
$code-background-color: mix(#000, $background-color, 15%) !default;
$code-background-color-dark: mix(#000, $background-color, 20%) !default;
$form-background-color: mix(#000, $background-color, 15%) !default;
$footer-background-color: mix(#000, $background-color, 30%) !default;
$link-color: mix($primary-color, $text-color, 40%) !default;
$link-color-hover: mix(#fff, $link-color, 25%) !default;
$link-color-visited: mix(#000, $link-color, 25%) !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: mix(#000, $text-color, 20%) !default;
$navicon-link-color-hover: mix(#000, $background-color, 30%) !default;
.author__urls.social-icons .fa,
.page__footer-follow .social-icons .fa {
color: inherit;
}
@@ -0,0 +1,5 @@
/* ==========================================================================
Default skin
========================================================================== */
// Intentionally left blank
+15
View File
@@ -0,0 +1,15 @@
/* ==========================================================================
Dirt skin
========================================================================== */
/* Colors */
$background-color: #f3f3f3 !default;
$text-color: #343434 !default;
$muted-text-color: #8e8b82 !default;
$primary-color: #343434 !default;
$border-color: #e9dcbe !default;
$footer-background-color: #e9dcbe !default;
$link-color: #343434 !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: $text-color !default;
$navicon-link-color-hover: mix(#fff, $text-color, 80%) !default;
+23
View File
@@ -0,0 +1,23 @@
/* ==========================================================================
Mint skin
========================================================================== */
/* Colors */
$background-color: #f3f6f6 !default;
$text-color: #40514e !default;
$muted-text-color: #40514e !default;
$primary-color: #11999e !default;
$border-color: mix(#fff, #40514e, 75%) !default;
$footer-background-color: #30e3ca !default;
$link-color: #11999e !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: $text-color !default;
$navicon-link-color-hover: mix(#fff, $text-color, 80%) !default;
.page__footer {
color: #fff !important; // override
}
.page__footer-follow .social-icons .fa {
color: inherit;
}
@@ -0,0 +1,26 @@
/* ==========================================================================
Sunrise skin
========================================================================== */
/* Colors */
$dark-gray: #0e2431 !default;
$background-color: #e8d5b7 !default;
$text-color: #000 !default;
$muted-text-color: $dark-gray !default;
$primary-color: #fc3a52 !default;
$border-color: mix(#000, $background-color, 20%) !default;
$code-background-color: mix(#fff, $background-color, 20%) !default;
$code-background-color-dark: mix(#000, $background-color, 10%) !default;
$form-background-color: mix(#fff, $background-color, 15%) !default;
$footer-background-color: #f9b248 !default;
$link-color: mix(#000, $primary-color, 10%) !default;
$link-color-hover: mix(#fff, $link-color, 25%) !default;
$link-color-visited: mix(#000, $link-color, 25%) !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: mix(#000, $text-color, 20%) !default;
$navicon-link-color-hover: mix(#000, $background-color, 30%) !default;
.author__urls.social-icons .fa,
.page__footer-follow .social-icons .fa {
color: inherit;
}
+2 -1
View File
@@ -4,4 +4,5 @@
@charset "utf-8"; @charset "utf-8";
@import "minimal-mistakes"; @import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin
@import "minimal-mistakes"; // main partials
+5 -5
View File
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
+4 -3
View File
@@ -1,8 +1,9 @@
/*! /*!
* jQuery Smooth Scroll - v1.7.2 - 2016-01-23 * jQuery Smooth Scroll - v2.2.0 - 2017-05-05
* https://github.com/kswedberg/jquery-smooth-scroll * https://github.com/kswedberg/jquery-smooth-scroll
* Copyright (c) 2016 Karl Swedberg * Copyright (c) 2017 Karl Swedberg
* Licensed MIT * Licensed MIT
*/ */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(a){var b="1.7.2",c={},d={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},e=function(b){var c=[],d=!1,e=b.dir&&"left"===b.dir?"scrollLeft":"scrollTop";return this.each(function(){var b=a(this);if(this!==document&&this!==window)return!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(b[e]()>0?c.push(this):(b[e](1),d=b[e]()>0,d&&c.push(this),b[e](0))):(c.push(document.scrollingElement),!1)}),c.length||this.each(function(){this===document.documentElement&&"smooth"===a(this).css("scrollBehavior")&&(c=[this]),c.length||"BODY"!==this.nodeName||(c=[this])}),"first"===b.el&&c.length>1&&(c=[c[0]]),c};a.fn.extend({scrollable:function(a){var b=e.call(this,{dir:a});return this.pushStack(b)},firstScrollable:function(a){var b=e.call(this,{el:"first",dir:a});return this.pushStack(b)},smoothScroll:function(b,c){if(b=b||{},"options"===b)return c?this.each(function(){var b=a(this),d=a.extend(b.data("ssOpts")||{},c);a(this).data("ssOpts",d)}):this.first().data("ssOpts");var d=a.extend({},a.fn.smoothScroll.defaults,b),e=function(b){var c=function(a){return a.replace(/(:|\.|\/)/g,"\\$1")},e=this,f=a(this),g=a.extend({},d,f.data("ssOpts")||{}),h=d.exclude,i=g.excludeWithin,j=0,k=0,l=!0,m={},n=a.smoothScroll.filterPath(location.pathname),o=a.smoothScroll.filterPath(e.pathname),p=location.hostname===e.hostname||!e.hostname,q=g.scrollTarget||o===n,r=c(e.hash);if(r&&!a(r).length&&(l=!1),g.scrollTarget||p&&q&&r){for(;l&&j<h.length;)f.is(c(h[j++]))&&(l=!1);for(;l&&k<i.length;)f.closest(i[k++]).length&&(l=!1)}else l=!1;l&&(g.preventDefault&&b.preventDefault(),a.extend(m,g,{scrollTarget:g.scrollTarget||r,link:e}),a.smoothScroll(m))};return null!==b.delegateSelector?this.undelegate(b.delegateSelector,"click.smoothscroll").delegate(b.delegateSelector,"click.smoothscroll",e):this.unbind("click.smoothscroll").bind("click.smoothscroll",e),this}}),a.smoothScroll=function(b,d){if("options"===b&&"object"==typeof d)return a.extend(c,d);var e,f,g,h,i,j=0,k="offset",l="scrollTop",m={},n={};"number"==typeof b?(e=a.extend({link:null},a.fn.smoothScroll.defaults,c),g=b):(e=a.extend({link:null},a.fn.smoothScroll.defaults,b||{},c),e.scrollElement&&(k="position","static"===e.scrollElement.css("position")&&e.scrollElement.css("position","relative"))),l="left"===e.direction?"scrollLeft":l,e.scrollElement?(f=e.scrollElement,/^(?:HTML|BODY)$/.test(f[0].nodeName)||(j=f[l]())):f=a("html, body").firstScrollable(e.direction),e.beforeScroll.call(f,e),g="number"==typeof b?b:d||a(e.scrollTarget)[k]()&&a(e.scrollTarget)[k]()[e.direction]||0,m[l]=g+j+e.offset,h=e.speed,"auto"===h&&(i=Math.abs(m[l]-f[l]()),h=i/e.autoCoefficient),n={duration:h,easing:e.easing,complete:function(){e.afterScroll.call(e.link,e)}},e.step&&(n.step=e.step),f.length?f.stop().animate(m,n):e.afterScroll.call(e.link,e)},a.smoothScroll.version=b,a.smoothScroll.filterPath=function(a){return a=a||"",a.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},a.fn.smoothScroll.defaults=d});
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(a){var b={},c={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,autoFocus:!1,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},d=function(b){var c=[],d=!1,e=b.dir&&"left"===b.dir?"scrollLeft":"scrollTop";return this.each(function(){var b=a(this);if(this!==document&&this!==window)return!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(b[e]()>0?c.push(this):(b[e](1),d=b[e]()>0,d&&c.push(this),b[e](0))):(c.push(document.scrollingElement),!1)}),c.length||this.each(function(){this===document.documentElement&&"smooth"===a(this).css("scrollBehavior")&&(c=[this]),c.length||"BODY"!==this.nodeName||(c=[this])}),"first"===b.el&&c.length>1&&(c=[c[0]]),c},e=/^([\-\+]=)(\d+)/;a.fn.extend({scrollable:function(a){var b=d.call(this,{dir:a});return this.pushStack(b)},firstScrollable:function(a){var b=d.call(this,{el:"first",dir:a});return this.pushStack(b)},smoothScroll:function(b,c){if("options"===(b=b||{}))return c?this.each(function(){var b=a(this),d=a.extend(b.data("ssOpts")||{},c);a(this).data("ssOpts",d)}):this.first().data("ssOpts");var d=a.extend({},a.fn.smoothScroll.defaults,b),e=function(b){var c=function(a){return a.replace(/(:|\.|\/)/g,"\\$1")},e=this,f=a(this),g=a.extend({},d,f.data("ssOpts")||{}),h=d.exclude,i=g.excludeWithin,j=0,k=0,l=!0,m={},n=a.smoothScroll.filterPath(location.pathname),o=a.smoothScroll.filterPath(e.pathname),p=location.hostname===e.hostname||!e.hostname,q=g.scrollTarget||o===n,r=c(e.hash);if(r&&!a(r).length&&(l=!1),g.scrollTarget||p&&q&&r){for(;l&&j<h.length;)f.is(c(h[j++]))&&(l=!1);for(;l&&k<i.length;)f.closest(i[k++]).length&&(l=!1)}else l=!1;l&&(g.preventDefault&&b.preventDefault(),a.extend(m,g,{scrollTarget:g.scrollTarget||r,link:e}),a.smoothScroll(m))};return null!==b.delegateSelector?this.off("click.smoothscroll",b.delegateSelector).on("click.smoothscroll",b.delegateSelector,e):this.off("click.smoothscroll").on("click.smoothscroll",e),this}});var f=function(a){var b={relative:""},c="string"==typeof a&&e.exec(a);return"number"==typeof a?b.px=a:c&&(b.relative=c[1],b.px=parseFloat(c[2])||0),b},g=function(b){var c=a(b.scrollTarget);b.autoFocus&&c.length&&(c[0].focus(),c.is(document.activeElement)||(c.prop({tabIndex:-1}),c[0].focus())),b.afterScroll.call(b.link,b)};a.smoothScroll=function(c,d){if("options"===c&&"object"==typeof d)return a.extend(b,d);var e,h,i,j,k=f(c),l={},m=0,n="offset",o="scrollTop",p={},q={};k.px?e=a.extend({link:null},a.fn.smoothScroll.defaults,b):(e=a.extend({link:null},a.fn.smoothScroll.defaults,c||{},b),e.scrollElement&&(n="position","static"===e.scrollElement.css("position")&&e.scrollElement.css("position","relative")),d&&(k=f(d))),o="left"===e.direction?"scrollLeft":o,e.scrollElement?(h=e.scrollElement,k.px||/^(?:HTML|BODY)$/.test(h[0].nodeName)||(m=h[o]())):h=a("html, body").firstScrollable(e.direction),e.beforeScroll.call(h,e),l=k.px?k:{relative:"",px:a(e.scrollTarget)[n]()&&a(e.scrollTarget)[n]()[e.direction]||0},p[o]=l.relative+(l.px+m+e.offset),i=e.speed,"auto"===i&&(j=Math.abs(p[o]-h[o]()),i=j/e.autoCoefficient),q={duration:i,easing:e.easing,complete:function(){g(e)}},e.step&&(q.step=e.step),h.length?h.stop().animate(p,q):g(e)},a.smoothScroll.version="2.2.0",a.smoothScroll.filterPath=function(a){return a=a||"",a.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},a.fn.smoothScroll.defaults=c});
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
View File
@@ -5,6 +5,8 @@
# For technical reasons, this file is *NOT* reloaded automatically when you use # For technical reasons, this file is *NOT* reloaded automatically when you use
# `jekyll serve`. If you change this file, please restart the server process. # `jekyll serve`. If you change this file, please restart the server process.
minimal_mistakes_skin : "default" # "air", "contrast", "dark", "dirt", "mint", "sunrise"
# Site Settings # Site Settings
locale : "en-US" locale : "en-US"
title : "Minimal Mistakes" title : "Minimal Mistakes"
+81 -1
View File
@@ -2,7 +2,7 @@
title: "Configuration" title: "Configuration"
permalink: /docs/configuration/ permalink: /docs/configuration/
excerpt: "Settings for configuring and customizing the theme." excerpt: "Settings for configuring and customizing the theme."
last_modified_at: 2017-09-05T12:06:30-04:00 last_modified_at: 2017-09-12T12:25:16-04:00
--- ---
Settings that affect your entire site can be changed in [Jekyll's configuration file](https://jekyllrb.com/docs/configuration/): `_config.yml`, found in the root of your project. If you don't have this file you'll need to copy or create one using the theme's [default `_config.yml`](https://github.com/mmistakes/minimal-mistakes/blob/master/_config.yml) as a base. Settings that affect your entire site can be changed in [Jekyll's configuration file](https://jekyllrb.com/docs/configuration/): `_config.yml`, found in the root of your project. If you don't have this file you'll need to copy or create one using the theme's [default `_config.yml`](https://github.com/mmistakes/minimal-mistakes/blob/master/_config.yml) as a base.
@@ -24,6 +24,71 @@ If you're using the Ruby gem version of the theme you'll need this line to activ
theme: minimal-mistakes-jekyll theme: minimal-mistakes-jekyll
``` ```
### Skin
Easily change the color scheme of the theme using one of the provided "skins":
```yaml
minimal_mistakes_skin : "default" # "air", "contrast", "dark", "dirt", "mint", "sunrise"
```
**Note:** If you have made edits to the theme's CSS files be sure to update [`/assets/css/main.scss`](https://github.com/mmistakes/minimal-mistakes/blob/master/assets/css/main.scss) to include `@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin` before the `minimal-mistakes` import.
{: .notice--warning}
#### Air skin: `air`
{:.no_toc}
<figure class="half">
<a href="{{ site.baseurl }}/assets/images/air-skin-archive-large.png"><img src="{{ site.baseurl }}/assets/images/air-skin-archive.png"></a>
<a href="{{ site.baseurl }}/assets/images/air-skin-post-large.png"><img src="{{ site.baseurl }}/assets/images/air-skin-post.png"></a>
<figcaption>Calm and blue.</figcaption>
</figure>
#### Contrast skin: `contrast`
{:.no_toc}
<figure class="half">
<a href="{{ site.baseurl }}/assets/images/contrast-skin-archive-large.png"><img src="{{ site.baseurl }}/assets/images/contrast-skin-archive.png"></a>
<a href="{{ site.baseurl }}/assets/images/contrast-skin-post-large.png"><img src="{{ site.baseurl }}/assets/images/contrast-skin-post.png"></a>
<figcaption>Retro feel with bold blue links and inverted footer.</figcaption>
</figure>
#### Dark skin: `dark`
{:.no_toc}
<figure class="half">
<a href="{{ site.baseurl }}/assets/images/dark-skin-archive-large.png"><img src="{{ site.baseurl }}/assets/images/dark-skin-archive.png"></a>
<a href="{{ site.baseurl }}/assets/images/dark-skin-post-large.png"><img src="{{ site.baseurl }}/assets/images/dark-skin-post.png"></a>
<figcaption>Inverted palette, white text on a dark background.</figcaption>
</figure>
#### Dirt skin: `dirt`
{:.no_toc}
<figure class="half">
<a href="{{ site.baseurl }}/assets/images/dirt-skin-archive-large.png"><img src="{{ site.baseurl }}/assets/images/dirt-skin-archive.png"></a>
<a href="{{ site.baseurl }}/assets/images/dirt-skin-post-large.png"><img src="{{ site.baseurl }}/assets/images/dirt-skin-post.png"></a>
<figcaption>Earthy tones.</figcaption>
</figure>
#### Mint skin: `mint`
{:.no_toc}
<figure class="half">
<a href="{{ site.baseurl }}/assets/images/mint-skin-archive-large.png"><img src="{{ site.baseurl }}/assets/images/mint-skin-archive.png"></a>
<a href="{{ site.baseurl }}/assets/images/mint-skin-post-large.png"><img src="{{ site.baseurl }}/assets/images/mint-skin-post.png"></a>
<figcaption>Minty fresh green.</figcaption>
</figure>
#### Sunrise skin: `sunrise`
{:.no_toc}
<figure class="half">
<a href="{{ site.baseurl }}/assets/images/sunrise-skin-archive-large.png"><img src="{{ site.baseurl }}/assets/images/sunrise-skin-archive.png"></a>
<a href="{{ site.baseurl }}/assets/images/sunrise-skin-post-large.png"><img src="{{ site.baseurl }}/assets/images/sunrise-skin-post.png"></a>
<figcaption>Oranges and red.</figcaption>
</figure>
### Site Locale ### Site Locale
`site.locale` is used to declare the primary language for each web page within the site. `site.locale` is used to declare the primary language for each web page within the site.
@@ -102,6 +167,21 @@ If you don't set `repository` correctly you may see the following error when try
For more information on how `site.github` data can be used with Jekyll check out [`github-metadata`'s documentation](https://github.com/jekyll/github-metadata). For more information on how `site.github` data can be used with Jekyll check out [`github-metadata`'s documentation](https://github.com/jekyll/github-metadata).
### Site Scripts
Add scripts to the `<head>` or closing `</body>` elements by assigning paths to either `head_scripts` and/or `footer_scripts`.
For example, to add a CDN version of jQuery to page's head along with a custom script you'd do the following:
```yaml
head_scripts:
- https://code.jquery.com/jquery-3.2.1.min.js
- /assets/js/your-custom-head-script.js
```
Consult the [JavaScript documentation]({{ site.baseurl }}{% link _docs/17-javascript.md %}) for more information on working with theme scripts.
{: .notice--info}
### Site Default Teaser Image ### Site Default Teaser Image
To assign a fallback teaser image used in the "**Related Posts**" module, place a graphic in the `/assets/images/` directory and add the filename to `_config.yml` like so: To assign a fallback teaser image used in the "**Related Posts**" module, place a graphic in the `/assets/images/` directory and add the filename to `_config.yml` like so:
+14 -13
View File
@@ -2,7 +2,7 @@
title: "Utility Classes" title: "Utility Classes"
permalink: /docs/utility-classes/ permalink: /docs/utility-classes/
excerpt: "CSS classes for aligning text/image, styling buttons and notices, and more." excerpt: "CSS classes for aligning text/image, styling buttons and notices, and more."
last_modified_at: 2016-11-03T11:32:25-04:00 last_modified_at: 2017-09-01T11:54:44-04:00
--- ---
{% include toc icon="gears" title="Utility Classes" %} {% include toc icon="gears" title="Utility Classes" %}
@@ -108,15 +108,16 @@ The image above should extend outside of the parent container on right.
## Buttons ## Buttons
Make any link standout more when applying the `.btn` class. Make any link standout more when applying the `.btn .btn--primary` classes.
```html ```html
<a href="#" class="btn">Link Text</a> <a href="#" class="btn btn--primary">Link Text</a>
``` ```
| Button Type | Example | Class | Kramdown | | Button Type | Example | Class | Kramdown |
| ------ | ------- | ----- | ------- | | ------ | ------- | ----- | ------- |
| Default | [Text](#link){: .btn} | `.btn` | `[Text](#link){: .btn}` | | Default | [Text](#link){: .btn} | `.btn` | `[Text](#link){: .btn}` |
| Primary | [Text](#link){: .btn .btn--primary} | `.btn .btn--primary` | `[Text](#link){: .btn .btn--primary}` |
| Success | [Text](#link){: .btn .btn--success} | `.btn .btn--success` | `[Text](#link){: .btn .btn--success}` | | Success | [Text](#link){: .btn .btn--success} | `.btn .btn--success` | `[Text](#link){: .btn .btn--success}` |
| Warning | [Text](#link){: .btn .btn--warning} | `.btn .btn--warning` | `[Text](#link){: .btn .btn--warning}` | | Warning | [Text](#link){: .btn .btn--warning} | `.btn .btn--warning` | `[Text](#link){: .btn .btn--warning}` |
| Danger | [Text](#link){: .btn .btn--danger} | `.btn .btn--danger` | `[Text](#link){: .btn .btn--danger}` | | Danger | [Text](#link){: .btn .btn--danger} | `.btn .btn--danger` | `[Text](#link){: .btn .btn--danger}` |
@@ -126,10 +127,10 @@ Make any link standout more when applying the `.btn` class.
| Button Size | Example | Class | Kramdown | | Button Size | Example | Class | Kramdown |
| ----------- | ------- | ----- | -------- | | ----------- | ------- | ----- | -------- |
| X-Large | [X-Large Button](#){: .btn .btn--x-large} | `.btn .btn--x-large` | `[Text](#link){: .btn .btn--x-large}` | | X-Large | [X-Large Button](#){: .btn .btn--primary .btn--x-large} | `.btn .btn--primary .btn--x-large` | `[Text](#link){: .btn .btn--primary .btn--x-large}` |
| Large | [Large Button](#){: .btn .btn--large} | `.btn .btn--large` | `[Text](#link){: .btn .btn--large}` | | Large | [Large Button](#){: .btn .btn--primary .btn--large} | `.btn .btn--primary .btn--large` | `[Text](#link){: .btn .btn--primary .btn--large}` |
| Default | [Default Button](#){: .btn} | `.btn` | `[Text](#link){: .btn}` | | Default | [Default Button](#){: .btn .btn--primary} | `.btn .btn--primary` | `[Text](#link){: .btn .btn--primary }` |
| Small | [Small Button](#){: .btn .btn--small} | `.btn .btn--small` | `[Text](#link){: .btn .btn--small}` | | Small | [Small Button](#){: .btn .btn--primary .btn--small} | `.btn .btn--primary .btn--small` | `[Text](#link){: .btn .btn--primary .btn--small}` |
## Notices ## Notices
@@ -144,22 +145,22 @@ Call attention to a block of text.
| Success | `.notice--success` | | Success | `.notice--success` |
| Danger | `.notice--danger` | | Danger | `.notice--danger` |
**Watch out!** This paragraph of text has been emphasized with the `{: .notice}` class. **Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice}` class.
{: .notice} {: .notice}
**Watch out!** This paragraph of text has been emphasized with the `{: .notice--primary}` class. **Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--primary}` class.
{: .notice--primary} {: .notice--primary}
**Watch out!** This paragraph of text has been emphasized with the `{: .notice--info}` class. **Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--info}` class.
{: .notice--info} {: .notice--info}
**Watch out!** This paragraph of text has been emphasized with the `{: .notice--warning}` class. **Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--warning}` class.
{: .notice--warning} {: .notice--warning}
**Watch out!** This paragraph of text has been emphasized with the `{: .notice--success}` class. **Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--success}` class.
{: .notice--success} {: .notice--success}
**Watch out!** This paragraph of text has been emphasized with the `{: .notice--danger}` class. **Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--danger}` class.
{: .notice--danger} {: .notice--danger}
{% capture notice-text %} {% capture notice-text %}
+17 -2
View File
@@ -2,7 +2,7 @@
title: "JavaScript" title: "JavaScript"
permalink: /docs/javascript/ permalink: /docs/javascript/
excerpt: "Instructions for customizing and building the theme's scripts." excerpt: "Instructions for customizing and building the theme's scripts."
last_modified_at: 2016-11-03T11:35:42-04:00 last_modified_at: 2017-09-12T12:41:33-04:00
--- ---
The theme's [`assets/js/main.min.js`] script is built from several vendor, jQuery plugins, and other scripts found in [`assets/js/`](https://github.com/mmistakes/minimal-mistakes/tree/master/assets/js). The theme's [`assets/js/main.min.js`] script is built from several vendor, jQuery plugins, and other scripts found in [`assets/js/`](https://github.com/mmistakes/minimal-mistakes/tree/master/assets/js).
@@ -18,7 +18,7 @@ minimal mistakes
| | | └── jquery.smooth-scroll.min.js # make same-page links scroll smoothly | | | └── jquery.smooth-scroll.min.js # make same-page links scroll smoothly
| | ├── vendor | | ├── vendor
| | | └── jquery | | | └── jquery
| | | └── jquery-1.12.1.min.js | | | └── jquery-3.2.1.min.js
| | ├── _main.js # jQuery plugin settings and other scripts | | ├── _main.js # jQuery plugin settings and other scripts
| | └── main.min.js # concatenated and minified scripts | | └── main.min.js # concatenated and minified scripts
``` ```
@@ -29,6 +29,21 @@ To modify or add your own scripts include them in [`assets/js/_main.js`](https:/
If you add additional scripts to `assets/js/plugins/` and would like them concatenated with the others, be sure to update the `uglify` script in [`package.json`](https://github.com/mmistakes/minimal-mistakes/blob/master/package.json). Same goes for scripts that you remove. If you add additional scripts to `assets/js/plugins/` and would like them concatenated with the others, be sure to update the `uglify` script in [`package.json`](https://github.com/mmistakes/minimal-mistakes/blob/master/package.json). Same goes for scripts that you remove.
You can also add scripts to the `<head>` or closing `</body>` elements by adding paths to following arrays in `_config.yml`.
**Example:**
```yaml
head_scripts:
- https://code.jquery.com/jquery-3.2.1.min.js
- /assets/js/your-custom-head-script.js
footer_scripts:
- /assets/js/your-custom-footer-script.js
```
**Note:** If you assign `footer_scripts` the theme's `/assets/js/main.min.js` file will be deactivated. This script includes jQuery and various other plugins that you'll need to find replacements for and include separately.
{: .notice--warning}
--- ---
## Build Process ## Build Process
+16 -3
View File
@@ -4,9 +4,22 @@ permalink: /docs/history/
excerpt: "Change log of enhancements and bug fixes made to the theme." excerpt: "Change log of enhancements and bug fixes made to the theme."
sidebar: sidebar:
nav: docs nav: docs
last_modified_at: 2017-09-06T15:12:52-04:00 last_modified_at: 2017-09-12T14:54:40-04:00
--- ---
## [4.6.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.6.0)
### Enhancements
- Test strict Front Matter in `/test` site. [#1236](https://github.com/mmistakes/minimal-mistakes/pull/1236)
- Rename `gems` key to `plugins`. [#1239](https://github.com/mmistakes/minimal-mistakes/pull/1239)
- Add [YIQ Color Contrast](https://github.com/easy-designs/yiq-color-contrast) mixin for determining lightness of a color.
- DRY up button CSS using Sass lists and YIQ Color Contrast mixin.
- Add `btn--primary` button class. **Note:** elements that were previously using only a `.btn` class will now also need `.btn--primary` (eg. `<a class="btn btn--primary" href="#">my link</a>`).
- Add `air`, `contrast`, `dark`, `dirt`, `mint`, and `sunrise` skin color options. [#1208](https://github.com/mmistakes/minimal-mistakes/issues/1208)
- Allow scripts in `<head>` and before `</body>` to be added/overridden with `head_scripts` and `footer_scripts` arrays in `_config.yml`. [#1241](https://github.com/mmistakes/minimal-mistakes/pull/1241)
- Update JavaScript dependencies: jQuery `v3.2.1`, jQuery Smooth Scroll `v2.2.0`, and Magnific Popup `v1.1.0`. [#328690652](https://github.com/mmistakes/minimal-mistakes/pull/1241#issuecomment-328690652)
## [4.5.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.2) ## [4.5.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.2)
### Enhancements ### Enhancements
@@ -21,7 +34,7 @@ last_modified_at: 2017-09-06T15:12:52-04:00
- Add note to Quick-Start Guide about GitHub Pages hosting alternatives that allow 3rd party gem themes and Jekyll plugins. - Add note to Quick-Start Guide about GitHub Pages hosting alternatives that allow 3rd party gem themes and Jekyll plugins.
- Add note to configuration documentation about Cloudflare minification as an alternative to `layout: compress`. [#1217](https://github.com/mmistakes/minimal-mistakes/pull/1217) - Add note to configuration documentation about Cloudflare minification as an alternative to `layout: compress`. [#1217](https://github.com/mmistakes/minimal-mistakes/pull/1217)
- Show 4 latest posts in "You May Also Enjoy" module when `related: true` and no related posts are found due to `lsi` ([latent semantic indexing](https://en.wikipedia.org/wiki/Latent_semantic_analysis#Latent_semantic_indexing)) being disabled on GitHub Pages. [#554](https://github.com/mmistakes/minimal-mistakes/issues/554) - Show 4 latest posts in "You May Also Enjoy" module when `related: true` and no related posts are found due to `lsi` ([latent semantic indexing](https://en.wikipedia.org/wiki/Latent_semantic_analysis#Latent_semantic_indexing)) being disabled on GitHub Pages. [#554](https://github.com/mmistakes/minimal-mistakes/issues/554)
- Truncate archive item titles' that overflow with an ellipsis. [#1213] - Truncate archive item titles' that overflow with an ellipsis. [#1213](https://github.com/mmistakes/minimal-mistakes/issues/1213)
### Bug Fixes ### Bug Fixes
@@ -29,7 +42,7 @@ last_modified_at: 2017-09-06T15:12:52-04:00
- Reduce amount of blank pages when printing in Chrome. [#1196](https://github.com/mmistakes/minimal-mistakes/issues/1196) - Reduce amount of blank pages when printing in Chrome. [#1196](https://github.com/mmistakes/minimal-mistakes/issues/1196)
- Remove `#disqus_thread` duplicate from `comments-providers/disqus.html` as it is already in `comments.html` include. [#1199](https://github.com/mmistakes/minimal-mistakes/issues/1199) - Remove `#disqus_thread` duplicate from `comments-providers/disqus.html` as it is already in `comments.html` include. [#1199](https://github.com/mmistakes/minimal-mistakes/issues/1199)
- Fix Liquid syntax errors in `tag-list.html` and `category-list.html` includes by removing parenthesis in `assign`s. [#1223](https://github.com/mmistakes/minimal-mistakes/issues/1223) - Fix Liquid syntax errors in `tag-list.html` and `category-list.html` includes by removing parenthesis in `assign`s. [#1223](https://github.com/mmistakes/minimal-mistakes/issues/1223)
- Fix Liquid syntax error: "Expected id but found open_square in {% raw %}`"{{page.[include.id] }}"`"{% endraw %} in `gallery` and `feature_row` includes. - Fix Liquid syntax error: "Expected id but found open_square in {% raw %}`"{{ page.[include.id] }}"`"{% endraw %} in `gallery` and `feature_row` includes.
- Fix Liquid syntax error: "Expected end_of_string but found pipe in `"name in __names | sort"`" in `group-by-array` include. - Fix Liquid syntax error: "Expected end_of_string but found pipe in `"name in __names | sort"`" in `group-by-array` include.
## [4.5.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.1) ## [4.5.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.1)
+8
View File
@@ -131,6 +131,14 @@
</li> </li>
{% endif %} {% endif %}
{% if author.gitlab %}
<li>
<a href="https://gitlab.com/{{ author.gitlab }}" itemprop="sameAs">
<i class="fa fa-fw fa-gitlab" aria-hidden="true"></i> Gitlab
</a>
</li>
{% endif %}
{% if author.stackoverflow %} {% if author.stackoverflow %}
<li> <li>
<a href="https://www.stackoverflow.com/users/{{ author.stackoverflow }}" itemprop="sameAs"> <a href="https://www.stackoverflow.com/users/{{ author.stackoverflow }}" itemprop="sameAs">
+40 -38
View File
@@ -47,45 +47,47 @@
<!-- End static comments --> <!-- End static comments -->
<!-- Start new comment form --> <!-- Start new comment form -->
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4> <div class="page__comments-form">
<p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p> <h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
<form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/{{ site.repository }}/{{ site.staticman.branch }}"> <p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
<div class="form__spinner"> <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/{{ site.repository }}/{{ site.staticman.branch }}">
<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> <div class="form__spinner">
<span class="sr-only">{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}</span> <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
</div> <span class="sr-only">{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}</span>
</div>
<fieldset> <fieldset>
<label for="comment-form-message">{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} <small class="required">*</small></label> <label for="comment-form-message">{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} <small class="required">*</small></label>
<textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>
<div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">{{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}</a></div> <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">{{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}</a></div>
</fieldset> </fieldset>
<fieldset> <fieldset>
<label for="comment-form-name">{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} <small class="required">*</small></label> <label for="comment-form-name">{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} <small class="required">*</small></label>
<input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" />
</fieldset> </fieldset>
<fieldset> <fieldset>
<label for="comment-form-email">{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} <small class="required">*</small></label> <label for="comment-form-email">{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} <small class="required">*</small></label>
<input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
</fieldset> </fieldset>
<fieldset> <fieldset>
<label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label> <label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
<input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
</fieldset> </fieldset>
<fieldset class="hidden" style="display: none;"> <fieldset class="hidden" style="display: none;">
<input type="hidden" name="options[slug]" value="{{ page.slug }}"> <input type="hidden" name="options[slug]" value="{{ page.slug }}">
<label for="comment-form-location">Not used. Leave blank if you are a human.</label> <label for="comment-form-location">Not used. Leave blank if you are a human.</label>
<input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/>
</fieldset> </fieldset>
<!-- Start comment form alert messaging --> <!-- Start comment form alert messaging -->
<p class="hidden js-notice"> <p class="hidden js-notice">
<strong class="js-notice-text"></strong> <strong class="js-notice-text"></strong>
</p> </p>
<!-- End comment form alert messaging --> <!-- End comment form alert messaging -->
<fieldset> <fieldset>
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button> <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--primary btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
</fieldset> </fieldset>
</form> </form>
</div>
<!-- End new comment form --> <!-- End new comment form -->
{% endif %} {% endif %}
</section> </section>
+3
View File
@@ -12,6 +12,9 @@
{% if site.author.github %} {% if site.author.github %}
<li><a href="http://github.com/{{ site.author.github }}"><i class="fa fa-fw fa-github" aria-hidden="true"></i> GitHub</a></li> <li><a href="http://github.com/{{ site.author.github }}"><i class="fa fa-fw fa-github" aria-hidden="true"></i> GitHub</a></li>
{% endif %} {% endif %}
{% if site.author.gitlab %}
<li><a href="http://gitlab.com/{{ site.author.gitlab }}"><i class="fa fa-fw fa-gitlab" aria-hidden="true"></i> Gitlab</a></li>
{% endif %}
{% if site.author.bitbucket %} {% if site.author.bitbucket %}
<li><a href="http://bitbucket.org/{{ site.author.bitbucket }}"><i class="fa fa-fw fa-bitbucket" aria-hidden="true"></i> Bitbucket</a></li> <li><a href="http://bitbucket.org/{{ site.author.bitbucket }}"><i class="fa fa-fw fa-bitbucket" aria-hidden="true"></i> Bitbucket</a></li>
{% endif %} {% endif %}
+11
View File
@@ -30,3 +30,14 @@
} }
</style> </style>
<![endif]--> <![endif]-->
{% if site.head_scripts %}
{% for script in site.head_scripts %}
{% if script contains "://" %}
{% capture script_path %}{{ script }}{% endcapture %}
{% else %}
{% capture script_path %}{{ script | absolute_url }}{% endcapture %}
{% endif %}
<script src="{{ script_path }}"></script>
{% endfor %}
{% endif %}
+12 -1
View File
@@ -1,4 +1,15 @@
<script src="{{ '/assets/js/main.min.js' | absolute_url }}"></script> {% if site.footer_scripts %}
{% for script in site.footer_scripts %}
{% if script contains "://" %}
{% capture script_path %}{{ script }}{% endcapture %}
{% else %}
{% capture script_path %}{{ script | absolute_url }}{% endcapture %}
{% endif %}
<script src="{{ script_path }}"></script>
{% endfor %}
{% else %}
<script src="{{ '/assets/js/main.min.js' | absolute_url }}"></script>
{% endif %}
{% include analytics.html %} {% include analytics.html %}
{% include /comments-providers/scripts.html %} {% include /comments-providers/scripts.html %}
+1 -1
View File
@@ -3,7 +3,7 @@
<!doctype html> <!doctype html>
<!-- <!--
Minimal Mistakes Jekyll Theme 4.5.2 by Michael Rose Minimal Mistakes Jekyll Theme 4.6.0 by Michael Rose
Copyright 2017 Michael Rose - mademistakes.com | @mmistakes Copyright 2017 Michael Rose - mademistakes.com | @mmistakes
Free for personal and commercial use under the MIT license Free for personal and commercial use under the MIT license
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt
+1 -1
View File
@@ -35,7 +35,7 @@ layout: default
<section class="page__content" itemprop="text"> <section class="page__content" itemprop="text">
{{ content }} {{ content }}
{% if page.link %}<div><a href="{{ page.link }}" class="btn">{{ site.data.ui-text[site.locale].ext_link_label | default: "Direct Link" }}</a></div>{% endif %} {% if page.link %}<div><a href="{{ page.link }}" class="btn btn--primary">{{ site.data.ui-text[site.locale].ext_link_label | default: "Direct Link" }}</a></div>{% endif %}
</section> </section>
<footer class="page__meta"> <footer class="page__meta">
+5 -2
View File
@@ -7,30 +7,33 @@ header:
cta_label: "<i class='fa fa-download'></i> Install Now" cta_label: "<i class='fa fa-download'></i> Install Now"
cta_url: "/docs/quick-start-guide/" cta_url: "/docs/quick-start-guide/"
caption: caption:
excerpt: 'A flexible two-column Jekyll theme. Perfect for personal sites, blogs, and portfolios hosted on GitHub or your own server.<br /> <small><a href="https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.2">Latest release v4.5.2</a></small><br /><br /> {::nomarkdown}<iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe> <iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=fork&count=true&size=large" frameborder="0" scrolling="0" width="158px" height="30px"></iframe>{:/nomarkdown}' excerpt: 'A flexible two-column Jekyll theme. Perfect for personal sites, blogs, and portfolios hosted on GitHub or your own server.<br /> <small><a href="https://github.com/mmistakes/minimal-mistakes/releases/tag/4.6.0">Latest release v4.6.0</a></small><br /><br /> {::nomarkdown}<iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe> <iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=fork&count=true&size=large" frameborder="0" scrolling="0" width="158px" height="30px"></iframe>{:/nomarkdown}'
feature_row: feature_row:
- image_path: /assets/images/mm-customizable-feature.png - image_path: /assets/images/mm-customizable-feature.png
alt: "customizable" alt: "customizable"
title: "Super Customizable" title: "Super Customizable"
excerpt: "Everything from the menus, sidebars, comments, and more can be configured or set with YAML Front Matter." excerpt: "Everything from the menus, sidebars, comments, and more can be configured or set with YAML Front Matter."
url: "/docs/configuration/" url: "/docs/configuration/"
btn_class: "btn--primary"
btn_label: "Learn More" btn_label: "Learn More"
- image_path: /assets/images/mm-responsive-feature.png - image_path: /assets/images/mm-responsive-feature.png
alt: "fully responsive" alt: "fully responsive"
title: "Responsive Layouts" title: "Responsive Layouts"
excerpt: "Built on HTML5 + CSS3. All layouts are fully responsive with helpers to augment your content." excerpt: "Built on HTML5 + CSS3. All layouts are fully responsive with helpers to augment your content."
url: "/docs/layouts/" url: "/docs/layouts/"
btn_class: "btn--primary"
btn_label: "Learn More" btn_label: "Learn More"
- image_path: /assets/images/mm-free-feature.png - image_path: /assets/images/mm-free-feature.png
alt: "100% free" alt: "100% free"
title: "100% Free" title: "100% Free"
excerpt: "Free to use however you want under the MIT License. Clone it, fork it, customize it, whatever!" excerpt: "Free to use however you want under the MIT License. Clone it, fork it, customize it, whatever!"
url: "/docs/license/" url: "/docs/license/"
btn_class: "btn--primary"
btn_label: "Learn More" btn_label: "Learn More"
github: github:
- excerpt: '{::nomarkdown}<iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe> <iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=fork&count=true&size=large" frameborder="0" scrolling="0" width="158px" height="30px"></iframe>{:/nomarkdown}' - excerpt: '{::nomarkdown}<iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe> <iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=fork&count=true&size=large" frameborder="0" scrolling="0" width="158px" height="30px"></iframe>{:/nomarkdown}'
intro: intro:
- excerpt: 'Get notified when I add new stuff &nbsp; [<i class="fa fa-twitter"></i> @mmistakes](https://twitter.com/mmistakes){: .btn .btn--twitter} [<i class="fa fa-paypal"></i> Tip Me](https://www.paypal.me/mmistakes){: .btn}' - excerpt: 'Get notified when I add new stuff &nbsp; [<i class="fa fa-twitter"></i> @mmistakes](https://twitter.com/mmistakes){: .btn .btn--twitter} [<i class="fa fa-paypal"></i> Tip Me](https://www.paypal.me/mmistakes){: .btn .btn--primary}'
--- ---
{% include feature_row id="intro" type="center" %} {% include feature_row id="intro" type="center" %}
+4 -4
View File
@@ -24,7 +24,7 @@ feature_row:
excerpt: "This is some sample content that goes here with **Markdown** formatting." excerpt: "This is some sample content that goes here with **Markdown** formatting."
url: "#test-link" url: "#test-link"
btn_label: "Read More" btn_label: "Read More"
btn_class: "btn--inverse" btn_class: "btn--primary"
- image_path: /assets/images/unsplash-gallery-image-3-th.jpg - image_path: /assets/images/unsplash-gallery-image-3-th.jpg
title: "Placeholder 3" title: "Placeholder 3"
excerpt: "This is some sample content that goes here with **Markdown** formatting." excerpt: "This is some sample content that goes here with **Markdown** formatting."
@@ -35,7 +35,7 @@ feature_row2:
excerpt: 'This is some sample content that goes here with **Markdown** formatting. Left aligned with `type="left"`' excerpt: 'This is some sample content that goes here with **Markdown** formatting. Left aligned with `type="left"`'
url: "#test-link" url: "#test-link"
btn_label: "Read More" btn_label: "Read More"
btn_class: "btn--inverse" btn_class: "btn--primary"
feature_row3: feature_row3:
- image_path: /assets/images/unsplash-gallery-image-2-th.jpg - image_path: /assets/images/unsplash-gallery-image-2-th.jpg
alt: "placeholder image 2" alt: "placeholder image 2"
@@ -43,7 +43,7 @@ feature_row3:
excerpt: 'This is some sample content that goes here with **Markdown** formatting. Right aligned with `type="right"`' excerpt: 'This is some sample content that goes here with **Markdown** formatting. Right aligned with `type="right"`'
url: "#test-link" url: "#test-link"
btn_label: "Read More" btn_label: "Read More"
btn_class: "btn--inverse" btn_class: "btn--primary"
feature_row4: feature_row4:
- image_path: /assets/images/unsplash-gallery-image-2-th.jpg - image_path: /assets/images/unsplash-gallery-image-2-th.jpg
alt: "placeholder image 2" alt: "placeholder image 2"
@@ -51,7 +51,7 @@ feature_row4:
excerpt: 'This is some sample content that goes here with **Markdown** formatting. Centered with `type="center"`' excerpt: 'This is some sample content that goes here with **Markdown** formatting. Centered with `type="center"`'
url: "#test-link" url: "#test-link"
btn_label: "Read More" btn_label: "Read More"
btn_class: "btn--inverse" btn_class: "btn--primary"
--- ---
{% include feature_row id="intro" type="center" %} {% include feature_row id="intro" type="center" %}
@@ -102,6 +102,17 @@ Do It Live
3. List item three 3. List item three
4. List item four 4. List item four
## Forms
<form>
<fieldset>
<legend>Personalia:</legend>
Name: <input type="text" size="30"><br>
Email: <input type="text" size="30"><br>
Date of birth: <input type="text" size="10">
</fieldset>
</form>
## Buttons ## Buttons
Make any link standout more when applying the `.btn` class. Make any link standout more when applying the `.btn` class.
+1 -1
View File
@@ -1,5 +1,5 @@
/*! /*!
* Minimal Mistakes Jekyll Theme 4.5.2 by Michael Rose * Minimal Mistakes Jekyll Theme 4.6.0 by Michael Rose
* Copyright 2017 Michael Rose - mademistakes.com | @mmistakes * Copyright 2017 Michael Rose - mademistakes.com | @mmistakes
* Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt) * Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt)
*/ */
+2 -1
View File
@@ -26,7 +26,7 @@
margin: 1.414em 0 0; margin: 1.414em 0 0;
padding-bottom: 0.5em; padding-bottom: 0.5em;
font-size: $type-size-5; font-size: $type-size-5;
color: mix(#fff, $gray, 25%); color: $muted-text-color;
border-bottom: 1px solid $border-color; border-bottom: 1px solid $border-color;
+ .list__item .archive__item-title { + .list__item .archive__item-title {
@@ -72,6 +72,7 @@
} }
.archive__item:hover { .archive__item:hover {
.archive__item-teaser { .archive__item-teaser {
box-shadow: 0 0 10px rgba(#000, 0.25); box-shadow: 0 0 10px rgba(#000, 0.25);
} }
+8 -7
View File
@@ -118,8 +118,13 @@ a {
&:hover, &:hover,
&:active { &:active {
color: $link-color-hover;
outline: 0; outline: 0;
} }
&:visited {
color: $link-color-visited;
}
} }
/* code */ /* code */
@@ -141,7 +146,7 @@ td > code {
padding-bottom: 0.1rem; padding-bottom: 0.1rem;
font-size: $type-size-6; font-size: $type-size-6;
background: $code-background-color; background: $code-background-color;
border: 1px solid $lighter-gray; border: 1px solid $border-color;
border-radius: $border-radius; border-radius: $border-radius;
box-shadow: $box-shadow; box-shadow: $box-shadow;
@@ -236,20 +241,16 @@ figure {
figcaption { figcaption {
margin-bottom: 0.5em; margin-bottom: 0.5em;
color: mix(#fff, $text-color, 25%); color: $muted-text-color;
font-family: $caption-font-family; font-family: $caption-font-family;
font-size: $type-size-6; font-size: $type-size-6;
a { a {
color: inherit;
text-decoration: none;
border-bottom: 1px solid $light-gray;
-webkit-transition: $global-transition; -webkit-transition: $global-transition;
transition: $global-transition; transition: $global-transition;
&:hover { &:hover {
color: #000; color: $link-color-hover;
border-bottom-color: #000;
} }
} }
} }
+36 -91
View File
@@ -7,25 +7,19 @@
========================================================================== */ ========================================================================== */
.btn { .btn {
/* default button */ /* default */
display: inline-block; display: inline-block;
margin-bottom: 0.25em; margin-bottom: 0.25em;
padding: 0.5em 1em; padding: 0.5em 1em;
color: #fff !important;
font-family: $sans-serif; font-family: $sans-serif;
font-size: $type-size-6; font-size: $type-size-6;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
background-color: $primary-color; border-width: 0;
border: 0 !important;
border-radius: $border-radius; border-radius: $border-radius;
cursor: pointer; cursor: pointer;
&:hover {
background-color: mix(white, #000, 20%);
}
.icon { .icon {
margin-right: 0.5em; margin-right: 0.5em;
} }
@@ -34,8 +28,41 @@
margin-left: -0.5em; /* override for hidden text*/ margin-left: -0.5em; /* override for hidden text*/
} }
/* fills width of parent container */ /* button colors */
$buttoncolors:
(primary, $primary-color),
(inverse, #fff),
(light-outline, transparent),
(success, $success-color),
(warning, $warning-color),
(danger, $danger-color),
(info, $info-color),
(facebook, $facebook-color),
(twitter, $twitter-color),
(google-plus, $google-plus-color),
(linkedin, $linkedin-color);
@each $buttoncolor, $color in $buttoncolors {
&--#{$buttoncolor} {
@include yiq-contrasted($color);
@if ($buttoncolor == inverse) {
border: 1px solid $border-color;
}
@if ($buttoncolor == light-outline) {
border: 1px solid #fff;
}
&:hover {
@include yiq-contrasted(mix(#000, $color, 20%));
}
&:visited {
@include yiq-contrasted($color);
}
}
}
/* fills width of parent container */
&--block { &--block {
display: block; display: block;
width: 100%; width: 100%;
@@ -45,68 +72,7 @@
} }
} }
/* for dark backgrounds */
&--inverse {
color: $gray !important;
border: 1px solid $light-gray !important; /* override*/
background-color: #fff;
&:hover {
color: #fff !important;
border-color: $gray;
}
}
/* light outline */
&--light-outline {
border: 1px solid #fff !important; /* override*/
background-color: transparent;
}
/* information */
&--info {
background-color: $info-color;
&:hover {
background-color: mix(#000, $info-color, 20%);
}
}
/* warning */
&--warning {
background-color: $warning-color;
&:hover {
background-color: mix(#000, $warning-color, 20%);
}
}
/* success */
&--success {
background-color: $success-color;
&:hover {
background-color: mix(#000, $success-color, 20%);
}
}
/* danger */
&--danger {
background-color: $danger-color;
&:hover {
background-color: mix(#000, $danger-color, 20%);
}
}
/* disabled */ /* disabled */
&--disabled { &--disabled {
pointer-events: none; pointer-events: none;
cursor: not-allowed; cursor: not-allowed;
@@ -115,38 +81,17 @@
opacity: 0.65; opacity: 0.65;
} }
/* social buttons */
$social:
(facebook, $facebook-color),
(twitter, $twitter-color),
(google-plus, $google-plus-color),
(linkedin, $linkedin-color);
@each $socialnetwork, $color in $social {
&--#{$socialnetwork} {
background-color: $color;
&:hover {
background-color: mix(#000, $color, 20%);
}
}
}
/* extra large button */ /* extra large button */
&--x-large { &--x-large {
font-size: $type-size-4; font-size: $type-size-4;
} }
/* large button */ /* large button */
&--large { &--large {
font-size: $type-size-5; font-size: $type-size-5;
} }
/* small button */ /* small button */
&--small { &--small {
font-size: $type-size-7; font-size: $type-size-7;
} }
+3 -4
View File
@@ -15,13 +15,12 @@
height: auto; height: auto;
/* sticky footer fix end */ /* sticky footer fix end */
margin-top: 3em; margin-top: 3em;
color: mix(#fff, $gray, 25%); color: $muted-text-color;
-webkit-animation: $intro-transition; -webkit-animation: $intro-transition;
animation: $intro-transition; animation: $intro-transition;
-webkit-animation-delay: 0.45s; -webkit-animation-delay: 0.45s;
animation-delay: 0.45s; animation-delay: 0.45s;
background-color: $lighter-gray; background-color: $footer-background-color;
border-top: 1px solid $light-gray;
footer { footer {
@include clearfix; @include clearfix;
@@ -46,7 +45,7 @@
} }
.fa { .fa {
color: mix(#fff, $gray, 25%); color: $muted-text-color;
} }
} }
+7 -9
View File
@@ -4,6 +4,8 @@
form { form {
margin: 0 0 5px 0; margin: 0 0 5px 0;
padding: 1em;
background-color: $form-background-color;
fieldset { fieldset {
margin-bottom: 5px; margin-bottom: 5px;
@@ -19,7 +21,6 @@ form {
padding: 0; padding: 0;
color: $text-color; color: $text-color;
border: 0; border: 0;
border-bottom: 1px solid mix(#fff, #000, 80%);
white-space: normal; white-space: normal;
} }
@@ -80,14 +81,10 @@ select {
padding: 0.25em; padding: 0.25em;
margin-bottom: 0.5em; margin-bottom: 0.5em;
color: $text-color; color: $text-color;
background-color: #fff; background-color: $background-color;
border: 1px solid mix(#fff, #000, 80%); border: $border-color;
border-radius: $border-radius; border-radius: $border-radius;
box-shadow: $box-shadow; box-shadow: $box-shadow;
&:hover {
border-color: mix(#fff, $primary-color, 50%);
}
} }
.input-mini { .input-mini {
@@ -224,6 +221,7 @@ textarea:focus {
border-color: $primary-color; border-color: $primary-color;
outline: 0; outline: 0;
outline: thin dotted \9; outline: thin dotted \9;
box-shadow: inset 0 1px 3px rgba($text-color, 0.06), 0 0 5px rgba($primary-color, 0.7);
} }
input[type="file"]:focus, input[type="file"]:focus,
@@ -240,7 +238,7 @@ select:focus {
.help-block, .help-block,
.help-inline { .help-inline {
color: $info-color; color: $muted-text-color;
} }
.help-block { .help-block {
@@ -382,7 +380,7 @@ select:focus {
color: #000; color: #000;
border-width: 2px !important; border-width: 2px !important;
border-style: solid !important; border-style: solid !important;
border-color: lighten(#000,50); border-color: $border-color;
border-radius: $border-radius; border-radius: $border-radius;
} }
+39
View File
@@ -51,3 +51,42 @@
display: table; display: table;
} }
} }
/*
Compass YIQ Color Contrast
https://github.com/easy-designs/yiq-color-contrast
========================================================================== */
@function yiq-is-light(
$color,
$threshold: $yiq-contrasted-threshold
) {
$red: red($color);
$green: green($color);
$blue: blue($color);
$yiq: (($red*299)+($green*587)+($blue*114))/1000;
@if $yiq-debug { @debug $yiq, $threshold; }
@return if($yiq >= $threshold, true, false);
}
@function yiq-contrast-color(
$color,
$dark: $yiq-contrasted-dark-default,
$light: $yiq-contrasted-light-default,
$threshold: $yiq-contrasted-threshold
) {
@return if(yiq-is-light($color, $threshold), $yiq-contrasted-dark-default, $yiq-contrasted-light-default);
}
@mixin yiq-contrasted(
$background-color,
$dark: $yiq-contrasted-dark-default,
$light: $yiq-contrasted-light-default,
$threshold: $yiq-contrasted-threshold
) {
background-color: $background-color;
color: yiq-contrast-color($background-color, $dark, $light, $threshold);
}
+14 -14
View File
@@ -85,21 +85,22 @@
line-height: 1.5; line-height: 1.5;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
color: mix(#fff, $gray, 25%); color: $muted-text-color;
border: 1px solid $light-gray; border: 1px solid mix(#000, $border-color, 25%);
border-radius: 0; border-radius: 0;
&:hover { &:hover {
color: $link-color-hover; color: $link-color-hover;
} }
&.current { &.current,
&.current.disabled {
color: #fff; color: #fff;
background: $primary-color; background: $primary-color;
} }
&.disabled { &.disabled {
color: mix(#fff, $gray, 75%); color: rgba($muted-text-color, 0.5);
pointer-events: none; pointer-events: none;
cursor: not-allowed; cursor: not-allowed;
} }
@@ -133,12 +134,12 @@
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
color: $link-color; color: $muted-text-color;
border: 1px solid $light-gray; border: 1px solid mix(#000, $border-color, 25%);
border-radius: $border-radius; border-radius: $border-radius;
&:hover { &:hover {
color: $link-color-hover; @include yiq-contrasted($muted-text-color);
} }
&:first-child { &:first-child {
@@ -153,7 +154,7 @@
} }
&.disabled { &.disabled {
color: mix(#fff, $gray, 75%); color: rgba($muted-text-color, 0.5);
pointer-events: none; pointer-events: none;
cursor: not-allowed; cursor: not-allowed;
} }
@@ -262,7 +263,7 @@
padding: 5px; padding: 5px;
border: 1px solid $border-color; border: 1px solid $border-color;
border-radius: $border-radius; border-radius: $border-radius;
background: #fff; background: $background-color;
box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12); box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12);
&.hidden { &.hidden {
@@ -301,7 +302,7 @@
width: 0; width: 0;
border-style: solid; border-style: solid;
border-width: 0 10px 10px; border-width: 0 10px 10px;
border-color: #fff transparent; border-color: $background-color transparent;
display: block; display: block;
z-index: 1; z-index: 1;
} }
@@ -494,7 +495,7 @@
color: $gray; color: $gray;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 1px; letter-spacing: 1px;
background-color: #fff; background-color: $background-color;
border: 1px solid $border-color; border: 1px solid $border-color;
border-radius: $border-radius; border-radius: $border-radius;
box-shadow: $box-shadow; box-shadow: $box-shadow;
@@ -518,15 +519,14 @@
a { a {
display: block; display: block;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
color: $gray; color: $muted-text-color;
font-size: $type-size-7; font-size: $type-size-7;
font-weight: bold; font-weight: bold;
line-height: 1.5; line-height: 1.5;
border-bottom: 1px solid $border-color; border-bottom: 1px solid $border-color;
&:hover { &:hover {
color: #000; color: $text-color;
background: $lighter-gray;
} }
} }
@@ -13,6 +13,7 @@
@mixin notice($notice-color) { @mixin notice($notice-color) {
margin: 2em 0 !important; /* override*/ margin: 2em 0 !important; /* override*/
padding: 1em; padding: 1em;
color: $dark-gray;
font-family: $global-font-family; font-family: $global-font-family;
font-size: $type-size-6 !important; font-size: $type-size-6 !important;
text-indent: initial; /* override*/ text-indent: initial; /* override*/
+3 -6
View File
@@ -91,8 +91,7 @@
} }
} }
a { a:not(.btn) {
text-decoration: none;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
@@ -250,7 +249,7 @@
.page__meta { .page__meta {
margin-top: 2em; margin-top: 2em;
color: mix(#fff, $gray, 25%); color: $muted-text-color;
font-family: $sans-serif; font-family: $sans-serif;
font-size: $type-size-6; font-size: $type-size-6;
@@ -290,7 +289,7 @@
margin-bottom: 8px; margin-bottom: 8px;
padding: 5px 10px; padding: 5px 10px;
text-decoration: none; text-decoration: none;
border: 1px solid $light-gray; border: 1px solid mix(#000, $border-color, 25%);
border-radius: $border-radius; border-radius: $border-radius;
&:hover { &:hover {
@@ -322,8 +321,6 @@
} }
.page__comments-form { .page__comments-form {
padding: 1em;
background: $lighter-gray;
-webkit-transition: $global-transition; -webkit-transition: $global-transition;
transition: $global-transition; transition: $global-transition;
+2 -2
View File
@@ -189,7 +189,7 @@
list-style-type: none; list-style-type: none;
border: 1px solid $border-color; border: 1px solid $border-color;
border-radius: $border-radius; border-radius: $border-radius;
background: #fff; background: $background-color;
z-index: -1; z-index: -1;
box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12); box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12);
cursor: default; cursor: default;
@@ -234,7 +234,7 @@
width: 0; width: 0;
border-style: solid; border-style: solid;
border-width: 0 10px 10px; border-width: 0 10px 10px;
border-color: #fff transparent; border-color: $background-color transparent;
z-index: 1; z-index: 1;
@include breakpoint($large) { @include breakpoint($large) {
+2 -2
View File
@@ -19,7 +19,7 @@ figure.highlight {
top: 0; top: 0;
right: 0; right: 0;
padding: 0.5em; padding: 0.5em;
background-color: $lighter-gray; background-color: $border-color;
content: "\f121"; content: "\f121";
font-family: "fontawesome" !important; font-family: "fontawesome" !important;
line-height: 1; line-height: 1;
@@ -49,7 +49,7 @@ figure.highlight {
/* line numbers*/ /* line numbers*/
&.gutter { &.gutter {
padding-right: 1em; padding-right: 1em;
color: $light-gray; color: rgba($muted-text-color, 0.5);
} }
} }
+3 -3
View File
@@ -15,8 +15,8 @@ table {
} }
thead { thead {
background-color: $lighter-gray; background-color: $border-color;
border-bottom: 2px solid $light-gray; border-bottom: 2px solid mix(#000, $border-color, 25%);
} }
th { th {
@@ -27,7 +27,7 @@ th {
td { td {
padding: 0.5em; padding: 0.5em;
border-bottom: 1px solid $light-gray; border-bottom: 1px solid mix(#000, $border-color, 25%);
} }
tr, tr,
+2 -2
View File
@@ -57,7 +57,7 @@ body:hover .visually-hidden button {
background: #fff; background: #fff;
z-index: 100000; z-index: 100000;
text-decoration: none; text-decoration: none;
box-shadow: 0 0 2px 2px rgba(0,0,0,.6); box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
} }
@@ -185,7 +185,7 @@ body:hover .visually-hidden button {
.social-icons { .social-icons {
.fa { .fa {
color: #000; color: $text-color;
} }
.fa-behance, .fa-behance,
+89 -82
View File
@@ -6,125 +6,132 @@
Typography Typography
========================================================================== */ ========================================================================== */
$doc-font-size : 16 !default; $doc-font-size : 16 !default;
/* paragraph indention */ /* paragraph indention */
$paragraph-indent : false !default; // true, false (default) $paragraph-indent : false !default; // true, false (default)
$indent-var : 1.3em !default; $indent-var : 1.3em !default;
/* system typefaces */ /* system typefaces */
$serif : Georgia, Times, serif !default; $serif : Georgia, Times, serif !default;
$sans-serif : -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif !default; $sans-serif : -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif !default;
$monospace : Monaco, Consolas, "Lucida Console", monospace !default; $monospace : Monaco, Consolas, "Lucida Console", monospace !default;
/* sans serif typefaces */ /* sans serif typefaces */
$sans-serif-narrow : $sans-serif !default; $sans-serif-narrow : $sans-serif !default;
$helvetica : Helvetica, "Helvetica Neue", Arial, sans-serif !default; $helvetica : Helvetica, "Helvetica Neue", Arial, sans-serif !default;
/* serif typefaces */ /* serif typefaces */
$georgia : Georgia, serif !default; $georgia : Georgia, serif !default;
$times : Times, serif !default; $times : Times, serif !default;
$bodoni : "Bodoni MT", serif !default; $bodoni : "Bodoni MT", serif !default;
$calisto : "Calisto MT", serif !default; $calisto : "Calisto MT", serif !default;
$garamond : Garamond, serif !default; $garamond : Garamond, serif !default;
$global-font-family : $sans-serif !default; $global-font-family : $sans-serif !default;
$header-font-family : $sans-serif !default; $header-font-family : $sans-serif !default;
$caption-font-family : $serif !default; $caption-font-family : $serif !default;
/* type scale */ /* type scale */
$type-size-1 : 2.441em !default; // ~39.056px $type-size-1 : 2.441em !default; // ~39.056px
$type-size-2 : 1.953em !default; // ~31.248px $type-size-2 : 1.953em !default; // ~31.248px
$type-size-3 : 1.563em !default; // ~25.008px $type-size-3 : 1.563em !default; // ~25.008px
$type-size-4 : 1.25em !default; // ~20px $type-size-4 : 1.25em !default; // ~20px
$type-size-5 : 1em !default; // ~16px $type-size-5 : 1em !default; // ~16px
$type-size-6 : 0.75em !default; // ~12px $type-size-6 : 0.75em !default; // ~12px
$type-size-7 : 0.6875em !default; // ~11px $type-size-7 : 0.6875em !default; // ~11px
$type-size-8 : 0.625em !default; // ~10px $type-size-8 : 0.625em !default; // ~10px
/* /*
Colors Colors
========================================================================== */ ========================================================================== */
$gray : #7a8288 !default; $gray : #7a8288 !default;
$dark-gray : mix(#000, $gray, 40%) !default; $dark-gray : mix(#000, $gray, 40%) !default;
$darker-gray : mix(#000, $gray, 60%) !default; $darker-gray : mix(#000, $gray, 60%) !default;
$light-gray : mix(#fff, $gray, 50%) !default; $light-gray : mix(#fff, $gray, 50%) !default;
$lighter-gray : mix(#fff, $gray, 90%) !default; $lighter-gray : mix(#fff, $gray, 90%) !default;
$body-color : #fff !default; $background-color : #fff !default;
$background-color : #fff !default; $code-background-color : #fafafa !default;
$code-background-color : #fafafa !default; $code-background-color-dark : $light-gray !default;
$code-background-color-dark : $light-gray !default; $text-color : $dark-gray !default;
$text-color : $dark-gray !default; $muted-text-color : mix(#fff, $text-color, 35%);
$border-color : $lighter-gray !default; $border-color : $lighter-gray !default;
$form-background-color : $lighter-gray !default;
$footer-background-color : $lighter-gray !default;
$primary-color : #7a8288 !default; $primary-color : #7a8288 !default;
$success-color : #62c462 !default; $success-color : #62c462 !default;
$warning-color : #f89406 !default; $warning-color : #f89406 !default;
$danger-color : #ee5f5b !default; $danger-color : #ee5f5b !default;
$info-color : #52adc8 !default; $info-color : #52adc8 !default;
/* YIQ color contrast */
$yiq-contrasted-dark-default : $dark-gray !default;
$yiq-contrasted-light-default : #fff !default;
$yiq-contrasted-threshold : 175 !default;
$yiq-debug : false !default;
/* brands */ /* brands */
$behance-color : #1769FF !default; $behance-color : #1769FF !default;
$bitbucket-color : #205081 !default; $bitbucket-color : #205081 !default;
$dribbble-color : #ea4c89 !default; $dribbble-color : #ea4c89 !default;
$facebook-color : #3b5998 !default; $facebook-color : #3b5998 !default;
$flickr-color : #ff0084 !default; $flickr-color : #ff0084 !default;
$foursquare-color : #0072b1 !default; $foursquare-color : #0072b1 !default;
$github-color : #171516 !default; $github-color : #171516 !default;
$google-plus-color : #dd4b39 !default; $google-plus-color : #dd4b39 !default;
$instagram-color : #517fa4 !default; $instagram-color : #517fa4 !default;
$lastfm-color : #d51007 !default; $lastfm-color : #d51007 !default;
$linkedin-color : #007bb6 !default; $linkedin-color : #007bb6 !default;
$pinterest-color : #cb2027 !default; $pinterest-color : #cb2027 !default;
$rss-color : #fa9b39 !default; $rss-color : #fa9b39 !default;
$soundcloud-color : #ff3300 !default; $soundcloud-color : #ff3300 !default;
$stackoverflow-color : #fe7a15 !default; $stackoverflow-color : #fe7a15 !default;
$tumblr-color : #32506d !default; $tumblr-color : #32506d !default;
$twitter-color : #55acee !default; $twitter-color : #55acee !default;
$vimeo-color : #1ab7ea !default; $vimeo-color : #1ab7ea !default;
$vine-color : #00bf8f !default; $vine-color : #00bf8f !default;
$youtube-color : #bb0000 !default; $youtube-color : #bb0000 !default;
$xing-color : #006567 !default; $xing-color : #006567 !default;
/* links */ /* links */
$link-color : $info-color !default; $link-color : $info-color !default;
$link-color-hover : mix(#000, $link-color, 25%) !default; $link-color-hover : mix(#000, $link-color, 25%) !default;
$link-color-visited : mix(#fff, $link-color, 25%) !default; $link-color-visited : mix(#fff, $link-color, 25%) !default;
$masthead-link-color : $primary-color !default; $masthead-link-color : $primary-color !default;
$masthead-link-color-hover : mix(#000, $primary-color, 25%) !default; $masthead-link-color-hover : mix(#000, $primary-color, 25%) !default;
$navicon-link-color-hover : mix(#fff, $primary-color, 75%) !default; $navicon-link-color-hover : mix(#fff, $primary-color, 75%) !default;
/* /*
Breakpoints Breakpoints
========================================================================== */ ========================================================================== */
$small : 600px !default; $small : 600px !default;
$medium : 768px !default; $medium : 768px !default;
$medium-wide : 900px !default; $medium-wide : 900px !default;
$large : 1024px !default; $large : 1024px !default;
$x-large : 1280px !default; $x-large : 1280px !default;
/* /*
Grid Grid
========================================================================== */ ========================================================================== */
$right-sidebar-width-narrow : 200px !default; $right-sidebar-width-narrow : 200px !default;
$right-sidebar-width : 300px !default; $right-sidebar-width : 300px !default;
$right-sidebar-width-wide : 400px !default; $right-sidebar-width-wide : 400px !default;
/* /*
Other Other
========================================================================== */ ========================================================================== */
$border-radius : 4px !default; $border-radius : 4px !default;
$box-shadow : 0 1px 1px rgba(0, 0, 0, 0.125) !default; $box-shadow : 0 1px 1px rgba(0, 0, 0, 0.125) !default;
$navicon-width : 1.5rem !default; $navicon-width : 1.5rem !default;
$navicon-height : 0.25rem !default; $navicon-height : 0.25rem !default;
$global-transition : all 0.2s ease-in-out !default; $global-transition : all 0.2s ease-in-out !default;
$intro-transition : intro 0.3s both !default; $intro-transition : intro 0.3s both !default;
@@ -0,0 +1,23 @@
/* ==========================================================================
Air skin
========================================================================== */
/* Colors */
$background-color: #eeeeee !default;
$text-color: #222831 !default;
$muted-text-color: #393e46 !default;
$primary-color: #0092ca !default;
$border-color: mix(#fff, #393e46, 75%) !default;
$footer-background-color: $primary-color !default;
$link-color: #393e46 !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: $text-color !default;
$navicon-link-color-hover: mix(#fff, $text-color, 80%) !default;
.page__footer {
color: #fff !important; // override
}
.page__footer-follow .social-icons .fa {
color: inherit;
}
@@ -0,0 +1,34 @@
/* ==========================================================================
Contrast skin
========================================================================== */
/* Colors */
$text-color: #000 !default;
$muted-text-color: $text-color !default;
$primary-color: #ff0000 !default;
$border-color: mix(#fff, $text-color, 75%) !default;
$footer-background-color: #000 !default;
$link-color: #0000ff !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: $text-color !default;
$navicon-link-color-hover: mix(#fff, $text-color, 80%) !default;
.page__content {
.notice,
.notice--primary,
.notice--info,
.notice--warning,
.notice--success,
.notice--danger {
color: $text-color;
}
}
.page__footer {
color: #fff !important; // override
}
.page__footer-follow .social-icons .fa {
color: inherit;
}
@@ -0,0 +1,24 @@
/* ==========================================================================
Dark skin
========================================================================== */
/* Colors */
$background-color: #252a34 !default;
$text-color: #eaeaea !default;
$primary-color: #00adb5 !default;
$border-color: mix(#fff, $background-color, 20%) !default;
$code-background-color: mix(#000, $background-color, 15%) !default;
$code-background-color-dark: mix(#000, $background-color, 20%) !default;
$form-background-color: mix(#000, $background-color, 15%) !default;
$footer-background-color: mix(#000, $background-color, 30%) !default;
$link-color: mix($primary-color, $text-color, 40%) !default;
$link-color-hover: mix(#fff, $link-color, 25%) !default;
$link-color-visited: mix(#000, $link-color, 25%) !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: mix(#000, $text-color, 20%) !default;
$navicon-link-color-hover: mix(#000, $background-color, 30%) !default;
.author__urls.social-icons .fa,
.page__footer-follow .social-icons .fa {
color: inherit;
}
@@ -0,0 +1,5 @@
/* ==========================================================================
Default skin
========================================================================== */
// Intentionally left blank
@@ -0,0 +1,15 @@
/* ==========================================================================
Dirt skin
========================================================================== */
/* Colors */
$background-color: #f3f3f3 !default;
$text-color: #343434 !default;
$muted-text-color: #8e8b82 !default;
$primary-color: #343434 !default;
$border-color: #e9dcbe !default;
$footer-background-color: #e9dcbe !default;
$link-color: #343434 !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: $text-color !default;
$navicon-link-color-hover: mix(#fff, $text-color, 80%) !default;
@@ -0,0 +1,23 @@
/* ==========================================================================
Mint skin
========================================================================== */
/* Colors */
$background-color: #f3f6f6 !default;
$text-color: #40514e !default;
$muted-text-color: #40514e !default;
$primary-color: #11999e !default;
$border-color: mix(#fff, #40514e, 75%) !default;
$footer-background-color: #30e3ca !default;
$link-color: #11999e !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: $text-color !default;
$navicon-link-color-hover: mix(#fff, $text-color, 80%) !default;
.page__footer {
color: #fff !important; // override
}
.page__footer-follow .social-icons .fa {
color: inherit;
}
@@ -0,0 +1,26 @@
/* ==========================================================================
Sunrise skin
========================================================================== */
/* Colors */
$dark-gray: #0e2431 !default;
$background-color: #e8d5b7 !default;
$text-color: #000 !default;
$muted-text-color: $dark-gray !default;
$primary-color: #fc3a52 !default;
$border-color: mix(#000, $background-color, 20%) !default;
$code-background-color: mix(#fff, $background-color, 20%) !default;
$code-background-color-dark: mix(#000, $background-color, 10%) !default;
$form-background-color: mix(#fff, $background-color, 15%) !default;
$footer-background-color: #f9b248 !default;
$link-color: mix(#000, $primary-color, 10%) !default;
$link-color-hover: mix(#fff, $link-color, 25%) !default;
$link-color-visited: mix(#000, $link-color, 25%) !default;
$masthead-link-color: $text-color !default;
$masthead-link-color-hover: mix(#000, $text-color, 20%) !default;
$navicon-link-color-hover: mix(#000, $background-color, 30%) !default;
.author__urls.social-icons .fa,
.page__footer-follow .social-icons .fa {
color: inherit;
}
+2 -1
View File
@@ -4,4 +4,5 @@
@charset "utf-8"; @charset "utf-8";
@import "minimal-mistakes"; @import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin
@import "minimal-mistakes"; // main partials
Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

+5 -5
View File
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More