Remove scrolling, change font family, size and weight
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
<link href="https://fonts.googleapis.com/css?family=Ubuntu|Quicksand-Medium" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Jost&family=Quattrocento+Sans&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
|
||||||
integrity="sha512-NhSC1YmyruXifcj/KFRWoC561YpHpc5Jtzgvbuzx5VozKpWvQ+4nXhPdFgmx8xqexRcpAglTj9sIBWINXa8x5w=="
|
integrity="sha512-NhSC1YmyruXifcj/KFRWoC561YpHpc5Jtzgvbuzx5VozKpWvQ+4nXhPdFgmx8xqexRcpAglTj9sIBWINXa8x5w=="
|
||||||
|
|||||||
@@ -3,6 +3,14 @@ html {
|
|||||||
color: #e2e2e2 !important;
|
color: #e2e2e2 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
box-shadow: rgba(102, 102, 102, 0.5) 0px 1px 2px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.header,
|
.header,
|
||||||
code,
|
code,
|
||||||
pre {
|
pre {
|
||||||
@@ -10,6 +18,10 @@ pre {
|
|||||||
color: #e2e2e2 !important;
|
color: #e2e2e2 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-links .nav-icons-divider {
|
||||||
|
color: #484848; !important
|
||||||
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
border-top-color: #333 !important;
|
border-top-color: #333 !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
html {
|
html {
|
||||||
background: white;
|
background: white;
|
||||||
color: black;
|
color: black;
|
||||||
font-family: "Quicksand", sans-serif;
|
/* font-family: "Quattrocento Sans", sans-serif;*/
|
||||||
font-weight: 300;
|
font-family: "Jost", sans-serif;
|
||||||
|
font-weight: 400;
|
||||||
letter-spacing: 0.5px;
|
letter-spacing: 0.5px;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -12,18 +13,27 @@ body {
|
|||||||
margin-bottom: 170px;
|
margin-bottom: 170px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: #0058b5;
|
||||||
|
}
|
||||||
|
|
||||||
main#content {
|
main#content {
|
||||||
width: 810px;
|
width: 810px;
|
||||||
margin: 120px auto 0;
|
margin: 120px auto 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 810px;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* HEADER */
|
/* HEADER */
|
||||||
.header {
|
.header {
|
||||||
background-color: rgb(255, 255, 255);
|
background-color: rgb(255, 255, 255);
|
||||||
box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 2px 0px;
|
box-shadow: rgba(170, 170, 170, 0.5) 0px 1px 2px 0px;
|
||||||
color: black;
|
color: black;
|
||||||
font-size: 1.04rem;
|
font-size: 1.1rem;
|
||||||
height: 70px;
|
height: 50px;
|
||||||
left: 0;
|
left: 0;
|
||||||
opacity: 0.95;
|
opacity: 0.95;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -35,30 +45,26 @@ main#content {
|
|||||||
transition: height 0.5s ease-out;
|
transition: height 0.5s ease-out;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.header.small {
|
|
||||||
height: 50px;
|
|
||||||
}
|
|
||||||
.header a {
|
.header a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.header .header-nav {
|
.header .header-nav {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
margin-top: 10px;
|
margin-top: 0;
|
||||||
-ms-transition: margin 0.5s ease-out;
|
-ms-transition: margin 0.5s ease-out;
|
||||||
-moz-transition: margin 0.5s ease-out;
|
-moz-transition: margin 0.5s ease-out;
|
||||||
-webkit-transition: margin 0.5s ease-out;
|
-webkit-transition: margin 0.5s ease-out;
|
||||||
-o-transition: margin 0.5s ease-out;
|
-o-transition: margin 0.5s ease-out;
|
||||||
transition: margin 0.5s ease-out;
|
transition: margin 0.5s ease-out;
|
||||||
}
|
}
|
||||||
.header .header-nav.small {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
.header-nav a {
|
.header-nav a {
|
||||||
transition: color 0.15s ease-in-out;
|
transition: color 0.15s ease-in-out;
|
||||||
}
|
}
|
||||||
.header-nav a:hover {
|
.header-nav a:hover {
|
||||||
color: teal;
|
color: #0058b5;
|
||||||
}
|
}
|
||||||
.header-nav .avatar {
|
.header-nav .avatar {
|
||||||
border-radius: 18px;
|
border-radius: 18px;
|
||||||
@@ -87,14 +93,14 @@ main#content {
|
|||||||
.header-nav .nav-links {
|
.header-nav .nav-links {
|
||||||
float: right;
|
float: right;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
margin-right: 15px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
.nav-links .nav-link {
|
.nav-links .nav-link {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
.nav-links .nav-link a {
|
.nav-links .nav-link a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0 10px;
|
padding: 0 6px;
|
||||||
}
|
}
|
||||||
.nav-links .nav-link.icon a {
|
.nav-links .nav-link.icon a {
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
@@ -103,6 +109,7 @@ main#content {
|
|||||||
border-color: inherit;
|
border-color: inherit;
|
||||||
border-left: 1px solid;
|
border-left: 1px solid;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
|
color: #dfdfdf;
|
||||||
}
|
}
|
||||||
.nav-links #dark-theme-toggle:hover {
|
.nav-links #dark-theme-toggle:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -139,16 +146,15 @@ main#content {
|
|||||||
|
|
||||||
/** COMMON **/
|
/** COMMON **/
|
||||||
|
|
||||||
.header,
|
a {
|
||||||
.footer {
|
color: black;
|
||||||
font-family: "Ubuntu", sans-serif;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ICONS */
|
/* ICONS */
|
||||||
.feather {
|
.feather {
|
||||||
height: 20px;
|
height: 20px;
|
||||||
margin: -3px auto;
|
margin: -3px auto;
|
||||||
stroke-width: 1.75;
|
stroke-width: 1.25;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,6 +203,7 @@ code {
|
|||||||
blockquote {
|
blockquote {
|
||||||
border-left: 2px solid #e0e0e0;
|
border-left: 2px solid #e0e0e0;
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
|
color: grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* HOME PAGE */
|
/* HOME PAGE */
|
||||||
@@ -240,7 +247,7 @@ blockquote {
|
|||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
.post .post-content {
|
.post .post-content {
|
||||||
font-size: 1.04rem;
|
font-size: 1.4rem;
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
@@ -254,6 +261,10 @@ blockquote {
|
|||||||
}
|
}
|
||||||
.list-posts .post-title {
|
.list-posts .post-title {
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
.list-posts a {
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.post-title .post-date {
|
.post-title .post-date {
|
||||||
float: right;
|
float: right;
|
||||||
|
|||||||
@@ -25,18 +25,6 @@ function ready() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('scroll', () => {
|
|
||||||
if (window.scrollY > 100) {
|
|
||||||
document.querySelectorAll('.header, .header-nav').forEach(function(item) {
|
|
||||||
item.classList.add('small')
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
document.querySelectorAll('.header, .header-nav').forEach(function(item) {
|
|
||||||
item.classList.remove('small')
|
|
||||||
})
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function setTheme(themeToSet) {
|
function setTheme(themeToSet) {
|
||||||
localStorage.setItem(THEME_PREF_STORAGE_KEY, themeToSet);
|
localStorage.setItem(THEME_PREF_STORAGE_KEY, themeToSet);
|
||||||
darkThemeCss.disabled = themeToSet === 'light';
|
darkThemeCss.disabled = themeToSet === 'light';
|
||||||
|
|||||||
Reference in New Issue
Block a user