Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix-print-layout #8

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/nomike.com/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@
</body>

</html>
{% endif -%}
{% endif -%}
33 changes: 24 additions & 9 deletions templates/nomike.com/static/design.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,23 @@ body {
color: white;
}

/* On screens that are less than 1081px wide, make the sidebar into a topbar */

/* Page content. The value of the margin-left property should match the value of the sidebar's width property */
@media screen {
/* Page content. The value of the margin-left property should match the value of the sidebar's width property */

div.content {
margin-top: 26px;
margin-left: 200px;
padding: 1px 16px;
padding-bottom: 25px;
div.content {
margin-top: 26px;
padding: 1px 16px;
padding-bottom: 25px;
}
}


/* On screens that are less than 1081px wide, make the sidebar into a topbar */
@media screen and (min-width: 1081px) {
div.content{
margin-left: 200px;
}
}

@media screen and (max-width: 1080px) {
.sidebar {
Expand Down Expand Up @@ -300,4 +305,14 @@ div.galleryblock img:hover {
:not(pre)>code {
background: lightgray;
border: 1px solid gray;
}
}

@media print {
.sidebar, .footer, .powerline {
display: none;
}

a::after{
content: " (" attr(href) ") ";
}
}
Loading