You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/assets/stylesheets/components/_mobile.scss

144 lines
2.3 KiB

11 years ago
//
// Mobile overrides
//
._mobile {
font-size: 100%;
background: $contentBackground;
11 years ago
// Layout
body { -ms-overflow-style: -ms-autohiding-scrollbar; }
8 years ago
._app, ._content { overflow: visible; }
._container, ._sidebar {
margin: 0;
padding-top: $headerHeight;
}
11 years ago
._content {
position: static;
height: auto;
margin: 0;
padding: .75rem 1rem 2rem;
8 years ago
&:before { content: none; }
11 years ago
}
10 years ago
._booting:before, ._content-loading:before { font-size: 3rem; }
11 years ago
._header, ._footer {
position: fixed;
width: 100%;
}
11 years ago
._header, ._list, ._footer {
width: 100%;
border-right: 0;
box-shadow: none;
}
._settings { position: static; }
._settings ._sidebar { padding-bottom: $headerHeight; }
._settings-tabs { display: block; }
8 years ago
._header ._settings-btn { width: auto; }
// Header
8 years ago
._header-btn { width: 2.5rem; }
._header-btn[hidden] { display: block; }
11 years ago
._search {
8 years ago
padding-right: .125rem;
padding-left: .125rem;
11 years ago
&:before { left: .5rem; }
}
._search-tag { left: .5rem; }
11 years ago
// Sidebar
._sidebar {
position: static;
min-height: 100%;
overflow: visible;
}
._list-item {
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
10 years ago
box-shadow: none;
}
._list-result {
padding-left: 2.375rem;
&:before {
position: absolute;
top: .25rem;
left: .75rem;
}
}
11 years ago
// Notice
._notice {
position: fixed;
left: 0;
padding: 0 .5rem;
}
._notice-text { font-size: .75em; }
// Notification
._notif { position: fixed; }
// Table of contents
._toc {
float: none;
max-width: none;
margin-left: 0;
}
}
//
// Fix viewport on Windows Phone
//
@-ms-viewport { width: device-width; }
@media (orientation: portrait) and (min-device-width: 720px) and (max-device-width: 768px),
(orientation: landscape) and (device-width: 1280px) and (max-device-height: 768px) {
@-ms-viewport { width: 50%; }
}
//
// Header buttons
//
._forward-btn {
8 years ago
margin-right: -.5rem;
11 years ago
8 years ago
> svg { margin-left: -.375rem; }
11 years ago
}
//
// Intro
//
._mobile-intro {
> ._intro-list { padding-left: 1.5rem; }
8 years ago
._intro-hide {
11 years ago
position: static;
float: none;
display: block;
10 years ago
margin-top: .75rem;
11 years ago
text-align: center;
}
}