name-suggestion-index
Version:
Canonical common brand names for OpenStreetMap
602 lines (542 loc) • 11.7 kB
CSS
html, body {
width: 100%;
height: 100%;
background: #111;
}
.noscript {
color: #aaa;
}
body {
font: normal 12px/1.6667 "-apple-system", BlinkMacSystemFont,
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
"Fira Sans", "Droid Sans", "Helvetica Neue", "Arial",
sans-serif;
margin: 0;
padding: 0;
font-size: 14px;
overflow-x: hidden;
overscroll-behavior: none;
}
#root { background: #f6f6f6; color: #333; }
#root.dark { background: #222; color: #aaa; }
.hasCols { display: flex; flex-flow: row nowrap; }
.hasRows { display: flex; flex-flow: column nowrap; }
.hasCols > div { flex: 1; }
.hasRows > div { flex: 1; }
/* global styles */
h1, h2, h3 { margin: 0; }
a { text-decoration: none; }
a:visited, a { color: #67e; font-weight: bold; }
a:hover, a:active { color: #56a; }
.dark a:visited, .dark a { color: #88c; font-weight: bold; }
.dark a:hover, .dark a:active { color: #56a; }
ul {
margin-block-start: 0;
margin-block-end: 0;
padding-left: 20px;
}
.hi { font-size: 20px; margin-right: 10px; }
.dark .hi { filter: saturate(0); }
.nav { margin-top: 10px; }
.instructions { max-width: 1000px; margin: 20px 0; }
pre { font-size: 12px; margin: 0; }
.hide { display: none; }
code { background: #eee; }
.dark code { background: #444; }
img.icon {
width: 1.1em;
height: 1.1em;
margin-right: 8px;
opacity: 0.8;
vertical-align: text-bottom;
}
.dark img.icon {
filter: invert(1);
}
/* forms */
textarea,
input[type=text] {
background-color: #fff;
color: #333;
border: 1px solid #ccc;
padding: 5px;
border-radius: 4px;
text-overflow: ellipsis;
}
.dark textarea,
.dark input[type=text] {
background-color: #666;
color: #ddd;
border: 1px solid #777;
}
.dark input[type=checkbox] {
accent-color: #666;
color-scheme: dark;
}
button {
border: 1px solid #ccc;
padding: 5px;
border-radius: 4px;
cursor: pointer;
}
.dark button {
background-color: #393939;
color: #aaa;
border: 1px solid #666;
}
button:hover {
background-color: #ececec;
}
.dark button:hover {
background-color: #777;
}
button:focus,
button.active {
background: #7092ff;
}
textarea:focus,
input:focus {
background-color: #f1f1f1;
}
/* Sections */
#header {
display: flex;
flex-wrap: wrap;
align-items: center;
column-gap: 16px;
row-gap: 8px;
padding: 10px 16px;
background: #111;
color: #ddd;
font-weight: bold;
}
#header a:visited, #header a { color: #aaf; }
#header a:hover, #header a:active { color: #ccf; }
#title {
flex: 1 1 auto;
min-width: 0;
}
#title h1 {
display: flex;
align-items: center;
font-size: clamp(16px, 4vw, 28px);
line-height: 1.2;
overflow-wrap: anywhere;
}
#header-controls {
display: flex;
align-items: center;
gap: 12px;
flex: 0 0 auto;
margin-left: auto;
}
#title img.icon {
filter: invert(1);
opacity: 1;
padding-right: 10px;
flex-shrink: 0;
}
#treeswitcher {
appearance: base-select;
background-color: #393939;
color: #aaa;
border: 1px solid #666;
padding: 4px 8px;
}
#treeswitcher::picker-icon {
color: #999;
}
#treeswitcher option {
color: #ddd;
}
#darkmode {
display: flex;
align-items: center;
font-size: 16px;
}
#darkmode > svg {
margin: 0 5px;
}
#darkmode > svg.fa-sun { color: gold; }
.dark #darkmode > svg.fa-sun { color: unset; }
#darkmode > svg.fa-moon { color: unset; }
.dark #darkmode > svg.fa-moon { color: #88c; }
#octocat, #wikiwarnings {
display: flex;
align-items: center;
}
#octocat a:visited, #octocat a { color: #fff; }
#octocat a:hover, #octocat a:active { color: #ddd; }
#wikiwarnings a:visited, #wikiwarnings a { color: #f5b400; }
#wikiwarnings a:hover, #wikiwarnings a:active { color: #ffd24d; }
@media screen and (max-width: 420px) {
#header {
column-gap: 10px;
}
#header-controls {
gap: 10px;
}
#darkmode > svg {
margin: 0 2px;
}
}
#content { padding: 0 20px 60px 20px; }
#footer {
background: #111;
padding: 20px;
color: #aaa;
font-size: 12px;
}
/* Filters */
.filters {
display: flex;
padding: 0.4em 0.8em;
flex-direction: column;
max-width: auto;
background: #f6f6f6;
border-bottom: 1px solid #ccc;
}
.filters > * {
margin: 0;
padding: 0.6em 0.8em;
}
.dark .filters {
background: #464646;
border-bottom: 1px solid #222;
}
.filters.active {
background: #eef;
border-bottom: 1px solid #bbe;
}
.dark .filters.active {
background: #464666;
border-bottom: 1px solid #556;
}
.filters .filterby {
margin: 0;
font-weight: bold;
width: max-content;
}
.filters .filterhead {
display: flex;
align-items: center;
gap: 0.5em;
}
.filters .field label {
width: max-content;
margin-right: 0.5em;
}
.filters .field {
margin: 0;
display: flex;
flex-wrap: wrap;
align-items: center;
}
.filters .field button.clearFilters { margin: 0 ; }
@media (min-width: 660px) {
.filters {
flex-direction: row;
align-items: center;
}
}
/* Overview Page */
div.container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
}
div.category {
display: flex;
flex-flow: row nowrap;
justify-content: flex-start;
align-items: center;
white-space: nowrap;
padding: 2px 5px;
}
/* Category Pages */
.logo {
max-width: 75px ;
max-height: 75px ;
vertical-align: middle ;
text-align: center;
}
.dark img.logo {
filter: contrast(0.7);
}
table.summary {
width: 96%;
border: 1px solid #000;
text-align: left;
border-collapse: collapse;
margin-top: 20px;
}
.dark table.summary {
border: 1px solid #444;
}
table.summary th {
position: sticky;
top: -1px;
background: #ddd;
border: 1px solid #000;
padding: 3px 10px;
font-size: 15px;
font-weight: bold;
color: #000;
z-index: 1; /* stay on top when scrolling */
}
.dark table.summary th {
background: #111;
color: #999;
border: 1px solid #444;
}
tbody tr.selected {
background-color: #ffe;
}
.dark tbody tr.selected {
background-color: #3a3a35;
}
tbody td {
font-size: 13px;
max-height: 100px;
border: 1px solid #000;
padding: 5px 10px;
vertical-align: top;
}
.dark tbody td {
border: 1px solid #444;
}
tbody h3.slug::before {
display: block;
content: " ";
margin-top: -84px;
height: 84px;
visibility: hidden;
pointer-events: none;
}
tbody .anchor {
margin: 0 5px;
}
tbody .nsikey,
tbody .locations,
tbody .sociallinks,
tbody .viewlink {
padding-top: 10px;
}
tbody td.namesuggest {
max-width: 280px;
}
tbody .nsikey {
overflow-x: auto;
}
tbody .dissolved {
color: #f33;
font-weight: bold;
}
.dark tbody .dissolved {
color: #b22;
}
tbody .locations {
overflow-x: auto;
font-size: 12px;
}
tbody .locations code {
background: unset;
font-size: 12px;
}
tbody td.tags {
max-width: 280px;
overflow-x: auto;
}
tbody pre.tags {
font-size: 10px;
white-space: pre-wrap;
}
tbody td.wikidata {
max-width: 320px;
}
tbody td.wikidata div.viewlink {
overflow: hidden;
text-overflow: ellipsis;
}
.sociallinks svg.fa-instagram,
.sociallinks svg.fa-vk {
color: white;
background: black;
border-radius: 3px;
height: 0.895em;
margin-bottom: 0.03em;
width: 0.95em;
}
/* invert certain social icons so they match the others */
.sociallinks a svg.fa-instagram,
.sociallinks a svg.fa-vk,
.sociallinks a:visited svg.fa-instagram,
.sociallinks a:visited svg.fa-vk {
color: white;
background: #67e;
}
.dark .sociallinks a svg.fa-instagram,
.dark .sociallinks a svg.fa-vk,
.dark .sociallinks a:visited svg.fa-instagram,
.dark .sociallinks a:visited svg.fa-vk {
color: #2a2a2a;
background: #88c;
}
/* SSL lock / unlock icons */
.viewlink svg.fa-lock { margin-left: 0.3em; color: green; background: white; }
.viewlink svg.fa-unlock { margin-left: 0.3em; color: red; background: white; }
.dark .viewlink svg.fa-lock { margin-left: 0.3em; color: green; background: #2a2a2a; }
.dark .viewlink svg.fa-unlock { margin-left: 0.3em; color: red; background: #2a2a2a; }
.sociallinks a:hover svg.fa-instagram,
.sociallinks a:hover svg.fa-vk {
color: white;
background: #56a;
}
.dark .sociallinks a:hover svg.fa-instagram,
.dark .sociallinks a:hover svg.fa-vk {
color: #2a2a2a;
background: #56a;
}
.sociallinks a {
margin: 0 2px;
}
/* slider/switch */
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 10px;
margin-bottom: 3px;
vertical-align: middle;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #aaa;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 2px;
bottom: -5px;
background-color: #ddd;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #aaa;
}
input:focus + .slider {
box-shadow: 0 0 1px #0053ba;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 10px;
}
.slider.round:before {
border-radius: 50%;
}
/* Wikidata Warnings page */
.filters select {
background-color: #fff;
color: #333;
border: 1px solid #ccc;
padding: 4px 6px;
border-radius: 4px;
}
.dark .filters select {
background-color: #666;
color: #ddd;
border: 1px solid #777;
}
.warnings-status {
padding: 20px 0;
color: #666;
}
.dark .warnings-status { color: #999; }
.warnings-status.error { color: #c33; font-weight: bold; }
.dark .warnings-status.error { color: #e77; }
.warnings-summary {
padding: 12px 0 8px;
color: #555;
}
.dark .warnings-summary { color: #aaa; }
table.summary.warnings {
font-size: 13px;
}
table.summary.warnings th.sortable {
cursor: pointer;
user-select: none;
white-space: nowrap;
}
table.summary.warnings th.sortable:hover {
background: #c8d4e3;
}
.dark table.summary.warnings th.sortable:hover {
background: #222;
}
table.summary.warnings .sorticon {
margin-left: 6px;
font-size: 12px;
}
table.summary.warnings .sorticon.dim {
opacity: 0.35;
}
table.summary.warnings td.qid {
white-space: nowrap;
width: 1%;
text-align: center;
}
table.summary.warnings td.type {
white-space: nowrap;
width: 1%;
font-size: 12px;
color: #555;
}
.dark table.summary.warnings td.type { color: #aaa; }
table.summary.warnings td.msg {
word-break: break-word;
}
table.summary.warnings td.nowarn {
text-align: center;
color: #888;
padding: 20px;
font-style: italic;
}
/* Subtle row tinting by warning category (light mode) */
tbody tr.warn.deleted td.qid a { color: #c33; }
tbody tr.warn.unresolved-redirect td.type { color: #b87500; }
tbody tr.warn.facebook-api td.type { color: #1d3469; }
tbody tr.warn.facebook-access td.type { color: #1d3469; }
tbody tr.warn.replacement td.type { color: #7a3aa3; }
tbody tr.warn.missing-label td.type { color: #555; }
tbody tr.warn.edit-error td.type { color: #c33; }
.dark tbody tr.warn.deleted td.qid a { color: #e88; }
.dark tbody tr.warn.unresolved-redirect td.type { color: #d9a14a; }
.dark tbody tr.warn.facebook-api td.type { color: #5e80bf; }
.dark tbody tr.warn.facebook-access td.type { color: #5e80bf; }
.dark tbody tr.warn.replacement td.type { color: #b899d6; }
.dark tbody tr.warn.edit-error td.type { color: #e88; }
#nav a {
font-weight: normal;
}