Template:Callout/styles.css: Difference between revisions

mNo edit summary
mNo edit summary
 
(5 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.1em 0.1em;
   margin: 0.75em 0; /* reduced whitespace */
   margin: 0.25em 0; /* reduced whitespace */
  margin: 0.1em 0 0.1em 0;
   background: #fafafa; /* consistent background */
   background: #fafafa; /* consistent background */
  background:none;
   border-radius: 4px;
   border-radius: 4px;
}
}
Line 9: Line 11:
.callout-header {
.callout-header {
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;  
   gap: 0.35em;
   gap: 0.25em;
   margin-bottom: 0.4em;
   margin-bottom: 0.25em;
}
}


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


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


Line 29: Line 31:


.callout-body {
.callout-body {
   margin-left: 1.6em;
   margin-left: 0.25em;
   line-height: 1.5;
   line-height: 1.5;
}
}
Line 40: Line 42:


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