|
/* LINE風Redmineテーマ - 主要CSSスニペット */
|
|
|
|
:root {
|
|
/* LINEカラーパレット */
|
|
--line-primary: #06C755; /* LINEの特徴的なグリーン */
|
|
--line-secondary: #1E1E1E; /* ほぼ黒(テキスト用) */
|
|
--line-light-gray: #F7F8F9; /* 背景色 */
|
|
--line-mid-gray: #E6E6EB; /* 境界線・区切り線 */
|
|
--line-dark-gray: #8E8E93; /* セカンダリテキスト */
|
|
--line-white: #FFFFFF; /* 白背景 */
|
|
--line-panel-bg: #F0F2F5; /* パネル背景色 */
|
|
--line-link: #007AFF; /* リンク色 */
|
|
--line-error: #FF3B30; /* エラーメッセージ */
|
|
--line-warning: #FF9500; /* 警告 */
|
|
--line-success: #34C759; /* 成功メッセージ */
|
|
|
|
/* 角丸 */
|
|
--border-radius-small: 4px;
|
|
--border-radius-medium: 8px;
|
|
--border-radius-large: 12px;
|
|
|
|
/* 影 */
|
|
--shadow-small: 0 1px 3px rgba(0,0,0,0.1);
|
|
--shadow-medium: 0 4px 6px rgba(0,0,0,0.1);
|
|
--shadow-large: 0 10px 15px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* ベーススタイル */
|
|
body {
|
|
font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'メイリオ', Meiryo, sans-serif;
|
|
background-color: var(--line-light-gray);
|
|
color: var(--line-secondary);
|
|
line-height: 1.7;
|
|
font-size: 16px;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* Redmineのラッパー要素 */
|
|
#wrapper {
|
|
background-color: var(--line-white);
|
|
box-shadow: var(--shadow-small);
|
|
border-radius: var(--border-radius-medium);
|
|
max-width: 1280px;
|
|
margin: 20px auto;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* リンク */
|
|
a {
|
|
color: var(--line-link);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ヘッダー */
|
|
#header {
|
|
background-color: var(--line-primary);
|
|
padding: 16px 24px;
|
|
height: auto;
|
|
color: var(--line-white);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* ヘッダーロゴ */
|
|
.current-project {
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
/* クイック検索 */
|
|
#quick-search {
|
|
margin-right: 20px;
|
|
}
|
|
|
|
#quick-search input[type="text"] {
|
|
border-radius: var(--border-radius-small);
|
|
border: none;
|
|
padding: 10px 16px;
|
|
width: 220px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* アカウント */
|
|
#account a {
|
|
color: var(--line-white);
|
|
margin-left: 10px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* トップメニュー */
|
|
#top-menu {
|
|
background-color: var(--line-white);
|
|
border-bottom: 1px solid var(--line-mid-gray);
|
|
padding: 10px 16px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
#top-menu ul {
|
|
display: flex;
|
|
list-style: none;
|
|
}
|
|
|
|
#top-menu li {
|
|
margin-right: 20px;
|
|
}
|
|
|
|
#top-menu a {
|
|
color: var(--line-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* メインメニュー */
|
|
#main-menu {
|
|
background-color: var(--line-white);
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
#main-menu .tabs {
|
|
border-bottom: none;
|
|
}
|
|
|
|
#main-menu ul {
|
|
display: flex;
|
|
list-style: none;
|
|
padding: 0 16px;
|
|
margin: 0;
|
|
}
|
|
|
|
#main-menu li {
|
|
margin: 0;
|
|
}
|
|
|
|
#main-menu a {
|
|
color: var(--line-secondary);
|
|
padding: 12px 16px;
|
|
font-weight: 500;
|
|
display: block;
|
|
font-size: 15px;
|
|
}
|
|
|
|
#main-menu a.selected {
|
|
color: var(--line-primary);
|
|
font-weight: 700;
|
|
border-bottom: 2px solid var(--line-primary);
|
|
}
|
|
|
|
/* メインコンテンツ */
|
|
#main {
|
|
display: flex;
|
|
padding: 20px;
|
|
background-color: var(--line-light-gray);
|
|
}
|
|
|
|
/* サイドバー */
|
|
#sidebar {
|
|
width: 300px;
|
|
background-color: var(--line-panel-bg);
|
|
border-radius: var(--border-radius-medium);
|
|
box-shadow: var(--shadow-small);
|
|
padding: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
#sidebar h3 {
|
|
color: var(--line-secondary);
|
|
font-size: 18px;
|
|
border-bottom: 1px solid var(--line-mid-gray);
|
|
padding-bottom: 10px;
|
|
margin-bottom: 15px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* クエリリスト */
|
|
#sidebar .queries ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#sidebar .queries li {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
#sidebar .queries a {
|
|
color: var(--line-secondary);
|
|
display: block;
|
|
padding: 8px 12px;
|
|
background-color: var(--line-white);
|
|
border-radius: var(--border-radius-small);
|
|
box-shadow: var(--shadow-small);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
#sidebar .queries a:hover {
|
|
background-color: rgba(6, 199, 85, 0.1);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-medium);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* ウォッチャー */
|
|
#watchers .watchers {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#watchers .watchers li {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
/* メインコンテンツ */
|
|
#content {
|
|
flex: 1;
|
|
background-color: var(--line-panel-bg);
|
|
padding: 20px;
|
|
border-radius: var(--border-radius-medium);
|
|
box-shadow: var(--shadow-small);
|
|
}
|
|
|
|
/* 見出し */
|
|
#content h2 {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* コンテキストメニュー */
|
|
.contextual {
|
|
float: right;
|
|
margin-top: 5px;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.contextual a {
|
|
font-size: 15px;
|
|
background-color: var(--line-white);
|
|
color: var(--line-primary);
|
|
border: 1px solid var(--line-primary);
|
|
border-radius: var(--border-radius-small);
|
|
padding: 8px 12px;
|
|
font-weight: 500;
|
|
display: inline-block;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.contextual a:hover {
|
|
background-color: rgba(6, 199, 85, 0.1);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* チケット詳細 */
|
|
.issue {
|
|
background-color: var(--line-white);
|
|
border-radius: var(--border-radius-medium);
|
|
padding: 20px;
|
|
box-shadow: var(--shadow-small);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* チケットタイトル */
|
|
.issue .subject h3 {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
margin-bottom: 16px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* 属性テーブル - フレックスボックスに変換 */
|
|
.issue .attributes {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
margin-top: 20px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--line-mid-gray);
|
|
}
|
|
|
|
.issue .attributes .attribute {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 8px;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.issue .attributes .label {
|
|
font-weight: 500;
|
|
color: var(--line-dark-gray);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.issue .attributes .value {
|
|
font-weight: 500;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* ステータスバッジ */
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
border-radius: var(--border-radius-small);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.badge-status-open {
|
|
background-color: rgba(6, 199, 85, 0.1);
|
|
color: var(--line-primary);
|
|
}
|
|
|
|
.badge-status-closed {
|
|
background-color: rgba(142, 142, 147, 0.1);
|
|
color: var(--line-dark-gray);
|
|
}
|
|
|
|
/* 説明 */
|
|
.description {
|
|
background-color: var(--line-white);
|
|
border-radius: var(--border-radius-medium);
|
|
padding: 20px;
|
|
box-shadow: var(--shadow-small);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.description h3 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--line-mid-gray);
|
|
}
|
|
|
|
.wiki {
|
|
line-height: 1.7;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.wiki h1 {
|
|
font-size: 24px;
|
|
margin-bottom: 16px;
|
|
color: var(--line-secondary);
|
|
}
|
|
|
|
.wiki h2 {
|
|
font-size: 20px;
|
|
margin-bottom: 14px;
|
|
margin-top: 28px;
|
|
color: var(--line-secondary);
|
|
}
|
|
|
|
.wiki h3 {
|
|
font-size: 18px;
|
|
margin-bottom: 12px;
|
|
margin-top: 24px;
|
|
color: var(--line-secondary);
|
|
}
|
|
|
|
.wiki p {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.wiki ul, .wiki ol {
|
|
margin-left: 20px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.wiki li {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* コードブロック */
|
|
.wiki pre {
|
|
background-color: #f5f5f5;
|
|
border-radius: var(--border-radius-small);
|
|
padding: 12px;
|
|
overflow-x: auto;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.wiki code {
|
|
font-family: Monaco, Consolas, 'Courier New', monospace;
|
|
}
|
|
|
|
/* タブ */
|
|
.tabs {
|
|
display: flex;
|
|
margin-bottom: 20px;
|
|
border-bottom: 1px solid var(--line-mid-gray);
|
|
}
|
|
|
|
.tabs ul {
|
|
display: flex;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.tabs li {
|
|
margin: 0;
|
|
}
|
|
|
|
.tabs a {
|
|
display: block;
|
|
padding: 12px 16px;
|
|
color: var(--line-dark-gray);
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
border-bottom: 2px solid transparent;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.tabs a.selected {
|
|
color: var(--line-primary);
|
|
border-bottom: 2px solid var(--line-primary);
|
|
}
|
|
|
|
/* コメント(ノート) */
|
|
#history .journal {
|
|
background-color: var(--line-white);
|
|
border-radius: var(--border-radius-medium);
|
|
padding: 16px;
|
|
box-shadow: var(--shadow-small);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.journal .note-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--line-mid-gray);
|
|
font-weight: normal;
|
|
}
|
|
|
|
/* フッター */
|
|
#footer {
|
|
text-align: center;
|
|
padding: 20px;
|
|
color: var(--line-dark-gray);
|
|
font-size: 14px;
|
|
border-top: 1px solid var(--line-mid-gray);
|
|
}
|
|
|
|
/* レスポンシブデザイン */
|
|
@media screen and (max-width: 899px) {
|
|
#main {
|
|
flex-direction: column;
|
|
}
|
|
|
|
#sidebar {
|
|
width: auto;
|
|
margin-right: 0;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#main-menu ul {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 599px) {
|
|
#header {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
}
|
|
|
|
#header h1 {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
#header #quick-search {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
#main-menu ul {
|
|
flex-direction: column;
|
|
}
|
|
|
|
#main-menu a {
|
|
text-align: center;
|
|
}
|
|
|
|
.contextual {
|
|
float: none;
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.contextual a {
|
|
margin: 5px 0;
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
.issue .attributes {
|
|
flex-direction: column;
|
|
}
|
|
}
|