Template:Callout/styles.css: Difference between revisions

From Bose Portable PA Knowledge
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
.callout {
.callout {
   border-left: 3px solid #999;
   border-left: 3px solid #999;
   padding: 0.75em 1em;
   padding: 0.25em 0.25em;
   margin: 1em 0;
   margin: 0.25em 0; /* reduced whitespace */
  background: #fafafa; /* consistent background */
  border-radius: 4px;
}
}
.callout-icon{
 
  font-size:1.1em;
.callout-header {
}
  display: flex;
.callout-label {
   align-items: center;  
   font-weight: bold;
   gap: 0.25em;
   margin-right: 0.25em;
   margin-bottom: 0.25em;
   font-size:1.1em;
}
}


.callout-tip {
.callout-icon {
   border-left-color: #4a90e2;
   font-size: 1.2em;
}
}


.callout-warning {
.callout-label {
   border-left-color: #d9534f;
   font-weight: bold;
  font-size: 1.0em;
}
}


.callout-protip {
.callout-title {
   border-left-color: #5cb85c;
   font-weight: normal;
  opacity: 0.8;
}
}


.callout-note {
.callout-body {
   border-left-color: #999;
   margin-left: 0.25em;
  line-height: 1.5;
}
}


.callout-title{
/* Type-specific accents */
font-weight:bold;
.callout-tip { border-left-color: #4a90e2; }
font-size:1.25em;
.callout-warning { border-left-color: #d9534f; }
}
.callout-protip { border-left-color: #5cb85c; }
.callout-note { border-left-color: #999; }


.callout-text{
/* Mobile */
font-weight:normal;
@media (max-width: 600px) {
font-size:1.15em;
  .callout {
    padding: 0.75em;
  }
  .callout-body {
    margin-left: 1.2em;
  }
}
}

Latest revision as of 17:19, 5 April 2026

.callout {
  border-left: 3px solid #999;
  padding: 0.25em 0.25em;
  margin: 0.25em 0; /* reduced whitespace */
  background: #fafafa; /* consistent background */
  border-radius: 4px;
}

.callout-header {
  display: flex;
  align-items: center; 
  gap: 0.25em;
  margin-bottom: 0.25em;
}

.callout-icon {
  font-size: 1.2em;
}

.callout-label {
  font-weight: bold;
  font-size: 1.0em;
}

.callout-title {
  font-weight: normal;
  opacity: 0.8;
}

.callout-body {
  margin-left: 0.25em;
  line-height: 1.5;
}

/* Type-specific accents */
.callout-tip { border-left-color: #4a90e2; }
.callout-warning { border-left-color: #d9534f; }
.callout-protip { border-left-color: #5cb85c; }
.callout-note { border-left-color: #999; }

/* Mobile */
@media (max-width: 600px) {
  .callout {
    padding: 0.75em;
  }
  .callout-body {
    margin-left: 1.2em;
  }
}