MediaWiki:Gadget-MyWiki.css

From Support Wiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
.mywiki-link[data-generic] {
  text-decoration: underline wavy 1px rgba(var(--wiki-accent-color--rgb), 0.3);
}

.mw-parser-output .mywiki-link a.external::after {
  display: none;
}

.mywiki__config-button {
  appearance: none;
  height: 1em;
  width: 1em;
  border: 0;
  vertical-align: middle;
  background-color: var(--wiki-accent-color);
  mask-image: url("data:image/svg+xml,%3Csvg width='18' height='18' xml:space='preserve' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 16H2V2h5V0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5h-2zM13.459.835l1.525 1.505-2.656 2.62.658.65 2.656-2.621 1.525 1.504V.835Z'/%3E%3Cg transform='matrix(.65885 0 0 .65885 9 9)'%3E%3Cpath id='a' d='M1.5-10h-3l-1 6.5h5m0 7h-5l1 6.5h3'/%3E%3Cuse xlink:href='%23a' transform='rotate(45)'/%3E%3Cuse xlink:href='%23a' transform='rotate(90)'/%3E%3Cuse xlink:href='%23a' transform='rotate(135)'/%3E%3C/g%3E%3Cpath d='M9 4.059a4.941 4.941 0 0 0 0 9.882A4.941 4.941 0 0 0 9 4.06v2.635a2.306 2.306 0 0 1 0 4.612 2.306 2.306 0 0 1 0-4.612'/%3E%3C/svg%3E%0A");
  mask-size: contain;
  margin-left: 3px;
  opacity: 0.7;
}

.mywiki__config-button:hover {
  opacity: 1;
}

.mywiki__popup-root {
  position: fixed;
  inset: 0;
  background: #0002;
  backdrop-filter: grayscale(20%);
}

.mywiki__popup-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.mywiki__popup {
  box-sizing: border-box;
  width: 30rem;
  max-width: 90vw;
  font-size: 105%;
  line-height: 1.7;
  border: 2px solid var(--wiki-content-border-color);
  border-radius: 0.2rem;
  padding: 0.8rem 1em;
  background: var(--wiki-content-background-color--secondary);
  color: var(--wiki-content-text-color);
  box-shadow: -0.1rem -0.1rem 1.3rem 1px #0003;
  transform: translateX(-50%) translateY(1.2rem);
}

.mywiki__popup h3 {
  color: var(--wiki-accent-color);
  margin: 0 0 0.5rem;
  padding: 0;
  line-height: 1.2;
}

.mywiki__popup__buttons {
  margin-top: 1.4em;
  display: flex;
  justify-content: flex-end;
  gap: 0.2rem;
}

.mywiki__popup-field {
  line-height: 1.4;
  margin-bottom: 0.6em;
}

.mywiki__popup-field--checkbox {
  display: flex;
  font-size: 95%;
}

.mywiki__popup label {
  vertical-align: middle;
}

.mywiki__popup select,
.mywiki__popup input[type="checkbox"],
.mywiki__popup input[type="text"],
.mywiki__popup button {
  border-radius: 0.2rem;
  padding: 0.2em 0.5em;
  font-size: 92%;
  box-sizing: border-box;
}

.mywiki__popup select,
.mywiki__popup input[type="text"] {
  display: block;
  margin: 0.4em 0 0.8em;
  width: 100%;
}

.mywiki__popup input[type="checkbox"] {
  margin: 0.4em 0.6em 0 0;
  transform: scale(1.5);
  height: 1.3em;
}

.mywiki__popup button {
  color: var(--wiki-content-text-color);
  border: 1px solid var(--wiki-content-border-color);
  background: transparent;
  font-size: 0.95em;
}

.mywiki__popup button.mywiki__button--primary {
  background: var(--wiki-accent-color);
  color: var(--wiki-accent-label-color);
}

.mywiki__button--primary:disabled {
  filter: grayscale(80%);
}

.mywiki__popup__loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0004;
}

.mywiki__popup__loading::after {
    display: block;
    width: 3em;
    height: 3em;
    box-sizing: border-box;
    border: 4px solid #fff;
    border-radius: 50%;
    border-bottom-color: transparent;
    animation: loading-spinner 1s linear infinite;
    content: '';
}

@keyframes loading-spinner {
    0% {
        transform: rotate( 0deg );
    }

    100% {
        transform: rotate( 360deg );
    }
}