/** * 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. */ .cssCarousel { position: relative; } .cssCarouselSlider { display: flex; overflow-x: scroll; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; } .cssCarouselItem { width: 100%; height: 100%; flex-shrink: 0; scroll-snap-align: start; } .cssCarouselContent { width: 100%; height: 100%; position: relative; } .navButton { position: absolute; top: 50%; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; font-weight: bold; color: #fff; background-color: rgb(0 0 0 / 30%); font-size: 1rem; display: flex; align-items: center; justify-content: center; transform: translateY(-50%); transition: all var(--ifm-transition-fast) var(--ifm-transition-timing-default); } .navButton:hover { background-color: rgb(0 0 0 / 45%); } .navButton.navButtonNext { right: 0.1rem; } .navButton.navButtonPrev { left: 0.1rem; } .siteSlide { position: relative; } .siteLink { position: absolute; bottom: 2px; right: 2px; padding: 0 12px; background-color: rgb(0 0 0 / 30%); border-radius: 6px; font-size: 16px; --ifm-link-color: var(--ifm-color-gray-400); transition: all var(--ifm-transition-fast) var(--ifm-transition-timing-default); } .siteLink:hover { background-color: rgb(0 0 0 / 45%); --ifm-link-color: var(--ifm-color-gray-200); --ifm-link-hover-color: var(--ifm-color-gray-200); --ifm-link-hover-decoration: none; } @media only screen and (max-width: 768px) { .siteLink { font-size: 12px; padding: 0 8px; } }