2022-01-03 17:14:31 +01:00
|
|
|
@import url("https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap");
|
2020-09-24 01:36:00 +02:00
|
|
|
|
|
|
|
/*
|
2022-01-03 17:14:31 +01:00
|
|
|
* Hi, thank you for checking out my CSS. Layout is currently Rev 2.
|
2020-09-24 01:36:00 +02:00
|
|
|
* Plan is to do more interesting ones as I feel more comfortable doing things.
|
|
|
|
*
|
2021-07-03 14:03:10 +02:00
|
|
|
* For instance was thinking of swapping to a 3 column affair, with the title running
|
2020-09-24 01:36:00 +02:00
|
|
|
* vertically in the first column. Second column is the projects, third the blurb
|
|
|
|
*
|
|
|
|
* I'd like to add some animations and transitions, and a light and dark theme.
|
|
|
|
*/
|
|
|
|
|
|
|
|
:root {
|
2022-01-03 17:14:31 +01:00
|
|
|
font-size: 1.25rem;
|
2020-09-24 01:36:00 +02:00
|
|
|
--marginTop: 0.5rem;
|
2022-01-03 17:14:31 +01:00
|
|
|
|
|
|
|
--pinky-color: rgba(216, 81, 201, 0.632);
|
|
|
|
--lightcoral-color: lightcoral;
|
|
|
|
--projects-border-color: green;
|
2020-09-24 01:36:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2020-09-02 10:42:59 +02:00
|
|
|
body {
|
2020-09-24 01:36:00 +02:00
|
|
|
/* background-color: whitesmoke; */
|
|
|
|
background-color: #f2f2f2;
|
|
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ac2e2e' fill-opacity='0.24'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h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10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
|
|
|
|
}
|
|
|
|
|
2022-01-03 17:14:31 +01:00
|
|
|
.header,
|
|
|
|
.blurb,
|
|
|
|
.projectsDiv {
|
2020-09-24 01:36:00 +02:00
|
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
|
|
border: 5px solid;
|
|
|
|
margin: 0 auto;
|
2020-09-24 11:45:56 +02:00
|
|
|
width: 90%;
|
|
|
|
max-width: 700px;
|
2020-09-24 01:36:00 +02:00
|
|
|
box-sizing: border-box;
|
2022-01-03 17:14:31 +01:00
|
|
|
border-radius: 10px;
|
2020-09-24 01:36:00 +02:00
|
|
|
}
|
|
|
|
|
2022-01-03 17:14:31 +01:00
|
|
|
.blurb,
|
|
|
|
.projectsDiv {
|
2020-09-24 01:36:00 +02:00
|
|
|
padding: 10px 20px;
|
2020-09-24 11:45:56 +02:00
|
|
|
margin-top: 2rem;
|
2022-01-03 17:14:31 +01:00
|
|
|
font-family: "Source Sans Pro", sans-serif;
|
2020-09-24 01:36:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
text-align: center;
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
2022-01-03 17:14:31 +01:00
|
|
|
border-color: var(--lightcoral-color);
|
2020-09-24 01:36:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.header > h1 {
|
2022-01-03 17:14:31 +01:00
|
|
|
font-family: "Black Ops One", cursive;
|
2020-09-24 11:45:56 +02:00
|
|
|
/* scale the font from size used on mobile to "desktop" */
|
|
|
|
font-size: min(max(2.5rem, 8vw), 3rem);
|
2020-09-24 01:36:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.blurb {
|
2022-01-03 17:14:31 +01:00
|
|
|
border-color: var(--pinky-color);
|
2020-09-24 01:36:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.projectsDiv {
|
|
|
|
border-color: rgba(0, 0, 0, 0.7);
|
|
|
|
}
|
|
|
|
|
2022-01-03 17:14:31 +01:00
|
|
|
.frontEndMentorChallenges,
|
|
|
|
.freecodeCampProjects,
|
|
|
|
.completeWebDev2020Projects,
|
|
|
|
.vanillaJSProjects {
|
2020-09-24 01:36:00 +02:00
|
|
|
margin-top: var(--marginTop);
|
|
|
|
}
|
|
|
|
|
2022-01-03 17:14:31 +01:00
|
|
|
.projectsSection__title {
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: 1.8rem;
|
2020-09-24 01:36:00 +02:00
|
|
|
}
|
|
|
|
|
2020-09-24 11:45:56 +02:00
|
|
|
/* .frontEndMentorChallenges {} */
|
2020-09-24 01:36:00 +02:00
|
|
|
|
|
|
|
.frontEndMentorChallenges .newbieChallenges {
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
|
2022-01-03 17:14:31 +01:00
|
|
|
.newbieChallenges > h3,
|
|
|
|
.responsiveProjects > h3 {
|
2020-09-24 01:36:00 +02:00
|
|
|
font-weight: 600;
|
2022-01-03 17:14:31 +01:00
|
|
|
font-size: 1.3rem;
|
2020-09-24 01:36:00 +02:00
|
|
|
}
|
|
|
|
|
2020-09-24 11:45:56 +02:00
|
|
|
/* .freecodeCampProjects {} */
|
|
|
|
/* .completeWebDev2020Projects {} */
|
|
|
|
/* .vanillaJSProjects {} */
|
2020-09-24 01:36:00 +02:00
|
|
|
|
|
|
|
footer {
|
|
|
|
margin-top: 3rem;
|
|
|
|
text-align: center;
|
2022-01-03 17:14:31 +01:00
|
|
|
font-size: 0.9rem;
|
2020-09-24 10:41:04 +02:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2020-09-24 11:45:56 +02:00
|
|
|
width: 85%;
|
2020-09-24 01:36:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
footer * {
|
|
|
|
margin-top: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
footer > a {
|
|
|
|
display: block;
|
2022-01-03 04:04:54 +01:00
|
|
|
}
|
|
|
|
|
2022-01-03 17:14:31 +01:00
|
|
|
.alignedHeader {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
2022-01-25 04:06:10 +01:00
|
|
|
.alignedHeader img {
|
|
|
|
/* /* width: 100%; */
|
2022-01-03 17:14:31 +01:00
|
|
|
height: 100%;
|
|
|
|
|
2022-01-25 04:06:10 +01:00
|
|
|
/* margin-left: auto; */
|
|
|
|
}
|
2022-01-03 17:14:31 +01:00
|
|
|
|
2022-01-03 04:04:54 +01:00
|
|
|
.stacked {
|
|
|
|
display: grid;
|
|
|
|
}
|
|
|
|
|
|
|
|
.stacked > * {
|
|
|
|
grid-column: 1/2;
|
|
|
|
grid-row: 1/2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card__content {
|
|
|
|
z-index: 10;
|
2022-01-03 17:14:31 +01:00
|
|
|
background: rgba(255, 255, 255, 0.9);
|
|
|
|
backdrop-filter: blur(100px);
|
|
|
|
-webkit-backdrop-filter: blur(100px);
|
2022-01-03 04:04:54 +01:00
|
|
|
align-self: end;
|
2022-01-03 17:14:31 +01:00
|
|
|
margin: 0.5rem; /*.5rem 2rem;*/
|
|
|
|
padding: 0.5rem;
|
2022-01-03 04:04:54 +01:00
|
|
|
|
2022-01-03 17:14:31 +01:00
|
|
|
box-shadow: 0 0.25rem 1rem rgba(0 0 0 / 0.1);
|
2022-01-25 04:06:10 +01:00
|
|
|
border: gray 2px dashed;
|
|
|
|
border-radius: 5px;
|
2022-01-03 04:04:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.projects-grid {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
|
2022-01-03 17:14:31 +01:00
|
|
|
gap: 0.25rem;
|
2022-01-25 04:06:10 +01:00
|
|
|
margin-top: 0.5rem;
|
2022-01-03 17:14:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.projectsDiv > * {
|
|
|
|
margin-bottom: 1rem;
|
2022-01-03 04:04:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.project-card {
|
2022-01-03 17:14:31 +01:00
|
|
|
border: 3px solid var(--projects-border-color);
|
2022-01-25 04:06:10 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
aspect-ratio: 1 / 1.4;
|
2022-01-03 17:14:31 +01:00
|
|
|
overflow: hidden;
|
2022-01-03 04:04:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.card__img {
|
|
|
|
width: 100%;
|
|
|
|
aspect-ratio: 1 / 1.25;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card__techUsed {
|
|
|
|
list-style: none;
|
|
|
|
display: flex;
|
|
|
|
/* align-content: space-evenly; */
|
|
|
|
justify-content: space-evenly;
|
2022-01-03 17:14:31 +01:00
|
|
|
align-items: center;
|
2022-01-03 04:04:54 +01:00
|
|
|
|
2022-01-03 17:14:31 +01:00
|
|
|
/* font-size: 0.625rem; */
|
2022-01-03 04:04:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* .card__techUsed > li {
|
|
|
|
margin: 0;
|
|
|
|
} */
|
|
|
|
|
2022-01-03 17:14:31 +01:00
|
|
|
.card__techUsed img {
|
2022-01-25 04:06:10 +01:00
|
|
|
margin-top: 0.25rem;
|
2022-01-03 17:14:31 +01:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2022-01-03 04:04:54 +01:00
|
|
|
.card__title {
|
2022-01-03 17:14:31 +01:00
|
|
|
font-size: 0.75rem;
|
|
|
|
font-weight: 600;
|
2022-01-03 04:04:54 +01:00
|
|
|
line-height: 1.1;
|
2022-01-03 17:14:31 +01:00
|
|
|
color: darkred;
|
|
|
|
text-align: center;
|
2022-01-03 04:04:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.card__description {
|
|
|
|
font-size: 0.625rem;
|
|
|
|
line-height: 1.2;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 38em) {
|
|
|
|
.card__img {
|
2022-01-03 17:14:31 +01:00
|
|
|
aspect-ratio: 1 / 1;
|
|
|
|
}
|
2022-01-03 04:04:54 +01:00
|
|
|
|
2022-01-03 17:14:31 +01:00
|
|
|
.project-card.featured {
|
|
|
|
grid-row: span 2;
|
|
|
|
grid-column: span 2;
|
|
|
|
}
|
2022-01-03 04:04:54 +01:00
|
|
|
|
2022-01-03 17:14:31 +01:00
|
|
|
.project-card.featured .card__img {
|
|
|
|
aspect-ratio: 1 / 1.33;
|
|
|
|
}
|
|
|
|
|
|
|
|
.project-card.featured .card__title {
|
|
|
|
font-size: 1.25rem;
|
|
|
|
}
|
2022-01-03 04:04:54 +01:00
|
|
|
}
|