Skip to content

Commit 2c40694

Browse files
authored
Merge pull request #2162 from LoseGameng/fix/issue-2158
remove black bar on right side in mobile view (iPad mini emulation)
2 parents 3f46f09 + 0aa7a8b commit 2c40694

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

services/app/apps/codebattle/assets/css/style.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,33 @@ main {
782782
width: 250px;
783783
min-width: 250px;
784784
}
785+
@media screen and (min-width: $md) {
786+
.main-nav {
787+
padding-left: clamp(0.25rem, 1vw, 0.5rem);
788+
padding-right: clamp(0.25rem, 1vw, 0.5rem);
789+
}
790+
791+
.main-nav .btn {
792+
padding: clamp(0.2rem, 0.5vw, 0.5rem) clamp(0.4rem, 1vw, 0.75rem);
793+
font-size: clamp(0.75rem, 1vw, 0.875rem);
794+
}
795+
796+
.main-nav img[src*="shields.io"] {
797+
max-width: 100%;
798+
width: clamp(60px, 10vw, 80px);
799+
height: auto;
800+
}
801+
802+
.navbar-brand img {
803+
max-height: clamp(28px, 5vw, 36px);
804+
height: auto;
805+
width: auto;
806+
}
807+
808+
.navbar-brand span {
809+
font-size: clamp(13px, 1.5vw, 18px);
810+
}
811+
}
785812

786813
@media (max-width: $xl) {
787814
.cb-heading {

0 commit comments

Comments
 (0)