/**
 * 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);
}

.toggleIcon {
  display: none;
}

[data-theme-choice='system'] .systemToggleIcon,
[data-theme-choice='light'] .lightToggleIcon,
[data-theme-choice='dark'] .darkToggleIcon {
  display: initial;
}

.toggleButtonDisabled {
  cursor: not-allowed;
}
