<commit_before>//
// This file regroups all the rules which apply to field widgets wherever they
// are in the DOM, in both community and enterprise versions.
//

// Invalid
.o_field_invalid {
    &.o_input, .o_input, &.o_form_label {
        color: theme-color('danger')!important;
        border-color: theme-color('danger')!important; // enterprise o_required_modifier rule overrides this without !important
    }
}

// Empty
.o_field_empty {
    display: none!important;
}

// Numbers
.o_field_number {
    white-space: nowrap;
}

//------------------------------------------------------------------------------
// Fields
//------------------------------------------------------------------------------

.o_field_widget {
    // Default display and alignment of widget and internal <input/>
    &, input.o_input {
        display: inline-block;
        text-align: inherit;
    }

    // Block fields
    &.note-editor, &.oe_form_field_html, &.oe_form_field_html_text, &.oe_form_field_text, &.o_field_domain, &.o_graph_linechart, &.o_graph_barchart {
        display: block;
    }

    // Flex fields (inline)
    &.o_field_many2one, &.o_field_radio, &.o_field_many2manytags, &.o_field_percent_pie, &.o_field_monetary, &.o_field_binary_file {
        display: inline-flex;
        > span, > button {
            flex: 0 0 auto;
        }<commit_msg>[FIX] web: fix misaligned select inputs<commit_after>//
// This file regroups all the rules which apply to field widgets wherever they
// are in the DOM, in both community and enterprise versions.
//

// Invalid
.o_field_invalid {
    &.o_input, .o_input, &.o_form_label {
        color: theme-color('danger')!important;
        border-color: theme-color('danger')!important; // enterprise o_required_modifier rule overrides this without !important
    }
}

// Empty
.o_field_empty {
    display: none!important;
}

// Numbers
.o_field_number {
    white-space: nowrap;
}

//------------------------------------------------------------------------------
// Fields
//------------------------------------------------------------------------------

.o_field_widget {
    // Default display and alignment of widget and internal <input/>
    &, input.o_input {
        display: inline-block;
        text-align: inherit;
    }

    // Selection fields
    &, select.o_input {
        padding: 1px;  // Other inputs get a 1px padding automatically added by the browsers but selects do not
    }

    // Block fields
    &.note-editor, &.oe_form_field_html, &.oe_form_field_html_text, &.oe_form_field_text, &.o_field_domain, &.o_graph_linechart, &.o_graph_barchart {
        display: block;
    }

    // Flex fields (inline)
    &.o_field_many2one, &.o_field_radio, &.o_field_many2manytags, &.o_field_percent_pie, &.o_field_monetary, &.o_field_binary_file {
        display: inline-flex;
        > span, > button {
            flex: 0 0 auto;
        }
{'fraction_non_alphanumeric': 0.2131769575715764, 'fraction_numerical': 0.0034494653328734047, 'mean_word_length': 1.9116465863453815, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3383854', 'n_tokens_mistral': 890, 'n_tokens_neox': 862, 'n_words': 209}