Files
portfolio/style.css
Tyler Koenig b1faab1f4e mobile styling
2021-09-13 17:01:07 -04:00

765 lines
11 KiB
CSS

* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
scroll-behavior: smooth;
}
body {
box-sizing: border-box;
color: #fff;
/* color: #c9cacc; */
background-color: #110f16;
/* background-color: #1C1924; */
/* background-color: #272727; */
font-family: 'Source Code Pro', monospace, Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: 400;
/* line-height: 1.725; */
text-rendering: optimizeLegibility;
min-height: 100vh;
/* margin: 0 auto; */
}
#wrapper {
/* display: flex;
flex-direction: column;
width: 100%; */
/* max-width: 560px; */
margin: 0 1rem;
}
nav ul {
list-style-type: none;
margin: auto;
padding: 0em;
}
nav a {
margin: 0 1rem;
text-decoration: none;
border-radius: 500px;
padding: 0.2rem;
font-weight: 600;
display: flex;
justify-content: center;
color: #c9cacc;
letter-spacing: 0.09rem;
}
nav a:hover {
background-color: #2bf3c4;
color: #1b1b1b;
transition: 150ms ease;
}
.side__nav {
display: none;
}
header {
display: block;
}
/* header {
color: #c9cacc;
margin: 0 auto;
text-align: center;
padding: 2rem;
line-height: 1.75rem;
border-top: 1.5px solid #666;
border-bottom: 1.5px solid #666;
} */
/* header img {
width: 100px;
border: 5px solid #666;
border-radius: 165px;
} */
.card {
/* display: flex; */
flex-wrap: wrap;
/* position: relative; */
background-color: #151515;
margin: 2rem auto;
/* height: 400px; */
min-width: 320px;
/* max-width: 500px; */
text-align: center;
border-radius: 10px;
box-shadow: 0 10px 25px 5px rgba(0, 0, 0, 0.2);
overflow: hidden;
}
.card_top {
position: relative;
margin: auto;
height: 80px;
/* og */
/* background: #29f3c3; */
/* new */
background: #0bc196;
}
#headshot {
margin: 40px auto 10px;
width: 100px;
height: 100px;
border: 3px solid #151515;
border-radius: 50%;
}
.name {
height: 40px;
margin-top: 70px;
}
.name a {
color: inherit;
text-decoration: none;
font-weight: 700;
font-size: 1.6em;
}
.name a:hover {
text-decoration: underline;
color: #29f3c3;
}
.intro_bio {
/* height: 175px; */
margin: 20px 1.5rem 40px;
}
.contact-links {
font-size: 110%;
margin-bottom: 40px;
}
.contact-links a {
margin: 0 10px;
padding: 0;
color: #666;
}
.contact-links a:hover {
transition: color 0.3s ease-in-out;
color: #c9cacc;
}
.card h2 {
font-size: 2.2rem;
text-align: start;
/* padding: 1.5rem; */
margin: 16px auto 8px;
}
#about,
#skills {
padding: 1.5rem;
text-align: start;
}
#about {
overflow: hidden;
text-overflow: ellipsis;
text-align: justify;
height: 100%;
}
#projects {
background: linear-gradient(
180deg,
hsla(0, 0%, 8%, 1) 0%,
hsla(257, 19%, 7%, 1) 100%
);
}
#projects h2 {
text-align: start;
padding: 1.5rem;
}
#skills ul {
display: flex;
flex-flow: row wrap;
list-style-type: none;
overflow-x: visible;
}
#skills li {
margin: 5px auto;
padding: 5px 10px;
border: 1px solid #fff;
}
.project {
/* display: flex; */
/* flex-direction: column; */
/* flex-wrap: wrap; */
/* display: flex; */
box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
border-radius: 10px;
margin: 0 0 2rem 0;
overflow: hidden;
/* position: relative; */
color: #ffffff;
/* change gradient start */
background-color: #18151f;
}
.project a,
.project a:hover {
text-decoration: none;
transition: color 0.3s ease-in-out;
color: inherit;
}
.project h3 {
margin-bottom: 0.5rem;
font-weight: 500;
line-height: 1.2;
}
.project__subtitle_small {
font-size: 80%;
}
.project__subtitle_small i {
margin-right: 5px;
}
.project__title {
font-size: 1.75rem;
}
.project__title:hover {
color: #00d7a5;
}
.project__img {
max-height: 180px;
width: 100%;
object-fit: cover;
position: relative;
}
.project__img_link {
display: contents;
}
.project__bar {
width: 50px;
height: 10px;
margin: 10px 0;
border-radius: 5px;
transition: width 0.2s ease;
background-color: #00d7a5;
}
.project__text {
padding: 1.5rem;
position: relative;
display: flex;
flex-direction: column;
}
.project__info {
overflow: hidden;
text-overflow: ellipsis;
text-align: justify;
height: 100%;
}
.project .project__tagbox {
display: flex;
flex-flow: row wrap;
font-size: 14px;
margin: 20px 0 0 0;
padding: 0;
justify-content: center;
}
.project .project__tagbox .tag__item {
display: inline-block;
background: rgba(83, 83, 83, 0.4);
border-radius: 3px;
padding: 2.5px 10px;
margin: 0 5px 5px 0;
cursor: default;
user-select: none;
transition: background-color 0.3s;
}
.project .project__tagbox .tag__item:hover {
background: rgba(83, 83, 83, 0.8);
}
.project:before {
content: '';
/* position: absolute; */
top: 0;
right: 0;
bottom: 0;
left: 0;
/* background-image: linear-gradient(
-30deg,
rgba(0, 118, 189, 0.1),
transparent 50%
); */
/* background-image: linear-gradient(-30deg, #110f16, transparent 50%); */
opacity: 1;
border-radius: 10px;
}
.project:hover .project__bar {
width: 100px;
}
footer {
color: #666;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
margin: 0 auto;
padding: 1rem;
}
#copyright {
margin: 0.4rem;
letter-spacing: 0.1rem;
}
#footLinks {
margin: 0.4rem;
letter-spacing: 0.8rem;
}
#footLinks a {
color: #666;
}
#footLinks a:hover {
color: #c9cacc;
transition: 160ms ease-in;
}
@import url('https://fonts.googleapis.com/css2?family=Baloo+2&display=swap');
/* This pen */
.dark {
background: #110f16;
}
.light {
background: #f3f5f7;
}
/* a,
a:hover {
text-decoration: none;
transition: color 0.3s ease-in-out;
} */
/* Cards */
.postcard {
flex-wrap: wrap;
display: flex;
box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
border-radius: 10px;
margin: 0 0 2rem 0;
overflow: hidden;
position: relative;
color: #ffffff;
}
.postcard.dark {
background-color: #18151f;
}
.postcard.light {
background-color: #e1e5ea;
}
.postcard .t-dark {
color: #18151f;
}
.postcard a {
color: inherit;
}
.postcard h1,
.postcard .h1 {
margin-bottom: 0.5rem;
font-weight: 500;
line-height: 1.2;
}
.postcard .small {
font-size: 80%;
}
.postcard .postcard__title {
font-size: 1.75rem;
}
.postcard .postcard__img {
max-height: 180px;
width: 100%;
object-fit: cover;
position: relative;
}
.postcard .postcard__img_link {
display: contents;
}
.postcard .postcard__bar {
width: 50px;
height: 10px;
margin: 10px 0;
border-radius: 5px;
background-color: #424242;
transition: width 0.2s ease;
}
.postcard .postcard__text {
padding: 1.5rem;
position: relative;
display: flex;
flex-direction: column;
}
.postcard .postcard__preview-txt {
overflow: hidden;
text-overflow: ellipsis;
text-align: justify;
height: 100%;
}
.postcard .postcard__tagbox {
display: flex;
flex-flow: row wrap;
font-size: 14px;
margin: 20px 0 0 0;
padding: 0;
justify-content: center;
}
.postcard .postcard__tagbox .tag__item {
display: inline-block;
background: rgba(83, 83, 83, 0.4);
border-radius: 3px;
padding: 2.5px 10px;
margin: 0 5px 5px 0;
cursor: default;
user-select: none;
transition: background-color 0.3s;
}
.postcard .postcard__tagbox .tag__item:hover {
background: rgba(83, 83, 83, 0.8);
}
.postcard:before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-image: linear-gradient(-70deg, #424242, transparent 50%);
opacity: 1;
border-radius: 10px;
}
.postcard:hover .postcard__bar {
width: 100px;
}
/* code pen finish */
/* color: #1b1b1b; */
/* color: #2a9d8f */
/* @media (min-width: 768px) {
#wrapper {
max-width: 992px;
}
nav {
display: flex;
}
nav a {
margin: auto;
padding: 0.5rem;
flex: 4;
justify-content: flex-start;
}
nav li {
display: inline-block;
}
nav ul {
display: flex;
}
#aboutMe {
display: flex;
}
#bio {
flex: 2;
}
#contact {
flex: 1;
text-align: end;
}
.contactLinks {
display: flex;
flex-direction: column;
}
.contactLinks li {
align-items: flex-end;
}
.contactLinks a {
flex-direction: row;
}
.contactLinks i {
margin: auto 5px;
}
#skills {
padding: 0;
}
#project-container {
display: flex;
flex-direction: row-reverse;
}
.project-item img {
flex: 2;
}
.project-skills {
flex: 1;
margin: 0;
padding: 0;
text-align: end;
flex-direction: column;
align-items: flex-end;
}
.project-skills h4 {
margin: 1.5rem;
align-self: flex-start;
}
.project-skills ul {
margin: 1.5rem;
padding: 0;
}
.project-item a {
align-self: start;
}
footer {
margin: 0 auto;
width: 87%;
padding: 2rem;
flex-direction: row;
justify-content: space-between;
}
} */
@media screen and (min-width: 576px) {
.card {
max-width: 500px;
}
}
@media screen and (min-width: 769px) {
#nav__contact,
.contact-links {
display: none;
}
.side__nav {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
/* margin: 40px; */
height: 100%;
width: 80px;
position: fixed;
z-index: 1;
top: 0;
left: 0;
right: 0;
bottom: 0;
font-size: 17px;
overflow: hidden;
/* border-right: 1px solid #666; */
}
.side__nav a {
padding: 8px;
text-decoration: none;
color: #666;
display: block;
}
.side__nav a:hover {
transition: color 0.3s ease-in-out;
color: #c9cacc;
}
#wrapper {
margin-left: 90px;
}
#skills {
margin-top: 0;
}
nav {
margin: auto 2rem auto 90px;
display: flex;
}
nav a {
margin: auto;
padding: 0.5rem;
flex: 4;
justify-content: flex-start;
}
nav li {
display: inline-block;
}
nav ul {
display: flex;
}
#top__wrap {
position: relative;
}
.card {
max-width: 720px;
}
.project {
display: flex;
flex-direction: row;
/* flex-wrap: nowrap; */
/* flex-direction: column; */
}
.project .project__title {
font-size: 2rem;
}
.project__tagbox {
justify-content: start;
}
.project .project__img {
max-width: 300px;
max-height: 100%;
transition: transform 0.3s ease;
}
.project .project__text {
padding: 3rem;
width: 100%;
}
.project .media.project__text:before {
content: '';
position: absolute;
display: block;
background: #18151f;
top: -20%;
height: 130%;
width: 55px;
}
.project:hover .project__img {
transform: scale(1.1);
}
.project:nth-child(2n + 1) {
flex-direction: row;
}
.project:nth-child(2n + 0) {
flex-direction: row-reverse;
}
.project:nth-child(2n + 1) .project__text::before {
left: -12px !important;
transform: rotate(4deg);
}
.project:nth-child(2n + 0) .project__text::before {
right: -12px !important;
transform: rotate(-4deg);
}
.project .project__tagbox {
justify-content: start;
}
footer {
margin: 0 auto;
width: 87%;
padding: 2rem;
flex-direction: row;
justify-content: space-between;
}
}
@media screen and (min-width: 992px) {
.top__wrap {
max-width: 960px;
/* text-align: center; */
display: flex;
margin: 0 auto;
flex-direction: row;
}
#profile {
margin-right: 1rem;
flex: 1;
height: 400px;
}
#about p {
/* max-width: 400px; */
}
#about {
flex: 2;
margin-left: 1rem;
right: 0;
/* max-width: 500px; */
height: 400px;
}
.card {
max-width: 960px;
}
.project {
max-width: 960px;
}
}
@media screen and (min-width: 1200px) {
.top__wrap {
max-width: 1140px;
}
.card {
max-width: 1140px;
}
.project {
max-width: 1140px;
}
}