Template:Infocard/styles.css

From Captain of Industry Wiki
< Template:Infocard
Revision as of 22:57, 23 January 2022 by Thadius856 (talk | contribs) (Creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
.clearfix::before, .clearfix::after {
    content: " ";
    display: table;
}

.clearfix::after {
    clear: both;
}



#mainpage-wrapper {
    min-width: 300px;
}

#mainpage-wrapper .section {
    margin: 0 -2px;
}

.box-row-s #main-section #sep-B, .box-row-s #main-section #sep-D, .box-row-s #main-section #sep-F {
    display: block;
}

#main-section .sep {
    display: none;
    width: 100%;
    height: 0;
}

.width-f#box-items {
    flex: 1 1 720px;
}

.width-e#box-items {
    flex: 1 1 320px;
}

#mainpage-wrapper .section .infocard {
    width: auto;
    margin: 2px;
}

.infocard.captainofindustry {
    background: #222222;
    border-color: #FF9900;
}

.infocard {
    margin: 0.5em 0;
    padding: 1em;
    box-sizing: border-box;
    border: 1px solid orange;
    border-radius: 6px;
    width: 100%;
    min-width: 300px;
    position: relative;
    background: #222222;
    color: #c1c1c1;
}

.infocard.compact {
    padding: 0.5em;
    min-width: 240px;
}

.captainofindustry {
    border: 1px #FF9900 solid;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
}

.infocard .main-heading {
    border-right: 3em solid transparent;
    padding-left: 1em;
    margin: 2em -1em 1em;
    position: relative;
    line-height: 1;
    background: #222222;
}

.infocard > .main-heading, .infocard .intro:first-child > .main-heading:first-child, .infocard .outro:first-child > .main-heading:first-child {
    margin-top: 1em;
}

.infocard.compact .main-heading {
    padding-left: 0.5em;
    margin: 0.75em -0.5em 0.5em;
}

.infocard.compact > .main-heading, .infocard.compact .intro:first-child > .main-heading:first-child, .infocard.compact .outro:first-child > .main-heading:first-child {
    margin-top: 0.5em;
}

.infocard .main-heading .hgroup {
    background: #222222;
    padding: 0 1em;
    display: inline-block;
    position: relative;
    z-index: 10;
    color: #c1c1c1;
    font-weight: 100;
}

.infocard.compact .main-heading .hgroup {
    padding: 0 0.5em;
    font-weight: normal;
}

.infocard.terraria .main-heading .hgroup {
    background: #2c2c2c;
}

.infocard .main-heading .icon {
    position: absolute;
    right: -2em;
    top: 0;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
}

.infocard.compact .main-heading .hgroup > .main {
    font-size: 1.5em;
}
.infocard.compact .main-heading .icon {
    right: -2.5em;
}

.infocard > .outro {
    margin: 1em 0;
    min-width: 200px;
}

.infocard .outro {
    padding-top: 2px;
}

.infocard > .intro:last-child, .infocard > .outro:last-child, .infocard > .box:last-child {
    margin-bottom: 0;
}

.infocard.compact > .outro {
    margin: 0.5em 0;
}

.infocard.compact > .intro:last-child, .infocard.compact > .outro:last-child, .infocard.compact > .box:last-child {
    margin-bottom: 0;
}

.mclist {
    column-gap: 0.5em;
}