Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
fix: carbon ads position(home page)
Browse files Browse the repository at this point in the history
  • Loading branch information
SvMak authored and marc0der committed Jan 31, 2024
1 parent c35f273 commit c2282b7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
29 changes: 18 additions & 11 deletions app/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,6 @@ pre {
right: -.75rem !important;
}

@media (min-width: 576px) {
.swiper-button-prev {
left: -1.25rem !important;
}

.swiper-button-next {
right: -1.25rem !important;
}
}

.page-wrapper {
padding-top: 80px;
padding-bottom: 80px;
Expand Down Expand Up @@ -153,7 +143,7 @@ pre {

.hero-section-top-img {
width: 250px;
margin: 0 auto;
margin: 80px auto 0;
}

.hero-section-top-title {
Expand Down Expand Up @@ -264,3 +254,20 @@ pre {
font-size: 14px;
line-height: 24px;
}

/* Media queries */
@media (min-width: 576px) {
.swiper-button-prev {
left: -1.25rem !important;
}

.swiper-button-next {
right: -1.25rem !important;
}
}

@media (min-width: 992px) {
.hero-section-top-img {
margin: 0 auto;
}
}
6 changes: 4 additions & 2 deletions app/views/index.scala.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
@(organizationContributors: Seq[Contributor], individualContributors: Seq[Contributor])(implicit request: Request[AnyContent])
@main(title = "Home", request) {
<div id='content'>
<div class="position-absolute top-0 end-0">
@includes.advertisement()
</div>

<section class="home-section">
<div class="container">
<div class="hero-section-top">
Expand Down Expand Up @@ -32,8 +36,6 @@ <h1 class="hero-section-top-title">The Software Development Kit Manager</h1>
<code>curl -s "https://get.sdkman.io" | bash</code>
</p>
</div>

@includes.advertisement()
</div>
</section>

Expand Down

0 comments on commit c2282b7

Please sign in to comment.