Skip to content

Commit

Permalink
fix: filter and sort looks
Browse files Browse the repository at this point in the history
  • Loading branch information
makinzm committed Dec 30, 2024
1 parent 4001b3c commit 7d23ef2
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 36 deletions.
76 changes: 58 additions & 18 deletions dist/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,47 @@
<title>Cliplex</title>
<link rel="icon" href="../ui/icon.png" type="image/png">
<style>
#filterOption {
display: flex;
align-items: center;
justify-content: center;
gap: 15px; /* 要素間のスペースを追加 */
width: 100%; /* 横幅を100%に広げる */
margin: 20px auto; /* 上下に余白を追加 */
padding: 10px; /* 内側に余白を追加 */
box-sizing: border-box; /* パディングを含めて幅を計算 */
background-color: #f9f9f9; /* 背景色をつけて視認性を向上 */
border: 1px solid #ccc; /* 枠線を追加 */
border-radius: 8px; /* 枠線の角を丸くする */
}
#filterOption label,
#filterOption button {
font-size: 1.2em; /* 文字サイズを少し大きくする */
}
#filterOption input {
padding: 5px;
font-size: 1em; /* 入力欄の文字サイズを調整 */
width: 150px; /* 入力欄の幅を指定 */
}

#sortOption {
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
width: 100%;
margin: 20px auto;
padding: 10px;
box-sizing: border-box;
background-color: #f9f9f9;
border: 1px solid #ccc;
border-radius: 8px;
}
#sortOption label,
#sortOption select {
font-size: 1.2em;
}

body {
font-family: Arial, sans-serif;
margin: 0;
Expand Down Expand Up @@ -126,6 +167,23 @@ <h1>Cliplex</h1>
</p>
</div>

<!-- フィルタ -->
<div id="filterOption">
<label>日付範囲(開始): <input type="date" id="dateFrom" /></label>
<label>日付範囲(終了): <input type="date" id="dateTo" /></label>
<button id="filterButton">フィルタ</button>
</div>

<div id="sortOption">
<label>優先度ソート:
<select id="prioritySort">
<option value="asc">昇順</option>
<option value="desc" selected>降順</option>
</select>
</label>
</div>


<!-- 単語一覧 -->
<h2>単語一覧</h2>
<table id="wordsTable">
Expand Down Expand Up @@ -180,24 +238,6 @@ <h2>ドメイン限定設定 (Included)</h2>
<ul id="includedDomainList"></ul>
</div>

<!-- フィルタ -->
<div>
<label>日付範囲(開始): <input type="date" id="dateFrom" /></label>
<label>日付範囲(終了): <input type="date" id="dateTo" /></label>
<button id="filterButton">フィルタ</button>
</div>

<div>
<label>優先度ソート:
<select id="prioritySort">
<option value="asc">昇順</option>
<option value="desc" selected>降順</option>
</select>
</label>
</div>



<!-- 新規単語追加フォーム -->
<div id="addWordSection">
<h2>新規単語追加</h2>
Expand Down
76 changes: 58 additions & 18 deletions src/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,47 @@
<title>Cliplex</title>
<link rel="icon" href="../ui/icon.png" type="image/png">
<style>
#filterOption {
display: flex;
align-items: center;
justify-content: center;
gap: 15px; /* 要素間のスペースを追加 */
width: 100%; /* 横幅を100%に広げる */
margin: 20px auto; /* 上下に余白を追加 */
padding: 10px; /* 内側に余白を追加 */
box-sizing: border-box; /* パディングを含めて幅を計算 */
background-color: #f9f9f9; /* 背景色をつけて視認性を向上 */
border: 1px solid #ccc; /* 枠線を追加 */
border-radius: 8px; /* 枠線の角を丸くする */
}
#filterOption label,
#filterOption button {
font-size: 1.2em; /* 文字サイズを少し大きくする */
}
#filterOption input {
padding: 5px;
font-size: 1em; /* 入力欄の文字サイズを調整 */
width: 150px; /* 入力欄の幅を指定 */
}

#sortOption {
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
width: 100%;
margin: 20px auto;
padding: 10px;
box-sizing: border-box;
background-color: #f9f9f9;
border: 1px solid #ccc;
border-radius: 8px;
}
#sortOption label,
#sortOption select {
font-size: 1.2em;
}

body {
font-family: Arial, sans-serif;
margin: 0;
Expand Down Expand Up @@ -126,6 +167,23 @@ <h1>Cliplex</h1>
</p>
</div>

<!-- フィルタ -->
<div id="filterOption">
<label>日付範囲(開始): <input type="date" id="dateFrom" /></label>
<label>日付範囲(終了): <input type="date" id="dateTo" /></label>
<button id="filterButton">フィルタ</button>
</div>

<div id="sortOption">
<label>優先度ソート:
<select id="prioritySort">
<option value="asc">昇順</option>
<option value="desc" selected>降順</option>
</select>
</label>
</div>


<!-- 単語一覧 -->
<h2>単語一覧</h2>
<table id="wordsTable">
Expand Down Expand Up @@ -180,24 +238,6 @@ <h2>ドメイン限定設定 (Included)</h2>
<ul id="includedDomainList"></ul>
</div>

<!-- フィルタ -->
<div>
<label>日付範囲(開始): <input type="date" id="dateFrom" /></label>
<label>日付範囲(終了): <input type="date" id="dateTo" /></label>
<button id="filterButton">フィルタ</button>
</div>

<div>
<label>優先度ソート:
<select id="prioritySort">
<option value="asc">昇順</option>
<option value="desc" selected>降順</option>
</select>
</label>
</div>



<!-- 新規単語追加フォーム -->
<div id="addWordSection">
<h2>新規単語追加</h2>
Expand Down

0 comments on commit 7d23ef2

Please sign in to comment.