@import-less url("../theme.less");

.wikibase-dialog p {
  padding: 0 10px 10px 10px
}

.wikibase-list-wrapper {
  max-height: 300px; overflow-y: auto
}

.wikibase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.wikibase-list li {
  display: flex;
  flex-direction: row;
  flex-basis: fit-content;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  margin: 5px;
}

.wikibase-list li.selected {
  background: #bcf;
  font-weight: bold;
}

.wikibase-list li:not(.selected):hover {
  background: @dialog_footer;
}

.wikibase-list li img {
  flex: 0 0;
  min-height: 60px;
  max-height: 60px;
  min-width: 60px;
  max-width: 60px;
}

.wikibase-list .wikibase-info {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  padding: 5px;
}

.wikibase-list li.selected .wikibase-name {
  font-weight: bold;
}

.wikibase-list .wikibase-name {
  padding: 3px;
}

.wikibase-list .wikibase-url {
  padding-left: 13px;
  color: gray;
}

.wikibase-list li a {
  margin: 10px;
  flex: 0 0;
}

.wikibase-list li.selected a {
  display:none;
}
