Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorHanzei <hanzei@mailbox.org>2018-07-29 10:21:19 +0300
committerHanzei <hanzei@mailbox.org>2018-07-29 10:21:19 +0300
commitef4cd37814ed3acb0d7cedbcef6d28372624217a (patch)
tree1f1b90734eee45a1efbaf8bf5591b7de7c416c1e /assets
parent2689fddc64708cbb8750543bfa8b134957b24574 (diff)
Use doublequotes when possible
Diffstat (limited to 'assets')
-rw-r--r--assets/js/index.js24
-rw-r--r--assets/js/initMoment.js2
-rw-r--r--assets/sass/_base.sass22
-rw-r--r--assets/sass/_fonts.sass12
4 files changed, 31 insertions, 29 deletions
diff --git a/assets/js/index.js b/assets/js/index.js
index 9f3fc27..68f26d3 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -1,27 +1,27 @@
// Nav burger animation
-document.addEventListener('DOMContentLoaded', function () {
+document.addEventListener("DOMContentLoaded", function () {
// Get all "navbar-burger" elements
- var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
+ var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll(".navbar-burger"), 0);
// Check if there are any navbar burgers
if ($navbarBurgers.length > 0) {
// Add a click event on each of them
$navbarBurgers.forEach(function ($el) {
- $el.addEventListener('click', function () {
+ $el.addEventListener("click", function () {
// Get the target from the "data-target" attribute
var target = $el.dataset.target;
var $target = document.getElementById(target);
// Toggle the class on both the "navbar-burger" and the "navbar-menu"
- $el.classList.toggle('is-active');
- $target.classList.toggle('is-active');
+ $el.classList.toggle("is-active");
+ $target.classList.toggle("is-active");
});
});
}
});
// Bitty scrolling links script
-$('a[href^="#"]').click(function(e) {
+$("a[href^=\"#\"]").click(function(e) {
e.preventDefault();
- $('html, body').animate({
+ $("html, body").animate({
scrollTop: $(this.hash).offset().top
}, 500);
$("#nav-menu").removeClass("is-active");
@@ -29,17 +29,17 @@ $('a[href^="#"]').click(function(e) {
})
// Modal closer
-$('.card').click(function () {
- $($(this).attr('data-target')).addClass('is-active');
+$(".card").click(function () {
+ $($(this).attr("data-target")).addClass("is-active");
$("html").addClass("modal-open");
});
-$('.modal-close').click(function () {
- $($(this).attr('data-target')).removeClass('is-active');
+$(".modal-close").click(function () {
+ $($(this).attr("data-target")).removeClass("is-active");
$("html").removeClass("modal-open");
});
$(document).keypress(function(e) {
if(e.which == 0) {
- $('.modal.is-active').removeClass('is-active');
+ $(".modal.is-active").removeClass("is-active");
$("html").removeClass("modal-open");
}
});
diff --git a/assets/js/initMoment.js b/assets/js/initMoment.js
index 20a0a4b..609f671 100644
--- a/assets/js/initMoment.js
+++ b/assets/js/initMoment.js
@@ -1,4 +1,4 @@
$(document).ready(function() {
var time = moment().tz("{{ .Site.Params.home.timeZone }}").format("h:mm A");
- $('#time').html(time);
+ $("#time").html(time);
})
diff --git a/assets/sass/_base.sass b/assets/sass/_base.sass
index 9a8ac90..a0097c1 100644
--- a/assets/sass/_base.sass
+++ b/assets/sass/_base.sass
@@ -96,6 +96,17 @@ hr
font-size: 1rem
line-height: 2rem
+.social-icons
+ padding: 0 10px
+
+.icon
+ height: 2rem
+ width: 2rem
+ margin: 0 10px
+
+.fab
+ font-size: 21px
+
.blog-share
.icon
height: 1rem
@@ -113,16 +124,7 @@ hr
text-transform: uppercase
font-size: 14px
-.social-icons
- padding: 0 10px
-
-.icon
- height: 2rem
- width: 2rem
- margin: 0 10px
-.fab
- font-size: 21px
.footer-text
font-size: 0.8em
@@ -215,7 +217,7 @@ hr
color: #7a7a7a
border-left: .25rem solid #e5e5e5
blockquote p:last-child
- margin-bottom: 0
+ margin-bottom: 0
table
margin: 2em 0 2em 0
width: 100%
diff --git a/assets/sass/_fonts.sass b/assets/sass/_fonts.sass
index c6d5557..c9a868d 100644
--- a/assets/sass/_fonts.sass
+++ b/assets/sass/_fonts.sass
@@ -1,23 +1,23 @@
/* vietnamese */
@font-face
- font-family: 'Nunito Sans'
+ font-family: "Nunito Sans"
font-style: normal
font-weight: normal
- src: local('Nunito Sans Regular'), local('NunitoSans-Regular'), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format('woff2')
+ src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format("woff2")
unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB
/* latin-ext */
@font-face
- font-family: 'Nunito Sans'
+ font-family: "Nunito Sans"
font-style: normal
font-weight: normal
- src: local('Nunito Sans Regular'), local('NunitoSans-Regular'), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format('woff2')
+ src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format("woff2")
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF
/* latin */
@font-face
- font-family: 'Nunito Sans'
+ font-family: "Nunito Sans"
font-style: normal
font-weight: normal
- src: local('Nunito Sans Regular'), local('NunitoSans-Regular'), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format('woff2')
+ src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format("woff2")
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD