コンテンツにスキップ

「テンプレート:星系の歴史/style.css」の版間の差分

提供: ApolaTrajectoryWiki
編集の要約なし
編集の要約なし
 
(同じ利用者による、間の8版が非表示)
6行目: 6行目:
   box-sizing: border-box;
   box-sizing: border-box;
   float: right; /* 右側に表示 */
   float: right; /* 右側に表示 */
  margin-left: 10px;
}
}


.history-title {
.history-title {
   font-size: 1.5em;
   font-size: 2em;
   font-weight: bold;
   font-weight: bold;
   text-align: center;
   text-align: center;
18行目: 19行目:
   text-align: center;
   text-align: center;
   margin-bottom: 10px;
   margin-bottom: 10px;
  border: 0;
}
}


36行目: 38行目:
}
}


.period-group {
.period-name, .period-year {
   display: flex;
   display: inline-block; /* インラインブロックに設定 */
  justify-content: space-between;
  align-items: center; /* これを追加 */
}
}


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


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


61行目: 61行目:
.sub-period-item {
.sub-period-item {
   padding: 3px 0;
   padding: 3px 0;
   display: flex; /* これを追加 */
}
   justify-content: space-between; /* これを追加 */
 
.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;
}
}

2024年7月22日 (月) 22:11時点における最新版

/* 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;
}