Merge pull request #274 from sharu725/fix-78

Fix #78 - use grid css to fix sidebar height issue
This commit is contained in:
sharath Kumar 2022-02-07 13:05:20 +05:30 committed by GitHub
commit d0ba287371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 270 additions and 273 deletions

View File

@ -1,274 +1,278 @@
/* ======= Base ======= */ /* ======= Base ======= */
body { body {
font-family: 'Roboto', sans-serif; font-family: "Roboto", sans-serif;
color: $text-color-secondary; color: $text-color-secondary;
background: $smoky-white; background: $smoky-white;
font-size: 14px; font-size: 14px;
padding: 30px; padding: 30px;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
h1, h2, h3, h4, h5, h6 { h1,
font-weight: 700; h2,
h3,
h4,
h5,
h6 {
font-weight: 700;
} }
a { a {
color: darken($theme-color, 15%); color: darken($theme-color, 15%);
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
color: darken($theme-color, 30%); color: darken($theme-color, 30%);
} }
&:focus { &:focus {
text-decoration: none; text-decoration: none;
} }
} }
p { p {
line-height: 1.5; line-height: 1.5;
} }
.wrapper { .wrapper {
background:$theme-color; display: grid;
max-width: 1000px; grid-template-columns: repeat(10, 1fr);
margin: 0 auto; background: $theme-color;
position: relative; max-width: 1000px;
@include box-shadow(0px 2px 4px rgba(0,0,0,0.1)); margin: 0 auto;
position: relative;
@include box-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
} }
.sidebar-wrapper { .sidebar-wrapper {
background: $theme-color; grid-column: span 3;
position: absolute; order: 2;
right: 0; background: $theme-color;
width: 280px; color: #fff;
height: 100%; a {
min-height: 800px;
color: #fff; color: #fff;
a { }
color: #fff; .profile-container {
} padding: 30px;
.profile-container { //background: darken($theme-color, 10%);
padding: 30px; background: rgba(0, 0, 0, 0.2);
//background: darken($theme-color, 10%); text-align: center;
background: rgba(0, 0, 0, 0.2); color: #fff;
text-align: center; }
color: #fff; .name {
} font-size: 32px;
.name { font-weight: 900;
font-size: 32px; margin-top: 0;
font-weight: 900; margin-bottom: 10px;
margin-top: 0; }
margin-bottom: 10px; .tagline {
} color: rgba(256, 256, 256, 0.6);
.tagline { font-size: 16px;
color: rgba(256, 256, 256, 0.6); font-weight: 400;
font-size: 16px; margin-top: 0;
font-weight: 400; margin-bottom: 0;
margin-top: 0; }
margin-bottom: 0; .profile {
} margin-bottom: 15px;
.profile { }
margin-bottom: 15px;
}
.avatar { .avatar {
//used for profile image //used for profile image
max-width: 100px; max-width: 100px;
margin-bottom: 15px; margin-bottom: 15px;
border: 0px solid #fff; border: 0px solid #fff;
border-radius: 100%; border-radius: 100%;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.contact-list {
.fas,
.fab,
.far {
margin-right: 5px;
font-size: 18px;
vertical-align: middle;
} }
.contact-list { li {
.fas, .fab, .far { margin-bottom: 15px;
margin-right: 5px; &:last-child {
font-size: 18px;
vertical-align: middle;
}
li {
margin-bottom: 15px;
&:last-child {
margin-bottom: 0;
}
}
}
.container-block {
padding: 30px;
}
.container-block-title {
text-transform: uppercase;
font-size: 16px;
font-weight: 700;
margin-top: 0;
margin-bottom: 15px;
}
.degree {
font-size: 14px;
margin-top: 0;
margin-bottom: 5px;
}
.education-container {
.item {
margin-bottom: 15px;
&:last-child {
margin-bottom: 0;
}
}
.meta {
color: rgba(256, 256, 256, 0.6);
font-weight: 500;
margin-bottom: 0px;
margin-top: 0;
}
.time {
color: rgba(256, 256, 256, 0.6);
font-weight: 500;
margin-bottom: 0px;
}
}
.languages-container {
.lang-desc {
color: rgba(256, 256, 256, 0.6);
}
}
.languages-list {
margin-bottom: 0; margin-bottom: 0;
li { }
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
}
} }
}
.interests-list { .container-block {
padding: 30px;
}
.container-block-title {
text-transform: uppercase;
font-size: 16px;
font-weight: 700;
margin-top: 0;
margin-bottom: 15px;
}
.degree {
font-size: 14px;
margin-top: 0;
margin-bottom: 5px;
}
.education-container {
.item {
margin-bottom: 15px;
&:last-child {
margin-bottom: 0; margin-bottom: 0;
li { }
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
}
} }
.meta {
color: rgba(256, 256, 256, 0.6);
font-weight: 500;
margin-bottom: 0px;
margin-top: 0;
}
.time {
color: rgba(256, 256, 256, 0.6);
font-weight: 500;
margin-bottom: 0px;
}
}
.languages-container {
.lang-desc {
color: rgba(256, 256, 256, 0.6);
}
}
.languages-list {
margin-bottom: 0;
li {
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
}
}
.interests-list {
margin-bottom: 0;
li {
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
}
}
} }
.main-wrapper { .main-wrapper {
background: #fff; grid-column: span 7;
padding: 60px; background: #fff;
padding-right: 340px; padding: 60px;
.section-title { .section-title {
text-transform: uppercase; text-transform: uppercase;
font-size: 20px; font-size: 20px;
font-weight: 500; font-weight: 500;
color: darken($theme-color, 15%); color: darken($theme-color, 15%);
position: relative; position: relative;
margin-top: 0; margin-top: 0;
margin-bottom: 20px; margin-bottom: 20px;
} }
.section { .section {
margin-bottom: 60px; margin-bottom: 60px;
} }
.experiences-section, .educations-section { .experiences-section,
.item { .educations-section {
margin-bottom: 30px; .item {
} margin-bottom: 30px;
}
.upper-row {
position: relative;
overflow: hidden;
margin-bottom: 2px;
}
.job-title, .degree {
color: $text-color;
font-size: 16px;
margin-top: 0;
margin-bottom: 0;
font-weight: 500;
}
.time {
position: absolute;
right: 0;
top: 0;
color: $text-grey;
}
.company, .university {
margin-bottom: 10px;
color: $text-grey;
} }
}
.upper-row {
position: relative;
overflow: hidden;
margin-bottom: 2px;
}
.job-title,
.degree {
color: $text-color;
font-size: 16px;
margin-top: 0;
margin-bottom: 0;
font-weight: 500;
}
.time {
position: absolute;
right: 0;
top: 0;
color: $text-grey;
}
.company,
.university {
margin-bottom: 10px;
color: $text-grey;
}
.project-title { .project-title {
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
margin-top: 0; margin-top: 0;
margin-bottom: 5px; margin-bottom: 5px;
color: darken($theme-color, 15%); color: darken($theme-color, 15%);
}
.projects-section {
.intro {
margin-bottom: 30px;
} }
.projects-section { .item {
.intro { margin-bottom: 15px;
margin-bottom: 30px;
}
.item {
margin-bottom: 15px;
}
} }
}
.publication-title { .publication-title {
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
color: $text-color; color: $text-color;
margin-bottom: 1px; margin-bottom: 1px;
}
.publication-authors {
font-style: italic;
color: $text-grey;
margin-bottom: 1px;
}
.publications-section {
.intro {
margin-bottom: 30px;
} }
.publication-authors { .item {
font-style: italic; margin-bottom: 15px;
color: $text-grey;
margin-bottom: 1px;
}
.publications-section {
.intro {
margin-bottom: 30px;
}
.item {
margin-bottom: 15px;
}
} }
}
} }
.skillset { .skillset {
.item { .item {
margin-bottom: 15px; margin-bottom: 15px;
overflow: hidden; overflow: hidden;
} }
.level-title { .level-title {
font-size: 14px; font-size: 14px;
margin-top: 0; margin-top: 0;
margin-bottom: 12px; margin-bottom: 12px;
} }
.level-bar { .level-bar {
height: 12px; height: 12px;
background: $smoky-white; background: $smoky-white;
} }
.level-bar-inner { .level-bar-inner {
height: 12px; height: 12px;
background: lighten($theme-color, 15%); background: lighten($theme-color, 15%);
} }
} }
.footer { .footer {
padding-top: 30px; padding-top: 30px;
.copyright { .copyright {
line-height: 1.6; line-height: 1.6;
color: $text-color-secondary; color: $text-color-secondary;
font-size: 13px; font-size: 13px;
} }
.fa-heart {
color: $heart;
}
.fa-heart {
color: $heart;
}
} }

View File

@ -1,65 +1,58 @@
/* Extra small devices (phones, less than 768px) */ /* Extra small devices (phones, less than 768px) */
@media (max-width: 767px) { @media (max-width: 767px) {
body {
padding: 0;
}
body{ .sidebar-wrapper {
padding: 0; position: static;
} width: inherit;
}
.sidebar-wrapper { .wrapper {
position: static; display: block;
width: inherit; }
}
.main-wrapper { .main-wrapper {
padding: 30px; padding: 30px;
} }
.main-wrapper .time {
position: static;
display: block;
margin-top: 5px;
}
.main-wrapper .upper-row {
margin-bottom: 0;
}
.main-wrapper .time {
position: static;
display: block;
margin-top: 5px;
}
.main-wrapper .upper-row {
margin-bottom: 0;
}
} }
/* Small devices (tablets, 768px and up) */ /* Small devices (tablets, 768px and up) */
@media (min-width: 768px) { @media (min-width: 768px) {
} }
/* Medium devices (desktops, 992px and up) */ /* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) { @media (min-width: 992px) {
.skillset .level-title {
display: inline-block;
float: left;
width: 30%;
margin-bottom: 0;
}
.skillset .level-title { .skillset .level-bar {
display: inline-block; display: inline-block;
float: left; width: 70%;
width: 30%; float: left;
margin-bottom: 0; position: relative;
} top: 1px;
}
.skillset .level-bar {
display: inline-block;
width: 70%;
float: left;
position: relative;
top: 1px;
}
} }
/* Large devices (large desktops, 1200px and up) */ /* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) { @media (min-width: 1200px) {
} }
/* Ex-Large devices (large desktops, 1200px and up) */ /* Ex-Large devices (large desktops, 1200px and up) */
@media (min-width: 1400px) { @media (min-width: 1400px) {
} }