MediaWiki:Common.css/src/template/float file box.scss
This page is one of the SCSS pages which are the basis for MediaWiki:Common.css. After you edit this page, you will need to recompile them for your changes to take effect. See Terraria Wiki:CSS to learn more.
Ancestors: / src / template / float_file_box.scss
Siblings: achievement.scss animation.scss archive_header.scss archive-box.scss chance.scss coin.scss color_box.scss crafts.scss diagram.scss doc.scss dotlist.scss dpl3.scss editcopy_notice.scss error.scss etext.scss exclusive_icon_link.scss exclusive_icons.scss expert,master,journey.scss flavor_text.scss float_file_box.scss gameText.scss getDropInfo.scss hardmode.scss hatnote.scss history.scss hp.scss info_request.scss infobox.scss infocard.scss item.scss itemlist.scss key.scss l10n_subtemplate.scss licensebox.scss living_preferences.scss loot.scss mctoc.scss msgbox.scss multi-column_list.scss na.scss navbox.scss project.scss protected.scss quotation.scss recipes.scss reflist.scss shortcut.scss sound.scss spoiler.scss summoned.scss templatedata.scss toc_limit.scss toggleBox.scss transclude.scss translation_projects.scss use_time,knockback.scss yes,no.scss
Children: (none)
/********* [[Template:Float file box]] *********/
.floatfilebox {
/* infobox-like styling */
border: 1px solid var(--theme-box-border-color);
border-radius: 8px;
padding: 6px;
font-size: 12px;
background-color: var(--theme-box-background);
line-height: 1.5;
text-align: center;
width: 150px;
margin: 0.5em 1em 0.5em 0;
&.float-right {
float: right;
margin-right: 0;
margin-left: 1em;
}
&.float-left {
float: left;
}
&.float-none {
float: none;
}
> div {
/* row elements */
padding: 3px 4px;
&.title {
/* "title" row elements */
background-color: var(--theme-highlight-background);
font-weight: bold;
margin-bottom: 0.5em;
padding-top: 5px;
padding-bottom: 5px;
&:not(:first-child) {
/* space above "title" rows, but not if the "title" row is the very first row */
margin-top: 0.5em;
}
}
}
& > &-even + div {
/* little bit of space after every 2 rows */
margin-top: 0.5em;
}
}