Docker-Docs/_scss/_mobile.scss

278 lines
4.7 KiB
SCSS

/*
* for rescaling **************************************************************
*/
@media only screen
and (min-width : 376px)
and (max-width : 1150px) {
.nav-primary,
ul.primary.nav.navbar-nav {
display: none;
}
.header {
height: 55px;
}
.tabs li a {
font-size: 13px;
}
h1,
h2,
h3 {
margin-top: 10px;
margin-bottom: 0;
}
h1 {
font-size: 24px;
line-height: 28px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
.nav-secondary .search-form input[type=search] {
min-width: auto;
}
.nav-container,
.nav-secondary {
overflow: hidden;
}
.nav-sidebar ul li li a {
border-left: 0;
font-size: 12px;
margin-left: 0;
}
}
@media only screen
and (min-width : 376px)
and (max-width : 900px) {
.sidebar {
position: fixed;
width: 100%;
z-index: 100;
background-color: $bg-sidebar;
}
}
/*
* small displays mobile **********************************************************
*/
/* Portrait and Landscape */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 670px) {
.logo,
.ctrl-right {
display: none;///// CHECK THIS /////
}
.nav-container {
overflow: visible;
height: auto;
}
}
/* Portrait */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 667px)
and (orientation: portrait) {
h1,
h2,
h3 {
margin-top: 10px;
margin-bottom: 0;
}
h1 {
font-size: 24px;
line-height: 28px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
.header {
height: 100px;
}
.tabs {
float: left;
margin: 0;
padding: 5px 0 0 17px;
}
.tabs li a {
color: #fff;
padding: 17px 6px 10px 4px;
float: left;
opacity: 0.7;
font-size: 12px;
}
.content {
padding: 65px 25px;
}
.sidebar {
background-color: $bg-sidebar;
top: 51px;
left: 0;
display: block;
padding: 0;
overflow-x: hidden;
overflow-y: auto;
position: fixed;
width: 100%;
}
.search-form {
display: block!important;
}
.top_footer {
padding: 50px 0 35px;
text-align: center;
}
}
@media only screen
and (min-device-width: 320px)
and (max-device-width: 372px)
and (orientation: portrait) {
.tabs {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
justify-content: space-between;
width: 100%;
padding: 5px 0 0 0;
}
.tabs li a {
margin-left: 0;
font-weight: normal;
}
}
/* Landscape */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 667px)
and (orientation: landscape) {
h1,
h2,
h3 {
margin-top: 10px;
margin-bottom: 0;
}
h1 {
font-size: 24px;
line-height: 28px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
.header {
height: 100px;
}
.content {
padding: 120px 20px;
}
.sidebar {
background-color: $bg-sidebar;
top: 51px;
left: 0;
display: block;
padding: 0;
overflow-x: hidden;
overflow-y: auto;
position: fixed;
width: 100%;
}
}
/*
* medium displays mobile *****************************************************
*/
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1110px) {
.logo {
margin: 12px 10px 0 10px;
width: 130px;
}
h1,
h2,
h3 {
margin-top: 10px;
margin-bottom: 0;
}
h1 {
font-size: 24px;
line-height: 28px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
.toc-nav a {
font-size: 11px;
}
.sidebar {
background-color: $bg-sidebar;
}
}
/* Landscape */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: landscape) {
.search-form {
float: left;
}
.ctrl-right {
display: block;
}
.sidebar, .sidebar.affix {
width: 270px;
}
}
.navbar-toggle {
display: block;
}
@media (min-width: 992px) {
.navbar-toggle {
display: none;
}
.nav-sidebar.collapse {
display: block;
}
}