Difference between revisions of "Template:Infocard/styles.css"
From Captain of Industry Wiki
Thadius856 (talk | contribs) m (update colors) |
Thadius856 (talk | contribs) (+dshadow class) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 54: | Line 54: | ||
position: relative; | position: relative; | ||
background: #222222; | background: #222222; | ||
} | } | ||
Line 79: | Line 78: | ||
.infocard > .main-heading, .infocard .intro:first-child > .main-heading:first-child, .infocard .outro:first-child > .main-heading:first-child { | .infocard > .main-heading, .infocard .intro:first-child > .main-heading:first-child, .infocard .outro:first-child > .main-heading:first-child { | ||
margin-top: | margin-top: 0.75em; | ||
} | } | ||
.infocard.compact .main-heading { | .infocard.compact .main-heading { | ||
padding-left: 0.5em; | padding-left: 0.5em; | ||
margin: 0.75em -0.5em 0. | margin: 0.75em -0.5em 0.75em; | ||
} | } | ||
.infocard.compact > .main-heading, .infocard.compact .intro:first-child > .main-heading:first-child, .infocard.compact .outro:first-child > .main-heading:first-child { | .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. | margin-top: 0.75em; | ||
} | } | ||
Line 97: | Line 96: | ||
position: relative; | position: relative; | ||
z-index: 10; | z-index: 10; | ||
font-weight: 100; | font-weight: 100; | ||
} | } | ||
Line 107: | Line 105: | ||
.infocard.captainofindustry .main-heading .hgroup { | .infocard.captainofindustry .main-heading .hgroup { | ||
background: # | background: #222222; | ||
} | } | ||
Line 125: | Line 123: | ||
font-size: 1.5em; | font-size: 1.5em; | ||
} | } | ||
.main-heading .hgroup .main a { text-decoration: underline dotted; } | |||
.infocard.compact .main-heading .icon { | .infocard.compact .main-heading .icon { | ||
right: -2.5em; | right: -2.5em; | ||
Line 157: | Line 158: | ||
columns: 3; | columns: 3; | ||
} | } | ||
.mclist ul { | |||
list-style-type: none; | |||
list-style-image: unset; | |||
margin-left: 0; | |||
} | |||
img.dshadow4blk { filter: drop-shadow(0 0 4px rgba(0,0,0,1)) } |
Latest revision as of 11:27, 25 January 2022
.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; } .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: rgba(255, 164, 22, 1) } .infocard > .main-heading, .infocard .intro:first-child > .main-heading:first-child, .infocard .outro:first-child > .main-heading:first-child { margin-top: 0.75em; } .infocard.compact .main-heading { padding-left: 0.5em; margin: 0.75em -0.5em 0.75em; } .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.75em; } .infocard .main-heading .hgroup { background: rgba(34, 34, 34, 1); padding: 0 1em; display: inline-block; position: relative; z-index: 10; font-weight: 100; } .infocard.compact .main-heading .hgroup { padding: 0 0.5em; font-weight: normal; } .infocard.captainofindustry .main-heading .hgroup { background: #222222; } .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; } .main-heading .hgroup .main a { text-decoration: underline dotted; } .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; } .mclist-col-3 { columns: 3; } .mclist ul { list-style-type: none; list-style-image: unset; margin-left: 0; } img.dshadow4blk { filter: drop-shadow(0 0 4px rgba(0,0,0,1)) }