Template:MetroStationInfobox/styles.css: Difference between revisions
From Tyne and Wear Metro wiki
Hopperelec (talk | contribs) Created page with "→Module:MetroStationInfobox/styles.css: .metro-station-infobox { float: right; width: min-content; background-color: #f8f9fa; border: 1px solid #c8ccd1; text-align: center; font-size: .8em; box-sizing: border-box; } →Between every section, but not below the station name: .metro-station-infobox > *:not(.station-name-container) + * { border-top: 1px solid #c8ccd1; } .metro-station-infobox > p { margin: 0; padding: .2em; } .metro-station-infobox .statio..." |
Hopperelec (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
.infobox { | |||
float: right; | float: right; | ||
width: min-content; | width: min-content; | ||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
border: | border-collapse: collapse; | ||
text-align: center; | text-align: center; | ||
font-size: .8em; | font-size: .8em; | ||
} | } | ||
.infobox > caption { | |||
. | font-weight: bold; | ||
font-size: 1.3em; | font-size: 1.3em; | ||
} | } | ||
. | .infobox > tbody > tr > th, | ||
.infobox > tbody > tr > td { | |||
border: 1px solid #c8ccd1; | |||
padding: 0; | |||
} | } | ||
.pills { | |||
list-style-type: none; | list-style-type: none; | ||
padding: 0; | padding: 0; | ||
margin: .2em; | margin: .2em 0; | ||
display: flex; | display: flex; | ||
width: 100%; | |||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
.pill { | |||
padding: .1em .2em; | padding: .1em .2em; | ||
border: 1px solid #c8ccd1; | border: 1px solid #c8ccd1; | ||
Line 53: | Line 41: | ||
justify-content: center; | justify-content: center; | ||
cursor: help; | cursor: help; | ||
} | } | ||
a.pill { | |||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.pill-icon { | |||
width: 1em; | width: 1em; | ||
height: 1em; | height: 1em; | ||
Line 66: | Line 53: | ||
} | } | ||
img.pill-icon, | |||
.pill-icon img { | |||
display: block; | display: block; | ||
width: 1em; | width: 1em; | ||
height: 1em; | height: 1em; | ||
object-fit: contain; | |||
} | } | ||
.zone { | |||
border: 1px solid; | border: 1px solid; | ||
} | } | ||
.alternative-code { | |||
background-color: #ddd; | background-color: #ddd; | ||
} | } | ||
.thumb { | |||
display: block; | display: block; | ||
} | } | ||
.coordinates { | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.key-dates, | |||
.platforms-visualizer { | |||
list-style-type: none; | |||
margin: 0; | margin: 0; | ||
padding: .2em; | padding: .2em; | ||
text-align: center; | text-align: center; | ||
} | } | ||
. | .platforms-visualizer > li + li { | ||
/* Gap between references */ | |||
margin-top: 2px; | margin-top: 2px; | ||
} | } | ||
. | .platforms-visualizer li, | ||
. | .platforms-visualizer a { | ||
white-space: nowrap; | white-space: nowrap; | ||
text-overflow: ellipsis; | text-overflow: ellipsis; | ||
overflow: hidden; | overflow: hidden; | ||
margin-left: auto; | margin-left: auto; | ||
} | } | ||
.reference-555, | |||
.reference-metrocar { | |||
display: block; | display: block; | ||
position: relative; | position: relative; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.reference-555::before, | |||
.reference-metrocar::before { | |||
/* For adding inset borders */ | |||
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
Line 161: | Line 117: | ||
} | } | ||
.reference-555 { | |||
color: #000; | color: #000; | ||
background-color: #fc0; | background-color: #fc0; | ||
Line 167: | Line 123: | ||
} | } | ||
.reference-555::before { | |||
border-bottom: 3px solid #999; | border-bottom: 3px solid #999; | ||
} | } | ||
.reference-metrocar { | |||
background-color: #000; | background-color: #000; | ||
color: #fff; | color: #fff; | ||
} | } | ||
.reference-metrocar::before { | |||
border: 2px solid #fc0; | border: 2px solid #fc0; | ||
border-top: 1px solid #f90; | border-top: 1px solid #f90; | ||
Line 182: | Line 138: | ||
} | } | ||
.reference-platform { | |||
background-color: #ccc; | background-color: #ccc; | ||
} | } | ||
.reference-platform:nth-child(2n) { | |||
background-color: #bbb; | background-color: #bbb; | ||
} | } |
Latest revision as of 00:48, 26 August 2025
.infobox {
float: right;
width: min-content;
background-color: #f8f9fa;
border-collapse: collapse;
text-align: center;
font-size: .8em;
}
.infobox > caption {
font-weight: bold;
font-size: 1.3em;
}
.infobox > tbody > tr > th,
.infobox > tbody > tr > td {
border: 1px solid #c8ccd1;
padding: 0;
}
.pills {
list-style-type: none;
padding: 0;
margin: .2em 0;
display: flex;
width: 100%;
flex-wrap: wrap;
justify-content: center;
}
.pill {
padding: .1em .2em;
border: 1px solid #c8ccd1;
border-radius: .5em;
margin: .2em;
min-width: 1.2em;
text-decoration: none;
color: inherit;
display: flex;
align-items: center;
justify-content: center;
cursor: help;
}
a.pill {
cursor: pointer;
}
.pill-icon {
width: 1em;
height: 1em;
margin: 0 .1em;
}
img.pill-icon,
.pill-icon img {
display: block;
width: 1em;
height: 1em;
object-fit: contain;
}
.zone {
border: 1px solid;
}
.alternative-code {
background-color: #ddd;
}
.thumb {
display: block;
}
.coordinates {
text-decoration: none;
}
.key-dates,
.platforms-visualizer {
list-style-type: none;
margin: 0;
padding: .2em;
text-align: center;
}
.platforms-visualizer > li + li {
/* Gap between references */
margin-top: 2px;
}
.platforms-visualizer li,
.platforms-visualizer a {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
margin-left: auto;
}
.reference-555,
.reference-metrocar {
display: block;
position: relative;
text-decoration: none;
}
.reference-555::before,
.reference-metrocar::before {
/* For adding inset borders */
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
box-sizing: border-box;
}
.reference-555 {
color: #000;
background-color: #fc0;
border-radius: 1em 1em 0 0;
}
.reference-555::before {
border-bottom: 3px solid #999;
}
.reference-metrocar {
background-color: #000;
color: #fff;
}
.reference-metrocar::before {
border: 2px solid #fc0;
border-top: 1px solid #f90;
border-bottom: transparent;
}
.reference-platform {
background-color: #ccc;
}
.reference-platform:nth-child(2n) {
background-color: #bbb;
}