プロジェクト

全般

プロフィール

機能 #42 » redmine-line-theme-issues-css.css

Redmine Admin, 2025-05-11 06:05

 
/* LINE風Redmineテーマ - issues.css */
/* チケット一覧とチケット詳細ページ用CSS */

/* ============ チケット一覧 ============ */
/* チケット一覧のテーブルスタイル */
table.list.issues {
width: 100%;
border-collapse: separate;
border-spacing: 0;
background-color: var(--line-white);
border-radius: var(--border-radius-medium);
box-shadow: var(--shadow-small);
margin-bottom: 20px;
overflow: hidden;
}

/* テーブルヘッダー */
table.list.issues thead th {
background-color: var(--line-panel-bg);
padding: 12px 8px;
font-weight: 600;
color: var(--line-secondary);
border-bottom: 1px solid var(--line-mid-gray);
text-align: left;
font-size: 14px;
position: relative;
}

/* チェックボックス列 */
table.list.issues th.checkbox,
table.list.issues td.checkbox {
width: 30px;
text-align: center;
}

/* ソート可能なヘッダー */
table.list.issues th a {
color: var(--line-secondary);
text-decoration: none;
display: flex;
align-items: center;
}

table.list.issues th a:hover {
color: var(--line-primary);
}

/* ソート中のカラム */
table.list.issues th a.sort {
font-weight: 700;
color: var(--line-primary);
}

/* テーブル行 */
table.list.issues tbody tr {
transition: all 0.2s;
}

table.list.issues tbody tr:nth-child(even) {
background-color: rgba(240, 242, 245, 0.4);
}

table.list.issues tbody tr:hover {
background-color: rgba(6, 199, 85, 0.05);
}

/* テーブルセル */
table.list.issues td {
padding: 12px 8px;
border-bottom: 1px solid var(--line-mid-gray);
font-size: 15px;
vertical-align: middle;
}

/* 最後の行のセル */
table.list.issues tr:last-child td {
border-bottom: none;
}

/* ID列 */
table.list.issues td.id {
font-weight: 500;
text-align: center;
}

/* 題名列 */
table.list.issues td.subject {
font-weight: 500;
}

table.list.issues td.subject a {
color: var(--line-secondary);
text-decoration: none;
}

table.list.issues td.subject a:hover {
color: var(--line-primary);
text-decoration: none;
}

/* ステータス列 */
table.list.issues td.status {
font-weight: 500;
}

/* 優先度列 - カラー表示 */
table.list.issues td.priority {
font-weight: 500;
}

table.list.issues td.priority.high {
color: #FF9500;
}

table.list.issues td.priority.urgent {
color: #FF3B30;
}

/* 期日列 */
table.list.issues td.due_date {
white-space: nowrap;
}

/* 担当者列 */
table.list.issues td.assigned_to a {
font-weight: 500;
}

/* 作成日・更新日列 */
table.list.issues td.created_on,
table.list.issues td.updated_on {
white-space: nowrap;
font-size: 14px;
}

/* プロジェクト列 */
table.list.issues td.project {
font-size: 14px;
}

/* 進捗率列 */
table.list.issues td.done_ratio {
text-align: center;
}

/* アクションボタン列 */
table.list.issues td.buttons {
width: 40px;
text-align: center;
}

table.list.issues td.buttons a {
display: inline-block;
color: var(--line-dark-gray);
transition: all 0.2s;
}

table.list.issues td.buttons a:hover {
color: var(--line-primary);
}

/* ============ フィルター ============ */
/* フィルターエリア */
fieldset#filters {
background-color: var(--line-white);
border: none;
border-radius: var(--border-radius-medium);
padding: 16px;
margin-bottom: 20px;
box-shadow: var(--shadow-small);
}

fieldset#filters legend {
font-weight: 600;
color: var(--line-secondary);
padding: 0 10px;
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
}

fieldset#filters legend:before {
content: "";
display: inline-block;
width: 18px;
height: 18px;
margin-right: 5px;
background-color: var(--line-primary);
opacity: 0.1;
border-radius: 4px;
}

/* フィルター条件表示エリア */
#filters-table {
margin: 15px 0;
}

.filter {
display: flex;
align-items: center;
margin-bottom: 10px;
flex-wrap: wrap;
}

.filter .field {
min-width: 120px;
margin-right: 10px;
font-weight: 500;
}

.filter .operator {
min-width: 120px;
margin-right: 10px;
}

.filter .values {
flex: 1;
}

.filter select,
.filter input[type="text"] {
border: 1px solid var(--line-mid-gray);
border-radius: var(--border-radius-small);
padding: 8px 10px;
font-size: 15px;
min-width: 150px;
}

.filter .add-filter-value {
background-color: var(--line-panel-bg);
border: none;
border-radius: var(--border-radius-small);
padding: 6px 12px;
margin-left: 5px;
cursor: pointer;
transition: all 0.2s;
}

.filter .add-filter-value:hover {
background-color: rgba(6, 199, 85, 0.1);
}

.filter .remove-filter {
color: var(--line-dark-gray);
margin-left: 10px;
cursor: pointer;
transition: all 0.2s;
}

.filter .remove-filter:hover {
color: var(--line-error);
}

/* フィルター追加エリア */
.add-filter {
margin-top: 15px;
display: flex;
align-items: center;
}

.add-filter label {
margin-right: 10px;
font-weight: 500;
}

.add-filter select {
border: 1px solid var(--line-mid-gray);
border-radius: var(--border-radius-small);
padding: 8px 10px;
font-size: 15px;
min-width: 250px;
}

/* 適用・リセットボタン */
p.buttons, .buttons {
margin: 20px 0;
}

p.buttons a, .buttons a {
display: inline-flex;
align-items: center;
margin-right: 10px;
padding: 10px 16px;
border-radius: var(--border-radius-small);
font-size: 15px;
font-weight: 500;
text-decoration: none;
transition: all 0.2s;
}

p.buttons a.icon-checked, .buttons a.icon-checked {
background-color: var(--line-primary);
color: var(--line-white);
}

p.buttons a.icon-checked:hover, .buttons a.icon-checked:hover {
background-color: #05b549;
}

p.buttons a.icon-reload, .buttons a.icon-reload {
background-color: var(--line-white);
color: var(--line-secondary);
border: 1px solid var(--line-mid-gray);
}

p.buttons a.icon-reload:hover, .buttons a.icon-reload:hover {
background-color: var(--line-panel-bg);
}

p.buttons a.icon-save, .buttons a.icon-save {
background-color: var(--line-white);
color: var(--line-link);
border: 1px solid var(--line-link);
}

p.buttons a.icon-save:hover, .buttons a.icon-save:hover {
background-color: rgba(0, 122, 255, 0.1);
}

/* ============ ページネーション ============ */
.pagination {
margin: 20px 0;
display: flex;
align-items: center;
justify-content: center;
}

.pagination ul.pages {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}

.pagination ul.pages li {
margin: 0 3px;
}

.pagination ul.pages a,
.pagination ul.pages span {
display: inline-block;
padding: 8px 12px;
border-radius: var(--border-radius-small);
color: var(--line-secondary);
text-decoration: none;
transition: all 0.2s;
min-width: 36px;
text-align: center;
}

.pagination ul.pages a {
background-color: var(--line-white);
border: 1px solid var(--line-mid-gray);
}

.pagination ul.pages a:hover {
background-color: var(--line-panel-bg);
}

.pagination ul.pages li.current span {
background-color: var(--line-primary);
color: var(--line-white);
font-weight: 500;
}

.pagination .items,
.pagination .per-page {
margin-left: 15px;
font-size: 14px;
color: var(--line-dark-gray);
}

.pagination .per-page a {
color: var(--line-link);
margin: 0 3px;
}

/* ============ チケット詳細 ============ */
/* チケット詳細カード */
div.issue {
background-color: var(--line-white);
border-radius: var(--border-radius-large);
overflow: hidden;
margin-bottom: 20px;
box-shadow: var(--shadow-medium);
border: 1px solid var(--line-border);
}

div.issue .issue-header {
padding: 15px 20px;
background-color: var(--line-active-item);
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--line-mid-gray);
}

div.issue h2 {
font-weight: 600;
font-size: 18px;
margin: 0;
display: flex;
align-items: center;
}

div.issue h2:before {
content: "";
width: 24px;
height: 24px;
margin-right: 10px;
background-color: var(--line-primary);
opacity: 0.2;
border-radius: 4px;
}

div.issue .issue-actions {
display: flex;
gap: 8px;
}

/* チケット情報 */
div.issue .attributes {
width: 100%;
border-collapse: separate;
border-spacing: 0 5px;
margin: 20px 0;
}

div.issue .attributes th {
width: 150px;
text-align: right;
padding: 8px 15px 8px 0;
font-weight: 600;
color: var(--line-dark-gray);
vertical-align: top;
}

div.issue .attributes td {
padding: 8px 0;
}

/* 進捗バー */
table.progress {
width: 100%;
border-collapse: collapse;
margin-top: 5px;
height: 20px;
background-color: var(--line-light-gray);
border-radius: var(--border-radius-small);
overflow: hidden;
}

table.progress td.closed {
background-color: var(--line-primary);
}

table.progress td {
padding: 0;
}

/* チケット説明 */
div.issue .description {
margin-top: 20px;
padding: 15px;
background-color: var(--line-panel-bg);
border-radius: var(--border-radius-medium);
border: 1px solid var(--line-mid-gray);
}

div.issue .description h3 {
margin-bottom: 15px;
color: var(--line-secondary);
font-weight: 600;
font-size: 16px;
}

div.issue .description p {
margin-bottom: 10px;
line-height: 1.6;
}

/* 添付ファイル */
div.attachments {
margin-top: 20px;
}

div.attachments h3 {
margin-bottom: 15px;
color: var(--line-secondary);
font-weight: 600;
font-size: 16px;
}

div.attachments ul {
display: flex;
flex-wrap: wrap;
gap: 10px;
list-style: none;
padding: 0;
}

div.attachments ul li {
background-color: var(--line-panel-bg);
border: 1px solid var(--line-mid-gray);
border-radius: var(--border-radius-small);
padding: 10px;
display: flex;
align-items: center;
max-width: 300px;
overflow: hidden;
transition: all var(--transition-speed) ease;
}

div.attachments ul li:hover {
background-color: var(--line-light-gray);
transform: translateY(-2px);
box-shadow: var(--shadow-small);
}

div.attachments ul li a {
font-weight: 500;
color: var(--line-secondary);
text-decoration: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
}

div.attachments ul li a.delete {
color: var(--line-error);
margin-left: 5px;
}

div.attachments ul li .size {
margin-left: 5px;
font-size: 12px;
color: var(--line-dark-gray);
}

/* 子チケット */
div#issue_tree {
margin-top: 20px;
}

div#issue_tree h3 {
margin-bottom: 15px;
color: var(--line-secondary);
font-weight: 600;
font-size: 16px;
}

div#issue_tree table {
background-color: var(--line-white);
border-radius: var(--border-radius-medium);
overflow: hidden;
box-shadow: var(--shadow-small);
border: 1px solid var(--line-mid-gray);
width: 100%;
border-collapse: collapse;
}

div#issue_tree table tr {
transition: all 0.2s;
}

div#issue_tree table tr:hover {
background-color: rgba(6, 199, 85, 0.05);
}

div#issue_tree table td {
padding: 12px 15px;
border-bottom: 1px solid var(--line-mid-gray);
}

div#issue_tree table tr:last-child td {
border-bottom: none;
}

div#issue_tree table td.subject a {
color: var(--line-secondary);
text-decoration: none;
font-weight: 500;
}

div#issue_tree table td.subject a:hover {
color: var(--line-primary);
}

div#issue_tree table td.status {
padding: 4px 10px;
background-color: var(--line-light-gray);
border-radius: var(--border-radius-small);
font-size: 12px;
font-weight: 500;
}

div#issue_tree table td.status.new {
background-color: #E1F7E8;
color: var(--line-primary);
}

div#issue_tree table td.status.inprogress {
background-color: #FFF3D4;
color: #F5A623;
}

div#issue_tree table td.status.resolved {
background-color: #D1EEFC;
color: #007AFF;
}

/* 履歴 */
div#history {
margin-top: 30px;
}

div#history h3 {
color: var(--line-secondary);
font-weight: 600;
font-size: 16px;
margin-bottom: 15px;
}

div.journal {
margin-bottom: 20px;
background-color: var(--line-white);
border-radius: var(--border-radius-medium);
overflow: hidden;
box-shadow: var(--shadow-small);
border: 1px solid var(--line-mid-gray);
}

div.journal h4 {
padding: 12px 15px;
display: flex;
justify-content: space-between;
align-items: center;
background-color: var(--line-panel-bg);
border-bottom: 1px solid var(--line-mid-gray);
margin: 0;
font-size: 14px;
font-weight: normal;
}

div.journal h4 a.user {
font-weight: 500;
color: var(--line-secondary);
text-decoration: none;
}

div.journal h4 .journal-link {
color: var(--line-dark-gray);
font-size: 13px;
}

div.journal .details {
padding: 15px;
}

div.journal ul.details {
list-style: none;
margin: 0;
padding: 15px;
}

div.journal ul.details li {
display: flex;
margin-bottom: 8px;
font-size: 14px;
}

div.journal ul.details li .label {
width: 120px;
margin-right: 10px;
font-weight: 500;
color: var(--line-dark-gray);
}

div.journal ul.details li .old-value {
color: var(--line-dark-gray);
margin-right: 10px;
text-decoration: line-through;
}

div.journal ul.details li .new-value {
color: var(--line-secondary);
font-weight: 500;
}

/* コメント */
div.journal .wiki {
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid var(--line-mid-gray);
}

div.journal .wiki p {
margin-bottom: 10px;
line-height: 1.6;
}

/* コメント入力フォーム */
#update {
margin-top: 30px;
}

#update h3 {
margin-bottom: 15px;
color: var(--line-secondary);
font-weight: 600;
font-size: 16px;
}

#update #notes {
width: 100%;
min-height: 150px;
padding: 15px;
border: 1px solid var(--line-mid-gray);
border-radius: var(--border-radius-medium);
resize: vertical;
font-family: inherit;
font-size: 14px;
margin-bottom: 15px;
transition: border-color var(--transition-speed) ease;
}

#update #notes:focus {
outline: none;
border-color: var(--line-primary);
}

/* 添付ファイル */
#attachments_form {
margin-top: 15px;
margin-bottom: 15px;
}

/* バリエーションクラスに基づくスタイル */
tr.priority-high td.priority,
.priority-high {
color: #FF9500;
}

tr.priority-urgent td.priority,
.priority-urgent {
color: #FF3B30;
}

.status-new {
color: var(--line-primary);
}

.status-inprogress {
color: #F5A623;
}

.status-resolved {
color: #007AFF;
}

.status-closed {
color: var(--line-dark-gray);
}
(3-3/8)