00 color_code="""
原色大辞典: https://www.colordic.org/
black #000000
white #ffffff
red #ff0000
green #008000
blue #0000ff
yellow #ffff00
cyan / aqua #00ffff
magenta / fuchsia #ff00ff
gray #808080
silver #c0c0c0
navy #000080
teal #008080
olive #808000
maroon #800000
purple #800080
orange #ffa500
pink #ffc0cb
gold #ffd700
tomato #ff6347
skyblue #87ceeb
lightgreen #90ee90
darkgray #a9a9a9
lavender #e6e6fa
chocolate #d2691e
coral #ff7f50
"""
00 hljs="""
.hljs-comment {
color: #0000FF; /* Blue */
}
.hljs-keyword {
font-weight: bold;
color: #FF4500; /* Orange */
}
.hljs-string {
font-weight: bold;
color: #008000; /* Green */
}
.hljs-variable {
font-weight: bold;
color: #FF0000; /* Red */
}
"""
00 Modal_dialog="""
"""
00 copy_box="""
.copy-button-copybox {
position: absolute;
top: 30px;
right: -40px;
padding: 5px 10px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
font-size: 12px;
}
.copy-button-copybox:hover {
background-color: #45a049;
}
.copy-button {
position: absolute;
top: 10px;
right: -50px;
padding: 5px 10px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
font-size: 12px;
}
.copy-button:hover {
background-color: #45a049;
}
.container {
position: relative;
margin: 20px;
font-family: Arial, sans-serif;
display: block;
max-width: 95%;
word-wrap: break-word; /* Add */
overflow-wrap: break-word; /* Add */
word-break: break-all; /* Add */
white-space: pre-wrap; /* Add */
}
.container-copybox {
position: relative;
margin: 0;
font-family: Arial, sans-serif;
max-width: 95%;
display: block;
word-wrap: break-word; /* Add */
overflow-wrap: break-word; /* Add */
word-break: break-all; /* Add */
white-space: pre-wrap; /* Add */
position: relative;
}
.text-box-copybox {
padding: 10px;
background-color: #f1f1f1;
border: 1px solid #ddd;
}
.text-box {
padding: 10px;
background-color: #f1f1f1;
border: 1px solid #ddd;
max-width: 95%;
display: block;
word-wrap: break-word; /* Add */
overflow-wrap: break-word; /* Add */
word-break: break-all; /* Add */
white-space: pre-wrap; /* Add */
position: relative;
}
.hljs-comment {
color: #0000FF; /* Blue */
}
.hljs-keyword {
font-weight: bold;
color: #FF4500; /* Orange */
}
.hljs-string {
font-weight: bold;
color: #008000; /* Green */
}
.hljs-variable {
font-weight: bold;
color: #FF0000; /* Red */
}
"""
00 table="""
table {
// width: 100%;
border-collapse: collapse;
font-family: Arial, sans-serif;
}
th, td {
border: 1px solid #0d0d0d;
// text-align: center;
padding: 10px;
}
th {
background-color: #0FA;
color: white;
text-align: center;
}
tr:nth-child(even) {
background-color: #f2f2f2;
}
tr:hover {
background-color: #ddd;
cursor: pointer;
}
"""
00 details="""
details {
font-size: 0.8rem;
background-color: #f9f9f9;
border: 1px solid #ccc;
border-radius: 10px;
padding: 2px;
margin-bottom: 2px;
}
summary {
font-size: 1.0rem;
font-weight: bold;
color: #2980b9;
cursor: pointer;
}
details[open] summary {
color: #e74c3c;
}
"""
00 code="""
code {
font-family: 'Courier New', Courier, monospace;
font-size: 16px; /* フォントサイズを大きめに */
background-color: #f8f8f8; /* 優しいグレーの背景色 */
color: #333; /* 見やすい暗めの文字色 */
line-height: 1.2; /* 行間を調整して空白を減少 */
padding: 0px 8px; /* 内側の余白を設定 */
border: 1px solid #ccc; /* 目立ちすぎない境界線 */
border-radius: 10px; /* 角を少し丸く */
display: inline-block; /* インライン要素としてスタイリング */
}
"""
00 pre="""
pre {
overflow-x: auto; /* 横スクロールを可能に */
white-space: pre-wrap; /* 折り返し表示をサポート */
background
}
"""
00 ul="""
ul {
list-style-type: circle;
padding-left: 20px;
color: #2c3e50;
font-size: 1.1rem;
}
li {
margin-bottom: 2px;
// line-height: 1.6;
}
"""
01 D2MatE_top="""
h1 {
font-size: 2.0rem;
font-weight: bold;
color: #2c3e50;
text-transform: uppercase;
border-bottom: 2px solid #3498db;
padding-bottom: 10px;
}
h2 {
font-size: 1.7rem;
color: #34495e;
margin-top: 20px;
margin-bottom: 10px;
border-left: 5px solid #1abc9c;
padding-left: 15px;
}
h3 {
font-size: 1.2rem;
color: #7f8c8d;
margin-bottom: 10px;
font-style: italic;
}
ul {
list-style-type: circle;
padding-left: 20px;
color: #2c3e50;
font-size: 1.1rem;
}
li {
margin-bottom: 2px;
// line-height: 1.6;
}
"""
01 D2MatE_menu="""
h1 {
font-size: 1.0rem;
font-weight: bold;
color: #2c3e50;
text-transform: uppercase;
border-bottom: 2px solid #3498db;
padding-bottom: 10px;
}
h2 {
font-size: 0.9rem;
color: #34495e;
margin-top: 20px;
margin-bottom: 10px;
border-left: 5px solid #1abc9c;
padding-left: 15px;
}
h3 {
font-size: 0.8rem;
color: #7f8c8d;
margin-bottom: 10px;
font-style: italic;
}
p {
font-size: 0.8rem;
}
ul, ol {
padding-left: 20px; /* 左の余白を設定 */
}
li {
font-size: 0.8rem;
padding-left: 0px; /* 左の余白を設定 */
}
summary {
font-size: 0.8rem;
color: #2980b9;
cursor: pointer;
}
#errorMessages {
border: 1px dotted black;
// padding: 10px; /* 内側の余白を設定 */
// margin: 10px 0; /* 上下の余白を設定 */
padding: 0; /* 内側の余白を設定 */
margin: 0 0; /* 上下の余白を設定 */
background-color: #f8d7da;
color: #721c24;
}
"""
02 tkCSS.menu="""
h1 {
font-size: 1.0rem;
font-weight: bold;
color: #2c3e50;
text-transform: uppercase;
border-bottom: 2px solid #3498db;
padding-bottom: 10px;
}
h2 {
font-size: 0.9rem;
color: #34495e;
margin-top: 20px;
margin-bottom: 10px;
border-left: 5px solid #1abc9c;
padding-left: 15px;
}
h3 {
font-size: 0.8rem;
color: #7f8c8d;
margin-bottom: 10px;
font-style: italic;
}
p {
font-size: 0.8rem;
}
ul, ol {
padding-left: 20px; /* 左の余白を設定 */
}
li {
font-size: 0.8rem;
padding-left: 0px; /* 左の余白を設定 */
}
summary {
font-size: 0.8rem;
color: #2980b9;
cursor: pointer;
}
"""
02 tkCSS.standard="""
h1 {
font-size: 2.0rem;
font-weight: bold;
color: #2c3e50;
text-transform: uppercase;
border-bottom: 2px solid #3498db;
padding-bottom: 10px;
}
h2 {
font-size: 1.7rem;
color: #34495e;
margin-top: 20px;
margin-bottom: 10px;
border-left: 5px solid #1abc9c;
padding-left: 15px;
}
h3 {
font-size: 1.2rem;
color: #7f8c8d;
margin-bottom: 10px;
font-style: italic;
}
table {
// width: 100%;
border-collapse: collapse;
font-family: Arial, sans-serif;
}
th, td {
border: 1px solid #0d0d0d;
// text-align: center;
padding: 10px;
}
th {
background-color: #0FA;
color: white;
text-align: center;
}
tr:nth-child(even) {
background-color: #f2f2f2;
}
tr:hover {
background-color: #ddd;
cursor: pointer;
}
details {
font-size: 0.8rem;
background-color: #f9f9f9;
border: 1px solid #ccc;
border-radius: 10px;
padding: 2px;
margin-bottom: 2px;
}
summary {
font-size: 1.0rem;
font-weight: bold;
color: #2980b9;
cursor: pointer;
}
details[open] summary {
color: #e74c3c;
}
ul {
list-style-type: circle;
padding-left: 20px;
color: #2c3e50;
font-size: 1.1rem;
}
li {
margin-bottom: 2px;
// line-height: 1.6;
}
code {
font-family: 'Courier New', Courier, monospace;
font-size: 16px; /* フォントサイズを大きめに */
background-color: #f8f8f8; /* 優しいグレーの背景色 */
color: #333; /* 見やすい暗めの文字色 */
line-height: 1.2; /* 行間を調整して空白を減少 */
padding: 0px 8px; /* 内側の余白を設定 */
border: 1px solid #ccc; /* 目立ちすぎない境界線 */
border-radius: 10px; /* 角を少し丸く */
display: inline-block; /* インライン要素としてスタイリング */
}
pre {
overflow-x: auto; /* 横スクロールを可能に */
white-space: pre-wrap; /* 折り返し表示をサポート */
background
}
"""
02 tkCSS.tabselect="""
.${tabSelectClass} {
font-size: ${fontSize};
display: inline-block;
padding: 3px;
margin: 5px;
background-color: ${buttonBGColor};
border: 1px solid #ccc;
border-radius: 10px;
cursor: pointer;
position: relative;
}
.${tabSelectClass}:hover {
background-color: ${hoverBGColor};
}
.${tabSelectClass}:hover ${dropdownSelector} {
display: block;
}
${dropdownSelector} {
width: ${dropdownWidth};
display: none;
position: absolute;
top: 100%;
left: 0;
background-color: #fff;
border: 1px solid #ccc;
z-index: 1;
box-sizing: border-box;
border-radius: 10px; /* ドロップダウンリストのボーダーの角も丸くする */
}
${dropdownSelector} .dropdown-item {
font-size: ${fontSize};
padding: 5px;
cursor: pointer;
background-color: ${itemBGColor};
}
${dropdownSelector} .dropdown-item:hover {
background-color: ${itemHoverBGColor};
}
"""
02 tkCSS.tablang="""
.${tabLangClass} {
font-size: ${fontSize};
background-color: #E0FFDF;
display: inline-block;
padding: 3px;
margin: 5px;
// padding: 2px 2px;
// margin: 0px 0px;
cursor: pointer;
border: 2px solid #ccc;
border-radius: 12px;
white-space: nowrap;
// box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
display: inline-block;
width: fit-content; /* 必要に応じて調整 */
}
.${tabLangClass}:hover {
background-color: ${hoverBGColor};
}
"""
02 tkCSS.tabbar="""
body, html {
margin: 0;
padding: 0;
height: 100%;
}
.container {
display: flex;
flex-direction: column;
height: 100%;
}
${tabsSelector} {
display: flex;
flex-wrap: wrap;
background-color: #f0f0f0;
border-bottom: 1px solid #ccc;
flex-shrink: 0;
}
${tabSelector} {
font-size: ${fontSize};
background-color: ${BGColor};
padding: 5px 5px;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 5px;
margin: 2px;
white-space: nowrap;
}
${tabSelector}:hover {
background-color: ${hoverBGColor};
}
${tabSelector}.active {
background-color: ${activeBGColor};
color: white;
border-color: #007BFF;
// background-color: #fff;
// border-bottom: none;
}
${tabSelector}.active:hover {
background-color: ${activeHoverBGColor};
}
iframe {
flex-grow: 1;
border: none;
}
"""
02 tkCSS.mainwindow="""
.menubar {
display: flex;
background-color: white;
padding: 5px;
border-bottom: 2px groove #ccc;
}
.menu-item {
position: relative;
margin-right: 20px;
cursor: pointer;
font-size: ${buttonFontSize}; /* メニュー文字列のフォントサイズを指定 */
white-space: nowrap; /* 改行を防止 */
}
.menu-item:hover .submenu {
display: block; /* ホバーでサブメニューを表示 */
}
.submenu {
display: none;
position: absolute;
top: 100%;
left: 0;
background-color: white;
border: 1px solid #ccc;
z-index: 1;
}
.submenu-item {
position: relative; /* 必要に応じて相対位置を設定 */
padding: 5px 10px;
cursor: pointer;
}
.submenu-item:hover {
background-color: #f0f0f0;
}
.submenu .submenu {
display: none; /* デフォルトで折りたたむ */
left: 100%; /* サブメニューを親メニューの右側に配置 */
top: 0;
}
.submenu-item:hover > .submenu {
display: block; /* ホバーでさらに深いメニューを表示 */
}
.toolbar {
display: flex;
align-items: center;
height: ${toolbarHeight};
background-color: lightgrey;
border: 5px groove #ccc;
// border-top: 5px groove #ccc;
// border-bottom: 5px groove #ccc;
padding: 0 10px;
}
.tool-button {
margin: 0 2px;
height: ${buttonHeight};
font-size: ${buttonFontSize};
background-color: #cca;
color: black;
border: 10px grave white; /* 枠線を3px solid whiteに設定 */
cursor: pointer;
white-space: nowrap; /* ボタンの幅を文字列の幅に合わせる */
}
.tool-button:hover {
background-color: #777;
}
.statusbar {
position: fixed;
bottom: 0;
width: 100%;
height: ${statusbarHeight};
background-color: lightgrey;
border-top: 2px groove #ccc;
display: flex;
align-items: center;
padding: 0 10px;
}
.tabs {
display: flex;
align-items: flex-start; /* 左寄せ */
height: ${tabHeight};
background-color: white; /* タブ領域のボタン以外の背景色を白に変更 */
border-bottom: 2px groove #ccc;
}
.tab-button {
flex: none; /* フレックスボックスの拡張を無効にする */
height: ${buttonHeight};
font-size: ${buttonFontSize};
background-color: white;
color: black;
border-top: 1px solid black; /* 上枠線 */
border-right: 1px solid black; /* 右枠線 */
border-left: 1px solid black; /* 左枠線 */
border-bottom: none; /* 下枠線を削除 */
cursor: pointer;
white-space: nowrap; /* ボタンの幅を文字列の幅に合わせる */
margin-right: 2px; /* タブボタン間にスペースを追加 */
}
.tab-button:hover {
background-color: #777;
}
.tab-button.active {
background-color: blue !important; /* アクティブなタブの背景色を青色に変更 */
color: white;
border-bottom: none; /* アクティブなタブの下枠線も削除 */
}
.tab-content {
display: none;
padding: 20px;
// border-top: 3px solid #ccc; /* タブコンテンツの上部に下線を追加 */
}
.tab-content.active {
display: block;
}
"""
02 tkCSS.tree="""
ul { list-style-type: none; }
li::before { content: "▶"; cursor: pointer; margin-right: 5px; }
li.collapsed::before { content: "▼"; }
li.collapsed > ul { display: none; }`;
"""
02 tkCSS.buttun_like_anchor="""
${anchorSelector} {
display: inline-block;
padding: 10px 20px;
font-size: #{fontSize};
color: #000000;
background-color: ${bgColor};
// color: #fff;
// background-color: #007bff;
text-align: center;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
border: 2px solid #000000;
}
${anchorSelector}:hover {
background-color: #aaaadd;
// background-color: #0056b3;
border: 2px solid #000000;
}
"""
02 tkCSS.dropdown_like_anchor="""
${selectSelector} {
display: inline-block;
padding: 10px 10px;
font-size: ${fontSize};
color: #000000;
background-color: ${bgColor};
// color: #fff;
// background-color: #007bff;
text-align: center;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
border: none;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
cursor: pointer;
border: 2px solid #000000;
}
${selectSelector}:hover {
background-color: #aaaadd;
// background-color: #0056b3;
border: 2px solid #000000;
}
${selectSelector}::placeholder {
color: #fff;
}
"""
02 tkCSS.dropdown_button="""
${buttonSelector} {
font-size: ${fontSize};
padding: 0px 5px;
}
${dropdownSelector} {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 100px;
box-shadow: 0px 8px 10px 0px rgba(0,0,0,0.2);
z-index: 1;
}
${dropdownSelector} a {
color: black;
padding: 0px 10px;
text-decoration: none;
display: block;
}
${dropdownSelector} a:hover {
background-color: #f1f1f1;
}
${dropdownDivSelector}:hover ${dropdownSelector} {
display: block;
}
"""
02 tkCSS.filter_button="""
${buttonsSelector} button {
font-size: ${fontSize};
padding: 0px 5px;
}
${buttonsSelector} button.active {
background-color: ${activeBGColor};
color: white;
border-color: #007BFF;
}
${containerSelector} * {
// font-size: 15px;
}
"""
02 tkCSS.event_filter_tab="""
${tabsSelector} {
// margin-bottom: 5px;
font-size: ${fontSize};
text-align: center;
}
${tabSelector} {
display: inline-block;
padding: 0px 5px;
// margin: 0 5px;
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 5px;
cursor: pointer;
line-height: 1.5;
}
${tabSelector}:hover {
background-color: #e0e0e0;
}
${tabSelector}.active {
background-color: #00A0FF;
color: white;
border-color: #007BFF;
}
.hidden {
display: none;
}
.event {
margin-bottom: 5px;
}
button .tab {
display: block;
margin-top: 0px;
padding: 5px 0px;
background-color: #007BFF;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
"""