/** * 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. */ .toggle { width: 2rem; height: 2rem; } .toggleButton { -webkit-tap-highlight-color: transparent; align-items: center; display: flex; justify-content: center; width: 100%; height: 100%; border-radius: 50%; transition: background var(--ifm-transition-fast); } .toggleButton:hover { background: var(--ifm-color-emphasis-200); } [data-theme='light'] .darkToggleIcon, [data-theme='dark'] .lightToggleIcon { display: none; } .toggleButtonDisabled { cursor: not-allowed; }