User:Kai/common.css: Difference between revisions

Undo revision 103869 by Kai (talk)
Tag: Undo
Replaced content with "#ca-watch { display: none; }"
Tag: Replaced
Line 2: Line 2:
display: none;
display: none;
}
}
/**************************************************************************************/
.item-nav-search-container {
    position: absolute;
    right: 3px;
    transform: translateY(-95%);
    z-index: 10;
    display: flex;
}
.item-nav-search-input {
    width: 150px;
    max-width: 25vw;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color-base); /* Solid border using wiki theme */
    background-color: var(--background-color-base); /* Solid dark brown instead of transparent black */
    color: var(--color-base);
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    transition: all 0.1s ease-in-out;
}
.item-nav-search-input::placeholder {
    color: var(--color-subtle);
    font-style: italic;
}
.item-nav-search-input:focus {
    outline: none;
    width: 170px;
}
/* Wrapper for items in the navbox search */
.item-nav-search-wrapper {
    display: inline;
    transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
}
/* Class applied by JS to gray out non-matching items */
.item-nav-search-wrapper.item-nav-dimmed {
    opacity: 0.3; /* Slightly more visible so users can still read/click them */
    filter: grayscale(100%);
}
/* --- START APPENDED FROM User:LVL/common.css --- */
/* Tier List Creator Gadget Styles */
.tier-list-creator-wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  color: var(--color-base, #e2e8f0);
  font-family: inherit;
}
.tlc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}h
.tlc-header a {
  text-decoration: none !important;
  color: inherit !important;
}
.tlc-btn {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  border: none !important;
  cursor: pointer;
  user-select: none;
  display: inline-block;
  transition: filter 0.2s ease;
}
.tlc-btn:active {
  transform: none !important;
}
.tlc-btn-secondary {
  background: var(--background-color-interactive, #2d3748);
  color: var(--color-base, #fff);
  border: none !important;
}
.tlc-btn-secondary:hover {
  filter: brightness(1.2);
}
.tlc-board {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.tlc-tier-row {
  display: flex;
  min-height: 55px;
  border-radius: 6px;
  overflow: hidden;
  border: none !important;
}
/* Opaque Tier Row Backgrounds */
.tlc-tier-row[data-tier="S"] { background: rgba(255, 127, 127, 0.18); }
.tlc-tier-row[data-tier="A"] { background: rgba(255, 191, 127, 0.18); }
.tlc-tier-row[data-tier="B"] { background: rgba(255, 255, 127, 0.18); }
.tlc-tier-row[data-tier="C"] { background: rgba(127, 255, 127, 0.18); }
.tlc-tier-row[data-tier="D"] { background: rgba(127, 191, 255, 0.18); }
.tlc-tier-row[data-tier="F"] { background: rgba(255, 127, 255, 0.18); }
.tlc-tier-label {
  width: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #111;
  user-select: none;
}
/* Tier Rank Badge Colors */
.tier-s { background: #ff7f7f; color: #1a202c; }
.tier-a { background: #ffbf7f; color: #1a202c; }
.tier-b { background: #ffff7f; color: #1a202c; }
.tier-c { background: #7fff7f; color: #1a202c; }
.tier-d { background: #7fbfff; color: #1a202c; }
.tier-f { background: #ff7fff; color: #1a202c; }
.tlc-tier-dropzone {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2px !important;
  padding: 4px;
  min-height: 55px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.tlc-tier-dropzone.drag-over {
  background-color: rgba(99, 179, 237, 0.25) !important;
  outline: 2px dashed var(--color-progressbar-primary, #63b3ed);
  outline-offset: -2px;
}
.tlc-pool-container {
  background: transparent;
  padding: 0;
  margin-top: 8px;
}
.tlc-pool-header h3 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: var(--color-base, #cbd5e0);
}
.tlc-card-pool {
  display: flex !important;
  flex-wrap: wrap !important;
  align-content: flex-start !important;
  gap: 2px !important;
  min-height: 90px;
  background: transparent;
  border-radius: 6px;
  border: none !important;
}
.item-link-wrapper, .itembox, .HeroCard, .hero-card-container, .hero-roster-card, .tlc-card {
  cursor: pointer !important;
  user-select: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  display: inline-block;
  position: relative;
}
.item-link-wrapper a, .itembox a, .itembox .item-link-wrapper, .HeroCard a, .HeroCard .hero-link-wrapper, .hero-card-container a, .hero-roster-card a {
  pointer-events: none !important;
  cursor: pointer !important;
}
.item-link-wrapper:active, .itembox:active, .HeroCard:active, .hero-card-container:active, .hero-roster-card:active, .tlc-card:active {
  cursor: grabbing !important;
}
.tlc-card-dragging {
  opacity: 0.4 !important;
  transform: scale(0.95);
}
/* Subtle selection scale only, no outline, border, or glow */
.tlc-card-selected {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  transform: scale(1.04) !important;
  z-index: 10;
}
/* Header layout for multiple buttons */
.tlc-header-left {
  display: flex;
  gap: 8px;
}
/* Make the label slightly wider and prevent text spilling out */
.tlc-tier-label {
  width: 60px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #111;
  user-select: none;
  position: relative;
  overflow: hidden; /* Prevents long text from spilling outside the box */
}
/* Style the contenteditable text to wrap nicely */
.tlc-tier-text {
  cursor: text;
  outline: none;
  padding: 5px 4px;
  width: 100%;
  max-width: 100%;
  display: block; /* Changed from flex to block so text wraps properly */
  text-align: center;
  word-break: break-word; /* Forces long words to wrap to the next line */
  overflow-wrap: break-word;
  line-height: 1.1; /* Keeps multi-line text compact */
  font-size: 16px; /* Slightly smaller font so it fits better when typing */
  border-radius: 3px;
  transition: background-color 0.2s;
  user-select: text !important;
  -webkit-user-select: text !important;
}
.tlc-tier-text:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.tlc-tier-text:focus {
  background-color: rgba(255, 255, 255, 0.3);
}
/* Remove button on tier rows */
.tlc-tier-remove {
  position: absolute;
  top: 2px;
  right: 4px;
  cursor: pointer !important;
  font-size: 14px;
  font-weight: bold;
  color: rgba(26, 32, 44, 0.6);
  opacity: 0.35; /* Always visible but subtle for mobile users */
  padding: 4px 6px; /* Larger touch target for fingers */
  line-height: 1;
  z-index: 10;
  transition: opacity 0.2s ease;
}
/* Fully visible on hover (desktop) or active (mobile tap) */
.tlc-tier-row:hover .tlc-tier-remove,
.tlc-tier-remove:hover {
  opacity: 1;
}
.tlc-tier-remove:hover {
  color: #1a202c;
}
/* --- END APPENDED FROM User:LVL/common.css --- */