force header width to be equal to container width
This commit is contained in:
parent
9eab7af579
commit
ac27cac576
@ -36,5 +36,6 @@
|
|||||||
</main>
|
</main>
|
||||||
<script data-goatcounter="https://goatcounter.shr4pnel.com/count" async="" src="https://goatcounter.shr4pnel.com/count.js"></script>
|
<script data-goatcounter="https://goatcounter.shr4pnel.com/count" async="" src="https://goatcounter.shr4pnel.com/count.js"></script>
|
||||||
<script src="/assets/js/get-correct-path.js"></script>
|
<script src="/assets/js/get-correct-path.js"></script>
|
||||||
|
<script src="/assets/js/width-hack.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -427,5 +427,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<script src="/assets/js/quote.js"></script>
|
<script src="/assets/js/quote.js"></script>
|
||||||
|
<script src="/assets/js/width-hack.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -50,7 +50,7 @@ p > img {
|
|||||||
|
|
||||||
.title-container {
|
.title-container {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
padding: 0 5%;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
|
@ -59,13 +59,15 @@ footer > a {
|
|||||||
|
|
||||||
.title-container {
|
.title-container {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
padding: 0 5%;
|
padding: 0;
|
||||||
|
border-bottom: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
letter-spacing: 5px;
|
letter-spacing: 5px;
|
||||||
text-shadow: -4px 3px green;
|
text-shadow: -4px 3px green;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlighted {
|
.highlighted {
|
||||||
@ -112,6 +114,11 @@ footer > a {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main > .container {
|
||||||
|
margin-top: 0;
|
||||||
|
border-top: white;
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 467px) {
|
@media only screen and (max-width: 467px) {
|
||||||
.container {
|
.container {
|
||||||
margin: 10px auto 0;
|
margin: 10px auto 0;
|
||||||
@ -134,10 +141,6 @@ footer > a {
|
|||||||
.highlighted {
|
.highlighted {
|
||||||
padding: 5px 15px;
|
padding: 5px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-container {
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ducks {
|
.ducks {
|
||||||
|
9
assets/js/width-hack.js
Normal file
9
assets/js/width-hack.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
const resizeHeader = () => {
|
||||||
|
const container = document.querySelector("main > .container")
|
||||||
|
const containerWidth = container.scrollWidth
|
||||||
|
const header = document.querySelector(".container.title-container")
|
||||||
|
header.style.setProperty("min-width", `${containerWidth}px`)
|
||||||
|
}
|
||||||
|
|
||||||
|
window.addEventListener("resize", resizeHeader)
|
||||||
|
resizeHeader()
|
Loading…
x
Reference in New Issue
Block a user