Skip to content

Commit

Permalink
Merge pull request #238 from akshitarora921/fix-#206
Browse files Browse the repository at this point in the history
[site] image container size to 50%
  • Loading branch information
leecalcote authored Jan 28, 2022
2 parents fc4bc62 + e96bfd0 commit 739a28e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
3 changes: 2 additions & 1 deletion docs/_sass/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,14 @@ $blue-munsell-3: #4392a4ff;
}
.description-div {
text-align: center;
flex:1

}
.nighthawk-desc-text {
display: inline-block;
text-align: left;
padding: 1rem 1rem;
margin-top: 5rem;
margin-top: 0rem;
}
.nighthawk-desc-text-meshery {
display: inline-block;
Expand Down
15 changes: 10 additions & 5 deletions docs/_sass/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -473,28 +473,32 @@ hr {
display: flex;
padding: 0rem 0;
}

.nighthawk-img-container {
flex: 1;
}
@media only screen and (max-width: 1300px) {
.nighthawk-img-container {
padding-top: 5rem;
flex: 1;
}
}

@media only screen and (max-width: 1070px) {
.nighthawk-img-container {
padding-top: 10rem;
flex: 1;
}
}

@media only screen and (max-width: 992px) {
.custom-desc-div {
display: flex;
flex-direction: column;
flex-direction: column-reverse;
padding: 0rem;
}
.description-div-grpc {
display: flex;
flex-direction: column-reverse;
flex-direction: column;
padding: 0rem;
margin: 0 !important;
max-width: 100% !important;
Expand All @@ -509,7 +513,8 @@ hr {
margin-bottom: 6rem !important;
}
.nighthawk-img-container {
padding-top: 3rem;
flex: 1;
padding-top: 0rem;
}
}

Expand All @@ -527,7 +532,7 @@ hr {
}
.custom-desc-div {
display: flex;
flex-direction: column;
flex-direction: column-reverse;
padding: 0;
}
}
Expand Down
5 changes: 2 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<section>

<div class="nighthawk-description-div">
<div class="custom-desc-div">
<div class="custom-desc-div container">
<div class="nighthawk-img-container">
<img src="/assets/images/screenshots/meshery-nighthawk-performance-chart.png" />
</div>
Expand All @@ -93,8 +93,7 @@ <h1 class="desc-h1">Nighthawk and Meshery</h1>
</div>
<div class="nighthawk-meshery-div">
<div class="container description-div description-div-grpc">
<div class="custom-desc-div">

<div>
<div class="nighthawk-desc-text-meshery head-h1">
<h1 class="desc-h1">Layer 7 Performance Analysis</h1>

Expand Down

0 comments on commit 739a28e

Please sign in to comment.