Skip to content

Commit

Permalink
Minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gupta-utkarsh committed Jul 26, 2017
1 parent 6b9057e commit 1ef00eb
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/home/homeBody/HomeSponsors.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const HomeSponsors = props => {
);
})}
</div>
<div className="right-align">
<div className="right-align cv-home-sponsors-container">
<h1 className="cv-home-showcase-heading">
{SPONSOR_TITLE}
</h1>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class HomePage extends React.Component {
}, 0);
} else {
setTimeout(() => {
const element = document.html;
const element = document.body;
if (element)
element.scrollIntoView({
behavior: "smooth"
Expand Down
25 changes: 21 additions & 4 deletions frontend/src/styles/partials/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

.cv-home-header {
font-weight: 500;
margin-top: 7 * $gutter-width;
}

.cv-home-header-intro, .cv-home-header-desc {
Expand All @@ -29,7 +30,11 @@
}

.cv-home-body {
padding-top: 12*$gutter-width;
padding-top: 5*$gutter-width;

@media #{$bp-sm} {
padding-top: 12*$gutter-width;
}
}

.cv-home-about-us {
Expand Down Expand Up @@ -59,21 +64,29 @@
}

.cv-about-us-card-heading {
top: -13rem;
position: absolute;
display: inline-block;
white-space: nowrap;

@media #{$bp-sm} {
top: -13rem;
}
}

.cv-about-us-heading-line {
@include text-gradient($heading-color, $secondary-color);
}

.cv-question-mark {
display: none;
@include text-gradient($heading-color, $secondary-color);
font-family: $primary-font-family;
@include font-size(25, 1);
font-weight: 300;

@media #{$bp-sm} {
display: inline;
}
}

.cv-about-us-card-desc {
Expand Down Expand Up @@ -162,7 +175,7 @@
}

.cv-home-news {
padding: 5*$gutter-width 0;
padding: 7*$gutter-width 0;
position: relative;
background: linear-gradient($heading-color, $white 400px);
}
Expand All @@ -187,6 +200,10 @@
}
}

.cv-home-sponsors-container {
margin-top: 10*$gutter-width;
}

.cv-home-sponsor-card {
box-shadow: none;
width: 100%;
Expand Down Expand Up @@ -270,7 +287,7 @@

.cv-home-footer {
margin: 0;
padding: 15 * $gutter-width 0 0 0;
padding: 8 * $gutter-width 0 0 0;
}
.cv-home-footer-image {
width: 100%;
Expand Down
8 changes: 3 additions & 5 deletions frontend/src/styles/partials/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@
display: flex;
flex-direction: column-reverse;
position: fixed;
padding: 2*$gutter-width;
padding: $gutter-width;
top: 0;
left: 0;
right: 0;
box-shadow: $box-shadow;
z-index: 10;

@media #{$bp-sm} {
background: transparent;
position: static;
background: $white;
flex-direction: row;
justify-content: space-between;
align-items: baseline;
margin-top: 2 * $gutter-width;
align-items: center;
box-shadow: none;
}
}
Expand Down

0 comments on commit 1ef00eb

Please sign in to comment.