my-portfolio/src/editor/css/editor.css
2023-02-03 01:20:55 +00:00

236 lines
5.8 KiB
CSS

/*** Main editor styles ***/
textarea {
resize: none;
}
section#curriculumVitae, section#projects, section#settings {
margin: 0 2em;
}
input[type="submit"] {
margin-top: 2em;
}
.edit, .delete {
border: none;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
outline: none;
background-color: var(--primaryDefault);
color: #FFFFFF;
cursor: pointer;
}
.timelineHeader {
font-weight: 400;
}
div.editorContainer, div.projectsGrid {
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
gap: 2em;
margin-bottom: 0.5em;
}
div.editorContainer > *, div.projectsGrid > * {
width: 45%;
}
section#projects {
display: block;
}
section#curriculumVitae, section#settings {
display: none;
}
div.modifyBtnContainer {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5em;
width: 100%;
}
div.dateContainer, div.companyAreaContainer {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
gap: 1em;
margin-bottom: 0.5em;
}
section#curriculumVitae .timeline {
position: relative;
max-width: 30em;
gap: 1em;
display: flex;
flex-direction: column;
height: 100%;
}
section#curriculumVitae .timelineItem, section#projects .projItem {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
padding: 1rem;
position: relative;
}
section#curriculumVitae .timelineItem {
border: 2px solid var(--timelineItemBrdr);
color: #FFFFFF;
background-color: var(--primaryHover);
}
section#curriculumVitae .timelineItem.editing {
color: #000000;
border: 5px solid var(--primaryDefault);
padding: 0.5em;
}
section#curriculumVitae .timelineItem.editing {
background-color: #FFFFFF;
}
form div.gradeContainer.formControl {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
}
section#curriculumVitae form.timelineItem:not(.editing) .edit,
section#curriculumVitae form.timelineItem:not(.editing) .delete {
color: var(--primaryHover);
background-color: #FFFFFF;
}
section#curriculumVitae form.timelineItem:not(.editing) div.dateContainer {
display: none;
}
section#curriculumVitae form.timelineItem.editing .timelineHeader {
display: none;
}
section#curriculumVitae form.timelineItem.editing div.gradeContainer.formControl {
gap: 1em;
margin-bottom: 0.5em;
}
section#curriculumVitae form.timelineItem:not(.editing) div.gradeContainer.formControl input,
section#curriculumVitae form.timelineItem:not(.editing) div.companyAreaContainer.formControl input,
section#curriculumVitae form.timelineItem:not(.editing) .formControl .courseText,
section#curriculumVitae form.timelineItem:not(.editing) .formControl .jobTitleText,
section#projects form.projItem:not(.editing) div.formControl.projectTitleContainer input,
section#projects form.projItem:not(.editing) div.formControl.infoContainer textarea {
outline: none;
border: none;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
resize: none;
}
section#curriculumVitae form.timelineItem:not(.editing) div.gradeContainer.formControl > *,
section#curriculumVitae form.timelineItem:not(.editing) div.companyAreaContainer.formControl > * {
color: hsl(0, 0%, 90%);
}
section#curriculumVitae form.timelineItem:not(.editing) .formControl .courseText,
section#curriculumVitae form.timelineItem:not(.editing) .formControl .jobTitleText {
color: #FFFFFF;
}
section#curriculumVitae form.timelineItem:not(.editing) div.gradeContainer.formControl input {
padding: 0 0.25em;
}
section#curriculumVitae form.timelineItem:not(.editing) div.formControl .courseText,
section#curriculumVitae form.timelineItem:not(.editing) .formControl .courseText {
padding: 0;
}
section#curriculumVitae form.timelineItem:not(.editing) input[type=submit] {
display: none;
}
.courseText {
resize: none;
}
section#curriculumVitae form.timelineItem:not(.editing) div.companyAreaContainer input {
width: 30%;
}
section#projects #projList .projItem {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin: 0 auto;
width: 90%;
border: 1px solid var(--grey);
gap: 1em;
box-shadow: 0 6px 4px 0 var(--mutedBlack);
}
section#projects #projList {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 1em;
}
section#projects #projList .projItem img {
max-width: 15rem;
width: 100%;
padding: 0 1em;
}
section#projects .projItem .linkContainer {
display: flex;
flex-direction: row;
justify-content: flex-start;
gap: 3em;
margin-left: 2em;
}
section#projects .linkContainer .btn {
padding: 0.25em 0.5em;
}
section#projects #isMainProject {
width: auto;
}
section#projects form.projItem:not(.editing) div.formControl.imageContainer,
section#projects form.projItem:not(.editing) div.formControl.isMainProject,
section#projects form.projItem:not(.editing) div.formControl.viewProjContainer,
section#projects form.projItem:not(.editing) div.formControl.gitContainer,
section#projects form.projItem:not(.editing) input[type="submit"],
section#projects form.projItem.editing img.displayedImage,
section#projects form.projItem.editing div.linkContainer {
display: none;
}
section#projects form.projItem:not(.editing) div.formControl.projectTitleContainer input {
font-size: 1.17em;
/*margin: 1em 0;*/
font-weight: bold;
}
section#projects form.projItem:not(.editing) div.formControl.projectTitleContainer input,
section#projects form.projItem:not(.editing) div.formControl.infoContainer textarea{
color: #000000;
}