sphinx_nervproject_theme/ui/mobile.less

54 lines
854 B
Text
Raw Normal View History

2020-05-16 14:27:03 +02:00
// narrow desktop / iPad
@media (max-width: @MQNarrow) {
.sidebar {
font-size: 1.1rem;
2020-06-19 23:39:59 +02:00
width: @sidebarWidth;
2020-05-16 14:27:03 +02:00
}
.page {
padding-left: 0;
}
}
// wide mobile
@media (max-width: @MQMobile) {
.sidebar {
top: 0;
transform: translateX(-100%);
transition: transform .2s ease;
2020-06-19 23:39:59 +02:00
margin-right: calc(0rem - @sidebarWidth);
2020-05-16 14:27:03 +02:00
}
.page {
padding-left: 0;
2020-06-19 23:39:59 +02:00
margin-left: 0;
}
.home-link {
text-align: right;
flex-grow: 1;
2020-05-16 14:27:03 +02:00
}
.theme-container {
&.sidebar-open {
.sidebar {
transform: translateX(0);
}
}
&.no-navbar {
.sidebar {
padding-top: 0;
}
}
}
}
// narrow mobile
@media (max-width: @MQMobileNarrow) {
h1 {
font-size: 1.9rem;
}
.content {
div[class*="language-"] {
margin: 0.85rem -1.5rem;
border-radius: 0;
}
}
}