UNPKG

@luminati-io/luminati-proxy

Version:

A configurable local proxy for brightdata.com

352 lines (351 loc) 10.5 kB
@import (reference) 'common.less'; .proxy_edit { height: 100%; font-size: 14px; margin: 0 15px 15px; .cp_panel { height: 100%; overflow: auto; } .cp_panel_header { align-items: center; h2 { width: 30%; } } .info_icon { background: url(/img/info.svg); width: 11px; height: 11px; opacity: 0.4; position: absolute; bottom: 6px; right: 6px; cursor: pointer; } .nav_wrapper { .nav_header { display: flex; align-items: center; } } .nav { display: flex; margin: 5px 0 10px; align-items: center; column-gap: 10px; .field { margin-right: 10px; white-space: nowrap; } .action_buttons { flex-grow: 3; display: flex; direction: rtl; .btn_save { margin-right: 0; order: 1; } .btn_cancel { margin-left: 0; order: 2; } } .btn_browse { display: flex; justify-content: center; align-items: center; .browse_icon { background: url(/img/ic_browse.svg); width: 18px; height: 18px; background-size: contain; margin-left: 3px; } &:hover { .browse_icon { filter: grayscale(100%) brightness(3); } } } h2 { font-size: 20px; margin-right: 10%; } } .note { font-size: 13px; margin-bottom: 15px; } .main_window { flex: 1; margin-top: 10px; .in_logs { .nav_tabs { margin-bottom: 15px; } .logs { width: 100%; .logs_panel { margin: 0; } } } .target .desc { width: 110px; } .rotation .desc { width: 135px; } .browser .desc { width: 145px; } .general .desc { width: 195px; } .general .bw_limit_str { font-weight: 500; } .rules { max-width: 100%; .desc { width: 200px; min-width: 200px; } .rule_wrapper { &.collapsed { cursor: pointer; border-color: @grey; } border: solid 1px @first_color; outline: none !important; position: relative; margin-top: 15px; border-radius: 4px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; .action, .trigger, .ui, .code { padding: 8px; } .trigger.ui { position: relative; .mask { position: absolute; background-color: rgba(0, 0, 0, 0.05); border-top-left-radius: 2px; width: 100%; height: 100%; top: 0; left: 0; z-index: 5; display: none; &.active { display: block; } .reset_btn { position: absolute; right: 9px; top: 11px; } } } .trigger.code { grid-column-start: 2; grid-column-end: -1; grid-row-start: 1; grid-row-end: -1; } .action { border-top: 1px solid @grey; } .code { border-left: 1px solid @grey; overflow: hidden; } .btn_rule { outline: none !important; position: absolute; top: 9px; width: 16px; height: 16px; border: none; &.del { right: 5px; background: url(/img/delete.svg); } &.toggle { right: 30px; cursor: pointer; button { border: none; height: 3px; width: 100%; background-color: #004D74; opacity: 0.4; position: relative; top: -5px; } } } } .rule_add_btn { margin-left: 0; padding: 0px 15px; i { left: 4px; } } .btn.toggle_on_off:not(.rule_toggle) { position: absolute; right: 55px; top: 8px; } .proxy_tester { .panel { padding: 0; } } } .browser { .field_row_inner.headers { align-items: baseline; input[type=text] { margin-right: 9px; } .list { .single_header { display: flex; align-items: center; .header_name { margin-right: 5px; display: flex; align-items: baseline; } .header_value { margin-right: 5px; } .react_select__control { width: 100%; } .select_multiple { min-width: 220px; } } } .note { margin-bottom: 10px; } } .warning_container { width: 100%; display: flex; justify-content: space-between; align-items: center; } .desc { padding-right: 0; } .action_icons { width: 45px; flex-shrink: 0; } } .header { font-size: 16px; font-weight: bold; height: 40px; } .note { margin-bottom: 0; } .desc { line-height: 1.07; padding-right: 10px; } align-items: center; .prefix { margin-right: 10px; } .sufix { margin-left: 10px; } .double_field { input { width: 109px; } .devider { margin: 0 5px; } } } .allocated_ips_modal { .action_buttons { margin-bottom: 20px; text-align: center; } .checkbox_single { margin: 0; margin-right: 0; top: unset; margin-top: 2.5px; } } .bw_limit_modal { .inputs_container { display: flex; input { width: 100%; } .bytes_input { flex: 1; margin-right: 10px; } .days_input { flex: 1; } } .field_container { align-items: center; display: flex; min-height: 38px; &_title { margin-right: 15px; font-size: 15px; } } input[type=number].error { border-color: #eb3a28; } } .regex_field { width: 100%; display: flex; outline: none; position: relative; &:hover .tip_box { visibility: visible; } .tip_box { color: #8e8e8e; height: 32px; border-bottom: none; border: solid 1px @grey; border-bottom: none; border-top-left-radius: 4px; border-top-right-radius: 4px; padding: 3px 5px; visibility: hidden; &.active { visibility: visible; } .checks { display: flex; } .check { margin: auto 2px; line-height: 1.3; padding: 3px; background: transparent; text-shadow: rgba(255, 255, 255, 0.5) 0 1px 0; border: none; border-radius: 6px; overflow: hidden; &:hover:not([disabled]) { color: white; text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0; } &.active { color: white; text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0; background: rgba(0, 0, 0, 0.3); } &:hover:not(.active):not([disabled]) { background: rgba(0, 0, 0, 0.2); } &[disabled] { opacity: 0.5; } } } .regex_error { color: @error_dark; display: block; visibility: hidden; padding-bottom: 1em; margin-bottom: -2em; &.active { visibility: visible; } } } &.vbox { overflow-y: hidden; } } .banned_ips_panel { // XXX krzysztof: banned ips panel should be redesigned and not follow // chrome styling .tables_container, .header_container { table td, table th, div.chrome_table div.chrome_td, div.chrome_table div.chrome_th { &:nth-child(2) { border-left: none; } label { margin: 0; } .form-check { text-align: center; } input[type=checkbox] { margin: 0; top: 2px; } } table th, div.chrome_table div.chrome_th { &:first-child { text-align: center }; } } } .btn_unban { border: none; background: none; display: block; margin: auto; padding: 0; .chrome_icon { width: 20px; } .chrome_icon.unban_all { width: 28px; margin-left: -4px; margin-right: 1px; } }