mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-12 20:04:57 +02:00
50 lines
1.0 KiB
Plaintext
50 lines
1.0 KiB
Plaintext
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
:root {
|
|
--ifm-pills-color-active: var(--ifm-color-primary);
|
|
--ifm-pills-color-background-active: var(--ifm-hover-overlay);
|
|
--ifm-pills-spacing: 0.125rem;
|
|
}
|
|
|
|
.pills {
|
|
display: flex;
|
|
gap: var(--ifm-pills-spacing);
|
|
padding-left: 0;
|
|
|
|
&__item {
|
|
border-radius: 0.5rem;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
font-weight: var(--ifm-font-weight-bold);
|
|
padding: 0.25rem 1rem;
|
|
@mixin transition background;
|
|
|
|
&--active {
|
|
background: var(--ifm-pills-color-background-active);
|
|
color: var(--ifm-pills-color-active);
|
|
}
|
|
|
|
&:not(&--active):hover {
|
|
background: var(--ifm-pills-color-background-active);
|
|
}
|
|
}
|
|
|
|
&--block {
|
|
justify-content: stretch;
|
|
|
|
@media (--ifm-narrow-window) {
|
|
flex-direction: column;
|
|
}
|
|
|
|
^&__item {
|
|
flex-grow: 1;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|