Template:Quote box/styles.css: Difference between revisions

Created page with "→{{pp-template}}: .quotebox { background-color: var(--background-color-neutral-subtle, #f8f9fa); border: 1px solid var(--border-color-base, #a2a9b1); box-sizing: border-box; padding: 10px; font-size: 88%; max-width: 100%; } .quotebox.floatleft { margin: .5em 1.4em .8em 0; } .quotebox.floatright { margin: .5em 0 .8em 1.4em; } .quotebox.centered { overflow: hidden; position: relative; margin: .5em auto .8em auto; } .quotebox.floatleft span, .quotebox.floatri..."
 
Add float/clear to .floatleft/.floatright (site has no global floatright class), so quote boxes sit beside the text
 
Line 9: Line 9:
}
}
.quotebox.floatleft {
.quotebox.floatleft {
float: left;
clear: left;
margin: .5em 1.4em .8em 0;
margin: .5em 1.4em .8em 0;
}
}
.quotebox.floatright {
.quotebox.floatright {
float: right;
clear: right;
margin: .5em 0 .8em 1.4em;
margin: .5em 0 .8em 1.4em;
}
}