Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
chore(deps): remove jQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Feb 15, 2020
1 parent 730ce7a commit 2f8123b
Show file tree
Hide file tree
Showing 16 changed files with 286 additions and 381 deletions.
39 changes: 22 additions & 17 deletions assets/css/_page/_single.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,25 @@
h5,
h6 {
font-weight: bold;
margin: 1.2rem 0;

.dark-theme & {
font-weight: bolder;
}
}

h2,
h3,
h4,
h5,
h6 {
padding-top: .8rem;
padding-bottom: .3rem;
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
display: block;
content: "";
height: 1.2 * $header-height;
margin: -1.2 * $header-height 0 0;
}

h2::before {
h2 > a:first-child::before {
content: "#";
margin-right: .3125rem;
color: $single-link-color;
Expand All @@ -93,16 +96,18 @@
}
}

h3::before,
h4::before,
h5::before,
h6::before {
content: "|";
margin-right: .3125rem;
color: $single-link-color;
h3,
h4,
h5,
h6 {
& > a:first-child::before {
content: "|";
margin-right: .3125rem;
color: $single-link-color;

.dark-theme & {
color: $single-link-color-dark;
.dark-theme & {
color: $single-link-color-dark;
}
}
}

Expand Down
34 changes: 14 additions & 20 deletions assets/css/_partial/_header.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
header.desktop {
display: block;
header {
position: fixed;
width: 100%;
z-index: 100;
height: 4rem;
line-height: 4rem;
height: $header-height;
line-height: $header-height;
background-color: $header-background-color;

.dark-theme & {
background-color: $header-background-color-dark;
}
}

header.desktop {
display: block;
z-index: 100;

.header-wrapper {
width: auto;
Expand Down Expand Up @@ -44,17 +47,12 @@ header.desktop {

header.mobile {
display: none;
position: fixed;
width: 100%;
z-index: 100;
transition: all 0.3s ease 0s;

.header-wrapper {
padding: 0;
margin: 0;
height: 4rem;
line-height: 4rem;
background: $global-background-color;

.header-container {
display: flex;
Expand Down Expand Up @@ -82,9 +80,9 @@ header.mobile {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-transition: .2s margin .2s, .2s transform;
-moz-transition: .2s margin .2s, .2s transform;
transition: .2s margin .2s, .2s transform;
-webkit-transition: .1s margin .1s, .1s transform;
-moz-transition: .1s margin .1s, .1s transform;
transition: .1s margin .1s, .1s transform;

.dark-theme & {
background: $global-font-color-dark;
Expand All @@ -101,9 +99,9 @@ header.mobile {

&.active {
span {
-webkit-transition: .2s margin, .2s transform .2s;
-moz-transition: .2s margin, .2s transform .2s;
transition: .2s margin, .2s transform .2s;
-webkit-transition: .1s margin, .1s transform .1s;
-moz-transition: .1s margin, .1s transform .1s;
transition: .1s margin, .1s transform .1s;
}

span:nth-child(1) {
Expand Down Expand Up @@ -148,9 +146,5 @@ header.mobile {
border-top: 2px solid $global-font-color-dark;
}
}

.dark-theme & {
background: $global-background-color-dark;
}
}
}
3 changes: 3 additions & 0 deletions assets/css/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ $selection-color-dark: rgba(38, 139, 211, 0.3) !default;
// ========== Selection ========== //

// ========== Header ========== //
// Height of the header
$header-height: 4rem !default;

// Color of the header background
$header-background-color: #fafafa !default;
$header-background-color-dark: #252627 !default;
Expand Down
22 changes: 0 additions & 22 deletions assets/js/lib/jquery-countdown/jquery.countdown.min.js

This file was deleted.

2 changes: 0 additions & 2 deletions assets/js/lib/jquery/jquery.slim.min.js

This file was deleted.

Loading

0 comments on commit 2f8123b

Please sign in to comment.