This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
forked from yousinix/portfolYOU
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove bootstrap-dark library and create custom css to improve loading time, since the library include the whole bootstrap file twice (one for each theme). * Load theme before body load to avoid glitches. * Match system's theme by default if no theme was picked before. * Update theme colors.
- Loading branch information
Showing
16 changed files
with
201 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,20 +18,21 @@ | |
<title>{{ title }}</title> | ||
<meta name="description" content="{{ description }}"> | ||
|
||
|
||
<link rel="shortcut icon" type="image/x-icon" href="{{ '/assets/favicon.ico' | relative_url }}"> | ||
|
||
<!-- Theme style --> | ||
<script src="{{ '/assets/js/theme.js' | relative_url }}"></script> | ||
|
||
<!-- Font Awesome CDN --> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.10.0/css/all.css"> | ||
|
||
<!-- Bootstrap-dark CSS CDN --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@forevolve/[email protected]/dist/css/toggle-bootstrap.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@forevolve/[email protected]/dist/css/toggle-bootstrap-dark.min.css" /> | ||
<!-- Bootstrap CSS CDN --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> | ||
|
||
<!-- Animate CSS CDN --> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.css" type="text/css"/> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.css"> | ||
|
||
<!-- Custom CSS --> | ||
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}" type="text/css"> | ||
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}"> | ||
|
||
</head> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
$dark-100: $dark; | ||
$dark-300: #2c3032; | ||
$dark-600: #242526; | ||
$dark-900: #17191a; | ||
|
||
[data-theme="dark"] { | ||
body { | ||
background-color: $dark-900; | ||
color: $text-white; | ||
} | ||
|
||
// Code blocks & Syntax highlighting | ||
|
||
@import "native.scss"; | ||
|
||
pre, | ||
code.highlighter-rouge { | ||
@extend .highlight; | ||
border: none; | ||
} | ||
|
||
.gist { | ||
filter: invert(90%) hue-rotate(180deg); | ||
} | ||
|
||
// Inputs | ||
input { | ||
background-color: $dark-300; | ||
border-color: $dark-100; | ||
color: $dark-900; | ||
|
||
&::placeholder { | ||
color: rgba($text-white, 0.64); | ||
} | ||
|
||
&:focus { | ||
background-color: $dark-600; | ||
color: $text-white; | ||
} | ||
} | ||
|
||
// Cards | ||
.card { | ||
background-color: $dark-600; | ||
} | ||
|
||
.card.border { | ||
.card-footer { | ||
background-color: rgba(0, 0, 0, 0.1); | ||
} | ||
} | ||
|
||
// Tables | ||
table:not(.highlight) { | ||
td { | ||
border-color: $dark-600; | ||
} | ||
|
||
tr:nth-child(even) { | ||
background-color: $dark; | ||
} | ||
} | ||
|
||
// Lists | ||
.list-group-item-action { | ||
background-color: $dark-600; | ||
color: $text-white; | ||
|
||
&:hover, | ||
&:focus { | ||
background-color: darken($color: $dark-600, $amount: 3); | ||
} | ||
} | ||
|
||
// Post | ||
.post footer { | ||
text-decoration: none; | ||
} | ||
|
||
// Timeline | ||
.timeline-body .timeline-item:after{ | ||
background-color: $dark-900; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@mixin themed($property, $light-value, $dark-value) { | ||
[data-theme="light"] & { | ||
#{$property}: $light-value; | ||
} | ||
|
||
[data-theme="dark"] & { | ||
#{$property}: $dark-value; | ||
} | ||
} | ||
|
||
#theme-toggler:before { | ||
@include themed(content, "🌙", "🌞"); | ||
} | ||
|
||
.navbar-themed { | ||
.navbar-brand, | ||
.navbar-nav .nav-link.active { | ||
@include themed(color, $text-black, $text-white); | ||
} | ||
|
||
.navbar-nav .nav-link { | ||
@include themed(color, rgba($text-black, 0.5), rgba($text-white, 0.5)); | ||
} | ||
} | ||
|
||
.text-themed { | ||
@include themed(color, $text-black, $text-white); | ||
} | ||
|
||
.bg-themed { | ||
@include themed(background-color, $light, $dark); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,6 @@ | |
"navbar", | ||
"projects", | ||
"timeline", | ||
"dark"; | ||
"autumn", | ||
"theme", | ||
"theme-dark"; |
Oops, something went wrong.