Files
.profile/public/css/style.css
T
2025-01-21 20:55:03 -08:00

392 lines
5.4 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;800&display=swap");
/* root is dark theme */
:root {
--theme: #1d1e20;
--primary: #d8d8d9;
--secondary: #eb5234;
--accent: #ff005a;
--panel: rgba(216, 216, 217);
--panel-text: #303030;
--menu-text-bg: #303030;
--not-found: #030005;
}
.light {
--theme: #d8d8d9;
--primary: rgba(0, 0, 0, 0.88);
--secondary: #eb5234;
--accent: #ff005a;
--panel: #303030;
--panel-text: rgba(216, 216, 217);
--menu-text-bg: #9e9e9e;
--not-found: #303030;
}
body {
transition: 0.8s;
font-size: 18px;
line-height: 1.6;
word-break: break-word;
background: var(--theme);
font-family: -apple-system, BlinkMacSystemFont, segoe ui, Roboto, Oxygen, Ubuntu, Cantarell, open sans, helvetica neue, sans-serif;
}
body.js-stop-transition * {
transition: none !important;
}
a:hover {
cursor: pointer;
}
a,
body,
h1 {
color: var(--primary);
}
header,
nav {
display: block
}
ul {
padding: 0
}
ul li::before {
content: '';
position: absolute;
margin-top: 42px;
width: 0;
background-color: var(--secondary);
z-index: 9999;
height: 3px;
transition: 0.8s all;
}
ul li#home-link:hover::before,
ul li#about-link:hover::before {
width: 45px;
}
ul li#projects-link:hover::before {
width: 58px;
}
a {
transition: 0.8s;
}
a:hover {
color: var(--secondary);
}
a {
text-decoration: none
}
body,
ul {
margin: 0
}
.nav {
color: var(--primary);
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: calc(1024px + 24px * 2);
margin-inline-start: auto;
margin-inline-end: auto;
line-height: 60px;
}
.nav a {
display: block
}
.logo,
#menu {
display: flex;
margin: auto 24px;
}
.logo {
flex-wrap: inherit
}
.logo a {
font-size: 24px;
font-weight: 700
}
.logo a img {
display: inline;
vertical-align: middle;
pointer-events: none;
transform: translate(0, -10%);
border-radius: 6px;
margin-inline-end: 8px
}
#menu {
list-style: none;
word-break: keep-all;
overflow-x: auto;
white-space: nowrap
}
#menu li+li {
margin-inline-start: 24px;
}
#menu a {
font-size: 16px
}
#menu .active {
font-weight: 500;
}
.main {
zoom: 110%;
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 50%;
padding: 10px;
color: var(--primary);
}
.svg-wrapper {
margin: 0 auto;
width: 320px;
position: relative;
height: 64px;
overflow-y: hidden;
}
.shape {
z-index: 9999;
stroke-dasharray: 140 540;
stroke-dashoffset: -474;
stroke-width: 8px;
fill: transparent;
stroke: var(--secondary);
transition: stroke-width 1s, stroke-dashoffset 1s, stroke-dasharray 1s;
}
.svg-wrapper:hover .shape {
stroke-width: 2px;
stroke-dashoffset: 0;
stroke-dasharray: 760;
}
.name {
transition: 0.8s;
font-size: 30px;
font-weight: 900;
margin-bottom: 10px;
transform: translate(0, -64px);
}
.name:hover {
color: var(--secondary);
cursor: default;
}
.des {
transition: 0.8s;
font-size: larger;
}
.des:hover {
color: var(--secondary);
cursor: default;
}
.des:focus {
color: var(--secondary);
}
.profile {
width: 190px;
height: 190px;
border-radius: 50%;
transition: 0.8s;
}
.social-icons {
padding: 12px 0;
}
.social-icons a:not(:last-of-type) {
margin-inline-end: 12px;
}
.social-icons a svg {
height: 26px;
width: 26px;
}
.social-icons a {
color: var(--primary);
text-decoration: none;
}
.icon {
transition: 0.8s;
}
.icon:hover {
color: var(--secondary);
}
.logo-switches {
flex-wrap: inherit
}
#theme-toggle svg {
height: 18px;
}
button#theme-toggle {
background-color: var(--theme);
border: none;
color: var(--primary);
font-size: 26px;
margin: auto 4px;
transition: 0.8s;
}
button#theme-toggle:hover {
cursor: pointer;
color: var(--secondary);
}
body.light #moon {
vertical-align: middle;
display: none;
}
body:not(.light) #sun {
display: none;
}
/* Mobile Nav */
.cta {
cursor: pointer;
font-weight: 600;
transition: 0.8s;
position: absolute;
right: 14%;
}
.menu {
display: none;
color: var(--primary);
size: 125%;
}
.overlay {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
left: 0;
top: 0;
background-color: #24252a;
overflow-x: hidden;
transition: all 0.5s ease 0s;
}
.overlay--active {
width: 100%;
}
.overlay__content {
display: flex;
height: 100%;
flex-direction: column;
align-items: center;
justify-content: center;
}
.overlay a {
color: white;
text-decoration: none;
padding: 15px;
font-size: 36px;
display: block;
transition: all 0.3s ease 0s;
}
.overlay a:hover,
.overlay a:focus {
color: var(--secondary);
}
.overlay .close {
position: absolute;
top: 20px;
right: 45px;
font-size: 60px;
color: #edf0f1;
cursor: pointer;
}
.mobile-name {
display: none;
transition: 0.8s;
font-size: 30px;
font-weight: 900;
}
.mobile-name:hover {
color: var(--secondary);
cursor: default;
}
@media screen and (max-width:768px) {
.profile img {
transform: scale(.85);
}
.profile {
width: 128px;
height: auto;
}
.first-entry {
min-height: 260px;
}
.archive-month {
flex-direction: column;
}
.archive-year {
margin-top: 20px;
}
.footer {
padding: calc((60 - 24px - 10px)/2)24px;
}
}
@media only screen and (max-width: 740px) {
.nav__links li a,
.svg-wrapper#main-wrapper {
display: none;
}
.menu,
.mobile-name {
display: block;
}
}