Skip to content

Commit

Permalink
fix: fixed a problem where vertical scrolling appeared (Sun, Jan 14, …
Browse files Browse the repository at this point in the history
…2024, 2:03:16 PM)
  • Loading branch information
W0x3R committed Jan 14, 2024
1 parent 7bb0e0a commit 0db4951
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ <h1 class="main__title"><a href="https://github.com/W0x3R" target="_blank">Naugh
and
crosses</a></h1>
<div class="main__res"></div>

<div class="main__square">
<div class="main__square-item"></div>
<div class="main__square-item"></div>
Expand All @@ -38,8 +39,7 @@ <h1 class="main__title"><a href="https://github.com/W0x3R" target="_blank">Naugh
</div>
<button class="main__button">NEW GAME</button>
</main>
</div>
<script src="./js/index.js"></script>
<script src="./js/index.js"></script>
</body>

</html>
31 changes: 15 additions & 16 deletions src/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body {
}

.container {
@include flexBox(column, center);
@include flexBox(column, center, center);
max-width: 1920px;
min-height: 100vh;
margin: 0 auto;
Expand All @@ -16,21 +16,7 @@ body {

.main {
@include flexBox(column, center, center);
justify-content: center;
flex: 1;
gap: 10px;

&__title {
font-size: clamp(22px, 5vw, 35px);
transition: 0.3s;
color: #ffffff;

@media (hover: hover) {
&:hover {
color: #e2dcdc;
}
}
}
gap: 8px;

&__res {
@include flexBox(column, center, center);
Expand Down Expand Up @@ -118,4 +104,17 @@ body {
}
}

.main__title {
font-size: clamp(22px, 5vw, 35px);
-webkit-transition: 0.3s;
transition: 0.3s;
color: #ffffff;
}

@media (hover: hover) {
.main__title:hover {
color: #e2dcdc;
}
}

@import 'adaptive';

0 comments on commit 0db4951

Please sign in to comment.