<commit_before>@namespace 'time-picker';

:import {
    -st-from: "../stepper/stepper.st.css";
    -st-default: Stepper;
}

:import {
    -st-from: "../../style/project.st.css";
    -st-named:
        ER1,
        DS1,
        DS2,
        BK2,
        BK3,
        PR2,
        PR3;
}
:vars {
    height: 2.25em;
    width: 7.5em;
}
.root {
    -st-states: focus, disabled, empty, hasPlaceholder, error, rtl;
    font-family: arial;
    font-size: 16px;
    position: relative;
    border: 1px solid value(BK3);
    height: value(height);
    min-width: value(width);
    display: inline-flex;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    background-color: white;

    padding-left: 9px;
    overflow: hidden;
}

.root:not(:disabled):hover {
    border-color: value(PR3);
}
/* reset :hover for touch devices */
@media (hover: none) {
    .root:not(:focus):hover {
        border-color: value(BK3);
    }
}

.root:focus {
    border-color: value(PR2);
}
.root:disabled {
    background-color: value(DS2);
    color: value(DS1);
    position: relative;
}
.root:disabled:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: not-allowed;
}

.root:empty {
    color: value(BK2);
}
.root:empty::stepper,
.root:empty:hasPlaceholder::time,
.root:empty:hasPlaceholder::ampm {
    opacity: 0;
}
.root:error {
    border-color: value(ER1);
}

.time {
    display: inline-block;
    flex: 1;
    position: relative;
}
.time:after {
    content: ':';
    position: absolute;
    top: 0;
    left: 1.4em;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.root:rtl {
    padding-right: 9px;
    padding-left: 0;
}
.root:rtl::time {
    display: inline-flex;
    flex-direction: row-reverse;
}

.input {
    position: relative;
    font: inherit;
    border: 0;
    padding: 0 3px;
    margin: 0;
    width: 1.6em;
    height: 100%;
    background: none;
    color: inherit;
    -webkit-text-fill-color: inherit;
}

/* TODO replace with mixin */
.input::-webkit-input-placeholder {
    color: value(BK2);
    -webkit-text-fill-color: currentColor;
    opacity: 1;
}
.input:-ms-input-placeholder {
    color: value(BK2);
    -webkit-text-fill-color: currentColor;
    opacity: 1;
}
.input::-moz-placeholder {
    color: value(BK2);
    -webkit-text-fill-color: currentColor;
    opacity: 1;
}

/* TODO replace with mixin */
.input::-moz-selection {<commit_msg><TimePicker/> - fixed edge croping (#430)<commit_after>@namespace 'time-picker';

:import {
    -st-from: "../stepper/stepper.st.css";
    -st-default: Stepper;
}

:import {
    -st-from: "../../style/project.st.css";
    -st-named:
        ER1,
        DS1,
        DS2,
        BK2,
        BK3,
        PR2,
        PR3;
}
:vars {
    height: 2.25em;
    width: 7.5em;
}
.root {
    -st-states: focus, disabled, empty, hasPlaceholder, error, rtl;
    font-family: arial;
    font-size: 16px;
    position: relative;
    border: 1px solid value(BK3);
    height: value(height);
    min-width: value(width);
    display: inline-flex;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    background-color: white;

    padding-left: 9px;
    overflow: hidden;
}

.root:not(:disabled):hover {
    border-color: value(PR3);
}
/* reset :hover for touch devices */
@media (hover: none) {
    .root:not(:focus):hover {
        border-color: value(BK3);
    }
}

.root:focus {
    border-color: value(PR2);
}
.root:disabled {
    background-color: value(DS2);
    color: value(DS1);
    position: relative;
}
.root:disabled:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: not-allowed;
}

.root:empty {
    color: value(BK2);
}
.root:empty::stepper,
.root:empty:hasPlaceholder::time,
.root:empty:hasPlaceholder::ampm {
    opacity: 0;
}
.root:error {
    border-color: value(ER1);
}

.time {
    display: inline-block;
    flex: 1;
    position: relative;
}
.time:after {
    content: ':';
    position: absolute;
    top: 0;
    left: 1.4em;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.root:rtl {
    padding-right: 9px;
    padding-left: 0;
}
.root:rtl::time {
    display: inline-flex;
    flex-direction: row-reverse;
}

.input {
    position: relative;
    font: inherit;
    border: 0;
    padding: 0 3px;
    margin: 0;
    width: 1.62em;
    height: 100%;
    background: none;
    color: inherit;
    -webkit-text-fill-color: inherit;
}

/* TODO replace with mixin */
.input::-webkit-input-placeholder {
    color: value(BK2);
    -webkit-text-fill-color: currentColor;
    opacity: 1;
}
.input:-ms-input-placeholder {
    color: value(BK2);
    -webkit-text-fill-color: currentColor;
    opacity: 1;
}
.input::-moz-placeholder {
    color: value(BK2);
    -webkit-text-fill-color: currentColor;
    opacity: 1;
}

/* TODO replace with mixin */
.input::-moz-selection {
{'fraction_non_alphanumeric': 0.16158597330145447, 'fraction_numerical': 0.023510659493923093, 'mean_word_length': 2.520336605890603, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7580517', 'n_tokens_mistral': 1933, 'n_tokens_neox': 1827, 'n_words': 390}