Skip to content

Commit

Permalink
changes to font sizes and base code
Browse files Browse the repository at this point in the history
  • Loading branch information
wodydoc committed Jul 11, 2023
1 parent fa337bf commit 900d90f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 20 deletions.
51 changes: 32 additions & 19 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*============== VARIABLES CSS ===============*/
:root {
/*========== Dimensions ==========*/
Expand Down Expand Up @@ -105,8 +104,10 @@
--extended-font: "obviously-extended", sans-serif;
--ibm-plex-mono: "ibm-plex-mono", sans-serif;
--big-font-size: 2.5rem;
--h1-font-size: 1.5rem;
--h2-font-size: 1.05rem;
--h1-font-size: 2rem;
--h2-font-size: 1.8rem;
/* --h1-font-size: 1.5rem;
--h2-font-size: 1.05rem; */
--h3-font-size: 1rem;
--normal-font-size: 0.938rem;
--small-font-size: 0.813rem;
Expand Down Expand Up @@ -185,7 +186,6 @@ body.dark-theme {
}

/*=============== BASE ===============*/

html,
body {
height: 100%;
Expand All @@ -194,17 +194,8 @@ body {
padding: 0;
}


* {
box-sizing: border-box;
padding: 0;
margin: 0;
}

*,
*::before,
*::after {
box-sizing: border-box;
}

html {
Expand All @@ -230,17 +221,24 @@ input:valid {
}

body {
margin: var(--header-height) 0 0 0;
line-height: 1.6;
margin-top: var(--header-height);
background-color: var(--body-color);
background-attachment: var(--background-attachment);
color: var(--text-color);
transition: 0.4s; /*For animation dark mode*/
transition: background-color 0.4s, color 0.4s; /* Smooth transition for dark mode */
}

button {
cursor: pointer;
border: none;
outline: none;
transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
padding: 0.8rem 1.5rem;
}

button:hover {
background-color: var(--first-color-lighten);
color: var(--title-color);
}

h1,
Expand All @@ -252,6 +250,7 @@ h3 {

ul {
list-style: none;
padding: 0;
}

a {
Expand All @@ -266,14 +265,27 @@ img {
/*========== Button Dark/Light ==========*/
.change-theme {
color: var(--title-color);
font-size: 1.15rem;
font-size: 1.2rem;
cursor: pointer;
transition: color 0.3s; /* Smooth transition for hover effect */
}

.change-theme:hover {
color: var(--first-color);
}

.nav__btns {
display: inline-flex;
display: flex;
align-items: center;
column-gap: 1rem;
justify-content: flex-end;
gap: 1rem;
}

/* Adjust viewport for iPhone X and other notch devices */
@media (max-width: 1000px) and (max-height: 500px) {
body {
padding-bottom: env(safe-area-inset-bottom);
}
}

/*==========
Expand Down Expand Up @@ -991,6 +1003,7 @@ tspan.cls-4 {
}

.quote {
color: var(--title-color);
font-size: var(--h1-font-size);
text-align: center;
padding: 0 1.5rem;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function scrollHeader() {
const header = document.getElementById("header");
if (this.scrollY >= 80) {
header.classList.add("scroll-header");
header.style.backgroundColor = "var(--container-color)"; // Change the color to what you need
header.style.backgroundColor = "var(--body-color)"; // Change the color to what you need
} else {
header.classList.remove("scroll-header");
header.style.backgroundColor = "transparent"; // Reset to initial color
Expand Down

0 comments on commit 900d90f

Please sign in to comment.