コンテンツにスキップ

テンプレート:星系の歴史/style.css

提供: ApolaTrajectoryWiki
/* History template styling */
.history-container {
  border: 1px solid #ccc;
  padding: 10px;
  width: 400px;
  box-sizing: border-box;
  float: right; /* 右側に表示 */
  margin-left: 10px;
}

.history-title {
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.history-image {
  text-align: center;
  margin-bottom: 10px;
  border: 0;
}

.history-image img {
  max-width: 100%;
  height: auto;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-item {
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
}

.period-name, .period-year {
  display: inline-block; /* インラインブロックに設定 */
}

.period-name {
  width: calc(50% - 10px); /* 余白を調整 */
  text-align: left;
}

.period-year {
  width: calc(50% - 10px); /* 余白を調整 */
  text-align: right;
  color: #999;
}

.sub-period-list {
  list-style: none;
  padding-left: 20px; /* インデント */
  margin: 0;
}

.sub-period-item {
  padding: 3px 0;
}

.event-list {
  list-style: none;
  padding-left: 20px; /* インデント */
  margin: 0;
}

.event-item {
  padding: 3px 0;
}

.event-name, .event-year {
  display: inline-block; /* インラインブロックに設定 */
}

.event-name {
  width: calc(50% - 10px); /* 余白を調整 */
  text-align: left;
}

.event-year {
  width: calc(50% - 10px); /* 余白を調整 */
  text-align: right;
  color: #999;
}