Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
124
themes/docdock/static/scss/original/responsive.scss
Normal file
124
themes/docdock/static/scss/original/responsive.scss
Normal file
@@ -0,0 +1,124 @@
|
||||
// main: theme.scss
|
||||
|
||||
@media only all and (min-width: 48em) and (max-width: 59.938em) {
|
||||
body #chapter h1 {
|
||||
font-size: 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media only all and (max-width: 47.938em) {
|
||||
body #chapter h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media only all and (max-width: 47.938em) {
|
||||
#sidebar-toggle-span {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media only all and (max-width: 59.938em) {
|
||||
#body .padding {
|
||||
position: static;
|
||||
padding: 15px 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media only all and (max-width: 47.938em) {
|
||||
#body .padding {
|
||||
padding: 5px 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media only all and (max-width: 59.938em) {
|
||||
#body #navigation {
|
||||
position: static;
|
||||
margin-right: 0 !important;
|
||||
width: 100%;
|
||||
display: table;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media only all and (max-width: 59.938em) {
|
||||
#body .nav {
|
||||
display: table-cell;
|
||||
position: static;
|
||||
top: auto;
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
height: 100px;
|
||||
line-height: 100px;
|
||||
padding-top: 0;
|
||||
}
|
||||
#body .nav > i {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media only all and (max-width: 47.938em) {
|
||||
.two-column-bullet {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
@media only all and (max-width: 47.938em) {
|
||||
.three-column-bullet {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
@media only all and (max-width: 47.938em) {
|
||||
.four-column-bullet {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@media only all and (max-width: 59.938em) {
|
||||
#sidebar {
|
||||
width: 230px;
|
||||
}
|
||||
#body {
|
||||
margin-left: 230px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only all and (max-width: 47.938em) {
|
||||
#sidebar {
|
||||
width: 230px;
|
||||
left: -230px;
|
||||
}
|
||||
#body {
|
||||
margin-left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.sidebar-hidden {
|
||||
overflow: hidden;
|
||||
}
|
||||
.sidebar-hidden #sidebar {
|
||||
left: 0;
|
||||
}
|
||||
.sidebar-hidden #body {
|
||||
margin-left: 230px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.sidebar-hidden #overlay {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 10;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user