Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8dcd353e90 | ||
|
|
d5505d2b6f | ||
|
|
84b21b06b7 | ||
|
|
c19db78c5c | ||
|
|
58b8cf8416 | ||
|
|
1570e85fb1 | ||
|
|
7845654225 | ||
|
|
38c2bdbfd8 | ||
|
|
8fc9bccda8 | ||
|
|
93c4fbc4b9 | ||
|
|
d67aa113c8 | ||
|
|
1a2a953dfb | ||
|
|
338df4eb50 | ||
|
|
e0e0fdee4c | ||
|
|
a369b0dc75 | ||
|
|
0883904f95 | ||
|
|
1cc8461f27 | ||
|
|
46c172e041 | ||
|
|
611cecc51a | ||
|
|
b5e1eeb007 |
@@ -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
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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 %}
|
||||||
@@ -1,4 +1,15 @@
|
|||||||
|
{% 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>
|
<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 %}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,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)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
}
|
}
|
||||||
@@ -238,7 +239,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
height: 4px;
|
height: 4px;
|
||||||
background: mix(#fff, $primary-color, 50%);
|
background: $primary-color;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
-webkit-transition: $global-transition;
|
-webkit-transition: $global-transition;
|
||||||
transition: $global-transition;
|
transition: $global-transition;
|
||||||
@@ -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*/
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -53,12 +53,14 @@ $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;
|
||||||
@@ -66,6 +68,12 @@ $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;
|
||||||
@@ -89,7 +97,6 @@ $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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -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
|
||||||
@@ -1,7 +1,18 @@
|
|||||||
/*! Magnific Popup - v0.9.9 - 2013-12-27
|
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
||||||
* http://dimsemenov.com/plugins/magnific-popup/
|
* http://dimsemenov.com/plugins/magnific-popup/
|
||||||
* Copyright (c) 2013 Dmitry Semenov; */
|
* Copyright (c) 2016 Dmitry Semenov; */
|
||||||
;(function($) {
|
;(function (factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(['jquery'], factory);
|
||||||
|
} else if (typeof exports === 'object') {
|
||||||
|
// Node/CommonJS
|
||||||
|
factory(require('jquery'));
|
||||||
|
} else {
|
||||||
|
// Browser globals
|
||||||
|
factory(window.jQuery || window.Zepto);
|
||||||
|
}
|
||||||
|
}(function($) {
|
||||||
|
|
||||||
/*>>core*/
|
/*>>core*/
|
||||||
/**
|
/**
|
||||||
@@ -31,12 +42,12 @@ var CLOSE_EVENT = 'Close',
|
|||||||
/**
|
/**
|
||||||
* Private vars
|
* Private vars
|
||||||
*/
|
*/
|
||||||
|
/*jshint -W079 */
|
||||||
var mfp, // As we have only one instance of MagnificPopup object, we define it locally to not to use 'this'
|
var mfp, // As we have only one instance of MagnificPopup object, we define it locally to not to use 'this'
|
||||||
MagnificPopup = function(){},
|
MagnificPopup = function(){},
|
||||||
_isJQ = !!(window.jQuery),
|
_isJQ = !!(window.jQuery),
|
||||||
_prevStatus,
|
_prevStatus,
|
||||||
_window = $(window),
|
_window = $(window),
|
||||||
_body,
|
|
||||||
_document,
|
_document,
|
||||||
_prevContentType,
|
_prevContentType,
|
||||||
_wrapClasses,
|
_wrapClasses,
|
||||||
@@ -86,6 +97,7 @@ var _mfpOn = function(name, f) {
|
|||||||
// Initialize Magnific Popup only when called at least once
|
// Initialize Magnific Popup only when called at least once
|
||||||
_checkInstance = function() {
|
_checkInstance = function() {
|
||||||
if(!$.magnificPopup.instance) {
|
if(!$.magnificPopup.instance) {
|
||||||
|
/*jshint -W020 */
|
||||||
mfp = new MagnificPopup();
|
mfp = new MagnificPopup();
|
||||||
mfp.init();
|
mfp.init();
|
||||||
$.magnificPopup.instance = mfp;
|
$.magnificPopup.instance = mfp;
|
||||||
@@ -124,9 +136,7 @@ MagnificPopup.prototype = {
|
|||||||
*/
|
*/
|
||||||
init: function() {
|
init: function() {
|
||||||
var appVersion = navigator.appVersion;
|
var appVersion = navigator.appVersion;
|
||||||
mfp.isIE7 = appVersion.indexOf("MSIE 7.") !== -1;
|
mfp.isLowIE = mfp.isIE8 = document.all && !document.addEventListener;
|
||||||
mfp.isIE8 = appVersion.indexOf("MSIE 8.") !== -1;
|
|
||||||
mfp.isLowIE = mfp.isIE7 || mfp.isIE8;
|
|
||||||
mfp.isAndroid = (/android/gi).test(appVersion);
|
mfp.isAndroid = (/android/gi).test(appVersion);
|
||||||
mfp.isIOS = (/iphone|ipad|ipod/gi).test(appVersion);
|
mfp.isIOS = (/iphone|ipad|ipod/gi).test(appVersion);
|
||||||
mfp.supportsTransition = supportsTransitions();
|
mfp.supportsTransition = supportsTransitions();
|
||||||
@@ -145,10 +155,6 @@ MagnificPopup.prototype = {
|
|||||||
*/
|
*/
|
||||||
open: function(data) {
|
open: function(data) {
|
||||||
|
|
||||||
if(!_body) {
|
|
||||||
_body = $(document.body);
|
|
||||||
}
|
|
||||||
|
|
||||||
var i;
|
var i;
|
||||||
|
|
||||||
if(data.isObj === false) {
|
if(data.isObj === false) {
|
||||||
@@ -347,7 +353,7 @@ MagnificPopup.prototype = {
|
|||||||
$('html').css(windowStyles);
|
$('html').css(windowStyles);
|
||||||
|
|
||||||
// add everything to DOM
|
// add everything to DOM
|
||||||
mfp.bgOverlay.add(mfp.wrap).prependTo( mfp.st.prependTo || _body );
|
mfp.bgOverlay.add(mfp.wrap).prependTo( mfp.st.prependTo || $(document.body) );
|
||||||
|
|
||||||
// Save last focused element
|
// Save last focused element
|
||||||
mfp._lastFocusedEl = document.activeElement;
|
mfp._lastFocusedEl = document.activeElement;
|
||||||
@@ -438,7 +444,7 @@ MagnificPopup.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(mfp._lastFocusedEl) {
|
if(mfp.st.autoFocusLast && mfp._lastFocusedEl) {
|
||||||
$(mfp._lastFocusedEl).focus(); // put tab focus back
|
$(mfp._lastFocusedEl).focus(); // put tab focus back
|
||||||
}
|
}
|
||||||
mfp.currItem = null;
|
mfp.currItem = null;
|
||||||
@@ -493,10 +499,6 @@ MagnificPopup.prototype = {
|
|||||||
|
|
||||||
mfp.currItem = item;
|
mfp.currItem = item;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!mfp.currTemplate[type]) {
|
if(!mfp.currTemplate[type]) {
|
||||||
var markup = mfp.st[type] ? mfp.st[type].markup : false;
|
var markup = mfp.st[type] ? mfp.st[type].markup : false;
|
||||||
|
|
||||||
@@ -557,8 +559,6 @@ MagnificPopup.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates Magnific Popup data object based on given data
|
* Creates Magnific Popup data object based on given data
|
||||||
* @param {int} index Index of item to parse
|
* @param {int} index Index of item to parse
|
||||||
@@ -634,7 +634,7 @@ MagnificPopup.prototype = {
|
|||||||
var midClick = options.midClick !== undefined ? options.midClick : $.magnificPopup.defaults.midClick;
|
var midClick = options.midClick !== undefined ? options.midClick : $.magnificPopup.defaults.midClick;
|
||||||
|
|
||||||
|
|
||||||
if(!midClick && ( e.which === 2 || e.ctrlKey || e.metaKey ) ) {
|
if(!midClick && ( e.which === 2 || e.ctrlKey || e.metaKey || e.altKey || e.shiftKey ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -661,7 +661,6 @@ MagnificPopup.prototype = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
options.el = $(e.mfpEl);
|
options.el = $(e.mfpEl);
|
||||||
if(options.delegate) {
|
if(options.delegate) {
|
||||||
options.items = el.find(options.delegate);
|
options.items = el.find(options.delegate);
|
||||||
@@ -789,7 +788,7 @@ MagnificPopup.prototype = {
|
|||||||
if(el.is('img')) {
|
if(el.is('img')) {
|
||||||
el.attr('src', value);
|
el.attr('src', value);
|
||||||
} else {
|
} else {
|
||||||
el.replaceWith( '<img src="'+value+'" class="' + el.attr('class') + '" />' );
|
el.replaceWith( $('<img>').attr('src', value).attr('class', el.attr('class')) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
el.attr(arr[1], value);
|
el.attr(arr[1], value);
|
||||||
@@ -806,7 +805,6 @@ MagnificPopup.prototype = {
|
|||||||
// thx David
|
// thx David
|
||||||
if(mfp.scrollbarSize === undefined) {
|
if(mfp.scrollbarSize === undefined) {
|
||||||
var scrollDiv = document.createElement("div");
|
var scrollDiv = document.createElement("div");
|
||||||
scrollDiv.id = "mfp-sbm";
|
|
||||||
scrollDiv.style.cssText = 'width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';
|
scrollDiv.style.cssText = 'width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';
|
||||||
document.body.appendChild(scrollDiv);
|
document.body.appendChild(scrollDiv);
|
||||||
mfp.scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;
|
mfp.scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;
|
||||||
@@ -837,7 +835,6 @@ $.magnificPopup = {
|
|||||||
options = $.extend(true, {}, options);
|
options = $.extend(true, {}, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
options.isObj = true;
|
options.isObj = true;
|
||||||
options.index = index || 0;
|
options.index = index || 0;
|
||||||
return this.instance.open(options);
|
return this.instance.open(options);
|
||||||
@@ -896,11 +893,13 @@ $.magnificPopup = {
|
|||||||
|
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
|
|
||||||
closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>',
|
closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>',
|
||||||
|
|
||||||
tClose: 'Close (Esc)',
|
tClose: 'Close (Esc)',
|
||||||
|
|
||||||
tLoading: 'Loading...'
|
tLoading: 'Loading...',
|
||||||
|
|
||||||
|
autoFocusLast: true
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -956,26 +955,6 @@ $.fn.magnificPopup = function(options) {
|
|||||||
return jqEl;
|
return jqEl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//Quick benchmark
|
|
||||||
/*
|
|
||||||
var start = performance.now(),
|
|
||||||
i,
|
|
||||||
rounds = 1000;
|
|
||||||
|
|
||||||
for(i = 0; i < rounds; i++) {
|
|
||||||
|
|
||||||
}
|
|
||||||
console.log('Test #1:', performance.now() - start);
|
|
||||||
|
|
||||||
start = performance.now();
|
|
||||||
for(i = 0; i < rounds; i++) {
|
|
||||||
|
|
||||||
}
|
|
||||||
console.log('Test #2:', performance.now() - start);
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/*>>core*/
|
/*>>core*/
|
||||||
|
|
||||||
/*>>inline*/
|
/*>>inline*/
|
||||||
@@ -1053,7 +1032,7 @@ var AJAX_NS = 'ajax',
|
|||||||
_ajaxCur,
|
_ajaxCur,
|
||||||
_removeAjaxCursor = function() {
|
_removeAjaxCursor = function() {
|
||||||
if(_ajaxCur) {
|
if(_ajaxCur) {
|
||||||
_body.removeClass(_ajaxCur);
|
$(document.body).removeClass(_ajaxCur);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_destroyAjaxRequest = function() {
|
_destroyAjaxRequest = function() {
|
||||||
@@ -1081,8 +1060,9 @@ $.magnificPopup.registerModule(AJAX_NS, {
|
|||||||
},
|
},
|
||||||
getAjax: function(item) {
|
getAjax: function(item) {
|
||||||
|
|
||||||
if(_ajaxCur)
|
if(_ajaxCur) {
|
||||||
_body.addClass(_ajaxCur);
|
$(document.body).addClass(_ajaxCur);
|
||||||
|
}
|
||||||
|
|
||||||
mfp.updateStatus('loading');
|
mfp.updateStatus('loading');
|
||||||
|
|
||||||
@@ -1126,12 +1106,6 @@ $.magnificPopup.registerModule(AJAX_NS, {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*>>ajax*/
|
/*>>ajax*/
|
||||||
|
|
||||||
/*>>image*/
|
/*>>image*/
|
||||||
@@ -1182,13 +1156,13 @@ $.magnificPopup.registerModule('image', {
|
|||||||
|
|
||||||
_mfpOn(OPEN_EVENT+ns, function() {
|
_mfpOn(OPEN_EVENT+ns, function() {
|
||||||
if(mfp.currItem.type === 'image' && imgSt.cursor) {
|
if(mfp.currItem.type === 'image' && imgSt.cursor) {
|
||||||
_body.addClass(imgSt.cursor);
|
$(document.body).addClass(imgSt.cursor);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
_mfpOn(CLOSE_EVENT+ns, function() {
|
_mfpOn(CLOSE_EVENT+ns, function() {
|
||||||
if(imgSt.cursor) {
|
if(imgSt.cursor) {
|
||||||
_body.removeClass(imgSt.cursor);
|
$(document.body).removeClass(imgSt.cursor);
|
||||||
}
|
}
|
||||||
_window.off('resize' + EVENT_NS);
|
_window.off('resize' + EVENT_NS);
|
||||||
});
|
});
|
||||||
@@ -1326,6 +1300,9 @@ $.magnificPopup.registerModule('image', {
|
|||||||
if(el.length) {
|
if(el.length) {
|
||||||
var img = document.createElement('img');
|
var img = document.createElement('img');
|
||||||
img.className = 'mfp-img';
|
img.className = 'mfp-img';
|
||||||
|
if(item.el && item.el.find('img').length) {
|
||||||
|
img.alt = item.el.find('img').attr('alt');
|
||||||
|
}
|
||||||
item.img = $(img).on('load.mfploader', onLoadComplete).on('error.mfploader', onLoadError);
|
item.img = $(img).on('load.mfploader', onLoadComplete).on('error.mfploader', onLoadError);
|
||||||
img.src = item.src;
|
img.src = item.src;
|
||||||
|
|
||||||
@@ -1377,8 +1354,6 @@ $.magnificPopup.registerModule('image', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*>>image*/
|
/*>>image*/
|
||||||
|
|
||||||
/*>>zoom*/
|
/*>>zoom*/
|
||||||
@@ -1492,7 +1467,6 @@ $.magnificPopup.registerModule('zoom', {
|
|||||||
animatedImg = getElToAnimate(image);
|
animatedImg = getElToAnimate(image);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
animatedImg.css( mfp._getOffset(true) );
|
animatedImg.css( mfp._getOffset(true) );
|
||||||
mfp.wrap.append(animatedImg);
|
mfp.wrap.append(animatedImg);
|
||||||
mfp.content.css('visibility', 'hidden');
|
mfp.content.css('visibility', 'hidden');
|
||||||
@@ -1712,8 +1686,7 @@ $.magnificPopup.registerModule('gallery', {
|
|||||||
initGallery: function() {
|
initGallery: function() {
|
||||||
|
|
||||||
var gSt = mfp.st.gallery,
|
var gSt = mfp.st.gallery,
|
||||||
ns = '.mfp-gallery',
|
ns = '.mfp-gallery';
|
||||||
supportsFastClick = Boolean($.fn.mfpFastClick);
|
|
||||||
|
|
||||||
mfp.direction = true; // true - next, false - prev
|
mfp.direction = true; // true - next, false - prev
|
||||||
|
|
||||||
@@ -1758,22 +1731,13 @@ $.magnificPopup.registerModule('gallery', {
|
|||||||
arrowLeft = mfp.arrowLeft = $( markup.replace(/%title%/gi, gSt.tPrev).replace(/%dir%/gi, 'left') ).addClass(PREVENT_CLOSE_CLASS),
|
arrowLeft = mfp.arrowLeft = $( markup.replace(/%title%/gi, gSt.tPrev).replace(/%dir%/gi, 'left') ).addClass(PREVENT_CLOSE_CLASS),
|
||||||
arrowRight = mfp.arrowRight = $( markup.replace(/%title%/gi, gSt.tNext).replace(/%dir%/gi, 'right') ).addClass(PREVENT_CLOSE_CLASS);
|
arrowRight = mfp.arrowRight = $( markup.replace(/%title%/gi, gSt.tNext).replace(/%dir%/gi, 'right') ).addClass(PREVENT_CLOSE_CLASS);
|
||||||
|
|
||||||
var eName = supportsFastClick ? 'mfpFastClick' : 'click';
|
arrowLeft.click(function() {
|
||||||
arrowLeft[eName](function() {
|
|
||||||
mfp.prev();
|
mfp.prev();
|
||||||
});
|
});
|
||||||
arrowRight[eName](function() {
|
arrowRight.click(function() {
|
||||||
mfp.next();
|
mfp.next();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Polyfill for :before and :after (adds elements with classes mfp-a and mfp-b)
|
|
||||||
if(mfp.isIE7) {
|
|
||||||
_getEl('b', arrowLeft[0], false, true);
|
|
||||||
_getEl('a', arrowLeft[0], false, true);
|
|
||||||
_getEl('b', arrowRight[0], false, true);
|
|
||||||
_getEl('a', arrowRight[0], false, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
mfp.container.append(arrowLeft.add(arrowRight));
|
mfp.container.append(arrowLeft.add(arrowRight));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1791,10 +1755,6 @@ $.magnificPopup.registerModule('gallery', {
|
|||||||
_mfpOn(CLOSE_EVENT+ns, function() {
|
_mfpOn(CLOSE_EVENT+ns, function() {
|
||||||
_document.off(ns);
|
_document.off(ns);
|
||||||
mfp.wrap.off('click'+ns);
|
mfp.wrap.off('click'+ns);
|
||||||
|
|
||||||
if(mfp.arrowLeft && supportsFastClick) {
|
|
||||||
mfp.arrowLeft.add(mfp.arrowRight).destroyMfpFastClick();
|
|
||||||
}
|
|
||||||
mfp.arrowRight = mfp.arrowLeft = null;
|
mfp.arrowRight = mfp.arrowLeft = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1857,58 +1817,6 @@ $.magnificPopup.registerModule('gallery', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
|
||||||
Touch Support that might be implemented some day
|
|
||||||
|
|
||||||
addSwipeGesture: function() {
|
|
||||||
var startX,
|
|
||||||
moved,
|
|
||||||
multipleTouches;
|
|
||||||
|
|
||||||
return;
|
|
||||||
|
|
||||||
var namespace = '.mfp',
|
|
||||||
addEventNames = function(pref, down, move, up, cancel) {
|
|
||||||
mfp._tStart = pref + down + namespace;
|
|
||||||
mfp._tMove = pref + move + namespace;
|
|
||||||
mfp._tEnd = pref + up + namespace;
|
|
||||||
mfp._tCancel = pref + cancel + namespace;
|
|
||||||
};
|
|
||||||
|
|
||||||
if(window.navigator.msPointerEnabled) {
|
|
||||||
addEventNames('MSPointer', 'Down', 'Move', 'Up', 'Cancel');
|
|
||||||
} else if('ontouchstart' in window) {
|
|
||||||
addEventNames('touch', 'start', 'move', 'end', 'cancel');
|
|
||||||
} else {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_window.on(mfp._tStart, function(e) {
|
|
||||||
var oE = e.originalEvent;
|
|
||||||
multipleTouches = moved = false;
|
|
||||||
startX = oE.pageX || oE.changedTouches[0].pageX;
|
|
||||||
}).on(mfp._tMove, function(e) {
|
|
||||||
if(e.originalEvent.touches.length > 1) {
|
|
||||||
multipleTouches = e.originalEvent.touches.length;
|
|
||||||
} else {
|
|
||||||
//e.preventDefault();
|
|
||||||
moved = true;
|
|
||||||
}
|
|
||||||
}).on(mfp._tEnd + ' ' + mfp._tCancel, function(e) {
|
|
||||||
if(moved && !multipleTouches) {
|
|
||||||
var oE = e.originalEvent,
|
|
||||||
diff = startX - (oE.pageX || oE.changedTouches[0].pageX);
|
|
||||||
|
|
||||||
if(diff > 20) {
|
|
||||||
mfp.next();
|
|
||||||
} else if(diff < -20) {
|
|
||||||
mfp.prev();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/*>>gallery*/
|
/*>>gallery*/
|
||||||
|
|
||||||
/*>>retina*/
|
/*>>retina*/
|
||||||
@@ -1949,101 +1857,4 @@ $.magnificPopup.registerModule(RETINA_NS, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
/*>>retina*/
|
/*>>retina*/
|
||||||
|
_checkInstance(); }));
|
||||||
/*>>fastclick*/
|
|
||||||
/**
|
|
||||||
* FastClick event implementation. (removes 300ms delay on touch devices)
|
|
||||||
* Based on https://developers.google.com/mobile/articles/fast_buttons
|
|
||||||
*
|
|
||||||
* You may use it outside the Magnific Popup by calling just:
|
|
||||||
*
|
|
||||||
* $('.your-el').mfpFastClick(function() {
|
|
||||||
* console.log('Clicked!');
|
|
||||||
* });
|
|
||||||
*
|
|
||||||
* To unbind:
|
|
||||||
* $('.your-el').destroyMfpFastClick();
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* Note that it's a very basic and simple implementation, it blocks ghost click on the same element where it was bound.
|
|
||||||
* If you need something more advanced, use plugin by FT Labs https://github.com/ftlabs/fastclick
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var ghostClickDelay = 1000,
|
|
||||||
supportsTouch = 'ontouchstart' in window,
|
|
||||||
unbindTouchMove = function() {
|
|
||||||
_window.off('touchmove'+ns+' touchend'+ns);
|
|
||||||
},
|
|
||||||
eName = 'mfpFastClick',
|
|
||||||
ns = '.'+eName;
|
|
||||||
|
|
||||||
|
|
||||||
// As Zepto.js doesn't have an easy way to add custom events (like jQuery), so we implement it in this way
|
|
||||||
$.fn.mfpFastClick = function(callback) {
|
|
||||||
|
|
||||||
return $(this).each(function() {
|
|
||||||
|
|
||||||
var elem = $(this),
|
|
||||||
lock;
|
|
||||||
|
|
||||||
if( supportsTouch ) {
|
|
||||||
|
|
||||||
var timeout,
|
|
||||||
startX,
|
|
||||||
startY,
|
|
||||||
pointerMoved,
|
|
||||||
point,
|
|
||||||
numPointers;
|
|
||||||
|
|
||||||
elem.on('touchstart' + ns, function(e) {
|
|
||||||
pointerMoved = false;
|
|
||||||
numPointers = 1;
|
|
||||||
|
|
||||||
point = e.originalEvent ? e.originalEvent.touches[0] : e.touches[0];
|
|
||||||
startX = point.clientX;
|
|
||||||
startY = point.clientY;
|
|
||||||
|
|
||||||
_window.on('touchmove'+ns, function(e) {
|
|
||||||
point = e.originalEvent ? e.originalEvent.touches : e.touches;
|
|
||||||
numPointers = point.length;
|
|
||||||
point = point[0];
|
|
||||||
if (Math.abs(point.clientX - startX) > 10 ||
|
|
||||||
Math.abs(point.clientY - startY) > 10) {
|
|
||||||
pointerMoved = true;
|
|
||||||
unbindTouchMove();
|
|
||||||
}
|
|
||||||
}).on('touchend'+ns, function(e) {
|
|
||||||
unbindTouchMove();
|
|
||||||
if(pointerMoved || numPointers > 1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
lock = true;
|
|
||||||
e.preventDefault();
|
|
||||||
clearTimeout(timeout);
|
|
||||||
timeout = setTimeout(function() {
|
|
||||||
lock = false;
|
|
||||||
}, ghostClickDelay);
|
|
||||||
callback();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
elem.on('click' + ns, function() {
|
|
||||||
if(!lock) {
|
|
||||||
callback();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
$.fn.destroyMfpFastClick = function() {
|
|
||||||
$(this).off('touchstart' + ns + ' click' + ns);
|
|
||||||
if(supportsTouch) _window.off('touchmove'+ns+' touchend'+ns);
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/*>>fastclick*/
|
|
||||||
_checkInstance(); })(window.jQuery || window.Zepto);
|
|
||||||
@@ -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});
|
||||||
@@ -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"
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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 %}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
<!-- End static comments -->
|
<!-- End static comments -->
|
||||||
|
|
||||||
<!-- Start new comment form -->
|
<!-- Start new comment form -->
|
||||||
|
<div class="page__comments-form">
|
||||||
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
|
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
|
||||||
<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>
|
<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>
|
||||||
<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 }}">
|
<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 }}">
|
||||||
@@ -83,9 +84,10 @@
|
|||||||
</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>
|
||||||
|
|||||||
@@ -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 %}
|
||||||
|
|||||||
@@ -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 %}
|
||||||
@@ -1,4 +1,15 @@
|
|||||||
|
{% 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>
|
<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 %}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -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 [<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 [<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" %}
|
||||||
|
|||||||
@@ -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,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)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
@@ -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*/
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -53,12 +53,14 @@ $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;
|
||||||
@@ -66,6 +68,12 @@ $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;
|
||||||
@@ -89,7 +97,6 @@ $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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 16 KiB |
@@ -1,7 +1,18 @@
|
|||||||
/*! Magnific Popup - v0.9.9 - 2013-12-27
|
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
||||||
* http://dimsemenov.com/plugins/magnific-popup/
|
* http://dimsemenov.com/plugins/magnific-popup/
|
||||||
* Copyright (c) 2013 Dmitry Semenov; */
|
* Copyright (c) 2016 Dmitry Semenov; */
|
||||||
;(function($) {
|
;(function (factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(['jquery'], factory);
|
||||||
|
} else if (typeof exports === 'object') {
|
||||||
|
// Node/CommonJS
|
||||||
|
factory(require('jquery'));
|
||||||
|
} else {
|
||||||
|
// Browser globals
|
||||||
|
factory(window.jQuery || window.Zepto);
|
||||||
|
}
|
||||||
|
}(function($) {
|
||||||
|
|
||||||
/*>>core*/
|
/*>>core*/
|
||||||
/**
|
/**
|
||||||
@@ -31,12 +42,12 @@ var CLOSE_EVENT = 'Close',
|
|||||||
/**
|
/**
|
||||||
* Private vars
|
* Private vars
|
||||||
*/
|
*/
|
||||||
|
/*jshint -W079 */
|
||||||
var mfp, // As we have only one instance of MagnificPopup object, we define it locally to not to use 'this'
|
var mfp, // As we have only one instance of MagnificPopup object, we define it locally to not to use 'this'
|
||||||
MagnificPopup = function(){},
|
MagnificPopup = function(){},
|
||||||
_isJQ = !!(window.jQuery),
|
_isJQ = !!(window.jQuery),
|
||||||
_prevStatus,
|
_prevStatus,
|
||||||
_window = $(window),
|
_window = $(window),
|
||||||
_body,
|
|
||||||
_document,
|
_document,
|
||||||
_prevContentType,
|
_prevContentType,
|
||||||
_wrapClasses,
|
_wrapClasses,
|
||||||
@@ -86,6 +97,7 @@ var _mfpOn = function(name, f) {
|
|||||||
// Initialize Magnific Popup only when called at least once
|
// Initialize Magnific Popup only when called at least once
|
||||||
_checkInstance = function() {
|
_checkInstance = function() {
|
||||||
if(!$.magnificPopup.instance) {
|
if(!$.magnificPopup.instance) {
|
||||||
|
/*jshint -W020 */
|
||||||
mfp = new MagnificPopup();
|
mfp = new MagnificPopup();
|
||||||
mfp.init();
|
mfp.init();
|
||||||
$.magnificPopup.instance = mfp;
|
$.magnificPopup.instance = mfp;
|
||||||
@@ -124,9 +136,7 @@ MagnificPopup.prototype = {
|
|||||||
*/
|
*/
|
||||||
init: function() {
|
init: function() {
|
||||||
var appVersion = navigator.appVersion;
|
var appVersion = navigator.appVersion;
|
||||||
mfp.isIE7 = appVersion.indexOf("MSIE 7.") !== -1;
|
mfp.isLowIE = mfp.isIE8 = document.all && !document.addEventListener;
|
||||||
mfp.isIE8 = appVersion.indexOf("MSIE 8.") !== -1;
|
|
||||||
mfp.isLowIE = mfp.isIE7 || mfp.isIE8;
|
|
||||||
mfp.isAndroid = (/android/gi).test(appVersion);
|
mfp.isAndroid = (/android/gi).test(appVersion);
|
||||||
mfp.isIOS = (/iphone|ipad|ipod/gi).test(appVersion);
|
mfp.isIOS = (/iphone|ipad|ipod/gi).test(appVersion);
|
||||||
mfp.supportsTransition = supportsTransitions();
|
mfp.supportsTransition = supportsTransitions();
|
||||||
@@ -145,10 +155,6 @@ MagnificPopup.prototype = {
|
|||||||
*/
|
*/
|
||||||
open: function(data) {
|
open: function(data) {
|
||||||
|
|
||||||
if(!_body) {
|
|
||||||
_body = $(document.body);
|
|
||||||
}
|
|
||||||
|
|
||||||
var i;
|
var i;
|
||||||
|
|
||||||
if(data.isObj === false) {
|
if(data.isObj === false) {
|
||||||
@@ -347,7 +353,7 @@ MagnificPopup.prototype = {
|
|||||||
$('html').css(windowStyles);
|
$('html').css(windowStyles);
|
||||||
|
|
||||||
// add everything to DOM
|
// add everything to DOM
|
||||||
mfp.bgOverlay.add(mfp.wrap).prependTo( mfp.st.prependTo || _body );
|
mfp.bgOverlay.add(mfp.wrap).prependTo( mfp.st.prependTo || $(document.body) );
|
||||||
|
|
||||||
// Save last focused element
|
// Save last focused element
|
||||||
mfp._lastFocusedEl = document.activeElement;
|
mfp._lastFocusedEl = document.activeElement;
|
||||||
@@ -438,7 +444,7 @@ MagnificPopup.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(mfp._lastFocusedEl) {
|
if(mfp.st.autoFocusLast && mfp._lastFocusedEl) {
|
||||||
$(mfp._lastFocusedEl).focus(); // put tab focus back
|
$(mfp._lastFocusedEl).focus(); // put tab focus back
|
||||||
}
|
}
|
||||||
mfp.currItem = null;
|
mfp.currItem = null;
|
||||||
@@ -493,10 +499,6 @@ MagnificPopup.prototype = {
|
|||||||
|
|
||||||
mfp.currItem = item;
|
mfp.currItem = item;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!mfp.currTemplate[type]) {
|
if(!mfp.currTemplate[type]) {
|
||||||
var markup = mfp.st[type] ? mfp.st[type].markup : false;
|
var markup = mfp.st[type] ? mfp.st[type].markup : false;
|
||||||
|
|
||||||
@@ -557,8 +559,6 @@ MagnificPopup.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates Magnific Popup data object based on given data
|
* Creates Magnific Popup data object based on given data
|
||||||
* @param {int} index Index of item to parse
|
* @param {int} index Index of item to parse
|
||||||
@@ -634,7 +634,7 @@ MagnificPopup.prototype = {
|
|||||||
var midClick = options.midClick !== undefined ? options.midClick : $.magnificPopup.defaults.midClick;
|
var midClick = options.midClick !== undefined ? options.midClick : $.magnificPopup.defaults.midClick;
|
||||||
|
|
||||||
|
|
||||||
if(!midClick && ( e.which === 2 || e.ctrlKey || e.metaKey ) ) {
|
if(!midClick && ( e.which === 2 || e.ctrlKey || e.metaKey || e.altKey || e.shiftKey ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -661,7 +661,6 @@ MagnificPopup.prototype = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
options.el = $(e.mfpEl);
|
options.el = $(e.mfpEl);
|
||||||
if(options.delegate) {
|
if(options.delegate) {
|
||||||
options.items = el.find(options.delegate);
|
options.items = el.find(options.delegate);
|
||||||
@@ -789,7 +788,7 @@ MagnificPopup.prototype = {
|
|||||||
if(el.is('img')) {
|
if(el.is('img')) {
|
||||||
el.attr('src', value);
|
el.attr('src', value);
|
||||||
} else {
|
} else {
|
||||||
el.replaceWith( '<img src="'+value+'" class="' + el.attr('class') + '" />' );
|
el.replaceWith( $('<img>').attr('src', value).attr('class', el.attr('class')) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
el.attr(arr[1], value);
|
el.attr(arr[1], value);
|
||||||
@@ -806,7 +805,6 @@ MagnificPopup.prototype = {
|
|||||||
// thx David
|
// thx David
|
||||||
if(mfp.scrollbarSize === undefined) {
|
if(mfp.scrollbarSize === undefined) {
|
||||||
var scrollDiv = document.createElement("div");
|
var scrollDiv = document.createElement("div");
|
||||||
scrollDiv.id = "mfp-sbm";
|
|
||||||
scrollDiv.style.cssText = 'width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';
|
scrollDiv.style.cssText = 'width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';
|
||||||
document.body.appendChild(scrollDiv);
|
document.body.appendChild(scrollDiv);
|
||||||
mfp.scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;
|
mfp.scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;
|
||||||
@@ -837,7 +835,6 @@ $.magnificPopup = {
|
|||||||
options = $.extend(true, {}, options);
|
options = $.extend(true, {}, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
options.isObj = true;
|
options.isObj = true;
|
||||||
options.index = index || 0;
|
options.index = index || 0;
|
||||||
return this.instance.open(options);
|
return this.instance.open(options);
|
||||||
@@ -896,11 +893,13 @@ $.magnificPopup = {
|
|||||||
|
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
|
|
||||||
closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>',
|
closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>',
|
||||||
|
|
||||||
tClose: 'Close (Esc)',
|
tClose: 'Close (Esc)',
|
||||||
|
|
||||||
tLoading: 'Loading...'
|
tLoading: 'Loading...',
|
||||||
|
|
||||||
|
autoFocusLast: true
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -956,26 +955,6 @@ $.fn.magnificPopup = function(options) {
|
|||||||
return jqEl;
|
return jqEl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//Quick benchmark
|
|
||||||
/*
|
|
||||||
var start = performance.now(),
|
|
||||||
i,
|
|
||||||
rounds = 1000;
|
|
||||||
|
|
||||||
for(i = 0; i < rounds; i++) {
|
|
||||||
|
|
||||||
}
|
|
||||||
console.log('Test #1:', performance.now() - start);
|
|
||||||
|
|
||||||
start = performance.now();
|
|
||||||
for(i = 0; i < rounds; i++) {
|
|
||||||
|
|
||||||
}
|
|
||||||
console.log('Test #2:', performance.now() - start);
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/*>>core*/
|
/*>>core*/
|
||||||
|
|
||||||
/*>>inline*/
|
/*>>inline*/
|
||||||
@@ -1053,7 +1032,7 @@ var AJAX_NS = 'ajax',
|
|||||||
_ajaxCur,
|
_ajaxCur,
|
||||||
_removeAjaxCursor = function() {
|
_removeAjaxCursor = function() {
|
||||||
if(_ajaxCur) {
|
if(_ajaxCur) {
|
||||||
_body.removeClass(_ajaxCur);
|
$(document.body).removeClass(_ajaxCur);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_destroyAjaxRequest = function() {
|
_destroyAjaxRequest = function() {
|
||||||
@@ -1081,8 +1060,9 @@ $.magnificPopup.registerModule(AJAX_NS, {
|
|||||||
},
|
},
|
||||||
getAjax: function(item) {
|
getAjax: function(item) {
|
||||||
|
|
||||||
if(_ajaxCur)
|
if(_ajaxCur) {
|
||||||
_body.addClass(_ajaxCur);
|
$(document.body).addClass(_ajaxCur);
|
||||||
|
}
|
||||||
|
|
||||||
mfp.updateStatus('loading');
|
mfp.updateStatus('loading');
|
||||||
|
|
||||||
@@ -1126,12 +1106,6 @@ $.magnificPopup.registerModule(AJAX_NS, {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*>>ajax*/
|
/*>>ajax*/
|
||||||
|
|
||||||
/*>>image*/
|
/*>>image*/
|
||||||
@@ -1182,13 +1156,13 @@ $.magnificPopup.registerModule('image', {
|
|||||||
|
|
||||||
_mfpOn(OPEN_EVENT+ns, function() {
|
_mfpOn(OPEN_EVENT+ns, function() {
|
||||||
if(mfp.currItem.type === 'image' && imgSt.cursor) {
|
if(mfp.currItem.type === 'image' && imgSt.cursor) {
|
||||||
_body.addClass(imgSt.cursor);
|
$(document.body).addClass(imgSt.cursor);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
_mfpOn(CLOSE_EVENT+ns, function() {
|
_mfpOn(CLOSE_EVENT+ns, function() {
|
||||||
if(imgSt.cursor) {
|
if(imgSt.cursor) {
|
||||||
_body.removeClass(imgSt.cursor);
|
$(document.body).removeClass(imgSt.cursor);
|
||||||
}
|
}
|
||||||
_window.off('resize' + EVENT_NS);
|
_window.off('resize' + EVENT_NS);
|
||||||
});
|
});
|
||||||
@@ -1326,6 +1300,9 @@ $.magnificPopup.registerModule('image', {
|
|||||||
if(el.length) {
|
if(el.length) {
|
||||||
var img = document.createElement('img');
|
var img = document.createElement('img');
|
||||||
img.className = 'mfp-img';
|
img.className = 'mfp-img';
|
||||||
|
if(item.el && item.el.find('img').length) {
|
||||||
|
img.alt = item.el.find('img').attr('alt');
|
||||||
|
}
|
||||||
item.img = $(img).on('load.mfploader', onLoadComplete).on('error.mfploader', onLoadError);
|
item.img = $(img).on('load.mfploader', onLoadComplete).on('error.mfploader', onLoadError);
|
||||||
img.src = item.src;
|
img.src = item.src;
|
||||||
|
|
||||||
@@ -1377,8 +1354,6 @@ $.magnificPopup.registerModule('image', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*>>image*/
|
/*>>image*/
|
||||||
|
|
||||||
/*>>zoom*/
|
/*>>zoom*/
|
||||||
@@ -1492,7 +1467,6 @@ $.magnificPopup.registerModule('zoom', {
|
|||||||
animatedImg = getElToAnimate(image);
|
animatedImg = getElToAnimate(image);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
animatedImg.css( mfp._getOffset(true) );
|
animatedImg.css( mfp._getOffset(true) );
|
||||||
mfp.wrap.append(animatedImg);
|
mfp.wrap.append(animatedImg);
|
||||||
mfp.content.css('visibility', 'hidden');
|
mfp.content.css('visibility', 'hidden');
|
||||||
@@ -1712,8 +1686,7 @@ $.magnificPopup.registerModule('gallery', {
|
|||||||
initGallery: function() {
|
initGallery: function() {
|
||||||
|
|
||||||
var gSt = mfp.st.gallery,
|
var gSt = mfp.st.gallery,
|
||||||
ns = '.mfp-gallery',
|
ns = '.mfp-gallery';
|
||||||
supportsFastClick = Boolean($.fn.mfpFastClick);
|
|
||||||
|
|
||||||
mfp.direction = true; // true - next, false - prev
|
mfp.direction = true; // true - next, false - prev
|
||||||
|
|
||||||
@@ -1758,22 +1731,13 @@ $.magnificPopup.registerModule('gallery', {
|
|||||||
arrowLeft = mfp.arrowLeft = $( markup.replace(/%title%/gi, gSt.tPrev).replace(/%dir%/gi, 'left') ).addClass(PREVENT_CLOSE_CLASS),
|
arrowLeft = mfp.arrowLeft = $( markup.replace(/%title%/gi, gSt.tPrev).replace(/%dir%/gi, 'left') ).addClass(PREVENT_CLOSE_CLASS),
|
||||||
arrowRight = mfp.arrowRight = $( markup.replace(/%title%/gi, gSt.tNext).replace(/%dir%/gi, 'right') ).addClass(PREVENT_CLOSE_CLASS);
|
arrowRight = mfp.arrowRight = $( markup.replace(/%title%/gi, gSt.tNext).replace(/%dir%/gi, 'right') ).addClass(PREVENT_CLOSE_CLASS);
|
||||||
|
|
||||||
var eName = supportsFastClick ? 'mfpFastClick' : 'click';
|
arrowLeft.click(function() {
|
||||||
arrowLeft[eName](function() {
|
|
||||||
mfp.prev();
|
mfp.prev();
|
||||||
});
|
});
|
||||||
arrowRight[eName](function() {
|
arrowRight.click(function() {
|
||||||
mfp.next();
|
mfp.next();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Polyfill for :before and :after (adds elements with classes mfp-a and mfp-b)
|
|
||||||
if(mfp.isIE7) {
|
|
||||||
_getEl('b', arrowLeft[0], false, true);
|
|
||||||
_getEl('a', arrowLeft[0], false, true);
|
|
||||||
_getEl('b', arrowRight[0], false, true);
|
|
||||||
_getEl('a', arrowRight[0], false, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
mfp.container.append(arrowLeft.add(arrowRight));
|
mfp.container.append(arrowLeft.add(arrowRight));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1791,10 +1755,6 @@ $.magnificPopup.registerModule('gallery', {
|
|||||||
_mfpOn(CLOSE_EVENT+ns, function() {
|
_mfpOn(CLOSE_EVENT+ns, function() {
|
||||||
_document.off(ns);
|
_document.off(ns);
|
||||||
mfp.wrap.off('click'+ns);
|
mfp.wrap.off('click'+ns);
|
||||||
|
|
||||||
if(mfp.arrowLeft && supportsFastClick) {
|
|
||||||
mfp.arrowLeft.add(mfp.arrowRight).destroyMfpFastClick();
|
|
||||||
}
|
|
||||||
mfp.arrowRight = mfp.arrowLeft = null;
|
mfp.arrowRight = mfp.arrowLeft = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1857,58 +1817,6 @@ $.magnificPopup.registerModule('gallery', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
|
||||||
Touch Support that might be implemented some day
|
|
||||||
|
|
||||||
addSwipeGesture: function() {
|
|
||||||
var startX,
|
|
||||||
moved,
|
|
||||||
multipleTouches;
|
|
||||||
|
|
||||||
return;
|
|
||||||
|
|
||||||
var namespace = '.mfp',
|
|
||||||
addEventNames = function(pref, down, move, up, cancel) {
|
|
||||||
mfp._tStart = pref + down + namespace;
|
|
||||||
mfp._tMove = pref + move + namespace;
|
|
||||||
mfp._tEnd = pref + up + namespace;
|
|
||||||
mfp._tCancel = pref + cancel + namespace;
|
|
||||||
};
|
|
||||||
|
|
||||||
if(window.navigator.msPointerEnabled) {
|
|
||||||
addEventNames('MSPointer', 'Down', 'Move', 'Up', 'Cancel');
|
|
||||||
} else if('ontouchstart' in window) {
|
|
||||||
addEventNames('touch', 'start', 'move', 'end', 'cancel');
|
|
||||||
} else {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_window.on(mfp._tStart, function(e) {
|
|
||||||
var oE = e.originalEvent;
|
|
||||||
multipleTouches = moved = false;
|
|
||||||
startX = oE.pageX || oE.changedTouches[0].pageX;
|
|
||||||
}).on(mfp._tMove, function(e) {
|
|
||||||
if(e.originalEvent.touches.length > 1) {
|
|
||||||
multipleTouches = e.originalEvent.touches.length;
|
|
||||||
} else {
|
|
||||||
//e.preventDefault();
|
|
||||||
moved = true;
|
|
||||||
}
|
|
||||||
}).on(mfp._tEnd + ' ' + mfp._tCancel, function(e) {
|
|
||||||
if(moved && !multipleTouches) {
|
|
||||||
var oE = e.originalEvent,
|
|
||||||
diff = startX - (oE.pageX || oE.changedTouches[0].pageX);
|
|
||||||
|
|
||||||
if(diff > 20) {
|
|
||||||
mfp.next();
|
|
||||||
} else if(diff < -20) {
|
|
||||||
mfp.prev();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/*>>gallery*/
|
/*>>gallery*/
|
||||||
|
|
||||||
/*>>retina*/
|
/*>>retina*/
|
||||||
@@ -1949,101 +1857,4 @@ $.magnificPopup.registerModule(RETINA_NS, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
/*>>retina*/
|
/*>>retina*/
|
||||||
|
_checkInstance(); }));
|
||||||
/*>>fastclick*/
|
|
||||||
/**
|
|
||||||
* FastClick event implementation. (removes 300ms delay on touch devices)
|
|
||||||
* Based on https://developers.google.com/mobile/articles/fast_buttons
|
|
||||||
*
|
|
||||||
* You may use it outside the Magnific Popup by calling just:
|
|
||||||
*
|
|
||||||
* $('.your-el').mfpFastClick(function() {
|
|
||||||
* console.log('Clicked!');
|
|
||||||
* });
|
|
||||||
*
|
|
||||||
* To unbind:
|
|
||||||
* $('.your-el').destroyMfpFastClick();
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* Note that it's a very basic and simple implementation, it blocks ghost click on the same element where it was bound.
|
|
||||||
* If you need something more advanced, use plugin by FT Labs https://github.com/ftlabs/fastclick
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var ghostClickDelay = 1000,
|
|
||||||
supportsTouch = 'ontouchstart' in window,
|
|
||||||
unbindTouchMove = function() {
|
|
||||||
_window.off('touchmove'+ns+' touchend'+ns);
|
|
||||||
},
|
|
||||||
eName = 'mfpFastClick',
|
|
||||||
ns = '.'+eName;
|
|
||||||
|
|
||||||
|
|
||||||
// As Zepto.js doesn't have an easy way to add custom events (like jQuery), so we implement it in this way
|
|
||||||
$.fn.mfpFastClick = function(callback) {
|
|
||||||
|
|
||||||
return $(this).each(function() {
|
|
||||||
|
|
||||||
var elem = $(this),
|
|
||||||
lock;
|
|
||||||
|
|
||||||
if( supportsTouch ) {
|
|
||||||
|
|
||||||
var timeout,
|
|
||||||
startX,
|
|
||||||
startY,
|
|
||||||
pointerMoved,
|
|
||||||
point,
|
|
||||||
numPointers;
|
|
||||||
|
|
||||||
elem.on('touchstart' + ns, function(e) {
|
|
||||||
pointerMoved = false;
|
|
||||||
numPointers = 1;
|
|
||||||
|
|
||||||
point = e.originalEvent ? e.originalEvent.touches[0] : e.touches[0];
|
|
||||||
startX = point.clientX;
|
|
||||||
startY = point.clientY;
|
|
||||||
|
|
||||||
_window.on('touchmove'+ns, function(e) {
|
|
||||||
point = e.originalEvent ? e.originalEvent.touches : e.touches;
|
|
||||||
numPointers = point.length;
|
|
||||||
point = point[0];
|
|
||||||
if (Math.abs(point.clientX - startX) > 10 ||
|
|
||||||
Math.abs(point.clientY - startY) > 10) {
|
|
||||||
pointerMoved = true;
|
|
||||||
unbindTouchMove();
|
|
||||||
}
|
|
||||||
}).on('touchend'+ns, function(e) {
|
|
||||||
unbindTouchMove();
|
|
||||||
if(pointerMoved || numPointers > 1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
lock = true;
|
|
||||||
e.preventDefault();
|
|
||||||
clearTimeout(timeout);
|
|
||||||
timeout = setTimeout(function() {
|
|
||||||
lock = false;
|
|
||||||
}, ghostClickDelay);
|
|
||||||
callback();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
elem.on('click' + ns, function() {
|
|
||||||
if(!lock) {
|
|
||||||
callback();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
$.fn.destroyMfpFastClick = function() {
|
|
||||||
$(this).off('touchstart' + ns + ' click' + ns);
|
|
||||||
if(supportsTouch) _window.off('touchmove'+ns+' touchend'+ns);
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/*>>fastclick*/
|
|
||||||
_checkInstance(); })(window.jQuery || window.Zepto);
|
|
||||||