<commit_before><link rel="import" href="../../bower_components/neon-animation/neon-animation-runner-behavior.html">
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="../../bower_components/iron-input/iron-input.html">
<link rel="import" href="../../bower_components/iron-icon/iron-icon.html">

<dom-module id="my-search-bar">
<!-- TODO: Fix title showing up above this -->

    <style>

        #search {
            display: -webkit-box;
            display: -webkit-flex;
            display: -moz-flex;
            display: -ms-flexbox;
            display: -o-flex;
            display: flex;

            -webkit-box-align: center;
            -webkit-align-items: center;
            -moz-align-items: center;
            -ms-align-items: center;
            -o-align-items: center;
            align-items: center;

            -webkit-box-flex: 1;
            -webkit-flex: 0 0 auto;
            -moz-flex: 0 0 auto;
            -ms-flex: 0 0 auto;
            -o-flex: 0 0 auto;
            flex: 0 0 auto;

            -moz-box-sizing: border-box;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            z-index: 100;
        }

        #search[opened] {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            padding: 0 16px;
            background-color: var(--primary-color);
            margin-left: 0;
        }

        #search[opened] input[is=iron-input] {
            padding: 8px;
            display: block;
        }

        #search #back-icon {
            display: none;
        }
        #search #search-icon {
            display: block;
        }

        input[is=iron-input] {
            background-color: inherit;
            border: none;
            font-size: 20px;
            outline: none;
            padding: 0;
            color: inherit;
            -webkit-box-flex: 1;
            -webkit-flex: 1 0 0;
            -moz-flex: 1 0 0;
            -ms-flex: 1 0 0;
            -o-flex: 1 0 0;
            flex: 1 0 0;
            display: none;
        }

        #results-container {
            display: none;
            @apply(--paper-font-body1);
            color: var(--primary-text-color);
            width: 100%;
            height: calc(100vh - 64px);
            position: absolute;
            top: 64px;
            left: 0;
            margin-left: 0;
            background-color: var(--primary-background-color);
            overflow-y: auto;
        }

        @media (max-width: 639px) {
            #results-container {
                top: 56px;
                height: calc(100vh - 56px);
            }

        }
<commit_msg>[Fix] Search bar UI on Safari<commit_after><link rel="import" href="../../bower_components/neon-animation/neon-animation-runner-behavior.html">
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="../../bower_components/iron-input/iron-input.html">
<link rel="import" href="../../bower_components/iron-icon/iron-icon.html">

<dom-module id="my-search-bar">
<!-- TODO: Fix title showing up above this -->

    <style>

        #search {
            display: -webkit-box;
            display: -webkit-flex;
            display: -moz-flex;
            display: -ms-flexbox;
            display: -o-flex;
            display: flex;

            -webkit-box-align: center;
            -webkit-align-items: center;
            -moz-align-items: center;
            -ms-align-items: center;
            -o-align-items: center;
            align-items: center;

            -webkit-box-flex: 1;
            -webkit-flex: 0 0 auto;
            -moz-flex: 0 0 auto;
            -ms-flex: 0 0 auto;
            -o-flex: 0 0 auto;
            flex: 0 0 auto;

            -moz-box-sizing: border-box;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            z-index: 100;
        }

        #search[opened] {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            padding: 0 16px;
            background-color: var(--primary-color);
            margin-left: 0;
        }

        #search[opened] input[is=iron-input] {
            padding: 8px;
            display: block;
        }

        #search #back-icon {
            display: none;
        }
        #search #search-icon {
            display: block;
        }

        input[is=iron-input] {
            background-color: inherit;
            border: none;
            font-size: 20px;
            outline: none;
            padding: 0 !important;
            color: inherit;
            -webkit-box-flex: 1;
            -webkit-flex: 1 0 0;
            -moz-flex: 1 0 0;
            -ms-flex: 1 0 0;
            -o-flex: 1 0 0;
            flex: 1 0 0;
            display: none;
            -webkit-appearance: none;
        }

        #results-container {
            display: none;
            @apply(--paper-font-body1);
            color: var(--primary-text-color);
            width: 100%;
            height: calc(100vh - 64px);
            position: absolute;
            top: 64px;
            left: 0;
            margin-left: 0;
            background-color: var(--primary-background-color);
            overflow-y: auto;
        }

        @media (max-width: 639px) {
            #results-container {
                top: 56px;
                height: calc(100vh - 56px);
            }

        }

{'fraction_non_alphanumeric': 0.13480605322664813, 'fraction_numerical': 0.024004174639067663, 'mean_word_length': 1.2718293164757013, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '7548826', 'n_tokens_mistral': 1840, 'n_tokens_neox': 1648, 'n_words': 370}