/
Sangak
/
inav-configurator
Обзор
Документация
Войти
/
Sangak
/
inav-configurator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/css/tabs/osd.css
963 строки
17 KB
Sensei
Merge pull request #2636 from sensei-hacker/feature/custom-osd-element-enable-toggle
31 май 2026, 22:58
Не верифицирован
31 май 2026, 22:58
39c9955
Код
Авторство
О чём код?
.tab-osd .info { margin: 10px 0 0 0; position: relative; } .tab-osd .info .progressLabel { position: absolute; width: 100%; height: 26px; top: 0; left: 0; text-align: center; line-height: 24px; color: white; font-weight: bold; /* text-shadow: 1px 0px 2px rgba(0, 0, 0, 0.9);*/ } .darkgrey { background-color: #575757; } .blue { color: #151f8c; } .tab-osd .spacer_box_title { float: none; } .tab-osd .info { float: left; width: 100%; } .info .progressLabel a { color: white; } .info .progressLabel a:hover { text-decoration: underline; } .info .progress { width: 100%; height: 26px; border-radius: 5px; border: 1px solid silver; } .info .progress { -webkit-appearance: none; } /*noinspection CssInvalidPseudoSelector*/ .info .progress::-webkit-progress-bar { background-color: #4f4f4f; border-radius: 4px; box-shadow: inset 0 0 5px #2f2f2f; } /*noinspection CssInvalidPseudoSelector*/ .info .progress::-webkit-progress-value { background-color: #F86008; border-radius: 4px; } /*noinspection CssInvalidPseudoSelector*/ .info .progress.valid::-webkit-progress-bar { background-color: #56ac1d; border-radius: 4px; } /*noinspection CssInvalidPseudoSelector*/ .info .progress.valid::-webkit-progress-value { background-color: #56ac1d; border-radius: 4px; } /*noinspection CssInvalidPseudoSelector*/ .info .progress.invalid::-webkit-progress-bar { background-color: #A62E32; border-radius: 4px; } /*noinspection CssInvalidPseudoSelector*/ .info .progress.invalid::-webkit-progress-value { background-color: #A62E32; border-radius: 4px; } .tab-osd ul li { list-style: circle; margin-left: 30px; } .tab-osd .options { position: relative; margin-bottom: 10px; line-height: 18px; text-align: left; } .tab-osd td { text-align: left; } .tab-osd .options label input { float: left; margin-top: 2px; } .tab-osd .options label span { font-weight: bold; margin-left: 6px; } .tab-osd .options select { width: 300px; height: 20px; border: 1px solid silver; } .tab-osd .options .releases select { width: 280px; } .tab-osd .option.releases { margin: 0 0 2px 0; line-height: 20px; } .tab-osd .options .description { position: relative; left: 0; font-style: italic; color: #818181; } .tab-osd .cf_table td:last-child { text-align: left; } .tab-osd .options .flash_on_connect_wrapper { display: none; } .tab-osd .options .manual_baud_rate select { width: 75px; margin-left: 19px; } .tab-osd .release_info { display: none; } .tab-osd .release_info .title { line-height: 20px; text-align: center; font-weight: bold; color: white; border-bottom: 1px solid silver; background-color: #3f4241; } .tab-osd .release_info .target { color: blue; } .tab-osd .release_info p { padding: 5px; } .tab-osd .release_info p a { font-weight: bold; } .tab-osd .release_info p a:hover { text-decoration: underline; } .tab-osd .release_info .notes { padding: 5px; } .tab-osd .git_info { display: none; margin-bottom: 10px; border: 1px solid silver; } .tab-osd .git_info .title { line-height: 20px; text-align: center; font-weight: bold; color: white; border-bottom: 1px solid silver; background-color: #3f4241; } .tab-osd .git_info p { padding: 5px; } .tab-osd .git_info p a { font-weight: bold; } .tab-osd .git_info p a:hover { text-decoration: underline; } .tab-osd .buttons { width: calc(100% - 20px); margin-top: 10px; bottom: 10px; } .tab-osd .buttons a { display: block; float: left; margin: 0 10px 0 0; padding: 0 15px 0 15px; height: 28px; line-height: 28px; text-align: center; font-weight: bold; border: 1px solid silver; background-color: #ececec; } .tab-osd .buttons a:hover { background-color: #dedcdc; } .tab-osd .buttons a.flash_font.locked { background-color: #b8b8b8; } .tab-osd .buttons a.flash_font.locked:hover { cursor: default; background-color: #b8b8b8; } .tab-osd .buttons a.load_remote_file.locked { background-color: #b8b8b8; } .tab-osd .buttons a.load_remote_file.locked:hover { cursor: default; background-color: #b8b8b8; } .tab-osd .buttons .back { float: right; margin: 0; } .tab-osd .btn .disabled { cursor: default; color: #fff; background-color: #AFAFAF; border: none; pointer-events: none; text-shadow: none; opacity: 0.5; } .tab-osd .display-layout label { margin: .25em .1em; display: inline-block; } .tab-osd .display-layout input { margin: .1em 1em; } .tab-osd .display-layout input.position { width: 5em; border-bottom: 1px solid #ccc } .tab-osd .hide { display: none; } .tab-osd .note { padding: 1em; } .tab-osd .col { display: inline-block; } .tab-osd .left { float: left; } .tab-osd .right { float: right; margin-top: -7px; } .tab-osd .preview .gui_box_titlebar { position: relative; } .tab-osd .preview .char { display: inline-block; padding: 0; margin: 0; } .tab-osd .char.mouseover { background: rgba(255, 255, 255, 0.4); } .tab-osd .char.dragging { background: rgba(255, 255, 255, 0.4); } .tab-osd .char-label.mouseover { background: rgba(255, 255, 255, 0.4); } .tab-osd .preview .char[draggable="true"] { cursor: move; } .tab-osd .preview .row { height: 18px; } .tab-osd .content_wrapper { height: calc(100% - 41px); } .font-preview { padding-top:10px; } .tab-osd .content_toolbar { text-align: right; } .tab-osd .content_toolbar button { margin-right: 1em; } .tab-osd button { padding: 4px 10px !important; font-family: 'open_sanssemibold', Arial, serif; font-size: 9pt !important; cursor: pointer; } .fontbuttons { display: inline-block; position: absolute; right: 1.2em; top: .8em; } .tab-osd .display-field { padding: 4px; border-bottom: 1px solid #ddd; } .tab-osd .display-field.mouseover { background: #fff; border: 1px solid #ccc; font-weight: 800; } .tab-osd .display-field input { float: right; width: 50px; border-radius: 3px; border: 1px solid #ddd; padding: 2px; margin-top: -2px; display: none; } .tab-osd .display-field label { margin-left: 5px; } .tab-osd .display-fields { float: left; margin-top: 5px; margin-bottom: 8px; width: 100%; } .spacer_box_title span { font-size: 11px; font-weight: normal; font-family: 'open_sansregular', 'Segoe UI', Tahoma, sans-serif; } .spacer_box div input[type="radio"] { margin-right: 5px; } .spacer_box div label { margin-right: 10px; } .tab-osd .display-field:last-child { border-bottom: 0; } .tab-osd .third_left { float: left; width: calc(50% - 197px); } .tab-osd .third_right { float: right; width: calc(50% - 197px); } .tab-osd .preview { width: 360px; left: calc(50% - 197px); } .tab-osd .preview_bfhdcompat { width: 636px !important; /* 12 X char width */ left: calc(50% - 335px) !important; /* width / 2 + 17 */ } .tab-osd .hd_bfhdcompat_43_left { border-left: 2px solid red; position: absolute; /*left: 77.5px; // Calculated correct position */ left: 70px; height: calc(100% - 27px); } .tab-osd .hd_bfhdcompat_43_right { border-right: 2px solid red; position: absolute; /* right: 77.5px; // Calculated correct position */ right: 70px; height: calc(100% - 27px); } .tab-osd .preview_bfhdcompat_side { width: calc(50% - 335px) !important; } .tab-osd .preview_avatar { width: 636px !important; /* 12 X char width */ left: calc(50% - 335px) !important; /* width / 2 + 17 */ } .spacer_box.osd_customelement_icons_help { padding-top: 0px; } .helpicon.osd_customelement_icons_help { margin-bottom: 5px; } .tab-osd .hd_avatar_43_left { border-left: 2px solid red; position: absolute; /*left: 77.5px; // Calculated correct position */ left: 30px; height: calc(100% - 27px); } .tab-osd .hd_avatar_43_right { border-right: 2px solid red; position: absolute; /* right: 77.5px; // Calculated correct position */ right: 36px; height: calc(100% - 27px); } .tab-osd .preview_avatar_side { width: calc(50% - 335px) !important; } .tab-osd .preview_hdzero { width: 600px !important; left: calc(50% - 317px) !important; } .tab-osd .hdzero_43_left { border-left: 2px solid red; position: absolute; left: 60px; height: calc(100% - 27px); } .tab-osd .hdzero_43_right { border-right: 2px solid red; position: absolute; right: 60px; height: calc(100% - 27px); } .tab-osd .preview_hdzero_side { width: calc(50% - 317px) !important; } .tab-osd .preview_dji_hd { width: 720px !important; left: calc(50% - 377px) !important; } .tab-osd .dji_hd_43_left { border-left: 2px solid red; position: absolute; left: 84px; height: calc(100% - 27px); } .tab-osd .dji_hd_43_right { border-right: 2px solid red; position: absolute; right: 84px; height: calc(100% - 27px); } .tab-osd .preview_dji_hd_side { width: calc(50% - 377px) !important; } .tab-osd .hd_3016_top { border-top: 2px solid blue; position: absolute; top: 46px; left: 120px; width: 360px; } .tab-osd .hd_3016_bottom { border-bottom: 2px solid blue; position: absolute; bottom: 18px; left: 120px; width: 360px; } .tab-osd .hd_3016_left { border-left: 2px solid blue; position: absolute; top: 46px; left: 120px; height: 288px; } .tab-osd .hd_3016_right { border-right: 2px solid blue; position: absolute; top: 46px; right: 120px; height: 288px; } .tab-osd .hd_bfhdcompat_bottom { border: 2px solid purple; position: absolute; height: 70px; bottom: 0px; left: 450px; right: 0px; pointer-events: none; } .tab-osd .hd_bfhdcompat_storagebox { border: 2px solid purple; position: absolute; top: 115px; height: 55px; right: 0px; width: 80px; pointer-events: none; } .tab-osd .hd_avatar_bottom { border-bottom: 2px solid purple; position: absolute; bottom: 33px; left: 0px; right: 0px; } .tab-osd .hd_avatar_storagebox_t { border-top: 2px solid purple; position: absolute; top: 56px; height: 1px; right: 34px; width: 48px; } .tab-osd .hd_avatar_storagebox_b { border-bottom: 2px solid purple; position: absolute; top: 88px; height: 1px; right: 34px; width: 48px; } .tab-osd .hd_avatar_storagebox_l { border-left: 2px solid purple; position: absolute; top: 56px; height: 35px; right: 80px; width: 1px; } .tab-osd .hd_avatar_storagebox_r { border-right: 2px solid purple; position: absolute; top: 56px; height: 35px; right: 32px; width: 1px; } .tab-osd .ntsc_bottom { border-bottom: 2px solid green; position: absolute; bottom: 54px; left: 0px; width: 100%; } .tab-osd .preview { /* please don't copy the generic background image from another project * and replace the one that @nathantsoi took :) */ background: url(./../../../images/osd-bg-1.jpg); background-size: cover; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } .tab-osd .settings label { display: block; width: 100%; border-bottom: 1px solid #ddd; margin-top: 5px; padding-bottom: 5px } .tab-osd .settings label:last-child { border-bottom: none; padding-bottom: 0; } .tab-osd .settings input { width: 75px; padding-left: 3px; height: 18px; line-height: 20px; text-align: left; border: 1px solid silver; border-radius: 3px; font-size: 11px; font-weight: normal; } .tab-osd .settings select { width: 80px; } .tab-osd .settings .switchery { margin-right: 33px; } .tab-osd .settings .djiCraftNameElements { display: block; width: 100%; border-bottom: 1px solid #ddd; margin-top: 5px; padding-bottom: 5px; } .no-bottom { border-bottom: none !important; padding-bottom: 0 i !important; } @media only screen and (max-width: 1439px) { .tab-osd .content_wrapper { padding: 6px; } } @media only screen and (max-width: 1055px) , only screen and (max-device-width: 1055px) { .tab-osd .content_wrapper { height: calc(100% - 30px); } } .osd__elements { margin-bottom: 3em; } .osd_layouts { display: inline-block; margin-bottom: 1em; width: auto !important; } .osd_search { float: right; width: auto !important; margin-right: 0 !important; } .tab-osd label > .i18n-replaced { display: inline-block; left: 108px; width: calc(100% - 110px); } .tab-osd .settings select, .tab-osd .settings input, .tab-osd .osd_settings .switchery, .tab-osd .unit_wrapper { vertical-align: top; } /* Custom Element cards */ .ce-card { border: 1px solid #ddd; border-radius: 4px; margin-bottom: 6px; background: #fff; border-left: 3px solid #ddd; } .ce-card-configured { border-left-color: #37a8db; } .ce-card-collapsed { border-left-color: #ccc; } .ce-card-header { display: flex; align-items: center; padding: 6px 10px; cursor: pointer; gap: 8px; user-select: none; } .ce-card-header:hover { background: #f5f5f5; } .ce-card-header .ios7-switch { flex-shrink: 0; } .ce-card-name { font-weight: bold; font-size: 12px; } .ce-card-preview { color: #888; font-size: 11px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; } .ce-card-chevron { font-size: 14px; color: #888; flex-shrink: 0; width: 16px; text-align: center; } .osd_group { max-width: 300px; } .ce-card-body { padding: 8px 10px; border-top: 1px solid #eee; } .ce-slot-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; } .ce-slot-row:last-child { margin-bottom: 0; } .ce-slot-value { flex: 1; min-width: 0; } .ce-slot-value input, .ce-slot-value select { width: 100% !important; } /* Icon picker popup */ .ce-icon-picker-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 10000; display: flex; align-items: center; justify-content: center; } .ce-icon-picker-popup { background: #fff; border-radius: 6px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); padding: 12px; max-width: 520px; max-height: 80vh; overflow-y: auto; } .ce-icon-picker-title { font-weight: bold; margin-bottom: 8px; font-size: 13px; } .ce-icon-picker-grid { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; } .ce-icon-picker-tile { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; border-radius: 3px; cursor: pointer; background: #fafafa; } .ce-icon-picker-tile:hover { border-color: #37a8db; background: #e8f4fd; } .ce-icon-picker-tile.ce-icon-picker-selected { border-color: #37a8db; background: #d0ecfa; box-shadow: 0 0 0 1px #37a8db; } .ce-icon-picker-tile img { max-width: 20px; max-height: 20px; image-rendering: pixelated; } /* Icon picker inline button */ .ce-ico-picker-btn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid silver !important; border-radius: 3px; cursor: pointer; background: #fafafa; min-height: 24px; } .ce-ico-picker-btn:hover { border-color: #37a8db !important; background: #e8f4fd; } .ce-ico-preview { width: 16px; height: 16px; image-rendering: pixelated; } .ce-ico-label { font-size: 11px; color: #666; } .osdCustomElement_main_table { width: 100%; table-layout: fixed; max-width: 400px; } .osdCustomElement_main_table td{ max-width: 80px; } .osdCustomElement_main_table select, .osdCustomElement_main_table input{ width: 100% !important; } .settings .btn a{ margin-top: 0; margin-bottom: 0; border-radius: 3px; color: #fff; font-family: 'open_sansbold', Arial, serif; font-size: 12px; text-shadow: 0 1px rgba(0, 0, 0, 0.25); cursor: pointer; transition: all ease 0.2s; padding: 0 9px; line-height: 22px; } .settings .btn_blue a{ background-color: #37a8db; border: 1px solid #3394b5; } .settings .btn_danger a{ background-color: #e2a2a2; border: 1px solid #e58383; } .tab-osd .osd_settings .gui_box + .gui_box { margin-top: 1em; } .settings .btn a:hover { background-color: #3394b5; transition: all ease 0.2s; }