More actions
Technofied (talk | contribs) No edit summary |
Technofied (talk | contribs) Attempt to add left width border? |
||
Line 14: | Line 14: | ||
padding: 16px; | padding: 16px; | ||
margin: 1.5em 0; | margin: 1.5em 0; | ||
/* border: 1px solid #ddd; */ | |||
border-left-width: 5px; | |||
border: solid var(--admonition-color); | |||
background-color: var(--admonition-bg, #e6ffed); /* Fallback to green */ | background-color: var(--admonition-bg, #e6ffed); /* Fallback to green */ | ||
} | } | ||
Line 54: | Line 56: | ||
.admonition-note { | .admonition-note { | ||
--admonition-bg: #f0f8ff; | --admonition-bg: #f0f8ff; | ||
--admonition-color: #a2c2e0; | |||
} | } | ||
.admonition-tip { | .admonition-tip { | ||
--admonition-bg: #e6ffed; | --admonition-bg: #e6ffed; | ||
--admonition-color: #8acc90; | |||
} | } | ||
.admonition-info { | .admonition-info { | ||
--admonition-bg: #e7f5ff; | --admonition-bg: #e7f5ff; | ||
--admonition-color: #a3c2f0; | |||
} | } | ||
.admonition-warning { | .admonition-warning { | ||
--admonition-bg: #fff8e1; | --admonition-bg: #fff8e1; | ||
--admonition-color: #eac261; | |||
} | } | ||
.admonition-danger { | .admonition-danger { | ||
--admonition-bg: #ffe5e5; | --admonition-bg: #ffe5e5; | ||
--admonition-color: #e09191; | |||
} | } |
Revision as of 07:40, 12 August 2024
/* CSS placed here will be applied to all skins */
/* To make images responsive */
img {
max-width:100%;
height:auto;
}
/* Base Admonition Styling */
.admonition {
display: flex;
align-items: flex-start;
border-radius: 4px;
padding: 16px;
margin: 1.5em 0;
/* border: 1px solid #ddd; */
border-left-width: 5px;
border: solid var(--admonition-color);
background-color: var(--admonition-bg, #e6ffed); /* Fallback to green */
}
.admonition-icon pre,
.admonition-icon code,
.admonition-icon .mw-code {
background-color: transparent !important;
border: none !important;
color: inherit !important;
padding: 0 !important;
margin: 0 !important;
font-family: inherit !important;
font-size: inherit !important;
display: inline !important;
}
.admonition-content {
flex: 1;
}
/* Reset Styling for Code Blocks within Admonitions */
.admonition-title code, .admonition-title pre,
.admonition-text code, .admonition-text pre,
.admonition-title .mw-code, .admonition-text .mw-code {
background-color: transparent !important;
border: none !important;
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
padding: 0 !important;
margin: 0 !important;
display: inline !important;
}
/* Specific Admonition Types */
.admonition-note {
--admonition-bg: #f0f8ff;
--admonition-color: #a2c2e0;
}
.admonition-tip {
--admonition-bg: #e6ffed;
--admonition-color: #8acc90;
}
.admonition-info {
--admonition-bg: #e7f5ff;
--admonition-color: #a3c2f0;
}
.admonition-warning {
--admonition-bg: #fff8e1;
--admonition-color: #eac261;
}
.admonition-danger {
--admonition-bg: #ffe5e5;
--admonition-color: #e09191;
}