mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 11:22:30 +02:00
refactor: standardize using media queries (#5630)
* refactor: standardize using media queries * Better reusing
This commit is contained in:
parent
afff053cc9
commit
a96878048d
6 changed files with 6 additions and 6 deletions
|
@ -51,7 +51,7 @@ html[data-announcement-bar-initially-dismissed='true'] .announcementBar {
|
|||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1024px) {
|
||||
@media (min-width: 997px) {
|
||||
:root {
|
||||
--docusaurus-announcement-bar-height: 30px;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
color: var(--ifm-color-primary) !important;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 996px) {
|
||||
@media (max-width: 996px) {
|
||||
.sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
margin-top: 0;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 997px) {
|
||||
@media (min-width: 997px) {
|
||||
.docItemCol {
|
||||
max-width: 75% !important;
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
font-size: smaller;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 997px) {
|
||||
@media (min-width: 997px) {
|
||||
.lastUpdated {
|
||||
text-align: right;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
/*
|
||||
Hide toggle in small viewports
|
||||
*/
|
||||
@media screen and (max-width: 997px) {
|
||||
@media (max-width: 996px) {
|
||||
.toggle {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
top: calc(var(--ifm-navbar-height) + 1rem);
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 996px) {
|
||||
@media (max-width: 996px) {
|
||||
.tableOfContents {
|
||||
display: none;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue