Skip to content

Commit

Permalink
fixed css issues on smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
nomadjimbob committed May 18, 2023
1 parent 47928b3 commit f8860b0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ If the plugin is installed, the **Template Styles Settings** page will be expand

- Fixed notifications appearing in weird places at times.
- Setting `tpl»mikio»showNotifications` to an empty string is the same as setting it to `always`.
- Fixed languages not shown in dropdown correctly with the translate plugin when `plugin»translation»dropdown` is turned on.
- Fixed some css issues on small screens.

- **_2022-05-18_**

Expand Down
12 changes: 11 additions & 1 deletion assets/mikio.css
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ body {
font-size: 80%;
color: var(--breadcrumb-text-color);
}
.mikio .mikio-breadcrumbs .mikio-container,
.mikio .mikio-youarehere .mikio-container {
flex-direction: row;
}
.mikio .mikio-breadcrumbs span.curid a,
.mikio .mikio-breadcrumbs span.curid a:visited,
.mikio .mikio-breadcrumbs span.curid a:active,
Expand Down Expand Up @@ -1199,6 +1203,7 @@ body {
font-size: 80%;
position: relative;
height: 1rem;
white-space: nowrap;
}
.mikio .mikio-toc h3.toggle .hamburger {
width: 1rem;
Expand All @@ -1210,6 +1215,7 @@ body {
bottom: 0;
right: 0;
margin: auto 0;
background-color: var(--toc-background-color);
}
.mikio .mikio-toc h3.toggle.open .hamburger {
display: none;
Expand Down Expand Up @@ -3536,6 +3542,7 @@ pre {
}
.mikio-navbar .mikio-nav {
width: 100%;
flex-direction: column;
}
.mikio-navbar .mikio-nav-dropdown {
width: 100%;
Expand Down Expand Up @@ -3590,6 +3597,9 @@ pre {
.mikio .mikio-content .mikio-article .mikio-toc #dw__toc {
max-width: none;
}
.mikio .mikio-content .mikio-article .mikio-toc #dw__toc .mikio-iicon.hamburger {
display: none;
}
.mikio .mikio-content .mikio-article .mikio-toc h3.toggle {
background-position: 99% 50%;
text-align: center;
Expand Down Expand Up @@ -3922,4 +3932,4 @@ pre {
border-right: 2px solid var(--dropdown-color);
border-bottom: 2px solid var(--dropdown-color);
transform: rotateZ(45deg);
}
}
13 changes: 12 additions & 1 deletion assets/mikio.less
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,10 @@ html, body {

.mikio {
.mikio-breadcrumbs, .mikio-youarehere {
.mikio-container {
flex-direction: row;
}

padding: .5rem 1rem;
background-color: var(--breadcrumb-background-color);
border: 1px solid var(--breadcrumb-background-color);
Expand Down Expand Up @@ -1265,6 +1269,7 @@ html, body {
font-size: @ini_toc_font_size;
position: relative;
height: 1rem;
white-space: nowrap;

.hamburger {
width: 1rem;
Expand All @@ -1277,6 +1282,8 @@ html, body {
bottom: 0;
right: 0;
margin: auto 0;
// border: 1px solid red;
background-color: var(--toc-background-color);
}

&.open {
Expand Down Expand Up @@ -2752,6 +2759,7 @@ code, pre {

.mikio-nav {
width: 100%;
flex-direction: column;
}

.mikio-nav-dropdown {
Expand Down Expand Up @@ -2825,6 +2833,9 @@ code, pre {

#dw__toc {
max-width: none;
.mikio-iicon.hamburger {
display: none;
}
}

h3.toggle {
Expand Down Expand Up @@ -3186,4 +3197,4 @@ code, pre {
}
}
}
}
}

0 comments on commit f8860b0

Please sign in to comment.