MediaWiki:Common.css: Difference between revisions

From Ragnarok Plus Wiki
TerryTie (talk | contribs)
No edit summary
No edit summary
 
(26 intermediate revisions by one other user not shown)
Line 2: Line 2:


/* Table with dark green borders */
/* Table with dark green borders */
table.wikitable.ragnarok-table {
table.wikitable.ragnarok-table {
     border: 1px solid #0f172b !important;
     border: 1px solid #0f172b !important;
Line 30: Line 31:
}
}


/* General styles for all links */
/* Add Unicode icon 🔗 only for specific link roots */
a,
a.external[href*="ragnarok.plus/mob-db"]::after,
a:visited {
a.external[href*="ragnarok.plus/item-db"]::after {
    content: "🔗" !important;
     color: black !important;
     color: black !important;
     text-decoration: none !important;
     font-size: 80% !important;
}
    font-style: normal !important;  /* ensure icon is not italic */
 
    vertical-align: middle !important;
/* Underline on hover or active */
    user-select: none !important;
a:hover,
    display: inline-block !important;
a:active {
     margin-left: 0.20em;  /* spacing between text and icon */
     text-decoration: underline !important;
    position: relative !important;
    top: -0.20em;  /* slightly lift the icon above text */
}
}


/* External links — remove default MediaWiki icon */
/* Hide external link icons inside #no-icons */
a.external {
    background: none !important;      /* убираем фон/картинку */
    padding-right: 0 !important;      /* убираем отступ под иконку */
}


/* By default, no icon for external links */
#no-icons a.external::after {
a.external::after {
     content: none !important;
     content: none !important;
    display: inline-block !important; /* гарантируем правильное отображение */
}
/* Add Unicode icon 🔗 only for specific link roots */
a.external[href*="ragnarok.plus/mob-db"]::after,
a.external[href*="ragnarok.plus/item-db"]::after {
    content: " 🔗" !important;        /* icon appears only for these links */
    color: black !important;          /* force black color */
    font-size: 90% !important;
    vertical-align: middle !important;
    user-select: none !important;    /* icon won't be selected or copied */
    display: inline-block !important; /* force proper layout */
}
}


Line 70: Line 56:
/* Class for copyable text */
/* Class for copyable text */
.copyword {
.copyword {
     cursor: pointer;         /* show hand cursor */
     cursor: pointer;   /* show hand cursor */
     transition: all 0.2s;     /* smooth transition for hover effects */
     transition: all 0.2s;   /* smooth transition for hover effects */
}
}


/* Automatically add the copy symbol after the text */
/* Automatically add the copy symbol after the text */
.copyword::after {
.copyword::after {
     content: " ⧉";           /* the copy symbol */
     content: " ⧉";   /* the copy symbol */
     /* inherits all font properties and color from parent */
     /* inherits all font properties and color from parent */
}
}
Line 82: Line 68:
/* Dotted underline appears only on hover */
/* Dotted underline appears only on hover */
.copyword:hover {
.copyword:hover {
     border-bottom: 1px dashed currentColor; /* underline appears on hover, same color as text */
     border-bottom: 1px dashed currentColor;   /* underline appears on hover, same color as text */
}
}



Latest revision as of 21:39, 16 November 2025

/* CSS placed here will be applied to all skins */

/* Table with dark green borders */

table.wikitable.ragnarok-table {
    border: 1px solid #0f172b !important;
    border-collapse: collapse !important;
}

table.wikitable.ragnarok-table th {
    border: 1px solid #0f172b !important;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

table.wikitable.ragnarok-table td {
    border: 1px solid #0f172b !important;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

table.wikitable.ragnarok-table .left   { text-align: left; }
table.wikitable.ragnarok-table .right  { text-align: right; }
table.wikitable.ragnarok-table .center { text-align: center; }

.green-bold {
    color: #02783d;
    font-weight: bold;
}

/* Add Unicode icon 🔗 only for specific link roots */
a.external[href*="ragnarok.plus/mob-db"]::after,
a.external[href*="ragnarok.plus/item-db"]::after {
    content: "🔗" !important;
    color: black !important;
    font-size: 80% !important;
    font-style: normal !important;   /* ensure icon is not italic */
    vertical-align: middle !important;
    user-select: none !important;
    display: inline-block !important;
    margin-left: 0.20em;   /* spacing between text and icon */
    position: relative !important;
    top: -0.20em;   /* slightly lift the icon above text */
}

/* Hide external link icons inside #no-icons */

#no-icons a.external::after {
    content: none !important;
}

/* Copy text to buffer */

/* Class for copyable text */
.copyword {
    cursor: pointer;   /* show hand cursor */
    transition: all 0.2s;   /* smooth transition for hover effects */
}

/* Automatically add the copy symbol after the text */
.copyword::after {
    content: " ⧉";   /* the copy symbol */
    /* inherits all font properties and color from parent */
}

/* Dotted underline appears only on hover */
.copyword:hover {
    border-bottom: 1px dashed currentColor;   /* underline appears on hover, same color as text */
}

/* Dashed grey line */

hr.dashed {
  border: none;
  border-top: 2px dashed #a2a9b1;
  margin: 1em 0;
}

/* Dotted grey line */
hr.dotted {
  border: none;
  border-top: 2px dotted #a2a9b1;
  margin: 1em 0;
}