電子書籍 桜色

image2 image0

このテーマの特徴

この CSS は、電子書籍用に設計された marp テーマの定義です。このテーマの特徴は以下の通りです。

ページレイアウト:

  • ページサイズは 1600px x 2560px、広々としたレイアウトを実現します。
  • コンテンツエリアは 100px の余白で囲まれています。
  • フォントサイズは 36pt で読みやすく設定されています。

タイトルページ:

  • タイトルページはライトピンクの背景で、テキストは濃い紫です。
  • タイトルは 72pt の大きなフォントで、サブタイトルは 48pt のフォントで表示されます。

コンテンツ:

  • コンテンツはメインコンテンツとサイドバーに分割されています。
  • サイドバーは幅 300px で、紫のテキストと薄いピンクの背景を使用して、ナビゲーションを提供します。
  • サイドバーのリストアイテムは、ホバーすると薄いピンクの背景に変わります。

このテーマを利用する

CSS

/* @theme book-lavender */
@import gaia;

section{
  width: 1600px;
  height: 2560px;
  padding: 100px 60px 60px;
  font-size: 36pt;
  box-sizing: border-box;
}

header{
  margin-bottom: 32pt;
  font-size: 24pt;
  text-align: right;
  background-color: #e8d5df;
  color: #5c3c52;
  padding: 16px;
  text-transform: uppercase;
}

footer{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #f6e9f1;
  font-size: 18pt;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

section.title{
  background-color: #f6e9f1;
  color: #5c3c52;
  text-align: center;
  padding-top: 100px;
  h1{
    font-size: 72pt;
    margin-bottom: 32pt;
  }
  h2{
    font-size: 48pt;
  }
}

.content{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.main{
  flex: 1;
  margin-top: 20px;
}

.sidebar{
  width: 300px;
  background-color: #f6e9f1;
  color: #5c3c52;
  padding: 16px;
  margin-left: 32px;
  border-radius: 10px;
}

.sidebar ul{
  list-style-position: inside;
  list-style-type: none;
  padding: 0;
}

.sidebar li{
  font-size: 24pt;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all .3s ease-in-out;
}

.sidebar li:hover{
  background-color: #e8d5df;
}

.pagination{
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 24pt;
  color: #5c3c52;
}

.pagination span{
  cursor: pointer;
  margin: 0 12px;
}

.pagination span.active{
  background-color: #e8d5df;
  padding: 4px;
}

/* 背景パターン */
.pattern{
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('pattern-lavender.png');
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-mask-image: url('mask.png');
  mask-image: url('mask.png');
  z-index: -1;
}

Marpのサンプル

---
marp: true
theme: book
header: " "
footer: " "
---
<!--
_class: title
-->

# カテゴリー名

---
<!--
_class: body
-->

## カテゴリー 1

- 電子書籍 1
  - 著者名
  - 簡潔な要約
- 電子書籍 2
  - 著者名
  - 簡潔な要約
- 電子書籍 3
  - 著者名
  - 簡潔な要約

---
<!--
_class: body
-->

## カテゴリー 2

- 電子書籍 4
  - 著者名
  - 簡潔な要約
- 電子書籍 5
  - 著者名
  - 簡潔な要約
- 電子書籍 6
  - 著者名
  - 簡潔な要約