diff --git a/.gitignore b/.gitignore index 2e7e435..0bdc462 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ # generated by: https://gitignore.itranswarp.com/ +.memo* + #################### ExtJs.gitignore #################### .architect diff --git a/README.md b/README.md index 835aa02..bb5dc7f 100644 --- a/README.md +++ b/README.md @@ -99,8 +99,10 @@ GitHubから本拡張機能をインストールする場合、以下の手順 - [x] マスターデュエルのようなデッキ編集画面 (-> v1.0) - [x] データベース作成で ocg-card.com 様に依存しないようにする (->日本語・英語以外の言語への対応) - [ ] デッキごとのフォルダ分けないしタグ付けによる管理 -- [ ] 編集対象のデッキの切り替えをスムーズに +- [x] 編集対象のデッキの切り替えをスムーズに - [ ] デッキレシピのスクショ作成 +- [ ] デッキ編集画面にinfoエリアを作成し、カード効果の詳細を確認できるようにする + ## Contact - [お問い合わせ](https://docs.google.com/forms/d/e/1FAIpQLSdh2wRCUWpX6ZLfma-g5O46eD93wOPHpDHWQGxdOcJLmm_tGQ/viewform?usp=sf_link) diff --git a/src/css/Faq_details.css b/src/css/Faq_details.css new file mode 100644 index 0000000..d5b848f --- /dev/null +++ b/src/css/Faq_details.css @@ -0,0 +1,288 @@ +@charset "utf-8"; + +@import "FaqSearchCondition.css"; + +article #broad_title h1 { + font-size: 2rem; + line-height: 1.5em; +} + +/*----qa_box----*/ + +#qa_box { + font-size: 1.4rem; + padding: 5px; + background-color: #ffffff; + border: solid 2px #000000; + +} + +#qa_box img { + display: block; + max-width: 100%; +} + +#qa_box .keyword { + margin: 0 10px 50px; +} + +#qa_box a { + text-decoration: none; +} + +#qa_box a:hover { + text-decoration: underline !important; +} + +#qa_box a:visited { + text-decoration: none; +} + +#qa_box .tag .btn:hover { + text-decoration: none !important +} + +/*----/qa_box----*/ + + +/*----question----*/ + +#question, +#answer { + font-size: 2rem; + font-weight: bold; + border-bottom: solid 1px #bacbd6; + line-height: 1.5; + margin: 0 0 10px 0; + padding: 5px; + box-sizing: border-box; +} + +#question { + color: #555; +} + +#answer { + color: #aa0000; +} + +/*----/answer----*/ + +#question_text, +#answer_text { + line-height: 1.5em; + color: #000; +} + +/*----tag_update----*/ + +#tag_update { + margin-top: 30px; + font-size: 1.2rem; + color: #555; + border-top: solid 1px #ccc; + display: flex; + padding: 5px 0 0; +} + +#tag_update .tag { + flex: 1; + display: flex; +} + +#tag_update .tag .fag_detail { + font-weight: bold; + background: none; + color: #000000; +} + +#tag_update .tag div { + display: flex; + flex: 1; + padding: 0 10px; + flex-wrap: wrap; + justify-content: flex-start; +} + +#tag_update .tag div span { + padding: 0 5px 5px; + box-sizing: border-box; +} + +#tag_update .tag div a { + background: #467491; + color: #ffffff; + padding: 0px 10px; + border-radius: 5px; + display: block; + text-align: center; +} + +/*----tag_update----*/ + +@charset "utf-8"; + +.search_box { + margin: 0 auto; +} + +.search_hed { + background: #022c53; + padding: 10px; + display: flex; + align-items: center; +} + +.search_hed .search { + display: flex; + flex: 1; + +} + +.search #first_search { + flex: 1; + display: flex; + align-items: center; + background: #fff; + + padding-right: 5px; + margin-right: 50px; + box-sizing: border-box; +} + +#keyword { + padding: 10px 7px; + font-size: 1.4rem !important; + font-weight: bold; + border: none; + box-sizing: border-box; + flex: 1; + outline: none; + line-height: 1.2; +} + +#keyword:focus { + background-color: #ffffff; +} + +.search #first_search img { + position: relative; + padding: initial; + width: 20px; + height: 20px; +} + + +.search_hed .s_btn { + flex: none; + display: block; + padding: 0 45px 0 50px +} + +.search_hed .s_btn a { + justify-content: center; +} + +.search_bot { + border: 1px solid #000000; + box-sizing: border-box; +} + +.search_row { + border: 1px solid #000; + margin-top: -1px; +} + +.search_row:first-child { + margin-top: 0 +} + +.search_row>* { + display: block; +} + +.search_row .search_title { + background: #467491; + color: #ffffff; + font-size: 1.2rem; + min-width: 128px; + padding: 0 5px; +} + +.search_row .search_btn { + display: flex; + flex-wrap: wrap; + padding: 5px; +} + +.search_row .search_btn a { + padding: 2px; + box-sizing: border-box; + min-width: 20%; + display: block; +} + +.search_row .search_btn a span { + font-size: 1.2rem; + background: #002345; + color: #ffffff; + border-radius: 2px; + padding: 5px; + box-sizing: border-box; + display: block; +} + +.search_row .search_btn a:hover { + text-decoration: none; + opacity: .8; +} + +.dk_container { + display: flex; +} + +@media only screen and (max-width: 896px) { + + /*デバイスの横幅が896px以下の場合*/ + .search_row .search_btn a { + width: auto; + min-width: 20%; + } + + .search_row .search_btn a span { + padding: 5px 10px; + text-align: center; + } + + .search_hed { + display: block; + } + + .search_hed .search { + margin: 0 0 20px; + } +} + +@media only screen and (max-width: 700px) { + + /*デバイスの横幅が700px以下の場合*/ + .search_row .search_btn {} + + .search_hed .search { + display: block; + } + + .search_hed .search>* { + margin-bottom: 10px; + min-width: 100%; + } + + .dk_container { + float: none; + width: 100%; + } + + .dk_container a { + width: 100% !important; + } +} \ No newline at end of file diff --git a/src/css/card_details.css b/src/css/card_details.css new file mode 100644 index 0000000..93bb1bb --- /dev/null +++ b/src/css/card_details.css @@ -0,0 +1,1448 @@ +@charset "utf-8"; + +@import "CardSearchCondition.css"; + +.list .inside .contents{ + display: flex; + line-height: 1.4; +} +.list .inside .time{ + line-height: 1.4; + margin: 0; + min-width: 90px; +} +.list .inside .contents .pack_name{ + font-weight: bold; +} +.list .inside .contents .card_number{ + margin: 0; + min-width: 100px; +} +.list .inside .icon{ + padding: 5px; + margin: 0; + display: flex; + align-items: flex-start; +} +@media only screen and (max-width: 896px) {/*デバイスの横幅が896px以下の場合*/ + .list .inside { + display: flex; + justify-content:space-between; + flex-wrap: wrap; + } + .list .inside .contents{ + order: 3; + min-width: 100%; + padding: 0 2px 2px; + } + .list .inside .icon{ + order: 2; + margin: 0 0 0 auto; + padding: 2px; + } + .list .inside .time{padding: 2px 2px 0} +} +@media only screen and (max-width: 500px) {/*デバイスの横幅が500px以下の場合*/ + .list .inside .contents >*{ + line-height: 1.2; + } + +} + +#cardname{ + background: #000000; + color: #ffffff; + padding: 5px; +} + #cardname h1{ + font-size: 2.4rem; + line-height: 1.2; + text-align: center; + color: #ffffff; + } + #cardname h1 span{ + font-size: .9em; + line-height: 1.2; + display: block; + opacity: .8; + margin: 2px 0 0; + } + #cardname h1 span.ruby{ + font-size: 1.4rem; + line-height: 1.5; + margin: 0; + } +@media only screen and (max-width: 896px) {/*デバイスの横幅が896px以下の場合*/ + #cardname h1{ + font-size: 2.2rem; + } + #cardname h1 span{ + font-size: .8em; + } + #cardname h1 span.ruby{ + font-size: 1.4rem; + } +} +@media only screen and (max-width: 500px) {/*デバイスの横幅が500px以下の場合*/ + #cardname h1{ + font-size: 2rem; + } + #cardname h1 span{ + font-size: .7em; + } + #cardname h1 span.ruby{ + font-size: 1.2rem; + } +} + + + +#CardRelation { + align-items: center; +} +.navbtn .icon.hex span { + width: 25px; + height: auto; +} +.navbtn .icon.hex svg { + width: 100%; + height: 100%; +} + +/*----thumbnail----*/ +#thumbnail{ + width: 208px; + margin: 0 auto; +} + +#thumbnail img{ + margin:1px; + width:32px; + height:46px; + border:solid 2px #ddd; + cursor:pointer; +} + +#thumbnail img.current{ + border:solid 3px #888; + margin:0; +} + +/*----/thumbnail----*/ + + +/*----details----*/ + +#details{ + font-size:1.4rem; + width:510px; +} + +#details tr td{ + padding:0; +} + +#details .item_box { + position:relative; + background:#fff; + border:solid 2px #555; + text-align:left; + padding:5px 10px; + border-radius:5px; + height:22px; + line-height:1.6em; +} + + #details .item_box .item_box_title{ + position:absolute; + left:10px; + top:5px; + } + + #details .item_box .item_box_value{ + position:absolute; + right:10px; + } + +#details .item_box_text { + position:relative; + background:#fff; + border:solid 2px #555; + text-align:left; + padding:5px 10px; + border-radius:5px; + line-height:1.5em; +} +.item_box_title_note{ + border-top:1px solid #888; + display: block; + margin: 5px 0; + padding: 5px 0 0; +} + +#details div.forbidden_limited { + margin:5px 0; + text-align:center; + border-radius:5px; +} +#details div.forbidden_limited.limited_type_1{ + background-color:#fd7978; +} +#details div.forbidden_limited.limited_type_2{ + background-color:#fdb352; +} +#details div.forbidden_limited.limited_type_3{ + background-color:#fdd752; +} + #details div.forbidden_limited img{ + vertical-align: text-bottom; + margin-left: -80px; + } + #details div.forbidden_limited span{ + color:#fff; + font-weight:bold; + } +/*----/details----*/ + + +/*------to_QandA------*/ + +.CD_a_btn{ + width: 206px; + box-sizing: border-box; + display: inline-block; + padding:10px; + margin: 0 2px 10px; + line-height:1.5em; + color:#fff; + font-weight:bold; + font-size:1.4rem; + text-align:center; + text-decoration:none; + border:1px solid; + border-radius:3px; + +-moz-box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.4); +-webkit-box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.4); +-ms-box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.4); +box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.4); +} + +#to_QandA.CD_a_btn{ +background: #f3cd4d; +background: -moz-linear-gradient(top, #f3cd4d 0%, #f2c94a 27%, #edb437 51%, #eba92d 100%); +background: -webkit-linear-gradient(top, #f3cd4d 0%,#f2c94a 27%,#edb437 51%,#eba92d 100%); +background: linear-gradient(to bottom, #f3cd4d 0%,#f2c94a 27%,#edb437 51%,#eba92d 100%); +filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3cd4d', endColorstr='#eba92d',GradientType=0 ); + +border-color: #f5d496; +} + #to_QandA.CD_a_btn:hover{ +background: #f7de68; +background: -moz-linear-gradient(top, #f7de68 0%, #f7da60 27%, #f4cf4d 51%, #f2c73d 100%); +background: -webkit-linear-gradient(top, #f7de68 0%,#f7da60 27%,#f4cf4d 51%,#f2c73d 100%); +background: linear-gradient(to bottom, #f7de68 0%,#f7da60 27%,#f4cf4d 51%,#f2c73d 100%); +filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7de68', endColorstr='#f2c73d',GradientType=0 ); + + } + +#to_MyD.CD_a_btn,#relationCard_a a{ +background: #545454; +background: -moz-linear-gradient(top, #545454 0%, #545454 27%, #333434 51%, #000000 100%); +background: -webkit-linear-gradient(top, #545454 0%,#545454 27%,#333434 51%,#000000 100%); +background: linear-gradient(to bottom, #545454 0%,#545454 27%,#333434 51%,#000000 100%); +filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#545454', endColorstr='#000000',GradientType=0 ); + +border-color: #b4b4b4; +} + #to_MyD.CD_a_btn:hover,#relationCard_a a:hover{ +background: #6c6c6c; +background: -moz-linear-gradient(top, #6c6c6c 0%, #727272 27%, #545454 51%, #1f2020 100%); +background: -webkit-linear-gradient(top, #6c6c6c 0%,#727272 27%,#545454 51%,#1f2020 100%); +background: linear-gradient(to bottom, #6c6c6c 0%,#727272 27%,#545454 51%,#1f2020 100%); +filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6c6c6c', endColorstr='#1f2020',GradientType=0 ); + + } + + .CD_a_btn:visited{ + text-decoration:none; + } + +/*------/to_QandA------*/ + + + +/*----pack_list----*/ + +#pack_list{ + background-color:#888; + border:solid 2px #555; + /* 2014.01対応 コンテンツ幅調整 + 2014.02対応 コンテンツ幅再調整 */ + /*margin:0 6px 30px 6px;*/ + margin-bottom:30px; +} + + #pack_list table { + width:100%; + margin:0 auto; + border-collapse: collapse; + } + + #pack_list table tr{ + height:35px; + min-height:35px; + } + + #pack_list table tr.row{ + background:#fff url(../image/parts/list_style_line_bk.png) center repeat-x; + cursor:pointer; + } + + #pack_list table tr.row:hover{ + /*background:#eadff4;*/ + background:#6ec0ff; + color: #fff; + } + + #pack_list table tr th, + #pack_list table tr td{ + padding: 3px; + } + + #pack_list table tr th{ + text-align:left; + color:#fff; + padding-left:10px; + } + + #pack_list table tr td a{ + text-decoration:none; + } + + #pack_list tr td a:hover{ + text-decoration:underline; + } + +/*----/pack_list----*/ +#relationCard{ + padding: 50px 0 0; +} + article #relationCard .li_top{ + font-weight: bold; + color: #fff; + background:#333 !important; + padding: 2px 10px; + cursor: default; + margin: 0 0 20px; + border:double 4px; + } +article #relationCard ul{ + padding:0; +} + article #relationCard li{ + cursor:pointer; + } + + +#relationCard_a{ + text-align:center; + margin:20px auto ; +} + #relationCard_a a{ + display: inline-block; + color:#fff; + text-align:center; + line-height:20px; + padding:15px 20px; + border:1px solid #b4b4b4; + border-radius:3px; + font-size:1.4rem; + font-weight:bold; + + box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.4); + -moz-box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.4); + -webkit-box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.4); + -ms-box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.4); + + } +#CD_Simple{ + background-color: #888; + border: solid 2px #555; + margin-bottom: 20px; + border-top-right-radius: 5px; + border-top-left-radius: 5px; +} + #CD_Simple table{ + width:100%; + border-collapse: collapse; + } + #CD_Simple table tr.row { + background: #fff url(../image/parts/list_style_line_bk.png) center repeat-x; + background-size: 100% 100%; + cursor: pointer; + } + #CD_Simple table tr.row:hover{ + background: #6ec0ff; + color: #fff; + } + #CD_Simple table tr th { + text-align: center; + color: #fff; + } + + #CD_Simple table tr td { + padding: 5px 0; + line-height: 14px; + } + +#relationCard .dk_options_inner{ + border:1px solid #aaa; + border-radius: 0; +} + +#relationCard #CD_Simple,#relationCard .box_list{ + margin:0 10px; +} + +article #relationCard.list_style ul.box_list li dl dd.box_card_pen_info span.box_card_pen_effect { + width: 758px; +} + +/*投票用ここから*/ +#form_regist_voto{ + display: flex; + justify-content: center; +} + +#CardSet #voto_btn_set{ + display: inline-block; + border: 2px solid #000000; + background: #fff; + margin: 10px auto; + padding: 10px; + box-sizing: border-box; +} +#CardSet #voto_btn_set .top{ + align-items: center; + color: #fff; + padding: 5px; + background: #023765; + font-size: 1.4rem; + width: auto ; + margin: 0 +} +#CardSet #voto_btn_set .top p{text-align: center;} + #voto_btn_set .top span{ + font-weight: bold; + padding: 0 5px; + font-size: 1.8rem; + } +#CardSet #voto_btn_set .bottom{text-align: center;} +#CardSet #voto_btn_set a{ + width: auto; + margin: 10px auto; + justify-content: center; +} +#CardSet #voto_btn_set .navbtn .icon.hex span{ + width: 40px; +} +@keyframes blinkAnime{ + 0% { background: #f3cd4d } + 100% { background:#ff9000 } +} + +#CardSet #voto_btn_set a img{ + width: 40px; + vertical-align: middle; +} + +#CardSet #messageVoto{ + display: none; + text-align: center; + padding: 0 0 10px; + color: red; +} +/*投票用ここまで*/ +#cboxContent,#cboxLoadedContent{background: none;border: none} +#pop_set{ + + box-sizing: border-box; + height: 100%; + width: 100%; + margin: 0 auto; + position: relative; +} + +#pop_set .btn_set{ + padding: 0 20px; +} +#pop_set .img_set{ + display: flex; + justify-content: center; + align-items: center; + + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; +} +#pop_card{ + margin: 0; + flex: 1; + display: flex; + justify-content: center; + align-items: center; +} +#pop_set img{ + border: 1px solid rgb(255,255,255,.5); + width: 100%; + max-width: 300px; + height: auto; +} +#pop_set .img_set .btn{ + font-size: 4rem; + color: #ffffff; + padding: 2px 0 0; +} +#pop_set .img_set .btn:active{ + padding:0 0 2px; +} + +#cboxClose { + position: absolute; + top: 0; + right: 0; + margin: 10px; + z-index: 3; + display: block; + box-sizing: border-box; + width: 28px; + height: 28px; + background: rgb(255,255,255,0.2); + text-indent: 0; + font-size: 0; + line-height: 28px; + border-radius: 100%; + color: #ffffff; +} + +#cboxClose:before { + font-size:1.4rem; + content:'X'; +} + +#card_frame a{ + position: relative; + display: block; + height: 100%; + width: 100%; +} +#card_frame svg{ + position: absolute; + bottom: 25px; + right: 12px; + width: 40px; + height: 40px; +} +#card_frame a:hover svg{ + opacity: .5; +} +@media only screen and (max-width: 700px) {/*デバイスの横幅が896px以下の場合*/ + #card_frame svg{ + width: 32px; + height: 32px; + bottom: 14px; + right: 7px;; + } +} +@media only screen and (max-width: 510px) {/*デバイスの横幅が510px以下の場合*/ + #pop_set{ + min-width: 300px; + } +} +@media only screen and (max-width: 500px) {/*デバイスの横幅が500px以下の場合*/ + #card_frame svg{ + width: 32px; + height: 32px; + bottom: 0; + right: 0; + } +} +.subcatergory { + padding: 0; +} + + +@charset "utf-8"; + +@import "CardSearchCondition.css"; + +#card_title{ + border: 2px solid #000; + color: #fff; + box-sizing: border-box; + margin-bottom: -2px; + padding: 5px; + background: #000; + font-size: 0px; +} + #card_title h1 span{ + font-size: 26px; + line-height: 34px; + color: #fff; + display: block; + text-align: center; + } + #card_title .ruby{ + font-size: 14px; + line-height: 18px; + color: #888; + } + +#CardSet{ + padding: 0 0 10px; + box-sizing: border-box; + border: 2px solid #000; +} +/*----card_frame----*/ +#CardSet .top{ + display: flex; + width: 100%; + padding: 10px 10px; + box-sizing: border-box; +} +#CardImgSet{ + width: 20%; + max-width: 220px; + min-width: 80px; +} + +#card_frame { + margin-bottom:5px; + position: relative; + width: 100%; +} +#card_frame::before{ + content: ""; + display: block; + padding-top: 145%; +} +#card_frame .set{ + border: 1px solid #ffffff; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + background: url(../image/en/card_back.png) no-repeat ; + background-size: contain; +} +.ja #card_frame .set{ + background-image: url(../image/ja/card_back.png) ; +} +.ko #card_frame .set{ + background-image: url(../image/ko/card_back.png) ; +} + +#card_frame img{ + width:100%; + height:auto; + max-width: 220px; + +} + +/*----/card_frame----*/ + +/*----thumbnail----*/ +#thumbnail{ + width: 100%; + margin: 0 auto; +} + +#thumbnail img{ + margin:1px; + width:32px; + height:46px; + border:solid 2px #ddd; + cursor:pointer; +} + +#thumbnail img.current{ + border:solid 3px #888; + margin:0; +} + +/*----/thumbnail----*/ + +#CardTextSet{ + padding: 0 0 0 10px; + flex: 2; +} + +#legend{ + margin: 0 0 5px; + justify-content: flex-end; + display: flex; +} +#legend span{ + font-size: 13px; + height: 20px; + line-height: 20px; +} + + +#legend span.fuki:before{ + border: 10px solid transparent; + margin-top: -10px; +} +#legend span.fuki:after { + margin-top: -12px; + border: 12px solid transparent; +} +#legend span.f1:before { + left: -22px; + border-right: 10px solid #C29B00; +} + +#legend span.f1:after { + left: -26px; + border-right: 12px solid #000; +} + +#legend span.f2:before { + right: -21px; + border-left: 10px solid #C29B00; +} +#legend span.f2:after { + right: -25px; + border-left: 12px solid #000; +} +@media only screen and (max-width: 500px) {/*デバイスの横幅が500px以下の場合*/ + #legend span{ + font-size: 10px; + line-height: 12px; + height: 12px; + } + #legend span.fuki:before{ + border: 6px solid transparent; + margin-top: -6px; + } + #legend span.fuki:after { + margin-top: -8px; + border: 8px solid transparent; + } + #legend span.f1:before { + left: -14px; + border-right: 6px solid #C29B00; + } + + #legend span.f1:after { + left: -18px; + border-right: 8px solid #000; + } + + #legend span.f2:before { + right: -13px; + border-left: 6px solid #C29B00; + } + #legend span.f2:after { + right: -17px; + border-left: 8px solid #000; + } +} + + +.CardText{ + border: 1px solid #000; + border-right: none; + border-top: none; + margin-bottom: 10px; +} + .CardText .frame{ + display: flex; + + flex-wrap: wrap; + } + .CardText .frame:first-of-type{ + + } +@media only screen and (max-width: 500px) {/*デバイスの横幅が500px以下の場合*/ + .CardText .frame{ + display: block; + } + .pen.CardText .frame{ + display: flex; + } + .pen.CardText .item_box{ + flex-wrap: nowrap; + } +} +.CardText .item_box{ + border: 1px solid #000; + border-left: none; + border-bottom: none; + +} + .CardText .item_box,.CardText .atkdef{ + display: flex; + flex-wrap: wrap; + justify-content: end; + flex: 1; + flex-grow: 1; + width: 100%; + } +.CardText .item_box img{ + width: 20px; + height: 20px; + margin-right: 5px; +} +.CardText .atkdef .item_box{min-width: 150px;} + .CardText .item_box:first-of-type,.CardText .atkdef:first-of-type{ + + } + .CardText .item_box >*{ + font-size: 1.4rem; + color: #000; + padding: 5px; + } + +@media only screen and (max-width: 500px) {/*デバイスの横幅が500px以下の場合*/ + .CardText .item_box,.CardText .atkdef{ + min-height: auto; + } + .CardText .item_box p{font-size: 12px;} + .CardText .item_box >*{ padding: 5px;} +} +.CardText .item_box .item_box_title{ + white-space: nowrap; + display: flex; + text-align: center; + background-color: #023765; + justify-content: center; + color: #ffffff; + flex: 1; +} +.CardText .frame.imgset .item_box_title{ + +} +.CardText .item_box .item_box_title img{ + + display: block; +} +@media only screen and (max-width: 500px) {/*デバイスの横幅が500px以下の場合*/ + .CardText .item_box .item_box_title img{ + width: 18px; + height: 18px; + max-width: 18px; + max-height: 18px; + display: block; + } + .CardText .item_box .item_box_title{ + line-height: 20px; + } +} +.CardText .item_box .item_box_value{ + flex: 3; + text-align: left; + display: flex; + align-items: center; +} +.t_center { + justify-content: center; +} + .CardText .item_box_text{ + flex: 1; + border: 1px solid #000; + padding: 5px; + box-sizing: border-box; + width: 100%; + line-height: 22px; + font-size: 14px; + color: #000; + border-left: none; + border-bottom: none; + } +.CardText .item_box_text .item_box_title_note{ + border-bottom: 1px solid #000; + font-weight: bold; + margin: 5px 0 0; + padding: 5px 0 0; +} + +.CardText.pen .item_box{ + justify-content: flex-start; +} +.CardText.pen .item_box_text{ + border-top: none; +} +.CardText .item_box.pen_s{border-bottom: 1px solid;} +.text_title{ + margin: 0 0px 5px; + flex: 1; + border-bottom: 1px solid; + padding: 0 5px; + box-sizing: border-box; + font-weight: bold; +} +.pen .text_title{ + margin: 0 5px 0; + padding-bottom: 0; +} + +#CardRelation{ + display: flex; + justify-content: center; + padding: 10px; + flex-wrap: wrap; +} + #CardRelation >a{ + margin: 5px 10px; + } +@media only screen and (max-width: 896px) {/*デバイスの横幅が896px以下の場合*/ + .navbtn h4{ + line-height: 1.2; + } +} +#user_box{ + padding: 0 10px; + box-sizing: border-box; +} +#user_box form{ + display: flex; + flex-wrap: wrap; +} +#user_box .inner_box{ + flex: 1; + margin: 0; + min-width: 200px; + border: 1px solid #000; + background-color: #00cccc; + padding: 5px 10px 60px; + box-sizing: border-box; + position: relative; + +} +@media only screen and (max-width: 500px) { + #user_box .inner_box{ + width: 100%; + min-width: 100%; + } +} +#user_box p{ + color: #000; + font-size: 14px; +} + +#user_box .select,#user_box select{ + width: 100%; + margin: 1px 0; +} +#user_box .dk_container { + transform: skewX(0deg); + background: #fff; + border: 1px solid #000; + width: 100%; +} +#user_box .dk_container >* { + transform: skewX(0deg); + +} +#user_box .dk_container >a{ + width: 100% !important; + box-sizing: border-box; +} +#user_box .dk_container.dk_open .dk_options { + top: auto !important; + margin: 0px 0px 0 0; +} +#user_box .dk_container .dk_label { + color: #000; + white-space: break-spaces; +} +#user_box .f_del{ + width: 100%; + box-sizing: border-box; + text-align: center; + position: absolute; + bottom: 5px; + display: flex; + justify-content: center; +} + +#user_box #message{ + color: red; + text-align: center; + margin-top: 10px; +} + +#pack_list,#relationCard,#form_search{ + margin-top:20px; +} + +#pack_list ul{ + border: 1px solid #000; + border-bottom: 2px solid #000; +} +#pack_list li{ + display: flex; + border: 1px solid #000; + border-bottom: none; + font-size: 14px; + padding:5px; + flex-wrap: wrap; +} +#pack_list .row:hover{background-color: #fff0b2} +#pack_list li >*{ + padding: 2px 5px; + white-space: nowrap; + min-width: 80px; + display: block; +} +#pack_list .pack_name{ + flex: 1; + white-space: normal; + font-weight: bold; +} +#pack_list .head{ + background: #000; + color: #fff; +} +#pack_list .row{ + background: #fff; + cursor: pointer; +} +@media only screen and (max-width: 896px) {/*デバイスの横幅が896px以下の場合*/ + #pack_list li{ + font-size: 12px; + + } + #pack_list li >*{ + min-width: 60px; + } +#pack_list .pack_name{ + flex: auto; +} +} + + +.li_top{ + border: 3px #fff double; + background-color: #000; + /* padding: 5px; */ + margin: 0 -1px; + color: #fff; + padding: 7px 10px; + font-size: 14px; + line-height: 18px; +} + +.forbidden_limited_ber{ + display: flex; + justify-content: center; + width: 100%; + text-align: center; + align-items: center; + padding: 2px 0 0; + font-size: 1.6rem; +} +.forbidden_limited_ber.limited_type_1{background-color: #dc0000} +.forbidden_limited_ber.limited_type_2{background-color: #fb8c32} +.forbidden_limited_ber.limited_type_3{background-color: #fbb830} +.forbidden_limited_ber span{ + text-align: center; + color: #fff; + margin: 0 5px; +} + +.forbidden_limited_ber .img{ + display: block; + width: 30px; + height: 20px; + background-position: center; + background-size: auto 90%; + background-repeat: no-repeat; +} +.forbidden_limited_ber.limited_type_1 .img{ background-image:url(../image/parts/svg/icon_forb_unlim.svg); background-color: #dc0000;} +.forbidden_limited_ber.limited_type_2 .img{ background-image:url(../image/parts/svg/icon_limit_unlim.svg); background-color: #fb8c32;} +.forbidden_limited_ber.limited_type_3 .img{ background-image:url(../image/parts/svg/icon_slim_unlim.svg); background-color: #fbb830;} + + + +@media only screen and (max-width: 500px) {/*デバイスの横幅が500px以下の場合*/ + #card_title h1 span { + font-size: 22px; + line-height: 28px; + + } + #card_title .ruby { + font-size: 12px; + line-height: 16px; + } + .CardText .item_box >span { + font-size: 12px; + } + .CardText .item_box_text { + font-size: 12px; + line-height: 18px; + } +} + +.img_yaji{ + display: none; + justify-content: space-between; +} +.img_yaji >*{ + padding: 5px 10px; + color: #ffffff; + background: #023765; + border-radius: 10px; + line-height: 1.2; + font-size: 1.6rem; +} +@media only screen and (max-width: 700px) {/*デバイスの横幅が700px以下の場合*/ + .img_yaji{display: flex;} + #thumbnail{display: none} +} + + +@charset "utf-8"; + +@import "FaqSearchCondition.css"; + +.list .dack_name .name{ + padding: 10px 5px 5px; + line-height: 1.2; +} +.list .dack_set .text{ + display: flex; +} + +.list .dack_set .text span{ + font-size: 1.2rem; +} +.list .dack_set .text .tag_name{ + flex: 1; + display: flex; +} +.list .dack_set .text span{ + padding: 0 10px; + border-radius: 5px; + color: #ffffff; + margin: 0 2px; + line-height: 1.5; + display: block; +} +.list .dack_set .text .tag_name span{ + background: #467491; +} +.list .dack_set .text .new span{ + background: #ffba00; +} +.list .dack_set .text .attention span{ + background: #d83134; +} + .list .t_row:first-child{ + margin: 0; +} + +@charset "utf-8"; + +/*----card_info----*/ + +.qa_text_area{ + color: #000; + margin: 0 auto 30px; + background-color: #fff; + border: solid 2px #000; + box-sizing: border-box; +} + + .qa_text_area .title { + display: flex; + justify-content: space-between; + font-size:1.4rem; + font-weight:bold; + line-height:1.2; + padding: 5px; + color: #000; + border-bottom: 1px solid; + margin: 5px 5px 0; + } + .qa_text_area .title .update{ + font-size: 1.2rem; + font-weight: normal; + } + + .qa_text_area .text { + padding: 15px 10px 25px; + line-height: 1.8; + font-size: 1.4rem; + box-sizing: border-box; + min-height: 128px; + } + + .qa_text_area .supplement{ + margin: 10px; + border: 1px solid #467491; + border-radius: 5px; + } + .qa_text_area .supplement .title { + background: #467491; + margin: 0; + color: #ffffff; + border: none; + } + .qa_text_area .supplement .text { + min-height: 64px; + } +.qa_text_area .text.supplement{ +} + + + .qa_text_area a{ + text-decoration:none; + } + + .qa_text_area a:hover{ + text-decoration:underline !important; + } + + .qa_text_area a:visited{ + text-decoration:none; + } + + +/*----/card_info----*/ + + + +#article_body .list_style ul li { +} + + #article_body .list_style ul li:hover { + cursor:pointer; + } + + #article_body .list_style ul li table tr td{ + padding:5px 10px 0px 10px; + } + + #article_body .list_style ul li table tr td div.border_t{ + border-top:solid 1px #ccc; + } + + #article_body .list_style ul li:hover table tr td div.border_t{ + border-top:solid 1px #fff; + } + + #article_body .list_style ul li div.qa_title{ + font-size:1.4rem; + line-height:1.5em; + } + + #article_body .list_style ul li span.tag_name{ + font-size:1rem; + color: #555; + } + + #article_body .list_style ul li span.tag_name span{ + font-size:1rem; + font-weight:normal; + padding:0 10px; + margin:0 5px; + margin-bottom:5px; + } + + #article_body .list_style ul li:hover span.tag_name span{ + background-color:#fff; + border-radius: 20px; + } + + #article_body .list_style ul li span.new{ + border:solid 1px #d59f00; + background-color:#ffe495; + font-weight:bold; + padding:0 5px; + font-size:1.4rem; + color: #555; + } + + #article_body .list_style ul li span.attention{ + border:solid 1px #d58095; + background-color:#ffd5df; + font-weight:bold; + padding:0 5px; + font-size:1rem; + color: #555; + } + + +/*------to_detail------*/ + +#to_detail{ + display:block; + height:70px; + line-height:1.5em; + width:180px; + color:#fff; + font-weight:bold; + font-size:1.4rem; + text-align:center; + background:url(../image/parts/btn_box_yellow.png) no-repeat; +} + + #to_detail b{ + display:block; + padding-top:14px; + } + + #to_detail:hover{ + background-position:right top; + text-decoration:none; + } + + #to_detail:visited{ + text-decoration:none; + } + +/*------/to_detail------*/ + +@charset "utf-8"; + +.search_box{ + margin: 0 auto; +} + +.search_hed{ + background: #022c53; + padding: 10px; + display: flex; + align-items: center; +} + +.search_hed .search{ + display: flex; + flex: 1; + +} + +.search #first_search { + flex: 1; + display: flex; + align-items: center; + background: #fff; + + padding-right: 5px; + margin-right: 50px; + box-sizing: border-box; +} +#keyword { + padding: 10px 7px; + font-size: 1.4rem !important; + font-weight: bold; + border: none; + box-sizing: border-box; + flex: 1; + outline: none; + line-height: 1.2; +} +#keyword:focus {background-color: #ffffff;} +.search #first_search img { + position: relative; + padding: initial; + width: 20px; + height: 20px; +} + + +.search_hed .s_btn{ + flex: none; + display: block; + padding: 0 45px 0 50px +} +.search_hed .s_btn a{justify-content: center;} + +.search_bot{ + border: 1px solid #000000; + box-sizing: border-box; +} +.search_row{ + border: 1px solid #000; + margin-top: -1px; +} +.search_row:first-child{margin-top: 0} +.search_row >*{ + display: block; +} +.search_row .search_title{ + background: #467491; + color: #ffffff; + font-size: 1.2rem; + min-width: 128px; + padding:0 5px; +} +.search_row .search_btn{ + display: flex; + flex-wrap: wrap; + padding:5px; +} +.search_row .search_btn a{ + padding: 2px; + box-sizing: border-box; + min-width: 20%; + display: block; +} +.search_row .search_btn a span{ + font-size: 1.2rem; + background: #002345; + color: #ffffff; + border-radius: 2px; + padding: 5px; + box-sizing: border-box; + display: block; +} +.search_row .search_btn a:hover{ + text-decoration: none; + opacity: .8; +} +.dk_container{ + display: flex; +} +@media only screen and (max-width: 896px) {/*デバイスの横幅が896px以下の場合*/ + .search_row .search_btn a{ + width: auto; + min-width: 20%; + } + .search_row .search_btn a span{ + padding: 5px 10px; + text-align: center; + } + .search_hed{ + display: block; + } + .search_hed .search{ + margin: 0 0 20px; + } +} +@media only screen and (max-width: 700px) {/*デバイスの横幅が700px以下の場合*/ + .search_row .search_btn{ + + } + .search_hed .search { + display: block; + } + .search_hed .search >*{ + margin-bottom: 10px; + min-width: 100%; + } + .dk_container{ + float: none; + width: 100%; + } + .dk_container a{ + width: 100% !important; + } +} + diff --git a/src/css/card_search.css b/src/css/card_search.css index 760c155..4d3d3d5 100644 --- a/src/css/card_search.css +++ b/src/css/card_search.css @@ -1,79 +1,95 @@ -.search_btn_set{ +.search_btn_set { background: #022c53; padding: 10px; display: flex; } - .search_btn_set .search{ - display: flex; - justify-content: space-between; - flex: 1; - } - .search_btn_set .search #first_search{ - flex: 1; - display: flex; - align-items: center; - background: #fff; - border: 1px solid #888; - padding-right: 5px; - margin-right: 50px; - box-sizing: border-box; - } - #keyword { - padding: 4px 7px; - font-size: 15px !important; - font-weight: bold; - height: 30px; - border: none; - box-sizing: border-box; - flex: 1; - outline: none; - } - .search_btn_set .search #first_search img{ - position: relative; - padding: initial; - width: 20px; - height: 20px; - } +.search_btn_set .search { + display: flex; + justify-content: space-between; + flex: 1; +} -#submit_area{ - padding: 0 45px 0 50px; +.search_btn_set .search #first_search { + flex: 1; + display: flex; + align-items: center; + background: #fff; + border: 1px solid #888; + padding-right: 5px; + margin-right: 10px; + box-sizing: border-box; +} + +#keyword { + padding: 4px 7px; + font-size: 13px !important; + font-weight: bold; + height: 30px; + border: none; + box-sizing: border-box; + flex: 1; + outline: none; } -@media only screen and (max-width: 896px) {/*デバイスの横幅が896px以下の場合*/ - .search_btn_set{ + +.search_btn_set .search #first_search img { + position: relative; + padding: initial; + width: 20px; + height: 20px; +} + +#submit_area { + padding: 0 5px 0 5px; +} + +@media only screen and (max-width: 896px) { + + /*デバイスの横幅が896px以下の場合*/ + .search_btn_set { display: block; } - .search_btn_set .search{ + + .search_btn_set .search { margin-bottom: 20px; } - #submit_area >* { + + #submit_area>* { justify-content: center; } } -@media only screen and (max-width: 700px) {/*デバイスの横幅が700px以下の場合*/ - .search_btn_set .search{ +@media only screen and (max-width: 700px) { + /*デバイスの横幅が700px以下の場合*/ + + .search_btn_set .search { display: block; } - .search_btn_set .search >*{ + + .search_btn_set .search>* { margin-bottom: 10px; min-width: 100%; } } -@media only screen and (max-width: 500px) {/*デバイスの横幅が500px以下の場合*/ + +@media only screen and (max-width: 500px) { + /*デバイスの横幅が500px以下の場合*/ } -#search .filter_set_area{ +#search .filter_set_area { display: block; border: 2px solid #000; border-top: none; margin: 5px; } -#search .filter_set_area.none{display: none} -#search .fliter_btns{ +#search .filter_set_area.none { + display: none +} + +#search .fliter_btns { display: flex; flex-wrap: wrap; width: 100%; @@ -81,26 +97,31 @@ flex: 5; padding: 0 3px; } + #search .fliter_btns li, -.filter_set_monster .updw label,.filter_set_monster .updw p{ +.filter_set_monster .updw label, +.filter_set_monster .updw p { min-width: 14.28%; margin: 0; padding: 1px; box-sizing: border-box; } -.filter_set_monster .updw label,.filter_set_monster .updw p{ + +.filter_set_monster .updw label, +.filter_set_monster .updw p { width: 10.9%; - min-width: 80px; + min-width: 40px; display: block; } -#search .fliter_btns li >span, -.filter_set_monster .updw span{ - font-size: 1.2rem; +#search .fliter_btns li>span, +.filter_set_monster .updw span { + /* font-size: 1.2rem; */ + font-size: 1.0rem; background: #002345; color: #ffffff; border-radius: 2px; - padding: 2px 5px; + padding: 1px 1px; box-sizing: border-box; display: block; text-align: center @@ -108,24 +129,28 @@ #search .fliter_btns li:hover, .filter_set_monster .updw label:hover, -.filter_set_monster .updw p:hover{opacity: .8;} - - - #search .fliter_btns li.check > span{ - font-weight:bold; - background-color:#239adf; - } -#search .fliter_btns li.untick > span, -.filter_set_monster .updw .untick span{ - box-sizing: border-box; - background-color:#ffa6a6; - background-image:url(chrome-extension://__MSG_@@extension_id__/images/parts/untick.png); - background-size:20px 20px; - background-position: center center; - background-repeat: no-repeat; - display: block; - } -#search .fliter_btns li >span span{ +.filter_set_monster .updw p:hover { + opacity: .8; +} + + +#search .fliter_btns li.check>span { + font-weight: bold; + background-color: #239adf; +} + +#search .fliter_btns li.untick>span, +.filter_set_monster .updw .untick span { + box-sizing: border-box; + background-color: #ffa6a6; + background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/untick.png); + background-size: 20px 20px; + background-position: center center; + background-repeat: no-repeat; + display: block; +} + +#search .fliter_btns li>span span { background-repeat: no-repeat; background-position: center left; background-size: auto 94%; @@ -133,44 +158,53 @@ } - #search .filter_set>div{ - padding:3px; - border-bottom: 1px solid #888; - display: flex; - } - #search .filter_set>div .title{ - font-size:12px; - color:#ffffff;background-color: #467491; - display: flex; - flex: 1; - padding: 3px; - flex-wrap: wrap; - justify-content: space-between; - align-items: flex-start; - min-width: 160px; - } -@media only screen and (max-width: 700px) {/*デバイスの横幅が700px以下の場合*/ - #search .filter_set>div{ +#search .filter_set>div { + padding: 3px; + border-bottom: 1px solid #888; + display: flex; +} + +#search .filter_set>div .title { + font-size: 10px; + color: #ffffff; + background-color: #467491; + display: flex; + flex: 1; + padding: 3px; + flex-wrap: wrap; + justify-content: space-between; + align-items: flex-start; + width: 80px; +} + +@media only screen and (max-width: 700px) { + + /*デバイスの横幅が700px以下の場合*/ + #search .filter_set>div { display: block; padding: 0; } + #search .fliter_btns, - .filter_set_monster .updw{ + .filter_set_monster .updw { padding: 5px; box-sizing: border-box; } - #search .fliter_btns li >span, - .filter_set_monster .updw span{ + #search .fliter_btns li>span, + .filter_set_monster .updw span { padding: 5px 5px; text-align: center; } - - #search .fliter_btns li{ + + #search .fliter_btns li { width: auto; - min-width: 20%; + /* min-width: 10.28%; */ + min-width: 7.28%; } - .filter_set_monster .updw label,.filter_set_monster .updw p{ + + .filter_set_monster .updw label, + .filter_set_monster .updw p { width: auto; min-width: 14.28%; } @@ -181,142 +215,184 @@ -#search .filter_set>div .title h3{ +#search .filter_set>div .title h3 { margin: 0; white-space: nowrap; } -#search .filter_set>div .title .bottom{ + +#search .filter_set>div .title .bottom { min-width: 100%; margin-right: 0; } -@media only screen and (max-width: 700px) {/*デバイスの横幅が700px以下の場合*/ - #search .filter_set>div .title .bottom{ + +@media only screen and (max-width: 700px) { + + /*デバイスの横幅が700px以下の場合*/ + #search .filter_set>div .title .bottom { min-width: auto; margin: 0 5px; } } - #search .slider{ - text-align:left; - } - .slider .updw{ - font-size:14px; - font-weight:bold; - color:#FFFFFF; - margin-right: 0; - display: block; - flex: none; - } - - - .slider .bar_area{ - margin:5px 0; - padding:15px 3px 8px; - background:#ccc; - } - .slider .bar_area>div{position:relative;} - .slider .bar_area>div .bar{ - height:4px; - background:#777; - margin:0 14px; - } - .slider .bar_area>div .tab{ - position:absolute; - height:30px; - width:30px; - background-image:url(chrome-extension://__MSG_@@extension_id__/images/parts/tabs.png); - top:-17px; - cursor: pointer; - } - .slider .bar_area *.ontouch{ background-position:right 0px; border:none;} - .slider .bar_area .min_tab{ z-index:2;} - .slider .bar_area .max_tab{ z-index:3;} - - - #search .filter_set>div .and_or{ - justify-content: center; - } - #search .filter_set>div .and_or.hex > span{ - line-height: 1.2; - background-color: #fff; - } - #search .filter_set>div .and_or.hex:before, #search .filter_set>div .and_or.hex:after{ - width: 10px; - background-color: #fff; - } - #search .filter_set>div .and_or.hex label{ - color: #000000; - padding: 5px; - } - - -.filter_set_monster .updw{ +#search .slider { + text-align: left; +} + +.slider .updw { + font-size: 14px; + font-weight: bold; + color: #FFFFFF; + margin-right: 0; + display: block; + flex: none; +} + + +.slider .bar_area { + margin: 5px 0; + padding: 15px 3px 8px; + background: #ccc; +} + +.slider .bar_area>div { + position: relative; +} + +.slider .bar_area>div .bar { + height: 4px; + background: #777; + margin: 0 14px; +} + +.slider .bar_area>div .tab { + position: absolute; + height: 30px; + width: 30px; + background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/tabs.png); + top: -17px; + cursor: pointer; +} + +.slider .bar_area *.ontouch { + background-position: right 0px; + border: none; +} + +.slider .bar_area .min_tab { + z-index: 2; +} + +.slider .bar_area .max_tab { + z-index: 3; +} + + +#search .filter_set>div .and_or { + justify-content: center; +} + +#search .filter_set>div .and_or.hex>span { + line-height: 1.2; + background-color: #fff; +} + +#search .filter_set>div .and_or.hex:before, +#search .filter_set>div .and_or.hex:after { + width: 10px; + background-color: #fff; +} + +#search .filter_set>div .and_or.hex label { + color: #000000; + padding: 5px; +} + + +.filter_set_monster .updw { display: flex; flex-wrap: wrap; padding: 0 2px; } -.filter_set_monster .updw input[type=checkbox]{display: none;} -.filter_set_monster .updw input[type=checkbox]:checked + label >span{ - font-weight:bold; - background-color:#239adf; +.filter_set_monster .updw input[type=checkbox] { + display: none; +} + +.filter_set_monster .updw input[type=checkbox]:checked+label>span { + font-weight: bold; + background-color: #239adf; } -#legend_type_set >*{ +#legend_type_set>* { display: flex; flex-wrap: wrap; } -#legend_type_set .legend_type_tab{ + +#legend_type_set .legend_type_tab { flex: 1; padding: 0 20px; } -@media only screen and (max-width: 700px) {/*デバイスの横幅が700px以下の場合*/ - .filter_set_monster .updw{ + +@media only screen and (max-width: 700px) { + + /*デバイスの横幅が700px以下の場合*/ + .filter_set_monster .updw { padding: 5px; } } -@media only screen and (max-width: 500px) {/*デバイスの横幅が500px以下の場合*/ - #legend_type_set .legend_type_tab{ + +@media only screen and (max-width: 500px) { + + /*デバイスの横幅が500px以下の場合*/ + #legend_type_set .legend_type_tab { flex: none; padding: 0; - width: 100%; + width: 100%; } } -#search .filter_set> #filter_other .title span { +#search .filter_set>#filter_other .title span { flex: none; margin: 0; } -#bottombtn{ - background: #022c53; +#bottombtn { + background: #022c53; padding: 10px; display: flex; justify-content: center; } -#bottombtn.none{display: none} -.bar_set{ + +#bottombtn.none { + display: none +} + +.bar_set { flex: 5; } -.sab{ + +.sab { flex: 5; } -#link_set .sab{ + +#link_set .sab { display: flex; align-items: flex-start; } -#link_set.filter_set_monster .updw label{ + +#link_set.filter_set_monster .updw label { width: 16.6%; - min-width: 80px; + min-width: 40px; } -#link_set.filter_set_monster .updw{ + +#link_set.filter_set_monster .updw { flex: 1; align-items: flex-start; } -.search_m_set{ +.search_m_set { background-color: #778995; display: inline-flex; padding: 5px; @@ -325,26 +401,30 @@ } -#search .filter_set>.atkdef{ +#search .filter_set>.atkdef { display: flex; padding: 0; border: none; } -#search .filter_set>.atkdef >*{ + +#search .filter_set>.atkdef>* { flex: 1; display: flex; } -#search .filter_set>.atkdef .title{ + +#search .filter_set>.atkdef .title { margin: 3px 0 3px 3px; } -#search .filter_set>.atkdef .input_set{ + +#search .filter_set>.atkdef .input_set { margin: 3px 3px 3px 0; flex: 2; display: flex; justify-content: space-around; flex-wrap: wrap; } -#search .filter_set>.atkdef input[type="text"]{ + +#search .filter_set>.atkdef input[type="text"] { width: 100%; max-width: 45%; padding: 2px 2px 2px 24px; @@ -352,96 +432,123 @@ background: #fff no-repeat url(chrome-extension://__MSG_@@extension_id__/images/parts/mark_more.png); background-position: 2px center; margin: 2px; - min-width: 120px; + min-width: "auto"; + /* min-width: 60px; */ } -#search .filter_set>.atkdef #atkto,#search .filter_set>.atkdef #defto{ - background-image:url(chrome-extension://__MSG_@@extension_id__/images/parts/mark_less.png) ; + +#search .filter_set>.atkdef #atkto, +#search .filter_set>.atkdef #defto { + background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/mark_less.png); } -.atkdef .search_bottom{ + +.atkdef .search_bottom { border-left: 1px solid #888888; } -@media only screen and (max-width: 700px) {/*デバイスの横幅が700px以下の場合*/ + +@media only screen and (max-width: 700px) { + + /*デバイスの横幅が700px以下の場合*/ #search .filter_set>.atkdef, - #search .filter_set>.atkdef >*{ + #search .filter_set>.atkdef>* { display: block; } - #search .filter_set>.atkdef .title{ + + #search .filter_set>.atkdef .title { margin: 0; } - .atkdef .search_bottom{border-left: none;} - #search .filter_set>.atkdef .input_set{margin: 5px;} - #search .filter_set>.atkdef input[type="text"]{ + + .atkdef .search_bottom { + border-left: none; + } + + #search .filter_set>.atkdef .input_set { + margin: 5px; + } + + #search .filter_set>.atkdef input[type="text"] { min-width: auto; } - .search_m_set{ + + .search_m_set { margin: 5px; } } -#search{ +#search { border: 2px solid #000000; } -.Question{ +.Question { position: relative; margin: 0 0 0 10px; flex: 2; } - .Question p{ - position: absolute; - font-weight: bold; - white-space: nowrap; - text-align: center; - top: -50px; - left: -10px; - border: 2px solid #ff7200; - border-radius: 6px; - min-width: 100%; - padding: 6px; - display: none; - z-index: 10; - font-size: 1.2rem; - color: #000; - background-color: #ffba00; - } - .Question p::after{ - content: ''; - position:absolute; - left: 10px; - bottom: -8px; - width:0; - white-space: nowrap; - border-width:8px 8px 0px 8px; - border-style:solid; - border-left-color:transparent; - border-right-color:transparent; - border-bottom-color:transparent; - display: none; - color: #ff7200; - - } - .Question:hover p, - .Question:hover p::after{ - display: block; - cursor:help; - } - -.Question .hex > span ,.untick.hex > span{ + +.Question p { + position: absolute; + font-weight: bold; + white-space: nowrap; + text-align: center; + top: -50px; + left: -10px; + border: 2px solid #ff7200; + border-radius: 6px; + min-width: 100%; + padding: 6px; + display: none; + z-index: 10; + font-size: 1.2rem; + color: #000; + background-color: #ffba00; +} + +.Question p::after { + content: ''; + position: absolute; + left: 10px; + bottom: -8px; + width: 0; + white-space: nowrap; + border-width: 8px 8px 0px 8px; + border-style: solid; + border-left-color: transparent; + border-right-color: transparent; + border-bottom-color: transparent; + display: none; + color: #ff7200; + +} + +.Question:hover p, +.Question:hover p::after { + display: block; + cursor: help; +} + +.Question .hex>span, +.untick.hex>span { font-size: 1.2rem; min-height: auto; line-height: 1.4; padding: 0 2px; color: #000000; } -.untick.hex > span{ + +.untick.hex>span { color: #ffffff; } -.Question .hex:before, .Question .hex:after, -.untick.hex:before, .untick.hex:after{ + +.Question .hex:before, +.Question .hex:after, +.untick.hex:before, +.untick.hex:after { width: 5px; } -@media only screen and (max-width: 700px) {/*デバイスの横幅が700px以下の場合*/ + +@media only screen and (max-width: 700px) { + + /*デバイスの横幅が700px以下の場合*/ /* .Question{ display: flex; @@ -487,142 +594,216 @@ .Question .hex:before, .Question .hex:after, .Question:hover p::after{display: none;} */ - .untick{order: 4} + .untick { + order: 4 + } } /**----以下実験----**/ -#search_set{ - overflow:hidden; - display:table; - padding:0; - margin:0; -} - #search_by_attack_and_defense_and_level #search_set span{ - float:none; - } - #search_by_attack_and_defense_and_level #search_set #defense_title, - #search_by_attack_and_defense_and_level #search_set #pen_scale_title, - #search_by_attack_and_defense_and_level #search_set #link_title, - #search_by_attack_and_defense_and_level #search_set #level_rank_input, - #search_by_attack_and_defense_and_level #search_set #attack_input{ - padding:0; - border:none; - } - #search_by_attack_and_defense_and_level #search_set #pen_scale_title{ - width:130px; - } - #search_set .search_top{ - padding:2px 0px 0; - } - #search_set .search_bottom{ - padding:20px 0px 2px; - } - #search_set .search_l,#search_set .search_m,#search_set .search_r{ - display:table-cell; - vertical-align:top; - box-sizing:border-box; - } - #search_set .search_l{ - border-right: solid 1px #414a56; - padding:5px 25px 0 0px; - } - #search_set .search_m{ - border-left: solid 1px #90a6b0; - border-right: solid 1px #414a56; - overflow:hidden; - padding:0 40px; - } - #search_set .search_r{ - border-left: solid 1px #90a6b0; - padding:5px 0 0 40px; - } - - - #link_set .link_m{ - overflow: hidden; - border-radius: 5px; - position: relative; - width:94px; - height:94px; - display:block; - margin:0 10px 0 0; - } - - #link_set .link_m label,#link_set .link_m img{cursor:pointer;} - #link_set .link_m input[type=checkbox]{display:none;} - #link_set .link_m label{ - display: block; - text-indent: -9999px; - overflow: hidden; - background-position: bottom; - padding: 0; - cursor: pointer; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - } - - #link_set .link_m label.linkbtn7, - #link_set .link_m label.linkbtn9, - #link_set .link_m label.linkbtn1, - #link_set .link_m label.linkbtn3{ - width:32px; - height:32px; - } - #link_set .link_m label.linkbtn8, - #link_set .link_m label.linkbtn2{ - width:44px; - height:24px; - } - #link_set .link_m label.linkbtn4, - #link_set .link_m label.linkbtn6{ - width:24px; - height:44px; - } -#link_set .link_m label.linkbtn1{margin: auto auto 0 2px;} -#link_set .link_m label.linkbtn2{margin: auto auto 0} -#link_set .link_m label.linkbtn3{margin: auto 2px 0 auto;} -#link_set .link_m label.linkbtn4{margin: auto auto auto 0;} -#link_set .link_m label.linkbtn6{margin: auto 0 auto auto;} -#link_set .link_m label.linkbtn7{margin: 0 auto auto 2px;} -#link_set .link_m label.linkbtn8{margin: 0 auto;} -#link_set .link_m label.linkbtn9{margin: 0 2px auto auto;} - - -#link_set .link_m label{ +#search_set { + overflow: hidden; + display: table; + padding: 0; + margin: 0; +} + +#search_by_attack_and_defense_and_level #search_set span { + float: none; +} + +#search_by_attack_and_defense_and_level #search_set #defense_title, +#search_by_attack_and_defense_and_level #search_set #pen_scale_title, +#search_by_attack_and_defense_and_level #search_set #link_title, +#search_by_attack_and_defense_and_level #search_set #level_rank_input, +#search_by_attack_and_defense_and_level #search_set #attack_input { + padding: 0; + border: none; +} + +#search_by_attack_and_defense_and_level #search_set #pen_scale_title { + width: 130px; +} + +#search_set .search_top { + padding: 2px 0px 0; +} + +#search_set .search_bottom { + padding: 20px 0px 2px; +} + +#search_set .search_l, +#search_set .search_m, +#search_set .search_r { + display: table-cell; + vertical-align: top; + box-sizing: border-box; +} + +#search_set .search_l { + border-right: solid 1px #414a56; + padding: 5px 25px 0 0px; +} + +#search_set .search_m { + border-left: solid 1px #90a6b0; + border-right: solid 1px #414a56; + overflow: hidden; + padding: 0 40px; +} + +#search_set .search_r { + border-left: solid 1px #90a6b0; + padding: 5px 0 0 40px; +} + + +#link_set .link_m { + overflow: hidden; + border-radius: 5px; + position: relative; + width: 47px; + height: 47px; + display: block; + margin: 0 10px 0 0; +} + +#link_set .link_m label, +#link_set .link_m img { + cursor: pointer; +} + +#link_set .link_m input[type=checkbox] { + display: none; +} + +#link_set .link_m label { + display: block; + text-indent: -9999px; + overflow: hidden; + background-position: bottom; + padding: 0; + cursor: pointer; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; +} + +#link_set .link_m label.linkbtn7, +#link_set .link_m label.linkbtn9, +#link_set .link_m label.linkbtn1, +#link_set .link_m label.linkbtn3 { + width: 16px; + height: 16px; +} + +#link_set .link_m label.linkbtn8, +#link_set .link_m label.linkbtn2 { + width: 22px; + height: 12px; +} + +#link_set .link_m label.linkbtn4, +#link_set .link_m label.linkbtn6 { + width: 12px; + height: 22px; +} + +#link_set .link_m label.linkbtn1 { + margin: auto auto 0 2px; +} + +#link_set .link_m label.linkbtn2 { + margin: auto auto 0 +} + +#link_set .link_m label.linkbtn3 { + margin: auto 2px 0 auto; +} + +#link_set .link_m label.linkbtn4 { + margin: auto auto auto 0; +} + +#link_set .link_m label.linkbtn6 { + margin: auto 0 auto auto; +} + +#link_set .link_m label.linkbtn7 { + margin: 0 auto auto 2px; +} + +#link_set .link_m label.linkbtn8 { + margin: 0 auto; +} + +#link_set .link_m label.linkbtn9 { + margin: 0 2px auto auto; +} + + +#link_set .link_m label { background-size: 100% auto; background-position: top; } - #link_set .link_m label.linkbtn1{background-image:url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_1.png);} - #link_set .link_m label.linkbtn2{background-image:url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_2.png);} - #link_set .link_m label.linkbtn3{background-image:url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_3.png);} - #link_set .link_m label.linkbtn4{background-image:url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_4.png);} - #link_set .link_m label.linkbtn6{background-image:url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_6.png);} - #link_set .link_m label.linkbtn7{background-image:url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_7.png);} - #link_set .link_m label.linkbtn8{background-image:url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_8.png);} - #link_set .link_m label.linkbtn9{background-image:url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_9.png);} - #link_set .link_m label:hover{ - background-position: center; - opacity: .5; - } +#link_set .link_m label.linkbtn1 { + background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_1.png); +} + +#link_set .link_m label.linkbtn2 { + background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_2.png); +} - #link_set .link_m input[type="checkbox"]:checked + label{background-position: bottom;} +#link_set .link_m label.linkbtn3 { + background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_3.png); +} + +#link_set .link_m label.linkbtn4 { + background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_4.png); +} -#choice_card_area{ +#link_set .link_m label.linkbtn6 { + background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_6.png); +} + +#link_set .link_m label.linkbtn7 { + background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_7.png); +} + +#link_set .link_m label.linkbtn8 { + background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_8.png); +} + +#link_set .link_m label.linkbtn9 { + background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/linkmarker/linkmarker_9.png); +} + +#link_set .link_m label:hover { + background-position: center; + opacity: .5; +} + +#link_set .link_m input[type="checkbox"]:checked+label { + background-position: bottom; +} + +#choice_card_area { background-color: #467491; display: flex; } -#choice_card_area >*{ + +#choice_card_area>* { flex: 1; color: #fff; text-align: center; } -#choice_card_area .text{ + +#choice_card_area .text { flex: 20 } \ No newline at end of file diff --git a/src/css/content_script.css b/src/css/content_script.css index 60d36dc..015069c 100644 --- a/src/css/content_script.css +++ b/src/css/content_script.css @@ -1,5 +1,6 @@ /* tablink */ -.tablink_deckSupport li.now, .tablink_deckSupport li:active { +.tablink_deckSupport li.now, +.tablink_deckSupport li:active { border-bottom-color: #ffba00; } @@ -73,25 +74,27 @@ display: block; border: 3px solid transparent; top: 0; -}*//*#2ef706;*/ +}*/ +/*#2ef706;*/ -.deck_image .image_set span.forbidden >div>span { +.deck_image .image_set span.forbidden>div>span { background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/svg/icon_forb_unlim.svg); background-color: #dc0000; + background-size: 50%; } -.deck_image .image_set span.limited >div span { +.deck_image .image_set span.limited>div span { background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/svg/icon_limit_unlim.svg); background-color: #fb8c32; } -.deck_image .image_set span.semi_limited >div>span { +.deck_image .image_set span.semi_limited>div>span { background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/svg/icon_slim_unlim.svg); background-color: #fbb830; } -.deck_image .image_set span >div span { +.deck_image .image_set span>div span { display: block; width: 100%; height: min(2vw, 20px); @@ -103,7 +106,7 @@ } #deck_header a.button_keyword_delete { - background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/keyword_delete.png); + /* background-image: url(chrome-extension://__MSG_@@extension_id__/images/parts/keyword_delete.png); */ background-size: auto 100%; background-repeat: no-repeat; border: solid 1px transparent; @@ -112,4 +115,45 @@ #deck_header dl dd select[multiple]>option[selected] { font-weight: bold; background-color: chartreuse; +} + +.hex.square:before, +.hex.square:after, +#deck_image .hex.square:before, +#deck_image .hex.square:after { + width: 0px; + margin: 2px; + filter: none; +} + + +/* #search .filter_set > div .title { + font-size: 10px; + color: rgb(255, 255, 255); + background-color: rgb(70, 116, 145); + display: flex; + flex-wrap: wrap; + justify-content: space-between; + align-items: flex-start; + min-width: 120px; + flex: 1 1 0%; + padding: 3px; +} */ + +/* #info_area div.info_article.none { + display:none; +} */ + +/* div#bg { + background: url(chrome-extension://__MSG_@@extension_id__/images/parts/hexagon_02.png); #fff +} */ + +#bottom_btn_set a.square.button { + margin: 2px 2px; + filter: "none"; +} + +#and_or>span>label>span, +#and_or2 label>span { + font-size: 0.9rem; } \ No newline at end of file diff --git a/src/images/parts/linkmarker/linkmarker_1.png b/src/images/parts/linkmarker/linkmarker_1.png index e0c5d88..f40fcd5 100644 Binary files a/src/images/parts/linkmarker/linkmarker_1.png and b/src/images/parts/linkmarker/linkmarker_1.png differ diff --git a/src/images/parts/linkmarker/linkmarker_2.png b/src/images/parts/linkmarker/linkmarker_2.png index 828aacf..492bcc7 100644 Binary files a/src/images/parts/linkmarker/linkmarker_2.png and b/src/images/parts/linkmarker/linkmarker_2.png differ diff --git a/src/images/parts/linkmarker/linkmarker_3.png b/src/images/parts/linkmarker/linkmarker_3.png index f0a84e8..6fcfc05 100644 Binary files a/src/images/parts/linkmarker/linkmarker_3.png and b/src/images/parts/linkmarker/linkmarker_3.png differ diff --git a/src/images/parts/linkmarker/linkmarker_4.png b/src/images/parts/linkmarker/linkmarker_4.png index 089b97f..42b3bcd 100644 Binary files a/src/images/parts/linkmarker/linkmarker_4.png and b/src/images/parts/linkmarker/linkmarker_4.png differ diff --git a/src/images/parts/linkmarker/linkmarker_6.png b/src/images/parts/linkmarker/linkmarker_6.png index 149a571..a2ab6b1 100644 Binary files a/src/images/parts/linkmarker/linkmarker_6.png and b/src/images/parts/linkmarker/linkmarker_6.png differ diff --git a/src/images/parts/linkmarker/linkmarker_7.png b/src/images/parts/linkmarker/linkmarker_7.png index 46bea39..1087da6 100644 Binary files a/src/images/parts/linkmarker/linkmarker_7.png and b/src/images/parts/linkmarker/linkmarker_7.png differ diff --git a/src/images/parts/linkmarker/linkmarker_8.png b/src/images/parts/linkmarker/linkmarker_8.png index e0aac3e..2c1c8c3 100644 Binary files a/src/images/parts/linkmarker/linkmarker_8.png and b/src/images/parts/linkmarker/linkmarker_8.png differ diff --git a/src/images/parts/linkmarker/linkmarker_9.png b/src/images/parts/linkmarker/linkmarker_9.png index eddfc88..b0f52bd 100644 Binary files a/src/images/parts/linkmarker/linkmarker_9.png and b/src/images/parts/linkmarker/linkmarker_9.png differ diff --git a/src/images/svg/add_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/add_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..cfe9b7f --- /dev/null +++ b/src/images/svg/add_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/svg/arrow_back_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/arrow_back_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..cba0c8b --- /dev/null +++ b/src/images/svg/arrow_back_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/svg/arrow_back_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier b/src/images/svg/arrow_back_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier new file mode 100644 index 0000000..053d112 --- /dev/null +++ b/src/images/svg/arrow_back_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier @@ -0,0 +1,3 @@ +[ZoneTransfer] +ZoneId=3 +HostUrl=about:internet diff --git a/src/images/svg/backspace_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/backspace_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..efdcc47 --- /dev/null +++ b/src/images/svg/backspace_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/svg/backspace_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier b/src/images/svg/backspace_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier new file mode 100644 index 0000000..053d112 --- /dev/null +++ b/src/images/svg/backspace_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier @@ -0,0 +1,3 @@ +[ZoneTransfer] +ZoneId=3 +HostUrl=about:internet diff --git a/src/images/svg/content_copy_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/content_copy_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..d875c84 --- /dev/null +++ b/src/images/svg/content_copy_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/svg/content_copy_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier b/src/images/svg/content_copy_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier new file mode 100644 index 0000000..053d112 --- /dev/null +++ b/src/images/svg/content_copy_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier @@ -0,0 +1,3 @@ +[ZoneTransfer] +ZoneId=3 +HostUrl=about:internet diff --git a/src/images/svg/delete_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/delete_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..d353990 --- /dev/null +++ b/src/images/svg/delete_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/svg/download_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/download_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..19f2721 --- /dev/null +++ b/src/images/svg/download_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/svg/edit_square_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/edit_square_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..dccfaa9 --- /dev/null +++ b/src/images/svg/edit_square_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/svg/edit_square_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier b/src/images/svg/edit_square_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier new file mode 100644 index 0000000..053d112 --- /dev/null +++ b/src/images/svg/edit_square_FILL0_wght400_GRAD0_opsz24.svg:Zone.Identifier @@ -0,0 +1,3 @@ +[ZoneTransfer] +ZoneId=3 +HostUrl=about:internet diff --git a/src/images/svg/refresh_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/refresh_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..a7a6bc8 --- /dev/null +++ b/src/images/svg/refresh_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/svg/save_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/save_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..1dbf137 --- /dev/null +++ b/src/images/svg/save_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/svg/shuffle_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/shuffle_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..4a31179 --- /dev/null +++ b/src/images/svg/shuffle_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/svg/sort_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/sort_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..005c7dd --- /dev/null +++ b/src/images/svg/sort_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/svg/upload_FILL0_wght400_GRAD0_opsz24.svg b/src/images/svg/upload_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..8250557 --- /dev/null +++ b/src/images/svg/upload_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/manifest.json b/src/manifest.json index f477f59..91af5b0 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,26 +1,52 @@ { "name": "遊戯王DBデッキサポート", - "author":"TomoTomo", + "author": "TomoTomo", "version": "1.3.0.0", "manifest_version": 3, - "icons":{ - "16":"images/icon-16.png", - "48":"images/icon-48.png", - "128":"images/icon-128.png" + "icons": { + "16": "images/icon-16.png", + "48": "images/icon-48.png", + "128": "images/icon-128.png" }, - "content_scripts": [{ - "matches": ["https://www.db.yugioh-card.com/yugiohdb/*"], - "js": ["js/jquery-3.6.0.min.js", "js/async.min.js", "script/main_functions.js", "script/content_script.js", "script/db_functions.js", "script/card_search_script.js"], - "css":["css/content_script.css", "css/card_search.css"] - }], - "web_accessible_resources": [{ - "matches":["https://www.db.yugioh-card.com/*"], - "resources":["images/*"] - }], - "permissions":["storage", "unlimitedStorage"], + "content_scripts": [ + { + "matches": [ + "https://www.db.yugioh-card.com/yugiohdb/*" + ], + "js": [ + "js/jquery-3.6.0.min.js", + "js/async.min.js", + "script/main_functions.js", + "script/content_script.js", + "script/db_functions.js", + "script/card_search_script.js", + "script/listen.js" + ], + "css": [ + "css/content_script.css", + "css/card_search.css", + "css/card_details.css", + "css/Faq_details.css" + ] + } + ], + "web_accessible_resources": [ + { + "matches": [ + "https://www.db.yugioh-card.com/*" + ], + "resources": [ + "images/*" + ] + } + ], + "permissions": [ + "storage", + "unlimitedStorage" + ], "options_ui": { "page": "script/options.html", "open_in_tab": true }, "description": "公式カードデータベースのデッキ画面にMouseUIモードやExport / Import / Sort / Shuffleボタンを追加します。" -} +} \ No newline at end of file diff --git a/src/script/card_search_script.js b/src/script/card_search_script.js index 432c9a8..d538746 100644 --- a/src/script/card_search_script.js +++ b/src/script/card_search_script.js @@ -26,15 +26,17 @@ const obtainDeckRecipie = async () => { const dno_tmp = $("#keyword").val().match(/#(\d+)$/); if (dno_tmp.length < 2) return null; const dno = dno_tmp[1]; - const deck_body = _obtainDeckRecipie(my_cgid, dno, lang, "1"); - const deck_text = (await deck_body).text; + const deck_body = await _nojqObtainDeckRecipie(my_cgid, dno, lang, "1"); + const deck_text = deck_body.text; + console.log(deck_text); + // const rowResults = await obtainRowResults(null, null, deck_text); const card_list = $("
", { id: "card_list" }); - Array.from($("table.deck_list>tbody>tr", deck_text)).map(tr => { + Array.from(deck_text.querySelectorAll("table.deck_list>tbody>tr")).map(tr => { const t_row = $("", { class: "t_row" }).append($("
", { class: "box_card_img" })); - const input_link = $("td.card_name>input", tr); - const card_name = $("td.card_name>span", tr).text(); - if (card_name == null || card_name.length === 0) return; - const img = $("", { title: card_name, style: "padding: 1px;width:100%;" }); + const input_link = tr.querySelector("td.card_name>input"); + const span_card_name = tr.querySelector("td.card_name>div>span"); + if (span_card_name == null) return; + const img = $("", { title: span_card_name.textContent, style: "padding: 1px;width:100%;" }); $("div.box_card_img", t_row).append(img); $(t_row).css({ "max-width": " 10%" }); $(t_row).append(input_link); @@ -45,61 +47,237 @@ const obtainDeckRecipie = async () => { return card_list; } -const obtainSearchScript = async () => { - // # functions - const showHideSearch = (toShowIn = null) => { - const card_set_search = $("#card_set"); - if (toShowIn === null) card_set_search.toggleClass("hide"); - else if (toShowIn === true) card_set_search.removeClass("hide"); - else if (toShowIn === false) card_set_search.addClass("hide"); - const toShow = !$("#card_set").hasClass("hide"); - [".filter_set_area", "#close_search_area"].map(d => toShow ? $(d).slideDown("fast") : $(d).slideUp("fast")); //, "#submit_area" - ["#contents", "footer", "#tsl_notice"].map(d => toShow ? $(d).show() : $(d).hide()); - //$("html, body").scrollTop(0); +const openFaqInfoArea = async (fid, days = 0) => { + const info_div = document.querySelector("#info_area>div"); + const info_key = info_div.getAttribute("info_key"); + if (info_key == `faq_${fid}`) return true; + else info_div.setAttribute("info_key", `faq_${fid}`); + // /yugiohdb/faq_search.action?ope=5&fid=13592&keyword=&tag=-1 + const url_faq = joinUrl("https://www.db.yugioh-card.com/yugiohdb/faq_search.action", { ope: 5, fid: fid, keyword: "", tag: -1 }); + const cacheInfos = await operateStorage({ cacheInfos: JSON.stringify({}) }, "local") + .then(items => Object.assign({}, JSON.parse(items.cacheInfos))); + // console.log(Object.keys(cacheHtmls)); + // if (Object.keys(cacheHtmls).indexOf(url) != -1) console.log(cacheHtmls[url].time + cache * 86400 * 1000 > Date.now()) + if (days > 0 && Object.keys(cacheInfos).indexOf(url_faq) !== -1 && cacheInfos[url_faq].time + days * 86400 * 1000 > Date.now()) { + console.log("recovered from cache: " + url_faq); + info_div.innerHTML = cacheInfos[url_faq].html; + info_div.scrollTo({ top: 0, left: 0, behavior: "smooth" }); + return true; } - const obtainMaxPageNum = (body) => { - const yaji_max = $("div.page_num>a.yaji.max", body); - const a_last = $("div.page_num>a:not(.yaji.max):last", body); - if (yaji_max.length > 0) return parseInt($(yaji_max).text()); - else if (a_last.length > 0) return parseInt($(a_last).text()); - else return 1; + const doc_faq = await obtainParsedHTML(url_faq); + const div_faq = doc_faq.querySelector("#article_body"); + div_faq.setAttribute("id", "info_faq"); + div_faq.classList.add("info_article"); + + const validIds_text = ["qa_box"]; + for (const elm of Array.from(div_faq.children)) { + if (validIds_text.indexOf(elm.id) !== -1) continue; + elm.remove(); } - const obtainSearchResult = async (page = 1, max_pageIn = null, mode = 1) => { - const serialized = $("#form_search").serialize(); - const url = `https://www.db.yugioh-card.com/yugiohdb/card_search.action?${serialized}`.replaceAll(/&page=\d+|&mode=\d+/g, "") + `&page=${page}&mode=${mode}`; - const body = await obtainStreamBody(url); - const max_page = max_pageIn || obtainMaxPageNum(body); - const search_body = $("#card_list", body); - if (page < 3 && max_page > page) return search_body.append($(await obtainSearchResult(parseInt(page) + 1, max_page).then(d => d.prop("innerHTML")))); - else return search_body; + + const title = doc_faq.querySelector("#broad_title>div>h1").textContent; + div_faq.querySelector("#question").innerHTML += ": " + title; + for (const elm of div_faq.querySelectorAll("a")) { + elm.setAttribute("_href", elm.getAttribute("href")); + elm.removeAttribute("href"); + } - const remakeSearchResult = async (search_result) => { - const df = await obtainDF(); - Array.from($("#card_list>.t_row", search_result)).map(t_row => { - const img = $("div.box_card_img>img", t_row); - const card_name = $(img).attr("title"); - const card_url = $("input.link_value:last", t_row).attr("value"); - const card_cid = card_url.match(/cid=(\d+)/)[1]; - const card_id = df_filter(df, "id", ["cid", card_cid])[0]; - const card_encImg = df_filter(df, "encImg", ["cid", card_cid])[0]; - const card_type = judgeCardType(df, ["cid", card_cid], "row"); - const attr_dic = { - card_id: card_id, - card_cid: card_cid, - card_type: card_type, - card_name: card_name, - card_url: card_url, - loading: "lazy", - src: `/yugiohdb/get_image.action?type=1&lang=ja&cid=${card_cid}&ciid=1&enc=${card_encImg}&osplang=1` - }; - //const a_link=$("", {href: card_link}); - $(img).attr(attr_dic); - //$(img).after(a_link); - //$(a_link).append(img); - $(img).removeClass("none"); - }); - return search_result; + + info_div.innerHTML = div_faq.outerHTML; + info_div.scrollTo(0, 0, "smooth"); + const cacheInfos_new = Object.assign(cacheInfos, { [url_faq]: { html: info_div.innerHTML, time: Date.now() } }); + operateStorage({ cacheInfos: JSON.stringify(cacheInfos_new) }, "local", "set"); // await + return true; + + + + +} + +// # info area +const openCardInfoArea = async (cid, days = 0) => { + const info_div = document.querySelector("#info_area>div"); + const info_key = info_div.getAttribute("info_key"); + if (info_key == `card_${cid}`) return true; + else info_div.setAttribute("info_key", `card_${cid}`); + + const url_text = joinUrl("https://www.db.yugioh-card.com/yugiohdb/card_search.action", { ope: 2, cid: cid, mode: 1, sess: 4 }); + const cacheInfos = await operateStorage({ cacheInfos: JSON.stringify({}) }, "local") + .then(items => Object.assign({}, JSON.parse(items.cacheInfos))); + // console.log(Object.keys(cacheHtmls)); + // if (Object.keys(cacheHtmls).indexOf(url) != -1) console.log(cacheHtmls[url].time + cache * 86400 * 1000 > Date.now()) + if (days > 0 && Object.keys(cacheInfos).indexOf(url_text) !== -1 && cacheInfos[url_text].time + days * 86400 * 1000 > Date.now()) { + console.log("recovered from cache: " + url_text); + info_div.innerHTML = cacheInfos[url_text].html; + info_div.scrollTo({ top: 0, left: 0, behavior: "smooth" }); + + return true; } + // const html_get = await obtainStreamBody(url); + // const cacheHtmls_new = Object.assign(cacheHtmls, { [url]: { html: html_get, time: Date.now() } }); + // await operateStorage({ cacheHtmls: JSON.stringify(cacheHtmls_new) }, "local", "set"); + const df = await obtainDF(); + const doc_text = await obtainParsedHTML(url_text); + const div_text = doc_text.querySelector("#article_body"); + div_text.setAttribute("id", "info_text"); + div_text.classList.add("info_article"); + div_text.style.display = "block"; + const validIds_text = ["CardSet", "update_list", "relationCard"]; + for (const elm of Array.from(div_text.children)) { + if (validIds_text.indexOf(elm.id) !== -1) continue; + elm.remove(); + } + div_text.querySelector("#CardSet>div.bottom").remove(); + + const cardImgSet = div_text.querySelector("#CardImgSet"); + cardImgSet.style.width = "50%"; + cardImgSet.style["max-width"] = "100%"; + const img = cardImgSet.querySelector("div#card_frame>div.set>a>img"); + img.classList.remove("none"); + const card_url = joinUrl("/yugiohdb/card_search.action", { ope: 2, cid: cid }); + const card_cid = cid; + const card_id = df_filter(df, "id", ["cid", card_cid])[0]; + const card_encImg = df_filter(df, "encImg", ["cid", card_cid])[0]; + const card_type = judgeCardType(df, ["cid", card_cid], "row"); + const attr_dic = { + card_id: card_id, + card_cid: card_cid, + card_type: card_type, + card_name: img.getAttribute("title"), + card_url: card_url, + loading: "lazy", + src: `/yugiohdb/get_image.action?type=1&lang=ja&cid=${card_cid}&ciid=1&enc=${card_encImg}&osplang=1` + }; + //const a_link=$("", {href: card_link}); + for (const [k, v] of Object.entries(attr_dic)) { + img.setAttribute(k, v); + } + // img.setAttribute("card_cid", cid); + // img.setAttribute("card_name", img.getAttribute("title")); + // img.setAttribute("card_id", img.getAttribute("title")); + // img.setAttribute("card_url", img.getAttribute("title")); + // img.setAttribute("card_type", img.getAttribute("title")); + img.classList.add("img_chex"); + img.classList.add("img_frame"); + img.style["max-width"] = "none"; + // img.parentElement.href=`https://www.db.yugioh-card.com/yugiohdb/card_search.action?ope=2&cid=${cid}&mode=1` + img.parentElement.removeAttribute("href"); + img.style.cursor = "pointer"; + // const encImg = df_filter(df, "encImg", ["cid", cid])[0]; + // img.src = `/yugiohdb/get_image.action?type=1&lang=ja&cid=${cid}&ciid=1&enc=${encImg}&osplang=1` + div_text.querySelector("#CardSet svg").remove(); + div_text.querySelector("#CardSet #thumbnail").remove(); + + const sort_set = div_text.querySelector("#relationCard>div.sort_set"); + const ul = `\n`; + + const doc_faq = await obtainParsedHTML("https://www.db.yugioh-card.com/yugiohdb/faq_search.action", { ope: 4, cid: cid }); + const div_faq = doc_faq.querySelector("#article_body"); + div_faq.setAttribute("id", "info_faq"); + div_faq.classList.add("info_article"); + // div_faq.classList.add("none"); + const validIds_faq = ["card_info", "deck_list"]; + for (const elm of Array.from(div_faq.children)) { + if (validIds_faq.indexOf(elm.id) !== -1) continue; + elm.remove(); + } + div_faq.style.display = "none"; + for (const elm of div_faq.querySelectorAll("a")) { + elm.setAttribute("_href", elm.getAttribute("href")); + elm.removeAttribute("href"); + + } + + + if (sort_set != null) { + sort_set.remove(); + div_text.querySelector("#mode_set").nextElementSibling.setAttribute("id", "card_list"); + div_text.querySelector("#mode_set").remove(); + const div_text_new = await remakeSearchResult(div_text) + info_div.innerHTML = ul + div_text_new.outerHTML + "\n" + div_faq.outerHTML; + } else { + info_div.innerHTML = ul + div_text.outerHTML + "\n" + div_faq.outerHTML; + } + info_div.scrollTo(0, 0, "smooth"); + const cacheInfos_new = Object.assign(cacheInfos, { [url_text]: { html: info_div.innerHTML, time: Date.now() } }); + operateStorage({ cacheInfos: JSON.stringify(cacheInfos_new) }, "local", "set"); // await + return true; + +} + +// # functions +const showHideSearch = (toShowIn = null) => { + const card_set_search = $("#card_set"); + if (toShowIn === null) card_set_search.toggleClass("hide"); + else if (toShowIn === true) card_set_search.removeClass("hide"); + else if (toShowIn === false) card_set_search.addClass("hide"); + const toShow = !$("#card_set").hasClass("hide"); + [".filter_set_area", "#close_search_area"].map(d => toShow ? $(d).slideDown("fast") : $(d).slideUp("fast")); //, "#submit_area" + ["#contents", "footer", "#tsl_notice"].map(d => toShow ? $(d).show() : $(d).hide()); + //$("html, body").scrollTop(0); +} +const obtainMaxPageNum = (body) => { + const yaji_max = $("div.page_num>a.yaji.max", body); + const a_last = $("div.page_num>a:not(.yaji.max):last", body); + if (yaji_max.length > 0) return parseInt($(yaji_max).text()); + else if (a_last.length > 0) return parseInt($(a_last).text()); + else return 1; +} +const obtainSearchResult = async (page = 1, max_pageIn = null, mode = 1) => { + const serialized = $("#form_search").serialize(); + const url = `https://www.db.yugioh-card.com/yugiohdb/card_search.action?${serialized}`.replaceAll(/&page=\d+|&mode=\d+/g, "") + `&page=${page}&mode=${mode}`; + const body = await obtainStreamBody(url); + const max_page = max_pageIn || obtainMaxPageNum(body); + const search_body = $("#card_list", body); + if (page < 3 && max_page > page) return search_body.append($(await obtainSearchResult(parseInt(page) + 1, max_page).then(d => d.prop("innerHTML")))); + else return search_body; +} +const remakeSearchResult = async (search_result) => { + const df = await obtainDF(); + Array.from($("#card_list>.t_row", search_result)).map(t_row => { + // const img = $("div.box_card_img>img", t_row); + const img = t_row.querySelector("div.box_card_img>img"); + const card_name = img.title; + const card_url = $("input.link_value:last", t_row).attr("value"); + const card_cid = card_url.match(/cid=(\d+)/)[1]; + const card_id = df_filter(df, "id", ["cid", card_cid])[0]; + const card_encImg = df_filter(df, "encImg", ["cid", card_cid])[0]; + const card_type = judgeCardType(df, ["cid", card_cid], "row"); + const attr_dic = { + card_id: card_id, + card_cid: card_cid, + card_type: card_type, + card_name: card_name, + card_url: card_url, + loading: "lazy", + src: `/yugiohdb/get_image.action?type=1&lang=ja&cid=${card_cid}&ciid=1&enc=${card_encImg}&osplang=1` + }; + //const a_link=$("", {href: card_link}); + for (const [k, v] of Object.entries(attr_dic)) { + img.setAttribute(k, v); + } + // $(img).attr(attr_dic); + img.style.cursor = "pointer"; + //$(img).after(a_link); + //$(a_link).append(img); + img.classList.add("img_chex"); + img.classList.remove("none"); + + }); + return search_result; +} + +const obtainSearchScript = async () => { + const searchClicked = async () => { const div_search_result = $("#search_result"); @@ -108,7 +286,29 @@ const obtainSearchScript = async () => { const search_result = ($("#stype").val() == "deck") ? await obtainDeckRecipie() : await obtainSearchResult(); console.log(search_result); div_search_result.append($(search_result).prop("outerHTML")); - $("#choice_card_area>span:first").text($("div.t_row>div.box_card_img", search_result).length); + const stype = document.querySelector("select#stype").value; + const num_found = $(".t_row>div.box_card_img", search_result).length; + let message = "" + if (stype == "deck") { + const cgid = obtainMyCgid(); + const lang = obtainLang(); + const dno_tmp = $("#keyword").val().match(/#(\d+)$/); + const dno = dno_tmp[1]; + + const deck_name = document.querySelector("#keyword").value; + const url = joinUrl(`https://www.db.yugioh-card.com/yugiohdb/member_deck.action`, { ope: 1, cgid: cgid, dno: dno, request_locale: lang }); + message = `${num_found} Kinds in ${deck_name}: to open new tab, click here`; + + } else { + const serialized = $("#form_search").serialize(); + const page = 1; + const mode = 1; + const url = `https://www.db.yugioh-card.com/yugiohdb/card_search.action?${serialized}`.replaceAll(/&page=\d+|&mode=\d+/g, "") + `&page=${page}&mode=${mode}`; + message = `${num_found} Cards Found: to open new tab, click here`; + + } + $("#choice_card_area>span:first").text(num_found); + showMessage(message); await remakeSearchResult(div_search_result); } // # document @@ -601,10 +801,12 @@ const obtainSearchScript = async () => { } const obtainSearchForm = () => { - return `
- + + +

守備力

diff --git a/src/script/content_script.js b/src/script/content_script.js index b322621..5c0d5b2 100644 --- a/src/script/content_script.js +++ b/src/script/content_script.js @@ -13,17 +13,21 @@ window.onload = async function () { const my_cgid = obtainMyCgid(); const settings = await operateStorage({ settings: JSON.stringify({}) }, "sync") - .then(items => Object.assign(defaultSettings, JSON.parse(items.settings))); - const ytkn = obtain_YGODB_fromHidden("ytkn"); - const temps = await operateStorage({ temps: JSON.stringify({}) }, "local") - .then(items => Object.assign(defaultTemps, JSON.parse(items.temps))); - const new_temps = Object.assign(temps, { ytkn: ytkn }); - await operateStorage({ temps: JSON.stringify(new_temps) }, "local", "set"); - - const script_initial_count = $("script[type='text/javascript']").length; + .then(items => Object.assign(defaultSettings, JSON.parse(items.settings), { valid_feature_sideChange: true })); + + // # -------- prepare ---------- + + const script_initial_count = document.querySelectorAll("script[type='text/javascript']").length; + operateStorage({ temps: JSON.stringify({}) }, "local") //const temps = await + .then(items => Object.assign({}, JSON.parse(items.temps), { script_initial_count: script_initial_count }) + ).then(temps => { + operateStorage({ temps: JSON.stringify(temps) }, "local", "set") + }); + + $("#footer_icon svg").css({ height: "min(5vh, 30px)" }) if (html_parse_dic.ope == "8") { - await guess_clicked(); + guess_clicked(); // await } if (["2", "8"].indexOf(html_parse_dic.ope) !== -1) { const IsCopyMode = html_parse_dic.ope === "8"; @@ -33,37 +37,41 @@ window.onload = async function () { // other buttons for bottom const button_bottom_dic = { - back: $("", { class: "btn hex orn button_backtoView", id: "button_backToView" }) - .append("Back"), - header_visible: $("", { - class: "btn hex red button_visible_header hide", type: "button", id: "button_visible_header", + back: $("", { class: "btn hex orn square button_backtoView", id: "button_backToView" }) + .append($("", { title: "back" }).append(svgs.arrowBack)), + headerShowHide: $("", { + class: "btn hex red square button_visible_header hide", type: "button", id: "button_visible_header", style: "position: relative;user-select: none;" - }).append("Header HIDE"), - reloadSort: $("", { class: "btn hex red button_reloadSort", id: "button_reloadSort" }) - .append("Reload & Sort"), - searchShowHide: $("", { class: "btn hex red button_searchShowHide", id: "button_searchShowHide" }).append("Search SHOW"), - test: $("", { class: "btn hex red button_sort", id: "button_test" }).append("Test") + }).append($("", { title: "show Header" }).append(svgs.toc)), + test: $("", { class: "btn hex square red button_sort", id: "button_test" }).append("Test"), + export: $("", { class: "btn hex red square button_export", oncontextmenu: "return false;" }) + .append($("", { title: "Export deck recipie with id/cid/Name", style: "font-size:10px;" }).append(svgs.download + "id/cid/Name"))// "Export (L:id/M:cid/R:Name)"), + }; + for (const [button_type, button_tmp] of Object.entries(button_bottom_dic)) { - if (settings.valid_feature_deckHeader === false && ["header_visible"].indexOf(button_type) !== -1) continue; - if (settings.valid_feature_deckEditImage === false && ["reloadSort", "searchShowHide"].indexOf(button_type) !== -1) continue; + if (settings.valid_feature_deckHeader === false && ["headerShowHide"].indexOf(button_type) !== -1) continue; + if (settings.valid_feature_deckEditImage === false && ["reloadSort", "searchShowHide", "infoShowHide"].indexOf(button_type) !== -1) continue; if (settings.valid_feature_deckManager === false && !IsCopyMode && ["back"].indexOf(button_type) !== -1) continue; - if (IsLocalTest === false && ["test"].indexOf(button_type) !== -1) continue; + if (IsLocalTest === false && ["test", "hoverName"].indexOf(button_type) !== -1) continue; + button_tmp.css({ margin: "2px 2px" }) $(area_bottom).append(button_tmp); } // import button if (settings.valid_feature_importExport === true) { const label = $("", { - class: "btn hex red button_import", type: "button", id: "button_importFromYdk", + class: "btn hex red square button_import", type: "button", id: "button_importFromYdk", style: "position: relative;user-select: none;" }) - .append("Import") + .append($("", { title: "import from .ydk file" }).append(svgs.upload)); const input_button = $("", { type: "file", accpet: "text/*.ydk", style: "display: none;", id: "button_importFromYdk_input" }); button_import.append(input_button); label.append(button_import); area_bottom.append(label); + } + if (settings.valid_feature_deckHeader === true) { toggleVisible_deckHeader(settings.default_visible_header || IsCopyMode); @@ -91,9 +99,9 @@ window.onload = async function () { const header_box = $("div#deck_header>div#header_box"); const dl_deck_name = $("dl:has(dd>input#dnm)", header_box); const img_delete = $("", { - class: "ui-draggable ui-draggable-handle button_keyword_delete", - style: "flex:none;width:20px;height:20px;" - }) + class: "ui-draggable ui-draggable-handle button_delete_keyword", + style: "flex:none;width:20px;height:20px;cursor:pointer;" + }).append(svgs.backspace); const dl_deck_version = $("
", { class: "tab_mh100 alwaysShow", id: "deck_version_box" }); const dt = $("
").append($("", { style: "min-width:0px;" }).append("Deck in Cache")); @@ -101,12 +109,12 @@ window.onload = async function () { //input_version_name=$("", {id:"deck_version_tag"}); const btns_version = { - save: $("", { class: "btn hex red button_deckVersion button_save", id: "button_deckVersionSave" }) - .append("Save"), - load: $("", { class: "btn hex red button_deckVersion button_load", id: "button_deckVersionLoad" }) - .append("Load"), - delete: $("", { class: "btn hex red button_deckVersion button_delete", id: "button_deckVersionDelete" }) - .append("Delete"), + save: $("", { class: "btn hex red square button_deckVersion button_save", id: "button_deckVersionSave" }) + .append($("", { title: "cache save" }).append(svgs.save)), + load: $("", { class: "btn hex red square button_deckVersion button_load", id: "button_deckVersionLoad" }) + .append($("", { title: "cache load" }).append(svgs.style)), + delete: $("", { class: "btn hex red square button_deckVersion button_delete", id: "button_deckVersionDelete" }) + .append($("", { title: "cache delete" }).append(svgs.delete)), }; ["name", "tag"].map(key => { //const select=$(" +
- - + +
- +
- +
-
+
- - + +
- - + +
- - + +
- +
+
+ + +
+
+ + +