personal-site/styles/main.css

369 lines
6.8 KiB
CSS
Raw Normal View History

2022-03-11 10:43:00 +00:00
@import url("https://fonts.googleapis.com/css?family=Source+Code+Pro&display=swap");
2022-01-06 05:27:13 +00:00
html {
width: 100%;
/* overflow-x: hidden; */
scroll-behavior: smooth;
2022-03-11 10:43:00 +00:00
font-family: "Source Code Pro", Helvetica;
2022-01-06 05:27:13 +00:00
font-size: 16px;
line-height: 1.5;
color: #222;
2022-03-11 10:43:00 +00:00
letter-spacing: -0.8px;
2022-01-06 05:27:13 +00:00
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
:root {
--main-color: #1668e4;
--dark-color: #201e1e;
--sec-color-3: #688e26;
--sec-color-4: #adb2d3;
--sec-color-5: #c2a878;
--light-color-1: #ddd;
2022-03-11 10:43:00 +00:00
--test-color: rgb(224, 64, 64);
2022-01-06 05:27:13 +00:00
--transparent-white: rgba(255, 255, 255, 0.2);
}
body {
width: 100%;
margin: 0px;
padding: 40px;
2022-01-06 08:34:09 +00:00
padding-bottom: 100px;
2022-01-06 05:27:13 +00:00
top: 0;
justify-content: center;
background-color: var(--dark-color);
color: white;
}
a {
text-decoration: none;
color: white;
border: 1px solid transparent;
}
a:hover {
color: var(--sec-color-2);
}
button {
padding: 10px 25px;
border: none;
cursor: pointer;
font-size: inherit;
border: 1px solid transparent;
}
hr {
opacity: 0.3;
}
button:hover {
background-color: var(--dark-color);
/* background-color: #c52532; */
color: white;
border-color: var(--transparent-white);
}
form * {
font-family: inherit;
font-size: inherit;
}
header {
z-index: 1000000;
margin-bottom: 40px;
}
h1 {
font-size: 52px;
margin-top: 0;
}
/* ################################################# -- Sliders */
aside,
.side-nav-block {
scrollbar-width: none;
}
/* width */
aside::-webkit-scrollbar,
.side-nav-block::-webkit-scrollbar {
width: 5px;
}
/* Track */
aside::-webkit-scrollbar-track,
.side-nav-block::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
aside::-webkit-scrollbar-thumb,
.side-nav-block::-webkit-scrollbar-thumb {
background: #dbe1eb;
border-radius: 10px;
}
/* Handle on hover */
aside::-webkit-scrollbar-thumb:hover,
.side-nav-block::-webkit-scrollbar-thumb:hover {
background: #555;
}
/*############################################# -- Common Actions */
.visible {
display: flex;
}
.hidden {
display: none;
}
.fixed {
position: fixed;
}
.absolute {
position: absolute;
}
.relative {
position: relative;
}
.no-pointer-events {
pointer-events: none;
}
.pointer-events {
pointer-events: visible;
}
.spacer {
display: block;
width: 100%;
height: 80px;
}
/*############################################# -- Header */
header {
color: white;
}
.logo-link-block h1 {
font-size: 28px;
margin: 0;
margin-bottom: 5px;
}
nav {
display: flex;
align-items: center;
gap: 20px;
}
nav a {
opacity: 0.5;
}
nav a:hover {
opacity: 1;
}
.active-page {
opacity: 1;
border-bottom: 2px solid white;
}
/*############################################# -- Shuffled Text */
#__next {
2022-01-06 10:06:24 +00:00
max-width: 1200px;
2022-01-06 05:27:13 +00:00
width: 100%;
height: 100%;
opacity: 0;
animation-name: shuffle;
animation-timing-function: ease-out;
animation-duration: 1s;
animation-fill-mode: forwards;
}
.shuffled-text-span span {
animation-name: shuffle;
animation-timing-function: ease-out;
animation-delay: 0.5s;
}
@keyframes shuffle {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/*############################################# -- Hero Section */
.hero-sub-text {
font-size: 24px;
color: rgba(255, 255, 255, 0.7);
}
.hero-ctas-section {
display: flex;
align-items: center;
2022-03-11 10:43:00 +00:00
margin-top: 40px;
2022-01-06 05:27:13 +00:00
gap: 20px;
}
.hero-ctas-section a {
padding: 10px 25px;
border: none;
cursor: pointer;
font-size: inherit;
color: var(--dark-color);
background-color: white;
font-size: 18px;
}
.hero-ctas-section a:hover {
background-color: var(--dark-color);
color: white;
border-color: var(--transparent-white);
}
/*############################################# -- 404 page */
.not-found-page-wrapper {
display: flex;
align-items: flex-start;
justify-content: center;
flex-direction: column;
width: 100%;
height: 100%;
}
2022-02-04 11:25:05 +00:00
/*############################################# -- Portfolio page */
.portfolio-entries-block {
2022-02-28 11:20:15 +00:00
display: grid;
2022-02-04 11:25:05 +00:00
gap: 40px;
2022-02-28 11:20:15 +00:00
grid-template-columns: 1fr 1fr;
width: 100%;
2022-02-04 11:25:05 +00:00
}
.portfolio-entry-block {
max-width: 700px;
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 20px;
}
.portfolio-entry-block img {
width: 100%;
height: 300px;
object-fit: contain;
object-position: left top;
2022-02-04 11:29:00 +00:00
margin-bottom: 20px;
2022-02-04 11:25:05 +00:00
}
2022-01-06 05:27:13 +00:00
/*############################################# -- Contact Forms */
form {
margin-top: 40px;
max-width: 1000px;
width: 100%;
display: flex;
flex-direction: column;
gap: 20px;
2022-01-06 08:05:14 +00:00
position: relative;
2022-01-06 05:27:13 +00:00
}
input,
textarea {
padding: 15px 20px;
background-color: transparent;
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
width: 100%;
resize: none;
}
2022-01-06 08:05:14 +00:00
.message-response {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: var(--dark-color);
border: 2px solid #688e26;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 24px;
gap: 10px;
}
.message-response.failed {
border: 2px solid #d42222;
}
2022-03-11 10:43:00 +00:00
#homepage-animation-wrapper {
width: 150%;
height: 100%;
background-color: var(--dark-color);
}
2022-01-06 05:27:13 +00:00
/* ###############################################################################################
##################################################################################################
##################################################################################################
##################################################################################################
##################################### -- Mobile Styles -- ########################################
##################################################################################################
##################################################################################################
##################################################################################################
############################################################################################### */
@media (max-width: 1200px) {
}
@media (max-width: 990px) {
2022-02-28 11:20:15 +00:00
.portfolio-entries-block {
grid-template-columns: 1fr;
}
2022-01-06 05:27:13 +00:00
}
@media (max-width: 800px) {
2022-01-06 08:29:23 +00:00
h1 {
font-size: 28px;
}
nav {
flex-wrap: wrap;
gap: 15px;
}
body {
padding: 20px;
2022-01-06 08:34:09 +00:00
padding-bottom: 80px;
2022-01-06 08:29:23 +00:00
}
.hero-ctas-section {
flex-wrap: wrap;
}
2022-01-06 05:27:13 +00:00
}
@media (max-width: 600px) {
2022-02-04 11:29:00 +00:00
.portfolio-entry-block img {
object-fit: cover;
height: 200px;
}
2022-01-06 05:27:13 +00:00
}
@media (max-width: 450px) {
}
@media (max-width: 350px) {
}