More actions
| Technofied (talk | contribs)  Add admonition css | Technofied (talk | contribs)  Remove old admonition code, fix up tip some more (?) | ||
| Line 1: | Line 1: | ||
| /* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
| /* To make images responsive */ | /* To make images responsive */ | ||
| Line 41: | Line 20: | ||
|    font-size: 24px; |    font-size: 24px; | ||
|    margin-right: 12px; |    margin-right: 12px; | ||
|   display: flex; | |||
|   align-items: center; | |||
|   justify-content: center; | |||
| } | } | ||
| Line 50: | Line 32: | ||
|    font-weight: bold; |    font-weight: bold; | ||
|    margin-bottom: 8px; |    margin-bottom: 8px; | ||
| } | |||
| .admonition-text { | |||
|   margin: 0; | |||
| } | } | ||
| Line 64: | Line 50: | ||
|    background-color: #e6ffed; |    background-color: #e6ffed; | ||
|    border-left: 4px solid #4caf50; |    border-left: 4px solid #4caf50; | ||
|   display: flex; | |||
|   align-items: center; | |||
| } | } | ||
Revision as of 06:38, 12 August 2024
/* CSS placed here will be applied to all skins */
/* To make images responsive */
img {
	max-width:100%;
	height:auto;
}
/* Base Admonition Styles */
.admonition {
  display: flex;
  align-items: flex-start;
  border-radius: 4px;
  padding: 16px;
  margin: 1.5em 0;
  border: 1px solid #ddd;
}
.admonition-icon {
  font-size: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admonition-content {
  flex: 1;
}
.admonition-title {
  font-weight: bold;
  margin-bottom: 8px;
}
.admonition-text {
  margin: 0;
}
/* Specific Admonition Types */
/* Note */
.admonition-note {
  background-color: #f0f6ff;
  border-left: 4px solid #2196f3;
}
/* Tip */
.admonition-tip {
  background-color: #e6ffed;
  border-left: 4px solid #4caf50;
  display: flex;
  align-items: center;
}
/* Caution */
.admonition-caution {
  background-color: #fff4e5;
  border-left: 4px solid #ff9800;
}
/* Warning */
.admonition-warning {
  background-color: #ffe6e6;
  border-left: 4px solid #f44336;
}