Skip to content

Commit

Permalink
Hide navigational elements if @media == print.
Browse files Browse the repository at this point in the history
  • Loading branch information
nomike committed Sep 18, 2024
1 parent 4c5acb6 commit f401ff9
Showing 1 changed file with 24 additions and 9 deletions.
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) ") ";
}
}

0 comments on commit f401ff9

Please sign in to comment.