Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make home page more responsive #862

Merged
merged 2 commits into from
Jul 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions galaxyui/src/app/home/carousel/carousel.component.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.partner-carousel {
border: 1px solid #ccc;
width: 100%;
height: 265px;
height: 185px;
color: @black;
}

Expand All @@ -31,15 +31,15 @@
.carousel-left-control, .carousel-right-control {
display: inline-block;
background-color: transparent;
height: 225px;
height: 185px;
vertical-align: middle;
width: 2%;
min-width: 20px;
text-align: center;
color: #b7b7b7;
a {
display: block;
margin-top: 105px;
margin-top: 80px;
}
a:hover {
cursor: pointer;
Expand All @@ -55,7 +55,7 @@

.carousel-slider {
display: inline-block;
height: 225px;
height: 145px;
vertical-align: middle;
width: 95%;
}
Expand Down Expand Up @@ -93,13 +93,13 @@
overflow-x: hidden;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
padding: 15px;
padding: 0px;
}

.carousel-slider-inner > div {
border-right: 1px solid #ccc;
text-align: center;
padding: 15px 30px;
padding: 5px 15px;
flex-shrink: 0;
.img-wrapper {
width: 100%;
Expand All @@ -113,18 +113,18 @@
}
}
img {
width: 200px;
width: 120px;
}
img.missing-avatar {
width: 200px;
height: 170px;
width: 120px;
// height: 170px;
}
p {
padding-top: 10px;
padding-top: 0px;
font-weight: 700;
}
width: 260px;
height: 225px;
width: 155px;
height: 145px;
}

.carousel-slider-inner > div:last-child {
Expand Down
6 changes: 3 additions & 3 deletions galaxyui/src/app/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<popular-component></popular-component>

<div class="row content-row" [ngClass]="{'ready': showCards}">
<div class="col-sm-4">
<div class="col-md-4">
<div class="home-card" id="card-1">
<pfng-card
[headerTemplate]="downloadHeader"
Expand All @@ -20,7 +20,7 @@
</pfng-card>
</div>
</div>
<div class="col-sm-4">
<div class="col-md-4">
<div class="home-card" id="card-2">
<pfng-card
[headerTemplate]="shareHeader"
Expand All @@ -34,7 +34,7 @@
</pfng-card>
</div>
</div>
<div class="col-sm-4">
<div class="col-md-4">
<div class="home-card" id="card-3">
<pfng-card
[headerTemplate]="featureHeader"
Expand Down