Main content width
To change the width of the center content:
.page {
max-width: <width value>; //default is 1500px (or calc($desktop + 300px))
}
Dynamic width
To make the desktop layout take up the entire width of the screen, use
max-width: unset;
Apply changes only to desktop/tablet/mobile layout
To apply CSS to a specific layout only, use one of the following:
@media all and ($mobile) {
// All styles here only apply to mobile layout.
}
@media all and ($tablet) {
// All styles here only apply to tablet layout.
}
@media all and ($desktop) {
// All styles here only apply to desktop layout.
}
@media all and not ($mobile) {
// All styles here only apply to non-mobile (tablet and desktop) layouts.
}
@media all and not ($desktop) {
// All styles here only apply to non-desktop (mobile and tablet) layouts.
}
Centering images
If you want to center all images:
img {
display: block;
margin-left: auto;
margin-right: auto;
}
If you only want to center images in the main page content (a.k.a. images embedded inside your notes):
article.popover-hint img {
display: block;
margin-left: auto;
margin-right: auto;
}
Hiding tags from tag pages
The following hides tag links from all list pages (tags and folders)
.page-listing .tag-link {
display: none;
}
The following hides all tags, even on content pages:
.tag-link {
display: none;
}