MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* Colors from custom Blockheads skin */
:root {
--bh-sky: #4c91c5;
--bh-sky-mid: #3976A2;
--bh-sky-dark: #326d9b;
--bh-grass: #79a957;
--bh-dirt: #a87b50;
--bh-wood: #c7a477;
--bh-wood-dark: #8b6846;
--bh-paper: #f7f3eb;
--bh-paper-dark: #ebe3d5;
--bh-ink: #3b332b;
--bh-muted: #776f65;
--bh-border: #cdbda5;
}


div.editsection
div.editsection
Line 87: Line 103:


.craft-recipe {
.craft-recipe {
   width: 100% !important;
   background: var(--surface-2);
   border-collapse: collapse !important;
  border: 0.5px solid var(--border);
   margin: 1.5em 0 !important;
   border-radius: 8px;
   background-color: #ffffff !important;
  padding: 1.25rem;
   border: 1px solid #d0d0d0 !important;
   margin: 1.5rem 0;
   border-radius: 6px !important;
}
   overflow: hidden;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
.craft-header {
   font-size: 13px;
  color: var(--text-secondary);
   margin-bottom: 1.25rem;
   font-weight: 500;
   display: flex;
   align-items: center;
  gap: 0.5rem;
}
}
   
   
.craft-recipe tr {
.craft-bench-icon {
   border: none !important;
   display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
}
   
   
.craft-recipe td {
.craft-bench-icon img {
   padding: 1.25em 1.5em !important;
   max-width: 100%;
  border: none !important;
   height: auto;
  vertical-align: middle;
   background-color: #ffffff;
}
}
   
   
.craft-bench {
.craft-row {
   font-weight: 600;
   display: flex;
   color: #0066cc;
   align-items: center;
   min-width: 140px;
   gap: 0.75rem;
   white-space: nowrap;
   flex-wrap: wrap;
   text-align: center;
   justify-content: center;
  border-right: 1px solid #e8e8e8 !important;
}
}
   
   
.craft-inputs {
.craft-item {
   text-align: left;
   text-align: center;
   padding-left: 2em !important;
   min-width: 60px;
  flex: 1;
  border-right: 1px solid #e8e8e8 !important;
}
}
   
   
.craft-inputs a {
.craft-icon {
   color: #0066cc;
   width: 36px;
   text-decoration: none;
   height: 36px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-1);
  border: 0.5px solid var(--border);
  border-radius: 4px;
}
}
   
   
.craft-inputs a:hover {
.craft-icon img {
   text-decoration: underline;
   max-width: 100%;
  height: auto;
}
}
   
   
.craft-arrow {
.craft-qty {
   font-size: 1.5em;
   font-size: 12px;
   font-weight: bold;
   font-weight: 500;
   color: #666;
   color: var(--text-primary);
  text-align: center;
   margin-bottom: 0.25rem;
  padding: 1.25em 1em !important;
  border-right: 1px solid #e8e8e8 !important;
  border-left: 1px solid #e8e8e8 !important;
  width: 40px;
   user-select: none;
}
}
   
   
.craft-output {
.craft-name {
   font-weight: 600;
   font-size: 12px;
   color: #0d7c2f;
   color: var(--text-primary);
  text-align: center;
   word-break: break-word;
   border-right: 1px solid #e8e8e8 !important;
  min-width: 140px;
}
}
   
   
.craft-output a {
.craft-name a {
   color: #0d7c2f;
   color: var(--text-accent);
   text-decoration: none;
   text-decoration: none;
}
}
   
   
.craft-output a:hover {
.craft-name a:hover {
   text-decoration: underline;
   text-decoration: underline;
}
}
   
   
.craft-cost {
.craft-plus {
  text-align: center;
   font-size: 16px;
   font-size: 0.9em;
   color: var(--text-secondary);
   color: #666;
   font-weight: 300;
  min-width: 120px;
  border-left: 1px solid #e8e8e8 !important;
   line-height: 1.5;
}
}
   
   
.craft-cost img {
.craft-equals {
   vertical-align: middle;
   font-size: 16px;
  margin: 0 0.25em;
   color: var(--text-secondary);
}
   font-weight: 300;
   margin: 0 0.5rem;
.craft-recipe:hover {
  background-color: #fafafa;
}
 
.craft-recipe {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 1.5em 0 !important;
   background-color: #ffffff !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 6px !important;
  overflow: hidden;
}
 
.craft-recipe th,
.craft-recipe td {
  border: 1px solid #d0d0d0 !important;
  padding: 0.75em !important;
  text-align: center;
  vertical-align: middle;
}
 
.craft-recipe th {
  background-color: #f5f5f5;
   font-weight: 600;
   color: #333;
}
 
.craft-recipe tr:hover {
  background-color: #f9f9f9;
}
}