style changed for better look

This commit is contained in:
Bogdan Pilyugin 2022-08-30 23:12:23 +02:00
parent fd36bb2764
commit 6cdede8e4b
2 changed files with 58 additions and 12 deletions

46
HTML/info.html Normal file
View File

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="iconsfont.css">
<script src="main.js"></script>
<script src="res.js"></script>
<title>~name~</title>
</head>
<body>
<script>PageSurround();</script>
<!--========== CONTENTS ==========-->
<main>
<section>
<div class="ml">
<div class="mlp">
<div class="mlpc">
<div class="mlhdr">Info</div>
</div>
</div>
<div class="mlp">
<div class="mlpc">
<div class="mlhdr">Help</div>
</div>
</div>
<div class="mlp">
<div class="mlpc">
<div class="mlhdr">About</div>
</div>
</div>
</div>
</section>
</main>
<script>
showMenu('header-toggle','navbar');
linkColor.forEach(l => l.addEventListener('click', colorLink))
</script>
</body>
</html>

View File

@ -1,7 +1,7 @@
/*========== VARIABLES CSS ==========*/
:root {
--header-height: 4.0rem;
--nav-width: 220px;
--header-height: 3.0rem;
--nav-width: 200px;
/*========== Colors ==========*/
--first-color: #FFFFFF;
@ -200,14 +200,14 @@ img {
.nav__dropdown-content {
display: grid;
row-gap: .5rem;
padding: .75rem 2.5rem .75rem 1.8rem;
padding: .75rem 2.5rem .75rem 2.5rem;
}
.nav__dropdown-item {
font-size: var(--smaller-font-size);
font-size: var(--small-font-size);
font-weight: var(--font-medium);
color: var(--text-color);
margin: 5px 3px;
margin: 3px 3px;
}
.nav__dropdown-item:hover {
@ -249,10 +249,10 @@ img {
@media screen and (min-width: 768px) {
body {
padding: 0 0 0 5rem;
padding: 0 0 0 4rem;
}
.header {
padding: 0 3rem 0 5rem;
padding: 0 3rem 0 4rem;
}
.header__container {
height: calc(var(--header-height) + .5rem);
@ -268,17 +268,17 @@ img {
display: block;
}
.header__img {
width: 40px;
height: 40px;
width: 30px;
height: 30px;
order: 1;
}
.nav {
left: 0;
padding: 1.2rem 1.5rem 0;
width: 5.0rem; /* Reduced navbar */
padding: 1.2rem 1.2rem 0;
width: 4.0rem; /* Reduced navbar */
}
.nav__items {
row-gap: 1.7rem;
row-gap: 2.0rem;
}
.nav__icon {
font-size: 1.0rem;