mirror of
https://github.com/revanced/revanced-website.git
synced 2025-05-13 20:37:05 +02:00
fix: remove css nesting
This commit is contained in:
parent
fbfdad192c
commit
ac322acba8
@ -30,7 +30,7 @@
|
|||||||
--ifm-color-emphasis-200: hsl(221, 17%, 26%) !important;
|
--ifm-color-emphasis-200: hsl(221, 17%, 26%) !important;
|
||||||
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
||||||
--ifm-hr-background-color: var(--grey-three);
|
--ifm-hr-background-color: var(--grey-three);
|
||||||
--ifm-menu-color-background-hover: var(--grey-six);
|
--ifm-menu-color-background-hover: var(--grey-one);
|
||||||
--ifm-breadcrumb-item-background-active: var(--grey-six);
|
--ifm-breadcrumb-item-background-active: var(--grey-six);
|
||||||
--ifm-code-background: var(--grey-six) !important;
|
--ifm-code-background: var(--grey-six) !important;
|
||||||
--ifm-pre-background: var(--grey-six) !important;
|
--ifm-pre-background: var(--grey-six) !important;
|
||||||
@ -43,12 +43,11 @@
|
|||||||
|
|
||||||
.card {
|
.card {
|
||||||
border-radius: 1.5rem;
|
border-radius: 1.5rem;
|
||||||
&:hover {
|
}
|
||||||
|
.card:hover {
|
||||||
border-color: hsl(221, 17%, 26%) !important;
|
border-color: hsl(221, 17%, 26%) !important;
|
||||||
background-color: hsl(230, 9%, 13%);
|
background-color: hsl(230, 9%, 13%);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.dropdown__menu {
|
.dropdown__menu {
|
||||||
padding: 0.5rem 0 !important;
|
padding: 0.5rem 0 !important;
|
||||||
@ -68,8 +67,7 @@
|
|||||||
background-color: var(--grey-eleven);
|
background-color: var(--grey-eleven);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 996px) {
|
||||||
@media screen and (min-width: 768px) {
|
|
||||||
.container {
|
.container {
|
||||||
padding: 2.5rem;
|
padding: 2.5rem;
|
||||||
}
|
}
|
||||||
@ -89,8 +87,11 @@
|
|||||||
gap: 0.6rem;
|
gap: 0.6rem;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
letter-spacing: -0.02em;
|
letter-spacing: -0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 996px) {
|
||||||
|
.menu__link,
|
||||||
|
.menu__caret {
|
||||||
padding: 0.75rem 1.25rem;
|
padding: 0.75rem 1.25rem;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@ -128,12 +129,12 @@
|
|||||||
background-color: #2a3645;
|
background-color: #2a3645;
|
||||||
color: #9ed5ff;
|
color: #9ed5ff;
|
||||||
padding: 10px 16px;
|
padding: 10px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
.navbar__item.dropdown .navbar__link:hover {
|
||||||
background-color: #2a3645;
|
background-color: #2a3645;
|
||||||
color: #9ed5ff;
|
color: #9ed5ff;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.navbar__link {
|
.navbar__link {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -143,23 +144,23 @@
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
padding: 10px 16px;
|
padding: 10px 16px;
|
||||||
transition: 0.3s background-color var(--bezier-one);
|
transition: 0.3s background-color var(--bezier-one);
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
.navbar__link:hover {
|
||||||
border-color: hsl(221, 17%, 26%) !important;
|
border-color: hsl(221, 17%, 26%) !important;
|
||||||
background-color: #252b31;
|
background-color: #252b31;
|
||||||
color: #acc1d2;
|
color: #acc1d2;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.navbar__link--active {
|
.navbar__link--active {
|
||||||
background-color: #2a3645;
|
background-color: #2a3645;
|
||||||
color: #9ed5ff;
|
color: #9ed5ff;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
.navbar__link--active:hover {
|
||||||
background-color: #2a3645;
|
background-color: #2a3645;
|
||||||
color: #9ed5ff;
|
color: #9ed5ff;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* mobile nav menu */
|
/* mobile nav menu */
|
||||||
@media screen and (max-width: 996px) {
|
@media screen and (max-width: 996px) {
|
||||||
@ -171,10 +172,14 @@
|
|||||||
border-radius: 0 24px 24px 0;
|
border-radius: 0 24px 24px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu__list-item {
|
.menu__list-item:not(:first) {
|
||||||
margin-top: 0.5rem !important;
|
margin-top: 0.5rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu__link {
|
||||||
|
transition: 0.3s background-color var(--bezier-one) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.menu__list-item-collapsible:hover {
|
.menu__list-item-collapsible:hover {
|
||||||
background-color: var(--grey-one);
|
background-color: var(--grey-one);
|
||||||
}
|
}
|
||||||
@ -187,6 +192,10 @@
|
|||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-sidebar__brand {
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar--fixed-top {
|
.navbar--fixed-top {
|
||||||
padding: 0 2rem;
|
padding: 0 2rem;
|
||||||
}
|
}
|
||||||
@ -197,6 +206,16 @@
|
|||||||
background: var(--ifm-menu-link-sublist-icon) 50% 50% / 1.5rem 1.5rem no-repeat;
|
background: var(--ifm-menu-link-sublist-icon) 50% 50% / 1.5rem 1.5rem no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.theme-doc-sidebar-menu.menu__list {
|
||||||
|
margin-top: 0rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-sidebar__back {
|
||||||
|
color: var(--grey-eight) !important;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* custom hamburger menu */
|
/* custom hamburger menu */
|
||||||
.navbar-sidebar .navbar__logo {
|
.navbar-sidebar .navbar__logo {
|
||||||
@ -237,7 +256,9 @@
|
|||||||
width: 24px;
|
width: 24px;
|
||||||
height: 2px;
|
height: 2px;
|
||||||
background: var(--grey-five);
|
background: var(--grey-five);
|
||||||
transition: transform 0.3s var(--bezier-one), background-color 0.3s var(--bezier-one);
|
transition:
|
||||||
|
transform 0.3s var(--bezier-one),
|
||||||
|
background-color 0.3s var(--bezier-one);
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar__toggle::before,
|
.navbar__toggle::before,
|
||||||
@ -274,11 +295,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-sidebar__back {
|
|
||||||
color: var(--grey-eight) !important;
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 0.9rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* scroll to top fab */
|
/* scroll to top fab */
|
||||||
[class*="backToTopButton"] {
|
[class*="backToTopButton"] {
|
||||||
@ -346,7 +362,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 996px) {
|
||||||
.pagination-nav {
|
.pagination-nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -419,7 +435,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 996px) {
|
||||||
.table-of-contents__link {
|
.table-of-contents__link {
|
||||||
padding: 0.5rem 0 !important;
|
padding: 0.5rem 0 !important;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user